/* ==========================================================================
   Ventoy 官方网站 - 全站公共样式
   配色：基于 Logo 深蓝 (#0c4583) + 现代扁平风格
   ========================================================================== */

/* CSS 变量 - 设计令牌 */
:root {
    /* 主色 */
    --primary: #0c4583;
    --primary-dark: #082f5e;
    --primary-light: #1a5fb4;
    --primary-lighter: #2196f3;

    /* 辅助色 */
    --accent: #00b8d4;
    --accent-light: #bce2f7;
    --accent-lighter: #e3f2fd;

    /* 中性色 */
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-muted: #f1f5f9;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-soft: #475569;
    --text-muted: #64748b;
    --white: #ffffff;

    /* 功能色 */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
    --shadow-primary: 0 10px 30px -5px rgba(12, 69, 131, 0.35);

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* 间距 */
    --container: 1200px;

    /* 字体 */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--primary-lighter);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ====== 容器 ====== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ====== 按钮 ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px -5px rgba(12, 69, 131, 0.45);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--accent-lighter);
    border-color: var(--primary-lighter);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
}

.btn-ghost:hover {
    background: var(--accent-lighter);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 17px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ====== 头部导航 ====== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 22px;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.nav-brand img {
    width: 36px;
    height: 36px;
}

.nav-brand span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--accent-lighter);
}

.nav-link.active {
    color: var(--primary);
    background: var(--accent-lighter);
}

.nav-cta {
    margin-left: 12px;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: var(--radius-sm);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ====== 通用区块 ====== */
section {
    padding: 80px 0;
}

.section-soft {
    background: var(--bg-soft);
}

.section-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
}

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

.section-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-lighter);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: 18px;
}

.section-primary .section-eyebrow {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text);
}

.section-primary .section-title {
    color: var(--white);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-soft);
    line-height: 1.6;
}

.section-primary .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

/* ====== Hero 区 ====== */
.hero {
    position: relative;
    padding: 100px 0 80px;
    background:
        radial-gradient(circle at 20% 30%, rgba(188, 226, 247, 0.55) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(33, 150, 243, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-eyebrow .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 24px;
}

.hero-title .gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lighter) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 19px;
    color: var(--text-soft);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.hero-stat-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

.hero-stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border);
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border);
}

.hero-card-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca42; }

.hero-card-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-card-body {
    padding: 28px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.8;
    min-height: 280px;
}

.hero-card-body .comment { color: #64748b; }
.hero-card-body .cmd { color: #60a5fa; }
.hero-card-body .ok { color: #4ade80; }
.hero-card-body .accent { color: #fbbf24; }
.hero-card-body .cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #60a5fa;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Hero 装饰 blob */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

.hero-blob.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-light);
    top: -100px;
    right: -100px;
}

.hero-blob.blob-2 {
    width: 300px;
    height: 300px;
    background: #c7e9ff;
    bottom: -80px;
    left: -80px;
}

/* ====== Logo Cloud ====== */
.logo-cloud {
    padding: 48px 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.logo-cloud-title {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 28px;
    letter-spacing: 0.05em;
}

.logo-cloud-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 32px;
}

.logo-cloud-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-soft);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.logo-cloud-item:hover {
    border-color: var(--primary-lighter);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ====== 特性卡片网格 ====== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-lighter) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-lighter) 0%, var(--accent-light) 100%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 26px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-desc {
    font-size: 15px;
    color: var(--text-soft);
    line-height: 1.7;
}

/* ====== 使用场景 ====== */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.scenario-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all 0.3s ease;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

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

.scenario-num {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lighter) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    box-shadow: var(--shadow-primary);
}

.scenario-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.scenario-content p {
    font-size: 15px;
    color: var(--text-soft);
    line-height: 1.7;
    margin-bottom: 14px;
}

.scenario-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.scenario-tag {
    padding: 4px 12px;
    background: var(--accent-lighter);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

/* ====== 用户评价 ====== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-quote {
    font-size: 56px;
    line-height: 1;
    color: var(--accent-light);
    font-family: Georgia, serif;
    margin-bottom: -16px;
}

.testimonial-text {
    font-size: 15.5px;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 24px;
    min-height: 120px;
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 16px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lighter) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.testimonial-info .name {
    font-weight: 700;
    color: var(--text);
    font-size: 15px;
}

.testimonial-info .meta {
    font-size: 13px;
    color: var(--text-muted);
}

/* ====== 数据统计 ====== */
.stats-band {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.stats-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 16px;
}

.stat-num {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-num .suffix {
    font-size: 28px;
    opacity: 0.9;
}

.stat-label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* ====== CTA 区 ====== */
.cta-section {
    padding: 80px 0;
    background: var(--bg-soft);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.cta-box::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.cta-box::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    pointer-events: none;
}

.cta-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    position: relative;
}

.cta-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.cta-box .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.cta-box .btn-primary:hover {
    background: var(--accent-lighter);
    color: var(--primary);
}

.cta-box .btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-box .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* ====== 下载弹窗 ====== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 28, 56, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-muted);
    color: var(--text-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--danger);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px;
}

.modal-version {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--accent-lighter);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.qr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.qr-card {
    text-align: center;
    padding: 24px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.25s ease;
    background: var(--bg-soft);
}

.qr-card:hover {
    border-color: var(--primary-lighter);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.qr-card img {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    border-radius: var(--radius-md);
    background: var(--white);
    padding: 8px;
    border: 1px solid var(--border);
}

.qr-platform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.qr-platform-icon {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.qr-size {
    font-size: 13px;
    color: var(--text-muted);
}

.qr-hint {
    padding: 14px 18px;
    background: var(--accent-lighter);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.qr-hint svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ====== 下载页 - 平台卡片 ====== */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.platform-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all 0.3s ease;
    position: relative;
}

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

.platform-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.platform-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-lighter) 0%, var(--accent-light) 100%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.platform-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.platform-version {
    font-size: 14px;
    color: var(--text-muted);
}

.platform-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin-bottom: 28px;
}

.platform-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.platform-meta-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.platform-meta-value {
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
}

.platform-actions {
    display: flex;
    gap: 12px;
}

/* ====== 步骤区 ====== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-light) 0%, var(--primary-lighter) 100%);
    z-index: 0;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--accent-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.step-item:hover .step-num {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-primary);
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.6;
}

/* ====== 代码块 ====== */
.code-block {
    background: #0f172a;
    border-radius: var(--radius-md);
    padding: 24px 28px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.8;
    color: #e2e8f0;
    position: relative;
}

.code-block .comment { color: #64748b; }
.code-block .cmd { color: #60a5fa; }
.code-block .ok { color: #4ade80; }
.code-block .arg { color: #fbbf24; }
.code-block .str { color: #86efac; }

.code-block .copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
}

.code-block .copy-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* ====== 教程内容 ====== */
.tutorial-content {
    max-width: 880px;
    margin: 0 auto;
}

.tutorial-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.tutorial-block-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.tutorial-block-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lighter) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
}

.tutorial-block-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.tutorial-block p {
    font-size: 16px;
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 16px;
}

.tutorial-block ul,
.tutorial-block ol {
    margin: 16px 0 16px 4px;
}

.tutorial-block ul li,
.tutorial-block ol li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--text-soft);
    font-size: 15.5px;
    line-height: 1.7;
}

.tutorial-block ul li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-lighter);
}

.tutorial-block ol {
    counter-reset: tlist;
}

.tutorial-block ol li {
    counter-increment: tlist;
}

.tutorial-block ol li::before {
    content: counter(tlist);
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-lighter);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====== FAQ ====== */
.faq-list {
    max-width: 880px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: var(--accent-light);
    box-shadow: var(--shadow-sm);
}

.faq-item.active {
    border-color: var(--primary-lighter);
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 16.5px;
    font-weight: 600;
    color: var(--text);
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 0 24px 22px;
}

.faq-answer p {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 12px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ====== 关于页 - 卡片 ====== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.about-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.about-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-card p {
    color: var(--text-soft);
    font-size: 15.5px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.about-card p:last-child {
    margin-bottom: 0;
}

.about-card .icon-circle {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--accent-lighter);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ====== 时间线 ====== */
.timeline {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent-light) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 56px;
    margin-bottom: 32px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 9px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--primary);
    box-shadow: 0 0 0 4px var(--accent-lighter);
}

.timeline-date {
    display: inline-block;
    padding: 3px 10px;
    background: var(--accent-lighter);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.timeline-desc {
    font-size: 14.5px;
    color: var(--text-soft);
    line-height: 1.7;
}

/* ====== 页脚 ====== */
.site-footer {
    background: #0a1a35;
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .nav-brand {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand .nav-brand span {
    color: var(--white);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 20px;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--primary-lighter);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-col h4 {
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* ====== 页面横幅 ====== */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.page-banner-content {
    position: relative;
    text-align: center;
}

.page-banner h1 {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.page-banner p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.88);
    max-width: 640px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb .sep {
    opacity: 0.6;
}

/* ====== 工具类 ====== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* ====== 响应式 ====== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero-title { font-size: 44px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
    .steps-grid::before { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    section { padding: 56px 0; }
    .container { padding: 0 18px; }
    .nav-menu {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 16px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
    }
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-link {
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }
    .nav-cta {
        margin: 8px 0 0;
    }
    .nav-cta .btn {
        width: 100%;
    }
    .nav-toggle { display: flex; }

    .hero { padding: 64px 0 48px; }
    .hero-title { font-size: 34px; }
    .hero-desc { font-size: 16px; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .hero-stat-num { font-size: 26px; }

    .section-title { font-size: 28px; }
    .section-subtitle { font-size: 16px; }
    .section-header { margin-bottom: 36px; }

    .feature-grid { grid-template-columns: 1fr; }
    .scenarios-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .platform-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .stat-num { font-size: 32px; }
    .stat-num .suffix { font-size: 20px; }

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

    .cta-box { padding: 40px 24px; }
    .cta-title { font-size: 26px; }

    .page-banner { padding: 56px 0 40px; }
    .page-banner h1 { font-size: 32px; }
    .page-banner p { font-size: 16px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .scenario-card { flex-direction: column; padding: 28px; }
    .tutorial-block { padding: 24px; }
    .platform-card { padding: 28px; }
    .modal-body { padding: 24px; }
    .modal-header { padding: 18px 24px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-stats { gap: 18px; }
    .stat-num { font-size: 26px; }
    .platform-meta { grid-template-columns: 1fr; }
}

/* ====== 无障碍 ====== */
:focus-visible {
    outline: 3px solid var(--primary-lighter);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ====== 打印 ====== */
@media print {
    .site-header, .site-footer, .nav-toggle, .cta-section, .modal-overlay { display: none !important; }
    body { color: black; }
    a { color: black; text-decoration: underline; }
}
