/* 部署指南页面样式 */

/* 页面整体布局 */
.guide-page {
    padding: 100px 0 80px;
    background: #f8fafc;
    min-height: calc(100vh - 300px);
}

.guide-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #64748b;
}

.breadcrumb a {
    color: #4f46e5;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    color: #cbd5e1;
}

.breadcrumb .current {
    color: #334155;
    font-weight: 500;
}

/* 指南封面区域 */
.guide-hero {
    background: white;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    gap: 40px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.guide-cover {
    flex-shrink: 0;
    width: 200px;
    height: 280px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.3);
}

.cover-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.cover-icon i {
    font-size: 40px;
    color: white;
}

.cover-badge {
    position: absolute;
    bottom: 40px;
    background: rgba(255,255,255,0.9);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #4f46e5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-intro {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.guide-intro h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.3;
}

.guide-subtitle {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
}

.guide-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #64748b;
}

.meta-item i {
    color: #4f46e5;
}

/* 指南简介 */
.guide-description {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.guide-description h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-description h2 i {
    color: #4f46e5;
}

.guide-description p {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 16px;
}

.guide-benefits {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.guide-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #334155;
}

.guide-benefits li i {
    color: #10b981;
}

/* 目录 */
.guide-toc {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.guide-toc h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-toc h2 i {
    color: #4f46e5;
}

.toc-sections {
    display: grid;
    gap: 20px;
}

.toc-section {
    border-left: 3px solid #e2e8f0;
    padding-left: 20px;
}

.toc-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.toc-items {
    list-style: none;
    padding-left: 38px;
}

.toc-items li {
    font-size: 14px;
    color: #64748b;
    padding: 6px 0;
    position: relative;
}

.toc-items li::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 14px;
    width: 6px;
    height: 6px;
    background: #cbd5e1;
    border-radius: 50%;
}

/* 下载区域 */
.download-section {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 16px;
    padding: 40px;
    color: white;
}

.download-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-section > p {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
}

.download-form {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group label .required {
    color: #fbbf24;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255,255,255,0.5);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: white;
    background: rgba(255,255,255,0.15);
}

.form-group select option {
    background: #4f46e5;
    color: white;
}

.checkbox-group {
    margin: 24px 0;
    padding: 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    accent-color: #4f46e5;
    cursor: pointer;
    flex-shrink: 0;
}

.download-form .btn-block {
    width: 100%;
    background: white;
    color: #4f46e5;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
}

.download-form .btn-block:hover {
    background: rgba(255,255,255,0.9);
}

/* 右侧边栏 */
.guide-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.sidebar-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card h3 i {
    color: #4f46e5;
}

.sidebar-card p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}

.sidebar-card .btn-block {
    width: 100%;
    text-align: center;
}

/* 资源列表 */
.resource-list {
    list-style: none;
}

.resource-list li {
    border-bottom: 1px solid #f1f5f9;
}

.resource-list li:last-child {
    border-bottom: none;
}

.resource-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.resource-list a:hover {
    color: #4f46e5;
}

.resource-list a i {
    width: 24px;
    color: #4f46e5;
}

/* 技术支持卡片 */
.support-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.support-card h3 i {
    color: #d97706;
}

.support-contact {
    margin-top: 12px;
}

.support-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #92400e;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.support-link:hover {
    text-decoration: underline;
}

/* 推荐内容 */
.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommend-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.recommend-item:hover {
    background: #f8fafc;
}

.recommend-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.recommend-icon i {
    color: white;
    font-size: 18px;
}

.recommend-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.recommend-content p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .guide-layout {
        grid-template-columns: 1fr;
    }
    
    .guide-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .guide-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .guide-cover {
        width: 160px;
        height: 220px;
    }
    
    .guide-meta {
        justify-content: center;
    }
    
    .guide-benefits {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .guide-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .guide-page {
        padding: 80px 0 60px;
    }
    
    .guide-hero,
    .guide-description,
    .guide-toc {
        padding: 24px;
    }
    
    .guide-intro h1 {
        font-size: 24px;
    }
    
    .download-section {
        padding: 24px;
    }
    
    .download-form {
        padding: 20px;
    }
}
