/* =====================================================
   Prism Studio — Future Glass Design System
   原生 CSS，无框架，无 CDN 图标。
   ===================================================== */

:root {
    /* 颜色 */
    --bg: #0A0B1A;
    --bg-elevated: #101228;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --hairline: rgba(255, 255, 255, 0.08);
    --hairline-strong: rgba(255, 255, 255, 0.14);
    --text: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --violet: #7C3AED;
    --violet-soft: rgba(124, 58, 237, 0.12);
    --pink: #EC4899;
    --pink-soft: rgba(236, 72, 153, 0.12);
    --cyan: #06B6D4;
    --cyan-soft: rgba(6, 182, 212, 0.12);
    --error: #F43F5E;
    --success: #10B981;
    --warning: #F59E0B;

    /* 后台复用别名（与上面保持一致，供 admin.css 使用） */
    --card: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.08);
    --muted: #94A3B8;
    --bg-2: #12132a;

    /* 尺寸 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --container: 1200px;
    --header-h: 72px;

    /* 字体 */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    /* 动效 */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] {
    --bg: #F8FAFC;
    --bg-elevated: #FFFFFF;
    --surface: rgba(15, 23, 42, 0.04);
    --surface-hover: rgba(15, 23, 42, 0.08);
    --hairline: rgba(15, 23, 42, 0.08);
    --hairline-strong: rgba(15, 23, 42, 0.14);
    --text: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --violet-soft: rgba(124, 58, 237, 0.08);
    --card: rgba(15, 23, 42, 0.03);
    --border: rgba(15, 23, 42, 0.08);
    --muted: #64748B;
    --bg-2: #FFFFFF;
    --pink-soft: rgba(236, 72, 153, 0.08);
    --cyan-soft: rgba(6, 182, 212, 0.08);
}

@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;
    }
}

/* 基础 */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

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

::selection {
    background: var(--violet-soft);
    color: var(--text);
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 移动端触控优化：去除点击时的灰色高亮、消除 300ms 延迟 */
a, button, input, select, textarea, .btn, [role="button"],
.nav-link, .faq-question, .testimonials-btn, .mobile-menu-toggle,
.theme-toggle, .footer-links a, .footer-contact a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

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

/* 图标基线：所有内联 SVG 与文字基线对齐，且不被 flex 压缩 */
svg { vertical-align: middle; }
.btn svg, .nav-link svg, .feature-icon svg, .testimonials-btn svg,
.faq-question svg, .theme-toggle svg, .mobile-menu-toggle svg, .alert svg,
.contact-icon svg, .admin-nav-link svg, .toast-icon svg, .footer-links svg,
.logo svg, .admin-logo svg, .login-logo svg { flex-shrink: 0; }

/* 键盘可达性：统一的焦点环 */
:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 2px;
    border-radius: 6px;
}


.mono { font-family: var(--font-mono); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 16px;
    background: var(--violet);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    z-index: 10000;
    transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

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

/* 背景 */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: var(--bg);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    will-change: transform;
}

.orb-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -150px;
    background: var(--violet);
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    top: 40%;
    right: -180px;
    background: var(--pink);
    animation: orbFloat2 24s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    bottom: -120px;
    left: 35%;
    background: var(--cyan);
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.08); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 60px) scale(1.05); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.noise {
    position: absolute;
    inset: 0;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

[data-theme="light"] .noise { opacity: 0.025; }

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s, border-color 0.2s;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn svg { flex-shrink: 0; }

.btn-primary {
    background: linear-gradient(135deg, var(--violet), var(--pink));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
    text-decoration: none;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::after { opacity: 1; }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--hairline-strong);
}

.btn-ghost:hover {
    background: var(--surface-hover);
    border-color: var(--violet);
    color: var(--violet);
    transform: translateY(-2px);
    text-decoration: none;
}

[data-theme="light"] .btn-ghost:hover { color: var(--violet); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm svg, .btn-lg svg { width: 18px; height: 18px; }

.btn.w-full { width: 100%; }

.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn.loading .btn-text { opacity: 0.7; }
.btn.loading .btn-spinner { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* 导航 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 1000;
    background: rgba(10, 11, 26, 0.6);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--hairline);
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

[data-theme="light"] .site-header {
    background: rgba(248, 250, 252, 0.75);
}

.site-header.scrolled {
    background: rgba(10, 11, 26, 0.85);
    border-bottom-color: var(--hairline-strong);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .site-header.scrolled {
    background: rgba(255, 255, 255, 0.9);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 800;
    font-size: 18px;
    text-decoration: none;
}

.logo:hover { text-decoration: none; }

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--violet), var(--pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.main-nav {
    /* fail-open：桌面端默认显示，仅在窄屏（≤767px）由下方媒体查询隐藏，交给移动端汉堡菜单。
       不再依赖覆盖层 theme-prism.css 加载成功 —— 此前「导航整条消失」的回归即源于此。 */
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text);
    background: var(--surface);
    text-decoration: none;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: linear-gradient(90deg, var(--violet), var(--pink));
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: 1px solid var(--hairline);
    background: var(--surface);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.theme-toggle:hover { background: var(--surface-hover); border-color: var(--hairline-strong); }

.theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light { display: block; }

.mobile-menu-toggle {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    color: var(--text);
    cursor: pointer;
}

@media (min-width: 768px) {
    .main-nav { display: flex; }
    .mobile-menu-toggle { display: none; }
}
/* fail-open 兜底：窄屏才隐藏主导航（移动端用汉堡菜单），桌面端永不隐藏 */
@media (max-width: 767px) {
    .main-nav { display: none; }
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: rgba(10, 11, 26, 0.98);
    backdrop-filter: blur(30px);
    border-left: 1px solid var(--hairline);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease-out);
    display: flex;
    flex-direction: column;
}

[data-theme="light"] .mobile-menu {
    background: rgba(248, 250, 252, 0.98);
}

.mobile-menu.open { transform: translateX(0); }

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

.mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    color: var(--text);
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 24px;
    flex: 1;
}

.mobile-nav-link {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}

.mobile-nav-cta { margin-top: 12px; }

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--header-h) + 80px) 0 120px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    mix-blend-mode: screen;
}

[data-theme="light"] .hero-bg-img { opacity: 0.12; }

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 58, 237, 0.15), transparent),
                radial-gradient(ellipse 60% 40% at 80% 50%, rgba(236, 72, 153, 0.1), transparent),
                linear-gradient(180deg, transparent 0%, var(--bg) 100%);
}

.scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.01) 2px,
        rgba(255, 255, 255, 0.01) 4px
    );
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: var(--surface);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--cyan);
    margin-bottom: 28px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--cyan);
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

.hero-title {
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 24px;
    background: linear-gradient(135deg, #fff 0%, #E2E8F0 50%, #CBD5E1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2.2vw, 20px);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 48px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 560px;
    margin: 0 auto 64px;
}

.stat-card {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cyan), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

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

/* 3D Mockup */
.hero-mockup {
    perspective: 1200px;
    max-width: 720px;
    margin: 0 auto;
}

.mockup-frame {
    background: var(--bg-elevated);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
    transform: rotateX(8deg) rotateY(-4deg) rotateZ(1deg);
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease-out);
    overflow: hidden;
}

.hero-mockup:hover .mockup-frame {
    transform: rotateX(4deg) rotateY(-2deg) rotateZ(0deg);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--hairline);
    background: rgba(255,255,255,0.02);
}

.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline-strong); }
.mockup-dots span:first-child { background: #F43F5E; }
.mockup-dots span:nth-child(2) { background: #F59E0B; }
.mockup-dots span:nth-child(3) { background: #10B981; }

.mockup-title {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.mockup-controls { display: flex; gap: 6px; }
.mockup-controls span { width: 14px; height: 14px; border-radius: 3px; background: var(--surface); }

.mockup-body {
    display: flex;
    height: 280px;
}

.mockup-sidebar {
    width: 64px;
    border-right: 1px solid var(--hairline);
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.mockup-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--pink));
}

.mockup-menu { display: flex; flex-direction: column; gap: 10px; width: 32px; }
.mockup-menu span { height: 6px; border-radius: 3px; background: var(--surface); }
.mockup-menu span.active { background: var(--cyan); }

.mockup-main { flex: 1; display: flex; flex-direction: column; padding: 16px; gap: 12px; }

.mockup-preview {
    flex: 1;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.08));
    border: 1px dashed var(--hairline);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-play {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--hairline-strong);
    position: relative;
}

.mockup-play::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-30%, -50%);
    border: 10px solid transparent;
    border-left-color: var(--text);
}

.mockup-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.mockup-track { height: 10px; border-radius: 5px; background: var(--surface); }
.mockup-track:nth-child(2) { width: 80%; }
.mockup-track:nth-child(3) { width: 60%; }

.mockup-cursor {
    position: absolute;
    left: 35%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--pink);
    box-shadow: 0 0 8px var(--pink);
}

.mockup-reflection {
    height: 40px;
    margin-top: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    transform: scaleY(-0.6);
    opacity: 0.3;
    filter: blur(2px);
}

@media (min-width: 768px) {
    .hero-stats { grid-template-columns: repeat(4, 1fr); }
}

/* Section 通用 */
.section { padding: 100px 0; position: relative; }

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--violet-soft);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--violet);
    margin-bottom: 18px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    color: var(--text);
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.page-hero {
    padding: calc(var(--header-h) + 60px) 0 60px;
    text-align: center;
}

.page-hero-center { min-height: 70vh; display: flex; align-items: center; justify-content: center; }

.page-title { font-size: clamp(32px, 5vw, 52px); font-weight: 800; margin: 0 0 16px; letter-spacing: -0.02em; }
.page-subtitle { font-size: 17px; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.error-code {
    font-size: clamp(80px, 15vw, 160px);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--violet), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

/* 自定义页面（/p/{slug}） */
.page-section { padding: calc(var(--header-h) + 72px) 0 96px; }
.container-narrow { max-width: 820px; }

.page-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--hairline);
}
.page-title {
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    color: var(--text);
}
.page-lead {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    max-width: 640px;
    margin-inline: auto;
}

/* 正文排版：管理员在后台输入的 HTML 内容 */
.page-content.prose {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-secondary);
}
.page-content.prose > *:first-child { margin-top: 0; }
.page-content.prose h1, .page-content.prose h2, .page-content.prose h3, .page-content.prose h4 {
    color: var(--text);
    line-height: 1.3;
    margin: 36px 0 16px;
    letter-spacing: -0.01em;
}
.page-content.prose h2 { font-size: 26px; font-weight: 700; }
.page-content.prose h3 { font-size: 21px; font-weight: 700; }
.page-content.prose p { margin: 0 0 18px; }
.page-content.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.page-content.prose ul, .page-content.prose ol { margin: 0 0 18px; padding-left: 24px; }
.page-content.prose li { margin-bottom: 8px; }
.page-content.prose strong { color: var(--text); font-weight: 700; }
.page-content.prose img { border-radius: var(--radius-md); margin: 24px 0; box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
.page-content.prose blockquote {
    margin: 24px 0;
    padding: 16px 24px;
    border-left: 3px solid var(--violet);
    background: var(--surface);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-muted);
    font-style: italic;
}
.page-content.prose code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    padding: 2px 6px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 6px;
    color: var(--cyan);
}
.page-content.prose pre {
    margin: 24px 0;
    padding: 18px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    overflow-x: auto;
}
.page-content.prose pre code { background: none; border: none; padding: 0; color: var(--text-secondary); }
.page-content.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.page-content.prose th, .page-content.prose td { padding: 12px 14px; border: 1px solid var(--hairline); text-align: left; }
.page-content.prose th { background: var(--surface); color: var(--text); font-weight: 600; }
.page-content.prose hr { border: none; border-top: 1px solid var(--hairline); margin: 32px 0; }

.page-back { margin-top: 48px; text-align: center; }

@media (max-width: 640px) {
    .page-section { padding: calc(var(--header-h) + 40px) 0 64px; }
    .page-header { margin-bottom: 32px; padding-bottom: 24px; }
    .page-lead { font-size: 15px; }
    .page-content.prose { font-size: 15px; }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--hairline-strong);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-icon-violet { background: var(--violet-soft); color: var(--violet); border-color: rgba(124, 58, 237, 0.2); }
.feature-icon-pink { background: var(--pink-soft); color: var(--pink); border-color: rgba(236, 72, 153, 0.2); }
.feature-icon-cyan { background: var(--cyan-soft); color: var(--cyan); border-color: rgba(6, 182, 212, 0.2); }

.feature-title { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin: 0; }

@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

/* Features detail */
.features-list { display: grid; gap: 16px; max-width: 900px; margin: 0 auto; }
.feature-row {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    transition: transform 0.2s, border-color 0.2s;
}
.feature-row:hover { transform: translateY(-3px); border-color: var(--hairline-strong); }
.feature-row-icon { flex-shrink: 0; width: 56px; height: 56px; border-radius: var(--radius-md); }
.feature-row-title { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.feature-row-desc { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.7; }

/* Specs */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.spec-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
}
.spec-card h3 { font-size: 15px; font-weight: 700; margin: 0 0 10px; color: var(--violet); }
.spec-card p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
@media (min-width: 640px) { .specs-grid { grid-template-columns: repeat(2, 1fr); } }

/* Testimonials */
.testimonials { position: relative; }
.testimonials-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    scrollbar-width: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonials-track.dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }

.testimonial-card {
    flex: 0 0 88%;
    max-width: 420px;
    scroll-snap-align: start;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.testimonial-stars { display: flex; gap: 4px; margin-bottom: 16px; color: var(--text-muted); }
.testimonial-stars .star.filled { color: #F59E0B; }

.testimonial-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0 0 20px;
    font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--hairline);
}
.testimonial-avatar.fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--violet), var(--pink));
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}
.testimonial-name { font-weight: 600; font-size: 14px; }
.testimonial-role { font-size: 13px; color: var(--text-muted); }

.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.testimonials-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--hairline);
    background: var(--surface);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.testimonials-btn:hover { background: var(--surface-hover); border-color: var(--hairline-strong); }

.testimonials-dots { display: flex; gap: 8px; }
.testimonials-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--hairline-strong);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.testimonials-dot.active { background: var(--violet); transform: scale(1.2); }

@media (min-width: 640px) { .testimonial-card { flex: 0 0 46%; } }
@media (min-width: 1024px) { .testimonial-card { flex: 0 0 31%; } }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}
.faq-question:hover { background: var(--surface-hover); }
.faq-question svg { transition: transform 0.3s var(--ease-spring); flex-shrink: 0; }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s var(--ease-out);
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer-inner > * { margin: 0; padding: 0 24px 20px; color: var(--text-muted); line-height: 1.8; font-size: 14px; }

/* CTA */
.cta-card {
    text-align: center;
    padding: 64px 40px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(236, 72, 153, 0.06));
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(124, 58, 237, 0.12), transparent);
    pointer-events: none;
}
.cta-title { position: relative; font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin: 0 0 14px; }
.cta-subtitle { position: relative; color: var(--text-muted); font-size: 16px; max-width: 520px; margin: 0 auto 28px; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--hairline);
    padding: 80px 0 32px;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.02) 100%);
}

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

.footer-brand { max-width: 360px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-desc { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin: 0 0 20px; }

.footer-subscribe { display: flex; gap: 10px; }
.footer-subscribe input {
    flex: 1;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 14px;
    outline: none;
}
.footer-subscribe input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.footer-subscribe button { margin: 0; width: auto; }

.footer-links h4, .footer-contact h4 { font-size: 14px; font-weight: 700; margin: 0 0 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links nav { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-contact a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--text); }

.footer-contact p { color: var(--text-muted); font-size: 14px; margin: 0 0 10px; }
.footer-hours { color: var(--text-muted); }

.footer-bottom {
    border-top: 1px solid var(--hairline);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* Toast */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 1200;
    background: var(--bg-elevated);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 14px 22px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transition: transform 0.35s var(--ease-spring), opacity 0.35s;
    opacity: 0;
    pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-content { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.toast-icon { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; }
.toast.success .toast-icon { background: var(--success); }
.toast.error .toast-icon { background: var(--error); }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h2 { font-size: 24px; margin: 0 0 28px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-icon { width: 44px; height: 44px; border-radius: var(--radius-md); flex-shrink: 0; }
.contact-item h3 { font-size: 14px; font-weight: 700; margin: 0 0 4px; color: var(--text-secondary); }
.contact-item p { margin: 0; font-size: 15px; }

.contact-form { padding: 32px; }
.contact-form h2 { font-size: 22px; margin: 0 0 24px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text-secondary); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px var(--violet-soft);
}

@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }

/* Glass card */
.glass-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
}

/* Download */
.download-hero-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    padding: 36px;
    margin-top: 48px;
    backdrop-filter: blur(12px);
}

.download-hero-version { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.badge {
    padding: 4px 10px;
    background: var(--violet-soft);
    color: var(--violet);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}
.version { font-size: 22px; font-weight: 800; }
.download-hero-title { font-size: 24px; font-weight: 700; margin: 0 0 12px; }
.download-hero-desc { color: var(--text-muted); line-height: 1.7; margin: 0 0 18px; }
.download-hero-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }
.download-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.download-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.download-hero-side {
    border-top: 1px solid var(--hairline);
    padding-top: 28px;
}
.download-hero-side h3 { font-size: 16px; margin: 0 0 8px; }
.download-hero-side p { color: var(--text-muted); font-size: 13px; margin: 0 0 14px; }

@media (min-width: 768px) {
    .download-hero-card { grid-template-columns: 1.4fr 1fr; }
    .download-hero-side { border-top: 0; border-left: 1px solid var(--hairline); padding: 0 0 0 28px; }
}

.versions-table-wrap { overflow-x: auto; }
.versions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.versions-table th, .versions-table td { padding: 16px; text-align: left; border-bottom: 1px solid var(--hairline); }
.versions-table th { background: rgba(255,255,255,0.02); color: var(--text-secondary); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.versions-table tr:last-child td { border-bottom: none; }
.versions-table td { color: var(--text-muted); }
.version-cell { color: var(--text); font-weight: 600; }

/* Changelog */
.changelog-timeline { max-width: 800px; margin: 0 auto; position: relative; padding-left: 24px; }
.changelog-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--violet), var(--pink));
    border-radius: 2px;
}
.changelog-item { position: relative; padding-left: 28px; margin-bottom: 28px; }
.changelog-marker {
    position: absolute;
    left: -5px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--violet);
    box-shadow: 0 0 0 4px var(--violet-soft);
}
.changelog-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 24px; }
.changelog-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.changelog-version { font-size: 18px; font-weight: 800; color: var(--violet); }
.changelog-date { font-size: 13px; color: var(--text-muted); }
.changelog-title { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.changelog-content { color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.changelog-content ul { margin: 0; padding-left: 20px; }
.changelog-content li { margin-bottom: 6px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 60px; }
.about-card { padding: 32px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); }
.about-card h2 { font-size: 20px; margin: 16px 0 12px; }
.about-card p { color: var(--text-muted); line-height: 1.8; margin: 0; }
.about-icon { width: 56px; height: 56px; }

.about-values { max-width: 800px; margin: 0 auto; text-align: center; }
.about-values h2 { font-size: 28px; margin-bottom: 28px; }
.about-values ul { text-align: left; display: grid; gap: 14px; list-style: none; padding: 0; }
.about-values li { padding: 20px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); color: var(--text-muted); line-height: 1.7; }
.about-values strong { color: var(--text); display: block; margin-bottom: 4px; }

@media (min-width: 768px) { .about-grid { grid-template-columns: repeat(3, 1fr); } }

/* Reveal animations */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    will-change: opacity, transform;
}

[data-animate].revealed { opacity: 1; transform: translateY(0); }

/* Admin minimal shared */
.admin-wrap { padding-top: var(--header-h); }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--hairline-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--violet); }

/* =========================================================
   移动端精细打磨（手机优先，确保无横向溢出、触控舒适）
   ========================================================= */
@media (max-width: 640px) {
    body { font-size: 14px; }

    .container { padding: 0 18px; }

    .hero {
        padding: calc(var(--header-h) + 44px) 0 72px;
        min-height: auto;
    }
    .hero-stats { gap: 10px; max-width: 420px; margin-bottom: 48px; }
    .stat-card { padding: 16px 12px; }
    .stat-value { font-size: 22px; }
    .hero-mockup { perspective: none; }
    .mockup-frame { transform: none; }
    .hero-mockup:hover .mockup-frame { transform: none; }

    .section { padding: 68px 0; }
    .section-header { margin-bottom: 44px; padding: 0 4px; }

    .features-grid { gap: 14px; }

    /* 触控友好的更大点击区域 */
    .nav-link { padding: 12px 14px; }
    .btn { min-height: 44px; }
    .theme-toggle, .mobile-menu-toggle { width: 42px; height: 42px; }

    /* 表单 / 订阅在窄屏堆叠 */
    .footer-subscribe { flex-wrap: wrap; }
    .footer-subscribe input { flex: 1 1 100%; }
    .footer-subscribe button { flex: 1 1 100%; }

    .contact-grid { gap: 28px; }
    .download-hero-card { padding: 24px; }
    .versions-table-wrap { margin: 0 -18px; border-radius: 0; border-left: 0; border-right: 0; }

    /* 页脚单列，链接更易点 */
    .footer-grid { gap: 32px; }
    .footer-links nav { gap: 12px; }
    .footer-links a, .footer-contact a { display: inline-block; padding: 4px 0; }
}

@media (max-width: 380px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .btn-lg { padding: 13px 20px; font-size: 14px; }
}

/* 超宽屏：内容居中不拉伸 */
@media (min-width: 1600px) {
    :root { --container: 1240px; }
    .hero-content { max-width: 960px; }
}
