/* 资源建设页面 - 增强版样式 */

/* ==================== 色彩系统变量 ==================== */
:root {
    /* 主题色 - 典雅古籍风格 */
    --resource-primary: #c8a882;      /* 古籍金 */
    --resource-secondary: #6b5d4f;    /* 古籍棕 */
    --resource-accent: #e8d4b8;       /* 浅米色 */
    --resource-highlight: #d4a574;    /* 强调金 */

    /* 背景色 */
    --resource-bg-light: #faf8f5;     /* 温暖白 */
    --resource-bg-cream: #f5f1eb;     /* 米色 */
    --resource-bg-dark: #4a3c2a;      /* 深棕 */

    /* 渐变 */
    --resource-gradient-bg: linear-gradient(135deg, #f5f1eb 0%, #ede3d6 50%, #e6d5c3 100%);
    --resource-gradient-gold: linear-gradient(135deg, var(--resource-primary), var(--resource-secondary));
    --resource-gradient-card: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(250,248,245,0.9));

    /* 阴影 */
    --shadow-soft: 0 8px 32px rgba(107, 93, 79, 0.1);
    --shadow-hover: 0 12px 48px rgba(107, 93, 79, 0.15);
    --shadow-card: 0 4px 16px rgba(107, 93, 79, 0.08);

    /* Section 背景渐变 */
    --section-bg-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --section-bg-2: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
    --section-bg-3: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
    --section-bg-4: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --section-bg-5: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    --section-bg-6: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* ==================== 基础样式重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow: hidden;
    background: var(--resource-gradient-bg);
}

/* ==================== 容器设计升级 ==================== */
.section .container {
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

/* Hero Section 特殊处理 - 保持白色半透明背景以确保文字可见 */
.hero-section .container {
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: var(--shadow-soft);
    max-width: 90vw;
    max-height: 90vh;
    aspect-ratio: 16/9;
    backdrop-filter: blur(10px);
    border-radius: 15px !important;
    padding: 2rem !important;
}

/* ==================== 文字颜色修复 - 白色背景需要深色文字 ==================== */
/* 所有有白色背景的section内的文字都改为深色 */
.section .container {
    color: #333;
}

/* 标题文字颜色 */
.section .container .section-title {
    color: var(--resource-secondary);
    text-shadow: none;
}

/* stat-card在白色背景中的文字颜色 */
.section .container .stat-card {
    color: #333;
}

.section .container .stat-number {
    color: var(--resource-primary);
}

.section .container .stat-label {
    color: #666;
}

/* tech-card文字颜色 */
.section .container .tech-card,
.section .container .tech-card h3,
.section .container .tech-card p {
    color: #333;
}

/* advantage-card文字颜色 */
.section .container .advantage-card,
.section .container .advantage-card h3,
.section .container .advantage-card p {
    color: #333;
}

/* partner-card文字颜色 */
.section .container .partner-card,
.section .container .partner-card h3,
.section .container .partner-card p {
    color: #333;
}

/* achievement相关文字 */
.section .container .achievement-item h4,
.section .container .achievement-item p {
    color: #333;
}

/* process相关文字 */
.section .container .process-step h3,
.section .container .process-step p,
.section .container .step-content h3,
.section .container .step-content p {
    color: #333;
}

/* join-card文字 */
.section .container .join-card h3,
.section .container .join-card h4,
.section .container .join-card h5,
.section .container .join-card p {
    color: #333;
}

/* feature相关文字 */
.section .container .feature-item h4,
.section .container .feature-item p,
.section .container .feature-details h4,
.section .container .feature-details p {
    color: #333;
}

/* tip-item文字 */
.section .container .tip-item h5,
.section .container .tip-item p {
    color: #333;
}

/* contact-info文字 */
.section .container .contact-info,
.section .container .contact-info h4,
.section .container .contact-info h5,
.section .container .contact-info p {
    color: #333;
}

/* access-link文字 */
.section .container .access-link {
    color: var(--resource-primary);
}

/* Hero Section 深色文字（白色背景需要深色文字） */
.hero-section .container,
.hero-section .hero-content {
    color: #333 !important;
}

.hero-section .hero-title,
.hero-section .section-title {
    color: #2c3e50 !important;
    text-shadow: none !important;
}

.hero-section .hero-subtitle {
    color: #555 !important;
    text-shadow: none !important;
}

/* ==================== 标题装饰升级 ==================== */
.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--resource-secondary);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--resource-gradient-gold);
    border-radius: 2px;
}

/* Hero Section 标题深色（已在上面设置，这里保留装饰效果） */
.hero-section .section-title::after {
    background: linear-gradient(90deg, rgba(44, 62, 80, 0.3), rgba(44, 62, 80, 0.1));
}

/* ==================== CTA按钮设计 ==================== */
.resource-cta-section {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.resource-cta-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2.5rem;
    background: var(--resource-gradient-gold);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(107, 93, 79, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.resource-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.resource-cta-btn:hover::before {
    left: 100%;
}

.resource-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(107, 93, 79, 0.4);
}

.resource-cta-btn.primary {
    background: var(--resource-gradient-gold);
}

.resource-cta-btn.secondary {
    background: linear-gradient(135deg, var(--resource-accent), var(--resource-primary));
}

.cta-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.cta-text {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1;
}

.cta-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1;
}

/* ==================== 左右分栏布局 ==================== */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 1400px;
}

.visual-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.visual-section img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}

.visual-section img:hover {
    transform: scale(1.02);
}

.image-caption {
    text-align: center;
    margin-top: 0.5rem;
    color: var(--resource-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #e8d4b8 0%, #f5f1eb 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--resource-secondary);
    font-size: 1rem;
    border: 2px dashed var(--resource-primary);
}

.data-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ==================== 卡片样式增强 ==================== */
.stat-card,
.tech-card,
.advantage-card,
.partner-card {
    background: var(--resource-gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 168, 130, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover,
.tech-card:hover,
.advantage-card:hover,
.partner-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--resource-primary);
}

/* ==================== 动画效果 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 当section激活时触发动画 */
.section.active .stat-card,
.section.active .tech-card,
.section.active .advantage-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.section.active .stat-card:nth-child(1) { animation-delay: 0.1s; }
.section.active .stat-card:nth-child(2) { animation-delay: 0.2s; }
.section.active .stat-card:nth-child(3) { animation-delay: 0.3s; }
.section.active .stat-card:nth-child(4) { animation-delay: 0.4s; }

.section.active .two-column-layout .visual-section {
    animation: slideInLeft 0.8s ease-out forwards;
}

.section.active .two-column-layout .data-section {
    animation: slideInRight 0.8s ease-out forwards;
}

/* ==================== 标签样式增强 ==================== */
.tag {
    background: linear-gradient(135deg, rgba(200, 168, 130, 0.3), rgba(232, 212, 184, 0.2));
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid rgba(200, 168, 130, 0.4);
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, rgba(200, 168, 130, 0.5), rgba(232, 212, 184, 0.3));
    border-color: var(--resource-primary);
    transform: translateY(-2px);
}

/* ==================== Feature列表样式 ==================== */
.features-list {
    background: rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--resource-primary);
}

.features-list h3 {
    color: var(--resource-secondary);
    font-family: 'Noto Serif SC', serif;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.features-list ul {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.5rem 0;
    color: var(--resource-bg-dark);
    line-height: 1.8;
}

/* ==================== 时间线样式 ==================== */
.timeline-section {
    width: 100%;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.timeline-item {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    text-align: center;
    position: relative;
}

.timeline-year {
    font-size: 2rem;
    font-weight: 700;
    color: var(--resource-primary);
    font-family: 'Roboto', sans-serif;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 10px;
    border-top: 3px solid var(--resource-primary);
}

.timeline-content h4 {
    color: var(--resource-secondary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    .section .container {
        padding: 1.5rem;
        max-width: 95vw;
        max-height: 95vh;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .two-column-layout {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .section .container {
        aspect-ratio: auto;
        padding: 1rem;
        border-radius: 12px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .resource-cta-btn {
        padding: 1rem 1.5rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    .timeline-section {
        flex-direction: column;
    }

    .timeline-item {
        max-width: 100%;
    }
}

/* ==================== 数字滚动效果准备 ==================== */
.stat-number[data-target] {
    display: inline-block;
    min-width: 100px;
    text-align: center;
}

/* ==================== Hero Section 增强 ==================== */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #333;
    text-shadow: none;
    text-align: center;
}

.hero-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 1;
    color: #555;
}

/* ==================== 对比表格样式 ==================== */
.comparison-table {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: var(--resource-gradient-gold);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(107, 93, 79, 0.1);
}

.comparison-table tr:hover {
    background: rgba(200, 168, 130, 0.1);
}

/* ==================== 进度指示器 ==================== */
.progress-indicator {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar {
    height: 100%;
    background: var(--resource-gradient-gold);
    transition: width 1s ease;
}
