/* ========================================
   下载页面专用样式
   ======================================== */

/* Hero区域 */
.download-hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #273059 0%, #8c58bf 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.download-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.download-hero .hero-title {
    font-size: 52px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
}

.download-hero .hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.8;
}

.download-hero .hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.download-hero .btn-primary {
    background: white;
    color: #667eea;
}

.download-hero .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.3);
    background: #f8f9fa;
}

.download-hero .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.download-hero .btn-outline:hover {
    background: white;
    color: #667eea;
}

/* 内容区域 */
.download-content {
    background: #fff;
}

/* 章节样式 */
.content-section {
    padding: 60px 0;
}

.content-section:nth-child(even) {
    background: #f8f9fa;
}

.content-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.content-section .section-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
}

.content-section .section-desc {
    font-size: 16px;
    color: #7f8c8d;
}

/* 文章卡片 */
.article-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
}

.article-card h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

.article-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 30px 0 15px;
}

.article-card p {
    color: #555;
    line-height: 1.9;
    margin-bottom: 16px;
}

.article-card ul, .article-card ol {
    color: #555;
    line-height: 2;
    padding-left: 24px;
    margin-bottom: 20px;
}

.article-card li {
    margin-bottom: 8px;
}

.article-card code {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    color: #667eea;
}

/* 特性网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: #667eea;
}

.feature-item .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.feature-item .feature-name {
    color: #2c3e50;
    font-weight: 600;
    font-size: 16px;
}

/* 下载资源列表 */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
}

.download-item {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.download-item:hover {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
    transform: translateX(5px);
}

.download-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.download-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
}

.download-name {
    color: #2c3e50;
    font-weight: 600;
    font-size: 16px;
}

.download-meta {
    color: #999;
    font-size: 14px;
    margin-top: 4px;
}

.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

/* 步骤卡片 */
.step-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.step-card::before {
    content: attr(data-step);
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.step-card h4 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0 15px;
}

.step-card p, .step-card li {
    color: #555;
    line-height: 1.8;
}

/* 步骤网格 */
.step-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-grid .step-card {
    margin: 0;
}

/* 警告提示框 */
.alert-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-box .alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-box .alert-text {
    color: #856404;
    line-height: 1.6;
}

/* 代码块 */
.code-block {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
    font-family: 'Consolas', 'Monaco', monospace;
    color: #333;
    margin: 16px 0;
    overflow-x: auto;
}

/* 方法卡片 */
.method-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.method-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 30px;
}

.method-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.method-card ol {
    padding-left: 20px;
}

.method-card li {
    color: #555;
    line-height: 2;
    margin-bottom: 8px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

/* 响应式 */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .method-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .download-hero .hero-title {
        font-size: 36px;
    }

    .download-hero .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .download-hero .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .content-section {
        padding: 40px 0;
    }

    .content-section .section-title {
        font-size: 28px;
    }

    .article-card {
        padding: 24px;
    }

    .article-card h2 {
        font-size: 24px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-grid {
        grid-template-columns: 1fr;
    }

    .download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
}
