/* 全局设计变量与高级色彩系统 */
:root {
    --primary: #0284c7;
    --primary-gradient: linear-gradient(135deg, #38bdf8 0%, #0284c7 50%, #1d4ed8 100%);
    --accent: #10b981;
    --accent-gradient: linear-gradient(135deg, #34d399 0%, #059669 100%);
    --text-main: #0f172a;
    --text-muted: #475569;
    --bg-global: #fafafa;
    --border-color: rgba(226, 232, 240, 0.7);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    --glow-shadow: 0 20px 40px -15px rgba(14, 165, 233, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-global); /* 确保背景色统一 */
    /* 移除掉原本在 body 上的 background-image 点阵，防止点阵在不同区块间产生重影 */
    background-image: none; 
    line-height: 1.5;
    overflow-x: hidden;
}

/* 3. 使用一个伪元素覆盖整个 body 的背景，这样就不会出现“颜色被切断”的现象 */
body::before {
    content: '';
    position: fixed; /* 固定定位，确保背景不随滚动断裂 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* 在这里统一设置点阵纹理和蓝色的渐变，作为整个页面的背景层 */
    background-image: radial-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    background-color: #fafafa;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 顶部导航 */
header {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

/* 1. 顶部导航整体高度调整（从 72px 放大到 84px，给更大的图标预留空间） */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 84px; /* 原为 72px */
}

/* 2. Logo 图标与字体的整体放大 */
.logo {
    font-size: 28px; /* 原为 22px，字号整体变大 */
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px; /* 原为 10px，图标和字之间的间距等比例稍微拉开 */
    letter-spacing: -0.5px;
}

/* 3. 新增：直接在 CSS 里对 Logo 内的图片进行尺寸控制，覆盖 HTML 的硬编码 */
.logo img {
    width: 50px !important;  /* 原为 24px */
    height: 50px !important; /* 原为 24px */
    margin-right: 3px;       /* 调整右边距，配合 gap 让整体视觉更协调 */
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

/* 4. 右侧导航菜单字号同步微调（可选，防止左边变大后右边显得太小） */
.nav-links a {
    font-size: 16.5px; /* 原为 15px */
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ==========================================================================
   Hero 区域紧凑化调整（减少底部冗余，让卡片自然上移）
   ========================================================================== */
.hero {
    position: relative;
    padding: 140px 0 40px 0;
    margin-top: -84px;
    background-color: transparent; /* 改为透明 */
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 600px;
    background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.16) 0%, rgba(37, 99, 235, 0.04) 50%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    color: #0f172a;
    max-width: 850px;
}

.hero h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero p {
    font-size: 19px;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 24px auto;
    font-weight: 400;
    line-height: 1.65;
}

.download-trigger {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-gradient);
    background-size: 200% auto;
    color: white;
    padding: 18px 52px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 10px 35px rgba(2, 132, 199, 0.25), inset 0 -3px 0 rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 24px;
}

.download-trigger:hover {
    transform: translateY(-3px);
    background-position: right center;
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}

.download-trigger:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px rgba(2, 132, 199, 0.25);
}

.version-badge {
    font-size: 13px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(4px);
    width: max-content;
    margin-top: 8px;
}

.version-badge span.divider {
    color: #cbd5e1;
}

/* 版块通用间距与导航吸顶对齐修复 */
section {
    padding: 90px 0;
    margin-top: 20px;
    margin-bottom: 20px;
    position: relative;
    /* 核心修复：防止吸顶导航栏挡住区块头部内容 */
    scroll-margin-top: 96px; 
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: #0f172a;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.65;
}

/* 特性网格 */
.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: stretch;
    margin-bottom: 20px;
}

.card-feature {
    background: #ffffff;
    padding: 44px 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-feature::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(2, 132, 199, 0.02) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.35s;
}

.card-feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--glow-shadow), 0 20px 30px -10px rgba(0,0,0,0.04);
    border-color: rgba(2, 132, 199, 0.25);
}

.card-feature:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: transform 0.35s ease;
    position: relative;
    z-index: 2;
}

.card-feature:hover .icon-wrapper {
    transform: scale(1.08) translateY(-2px);
}

.card-feature:nth-child(1) .icon-wrapper { background: #e0f2fe; color: #0284c7; }
.card-feature:nth-child(2) .icon-wrapper { background: #dcfce7; color: #16a34a; }
.card-feature:nth-child(3) .icon-wrapper { background: #f3e8ff; color: #9333ea; }

.card-feature h3 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #1e293b;
    position: relative;
    z-index: 2;
}

.card-feature p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

/* 界面一览板块 - 独立精细化间距控制 */
.preview-section {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    
    /* 【精细调整】 */
    padding-top: 100px;     /* 恢复顶部的内边距，让标题自然下移，留出足够呼吸空间 */
    padding-bottom: 110px;  /* 底部稍微拉开，让整体视觉上下对称 */
    
    margin-top: 40px;       /* 给予上方的特性卡片网格 40px 的外边距防线 */
    margin-bottom: 40px;
    scroll-margin-top: 72px;
}

.showcase-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.showcase-tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.tab-trigger {
    background: transparent;
    border: none;
    padding: 16px 20px;
    border-radius: 12px;
    text-align: left;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.25s ease;
}

.tab-trigger svg {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    transition: color 0.25s;
}

.tab-trigger:hover {
    background: rgba(2, 132, 199, 0.04);
    color: var(--primary);
}

.tab-trigger.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.tab-trigger.active svg {
    color: var(--primary);
}

.showcase-display {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 70px -15px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
}

.screenshot-pane {
    grid-area: 1 / 1 / 2 / 2;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.98) translateY(8px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s;
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-pane.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    z-index: 5;
}

.screenshot-pane img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #f8fafc;
}

/* 最新资讯 */
#news {
    margin-top: 20px;
}

.news-pipeline {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-row {
    background: #ffffff;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.news-row::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0; width: 4px;
    background: transparent;
    transition: background 0.25s;
}

.news-row:hover::after {
    background: var(--primary);
}

.news-row:hover {
    border-color: rgba(2, 132, 199, 0.2);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.06);
    transform: scale(1.008);
}

.news-block-left h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e293b;
}

.news-block-left h3 a:hover {
    color: var(--primary);
}

.news-block-left p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.65;
}

.news-time-tag {
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 30px;
    white-space: nowrap;
}

/* 页脚 - 美化优化版 */
footer {
    /* 核心修改 1：将深色背景替换为柔和的浅蓝灰色 gradient，营造 premium 质感 */
    background: #f1f5f9; /* 柔和的浅灰色 */
    background-image: linear-gradient(180deg, #fafafa 0%, #f1f5f9 100%);
    
    /* 核心修改 2：将文本颜色改为深灰色，确保在浅色背景上的易读性 */
    color: var(--text-muted); /* #475569 */
    
    padding: 60px 0;
    text-align: center;
    font-size: 14px;
    
    /* 核心修改 3：将原有的深色边框改为更精细的淡边框 */
    border-top: 1px solid var(--border-color); /* rgba(226, 232, 240, 0.7) */
    
    position: relative;
    margin-top: 80px;
}

/* 核心修改 4：独立控制页脚文字的样式，避免被全局段落样式带跑 */
footer p {
    margin-bottom: 14px;
    font-weight: 400;
}

/* 核心修改 5：精细控制品牌文字，使其在浅色背景上依然醒目且保持品牌色一致性 */
footer .brand {
    font-weight: 700;
    color: #0f172a; /* 更深的颜色，作为品牌强调 */
}

footer p { margin-bottom: 14px; }
footer .brand { font-weight: 700; color: #f8fafc; }

/* 响应式调整 */
@media (max-width: 992px) {
    .showcase-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .showcase-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
        gap: 8px;
    }
    .tab-trigger {
        white-space: nowrap;
        padding: 12px 16px;
    }
}

@media (max-width: 768px) {
    .hero { padding: 70px 0 60px 0; margin-bottom: 10px; }
    .hero h1 { font-size: 38px; letter-spacing: -1px; }
    .hero p { font-size: 16.5px; margin-bottom: 28px; }
    .navbar { flex-direction: column; height: auto; padding: 18px 0; gap: 16px; }
    .nav-links { gap: 24px; }
    
    section { padding: 60px 0; margin-top: 10px; margin-bottom: 10px; scroll-margin-top: 110px; }
    .preview-section { padding: 70px 0; margin-top: 20px; margin-bottom: 20px; scroll-margin-top: 110px; }
    .section-header { margin-bottom: 40px; }
    .version-badge { width: 100%; max-width: 320px; }
    footer { margin-top: 40px; padding: 50px 0; }
}

/* ==========================================================================
   百度网盘解析与提速内核区块 - 完美融合紧凑版
   ========================================================================== */
#features {
    position: relative;
    z-index: 2; /* 确保内容在背景之上 */
    background: transparent !important; /* 强制透明，绝不遮挡背景 */
    padding-top: 45px;
    padding-bottom: 50px;
    margin-top: 0px;
}

/* 确保标题文字和副标题有足够高的色彩对比度 */
#features .section-header h2 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: #0f172a;         /* 保持深色，在光晕尾巴上依旧清晰可见 */
}

/* 【全新加入】精细化控制特性区块的头部，让大标题与卡片之间也更加凝聚 */
#features .section-header {
    margin-box: 0;
    margin-bottom: 40px;    /* 【优化】标题与下方卡片网格的间距从 60px 缩减至 40px */
}