/* ============================================
   WizTree - 现代化样式表
   ============================================ */

/* === CSS 变量 === */
:root {
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --accent: #06b6d4;
    --accent-light: #67e8f9;
    --secondary: #1e293b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #f1f5f9;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === 全局重置 === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* === 导航栏 === */
header {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: all var(--transition);
}

nav {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: "🌳";
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-links a {
    color: rgba(255,255,255,0.75);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

.nav-links a.active {
    color: #fff;
    background: rgba(79, 70, 229, 0.4);
}

/* === 主容器 === */
main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === Section 通用 === */
section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-title p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* === Hero 区域 === */
.hero-wrapper {
    background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 30%, #ecfeff 60%, #f0fdf4 100%);
    margin: 0 calc(-50vw + 50%);
    width: 100vw;
    position: relative;
    overflow: hidden;
}

/* 网格点阵背景 */
.hero-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle, rgba(79,70,229,0.06) 1px, transparent 1px),
        radial-gradient(circle, rgba(6,182,212,0.04) 1px, transparent 1px);
    background-size: 32px 32px, 48px 48px;
    background-position: 0 0, 16px 16px;
    pointer-events: none;
}

/* 浮动光晕 */
.hero-wrapper::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at 30% 40%, rgba(79,70,229,0.07) 0%, transparent 60%);
    border-radius: 50%;
    top: -150px;
    left: -100px;
    pointer-events: none;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 64px);
    padding: 5rem 0;
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* 版本徽章 */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(6,182,212,0.1));
    border: 1px solid rgba(79,70,229,0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    backdrop-filter: blur(10px);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

/* 星级评分 */
.hero-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.hero-rating .stars {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.hero-rating .score {
    font-weight: 700;
    color: var(--text);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-content h1 .line-break {
    display: block;
}

.hero-content h1 .highlight {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero-buttons .btn-subtle {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.hero-buttons .btn-subtle:hover {
    color: var(--primary);
}

/* 信任标识 */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.hero-trust .trust-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-trust .trust-items {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.trust-badge {
    background: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

/* Hero 可视化 */
.hero-visual {
    position: relative;
}

.treemap-preview {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(5, 62px);
    gap: 6px;
    position: relative;
    background: #fff;
    padding: 1.2rem;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08), 0 8px 20px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
}

.treemap-preview::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(79,70,229,0.3), rgba(6,182,212,0.2), rgba(16,185,129,0.2));
    z-index: -1;
    opacity: 0.5;
}

.block {
    border-radius: 6px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    padding: 6px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}

.block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
}

.block:hover {
    transform: scale(1.06);
    z-index: 2;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.block-large {
    grid-column: span 3;
    grid-row: span 3;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    animation: blockFloat 5s ease-in-out infinite;
}

.block-large::before {
    content: '📁 Windows';
    position: relative;
    z-index: 1;
}

.block-medium-1 {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
    animation: blockFloat 5s ease-in-out 0.6s infinite;
}

.block-medium-1::before {
    content: '📁 Games';
    position: relative;
    z-index: 1;
}

.block-medium-2 {
    grid-column: span 1;
    grid-row: span 2;
    background: linear-gradient(135deg, #10b981, #34d399);
    animation: blockFloat 5s ease-in-out 1.2s infinite;
}

.block-medium-2::before {
    content: '📁 Work';
    position: relative;
    z-index: 1;
    font-size: 0.65rem;
}

.block-small-1 {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    animation: blockFloat 5s ease-in-out 1.8s infinite;
}

.block-small-1::before {
    content: '📄';
    position: relative;
    z-index: 1;
}

.block-small-2 {
    background: linear-gradient(135deg, #ef4444, #f87171);
    animation: blockFloat 5s ease-in-out 2.4s infinite;
}

.block-small-2::before {
    content: '📄';
    position: relative;
    z-index: 1;
}

.block-small-3 {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    animation: blockFloat 5s ease-in-out 3s infinite;
}

.block-small-3::before {
    content: '📄';
    position: relative;
    z-index: 1;
}

.block-tiny-1 {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    animation: blockFloat 5s ease-in-out 3.6s infinite;
}

.block-tiny-1::before {
    content: '';
    position: relative;
    z-index: 1;
}

.block-tiny-2 {
    background: linear-gradient(135deg, #14b8a6, #2dd4bf);
    animation: blockFloat 5s ease-in-out 4.2s infinite;
}

.block-tiny-2::before {
    content: '';
    position: relative;
    z-index: 1;
}

/* 浮动标签 */
.floating-tags {
    position: absolute;
    inset: -30px;
    pointer-events: none;
    z-index: -1;
}

.float-tag {
    position: absolute;
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    white-space: nowrap;
    animation: tagFloat 6s ease-in-out infinite;
}

.float-tag.tag-scan {
    top: -10px;
    left: -30px;
    animation-delay: 0s;
    color: var(--primary);
}

.float-tag.tag-size {
    top: 50%;
    right: -50px;
    animation-delay: 2s;
    color: var(--accent);
}

.float-tag.tag-tree {
    bottom: -10px;
    left: 20%;
    animation-delay: 4s;
    color: var(--success);
}

@keyframes tagFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes blockFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* 二维码跳跃闪烁边框 */
@keyframes qrGlow {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(79,70,229,0.15), 0 0 12px rgba(79,70,229,0.08);
        border-color: rgba(79,70,229,0.3);
        transform: scale(1);
    }
    25% {
        box-shadow: 0 0 0 3px rgba(79,70,229,0.25), 0 0 18px rgba(79,70,229,0.14);
        border-color: rgba(79,70,229,0.5);
        transform: scale(1.015);
    }
    50% {
        box-shadow: 0 0 0 1px rgba(6,182,212,0.15), 0 0 10px rgba(6,182,212,0.06);
        border-color: rgba(6,182,212,0.25);
        transform: scale(0.995);
    }
    75% {
        box-shadow: 0 0 0 3px rgba(16,185,129,0.25), 0 0 16px rgba(16,185,129,0.12);
        border-color: rgba(16,185,129,0.45);
        transform: scale(1.015);
    }
}

/* Hero 浮动光晕 */
.hero-glow-1 {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(79,70,229,0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -60px;
    right: -60px;
    z-index: -2;
    animation: glowPulse 6s ease-in-out infinite;
}

.hero-glow-2 {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(6,182,212,0.06) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -40px;
    left: -40px;
    z-index: -2;
    animation: glowPulse 6s ease-in-out 3s infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 0.4; }
}

/* === 按钮系统 === */
.btn {
    padding: 0.85rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
    display: inline-block;
    cursor: pointer;
    border: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(79,70,229,0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(79,70,229,0.45);
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(79,70,229,0.03);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #0891b2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(6,182,212,0.35);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(6,182,212,0.45);
    color: #fff;
    text-decoration: none;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.btn-block {
    display: block;
    text-align: center;
}

/* === 统计条 === */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    margin: -3rem 0 5rem 0;
    z-index: 10;
}

.stat-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: var(--border);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* === 功能卡片区 === */
.features-section {
    background: transparent;
    padding-bottom: 6rem;
}

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

.feature-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(6,182,212,0.08));
}

.feature-card h3 {
    color: var(--secondary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === 工作原理区 === */
.how-it-works {
    background: linear-gradient(180deg, var(--secondary) 0%, #0f172a 100%);
    color: #fff;
    padding: 6rem 0;
    margin: 0 calc(-50vw + 50%);
    width: 100vw;
    position: relative;
}

.how-it-works-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.how-it-works .section-title h2 {
    color: #fff;
}

.how-it-works .section-title p {
    color: rgba(255,255,255,0.65);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

/* 步骤连接线 */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 50px;
    left: calc(16.67% + 60px);
    right: calc(16.67% + 60px);
    height: 2px;
    background: linear-gradient(90deg, rgba(79,70,229,0.5), rgba(6,182,212,0.5));
    z-index: 0;
}

.step-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: all var(--transition);
}

.step-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-6px);
}

.step-number {
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.step-card p {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === 速度对比区 === */
.comparison-section {
    background: #fff;
    padding: 6rem 0;
    margin: 0 calc(-50vw + 50%);
    width: 100vw;
}

.comparison-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.comparison-chart {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chart-bar-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chart-label {
    width: 100px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    text-align: right;
    flex-shrink: 0;
}

.chart-bar-wrapper {
    flex: 1;
    background: #f1f5f9;
    border-radius: 8px;
    height: 36px;
    overflow: hidden;
}

.chart-bar {
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

.chart-bar.wiztree {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    animation: growBar 1.2s ease-out;
}

.chart-bar.other {
    background: linear-gradient(90deg, #cbd5e1, #94a3b8);
    animation: growBar 1.2s ease-out;
}

@keyframes growBar {
    from { width: 0 !important; }
}

.comparison-highlights ul {
    list-style: none;
}

.comparison-highlights li {
    padding: 1rem 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comparison-highlights li:last-child {
    border-bottom: none;
}

.comparison-highlights li::before {
    content: '✓';
    color: var(--success);
    font-weight: 800;
    font-size: 1.1rem;
}

/* === 使用场景区 === */
.use-cases {
    background: var(--bg);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.use-case-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.use-case-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    line-height: 64px;
    text-align: center;
    background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(6,182,212,0.08));
    border-radius: 16px;
}

.use-case-card h3 {
    font-size: 1.15rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.use-case-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* === 用户评价区 === */
.testimonials {
    background: #fff;
    padding: 6rem 0;
    margin: 0 calc(-50vw + 50%);
    width: 100vw;
}

.testimonials-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    position: relative;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    font-size: 5rem;
    color: rgba(79,70,229,0.12);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.author-avatar.av1 { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.author-avatar.av2 { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.author-avatar.av3 { background: linear-gradient(135deg, #10b981, #34d399); }

.author-name {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.95rem;
}

.author-role {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* === CTA 区域 === */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 40%, var(--accent) 100%);
    padding: 6rem 2rem;
    text-align: center;
    margin: 0 calc(-50vw + 50%);
    width: 100vw;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.cta-section p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-section .btn {
    background: #fff;
    color: var(--primary);
    font-size: 1.15rem;
    padding: 1rem 3rem;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.cta-meta {
    margin-top: 1.5rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* === 页脚 === */
footer {
    background: var(--secondary);
    color: #fff;
    padding: 5rem 2rem 2rem;
    margin: 0 calc(-50vw + 50%);
    width: 100vw;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
    color: rgba(255,255,255,0.5);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    max-width: 1280px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* ============================================
   子页面样式
   ============================================ */

/* 页面标题 */
.page-header {
    text-align: center;
    padding: 5rem 0 3rem;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

/* 功能详情页 */
.features-detail {
    padding: 0 0 4rem;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 3rem;
    background: #fff;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.feature-row:hover {
    box-shadow: var(--shadow-lg);
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

.feature-text h2 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.feature-text ul {
    list-style: none;
}

.feature-text li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
}

.feature-text li::before {
    content: "✓ ";
    color: var(--success);
    font-weight: bold;
}

/* 速度对比 */
.speed-indicator {
    margin-bottom: 1.2rem;
}

.speed-indicator span {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.bar {
    height: 28px;
    border-radius: 6px;
}

.bar.slow {
    width: 30%;
    background: linear-gradient(90deg, #cbd5e1, #94a3b8);
}

.bar.fast {
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Treemap 示例 */
.treemap-demo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 80px);
    gap: 8px;
}

.tm-block {
    border-radius: 8px;
    transition: transform var(--transition);
}

.tm-block:hover {
    transform: scale(1.05);
}

/* 文件列表示例 */
.file-list-demo {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
}

.file-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.file-item:last-child {
    border-bottom: none;
}

/* 操作按钮示例 */
.action-demo {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-btn {
    padding: 1rem 1.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all var(--transition);
    text-align: left;
    color: var(--text);
}

.action-btn:hover {
    background: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* 更多功能列表 */
.more-features {
    background: #fff;
    padding: 3rem;
    border-radius: var(--radius-lg);
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

.more-features h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary);
    font-size: 1.5rem;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.feature-item {
    padding: 0.8rem 1rem;
    color: var(--text);
    font-size: 0.95rem;
}

/* 下载页面 */
.download-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 0 3rem;
}

.download-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.download-card:hover {
    box-shadow: var(--shadow-lg);
}

.download-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(79,70,229,0.1), var(--shadow);
}

.download-card.featured:hover {
    box-shadow: 0 0 0 4px rgba(79,70,229,0.15), var(--shadow-lg);
}

.badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 0.35rem 1.25rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.download-card h2 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.version {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.file-info {
    background: var(--bg);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'SF Mono', 'Consolas', monospace;
}

.download-features {
    list-style: none;
    text-align: left;
    margin-top: 1.25rem;
}

.download-features li {
    padding: 0.35rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.download-features li::before {
    content: '✓ ';
    color: var(--success);
}

/* 系统要求 */
.system-requirements {
    background: #fff;
    padding: 3rem;
    border-radius: var(--radius-lg);
    margin: 3rem 0;
    box-shadow: var(--shadow);
}

.system-requirements h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.req-item {
    text-align: center;
}

.req-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.req-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 下载说明 */
.download-notes {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.download-notes h2 {
    margin-bottom: 1rem;
    color: var(--secondary);
    font-size: 1.5rem;
}

.download-notes ul {
    list-style: none;
}

.download-notes li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.download-notes li::before {
    content: '• ';
    color: var(--primary);
}

/* 文档页面 */
.docs-content {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.doc-sidebar {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
    border: 1px solid var(--border);
}

.doc-sidebar h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-sidebar ul {
    list-style: none;
}

.doc-sidebar li {
    margin-bottom: 0.3rem;
}

.doc-sidebar a {
    color: var(--text-secondary);
    display: block;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.doc-sidebar a:hover {
    color: var(--primary);
    background: rgba(79,70,229,0.06);
    text-decoration: none;
}

.doc-main {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.doc-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.doc-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.doc-section h2 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.doc-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.doc-section ul {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.doc-section li {
    margin-bottom: 0.4rem;
}

.step {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
}

.step h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.method {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.method h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.method code {
    display: block;
    background: var(--secondary);
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    font-family: 'SF Mono', 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
}

.tip {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1rem;
}

.tip h3 {
    color: #b45309;
    margin-bottom: 0.5rem;
}

.tip p {
    color: #92400e;
}

.operations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.op-item {
    background: var(--bg);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 关于页面 */
.about-content {
    background: #fff;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.about-intro {
    margin-bottom: 3rem;
}

.about-intro h2 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.about-intro p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.highlight-card {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.highlight-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.highlight-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.highlight-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-version {
    margin-bottom: 3rem;
}

.about-version h2 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.version-table {
    width: 100%;
    border-collapse: collapse;
}

.version-table th,
.version-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.version-table th {
    background: var(--bg);
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.version-table td {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-faq {
    margin-bottom: 3rem;
}

.about-faq h2 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-secondary);
}

.about-contact h2 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.about-contact p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-contact ul {
    list-style: none;
}

.about-contact li {
    padding: 0.3rem 0;
    color: var(--text-secondary);
}

/* === 滚动动画 === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === 响应式设计 === */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 4rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        max-width: 400px;
        margin: 0 auto;
    }

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

    .stat-item:nth-child(2)::after {
        display: none;
    }

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

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

    .steps-grid::before {
        display: none;
    }

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

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

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

    .download-options {
        grid-template-columns: 1fr;
    }

    .download-card.featured {
        transform: none;
    }

    .docs-content {
        grid-template-columns: 1fr;
    }

    .doc-sidebar {
        position: static;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

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

    .use-case-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    header {
        padding: 0 1rem;
    }

    nav {
        height: auto;
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
        margin-top: 0.5rem;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    main {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-visual {
        display: none;
    }

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

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

    .cta-section h2 {
        font-size: 2rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .feature-row {
        grid-template-columns: 1fr;
    }
}

/* === 下载弹窗 === */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeInOverlay 0.25s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-dialog {
    background: #fff;
    border-radius: var(--radius-xl);
    max-width: 480px;
    width: 100%;
    box-shadow: 0 25px 80px rgba(0,0,0,0.25);
    animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@keyframes modalSlideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

.modal-header h3 {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h3 .icon-dl {
    font-size: 1.3rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.05);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.modal-close:hover {
    background: rgba(239,68,68,0.1);
    color: var(--danger);
}

.modal-body {
    padding: 2rem;
}

.modal-qr-area {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-qr-area .qr-img {
    width: 180px;
    height: 180px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 3px solid var(--border);
    padding: 8px;
    background: #fff;
    transition: transform var(--transition);
    animation: qrGlow 3s ease-in-out infinite;
}

.modal-qr-area .qr-img:hover {
    transform: scale(1.05);
    animation-play-state: paused;
}

.modal-qr-area .qr-label {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.modal-qr-area .qr-label i {
    color: var(--primary);
    margin-right: 0.25rem;
}

/* 安全提示卡片 */
.modal-tips {
    background: linear-gradient(145deg, #f0fdf4, #ecfdf5, #f9fefb);
    border: 1px solid rgba(16,185,129,0.18);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 0;
}

.modal-tips h4 {
    font-size: 0.95rem;
    color: #065f46;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.35rem 0;
    font-size: 0.85rem;
    color: #047857;
    line-height: 1.6;
}

.tip-item:last-child {
    padding-bottom: 0;
}

.tip-dot {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #34d399);
    margin-top: 2px;
    position: relative;
}

.tip-dot::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 6px;
    width: 6px;
    height: 3px;
    border-left: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(-45deg);
}

/* 弹窗提示信息 */
.modal-info {
    background: #fffbeb;
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.modal-info h4 {
    font-size: 0.95rem;
    color: #b45309;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.modal-info p {
    font-size: 0.82rem;
    color: #92400e;
    line-height: 1.6;
    margin: 0;
}

.modal-info code {
    background: rgba(0,0,0,0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    word-break: break-all;
}

/* 弹窗关闭按钮 */
.modal-footer {
    text-align: center;
    padding: 0 2rem 2rem;
}

.modal-footer .btn {
    min-width: 140px;
}
