/**
 * B-Matrix - 高级视觉增强
 * 灵感来源: Linear / Vercel / Awwwards 风格
 *  - Aurora 极光网格渐变
 *  - 自定义鼠标 + spotlight 跟随
 *  - SVG 噪点纹理
 *  - 磁性按钮
 *  - 卡片光晕跟随
 *  - 标题逐字 reveal
 *  - WebGL Hero 3D 场景容器
 *  - Marquee 流动文字带
 *  - 滚动条 / 选中文字美化
 */

/* ==================== 全局基础 ==================== */
:root {
    --mx: 50%;
    --my: 50%;
    --aurora-1: #6366f1;
    --aurora-2: #a855f7;
    --aurora-3: #00cec9;
    --aurora-4: #ec4899;
    --aurora-5: #f59e0b;
    --noise-opacity: 0.05;
}

html { color-scheme: dark; }

body {
    perspective: 1400px;
    transform-style: preserve-3d;
}

/* 选中文字 */
::selection {
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
    color: #fff;
    text-shadow: 0 0 18px rgba(168, 85, 247, 0.6);
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(10, 10, 15, 0.6); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--aurora-1), var(--aurora-2));
    border-radius: 10px;
    border: 2px solid rgba(10, 10, 15, 0.95);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--aurora-2), var(--aurora-3));
}

/* ==================== Aurora 极光背景（替换原 orb 视觉） ==================== */
.bg-aurora {
    position: fixed;
    inset: -10vh -10vw;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    isolation: isolate;
    filter: saturate(1.2);
}
.bg-aurora::before,
.bg-aurora::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(38vmax 38vmax at 14% 18%, rgba(99, 102, 241, 0.55), transparent 55%),
        radial-gradient(34vmax 34vmax at 88% 22%, rgba(168, 85, 247, 0.45), transparent 56%),
        radial-gradient(40vmax 30vmax at 76% 84%, rgba(0, 206, 201, 0.45), transparent 60%),
        radial-gradient(30vmax 30vmax at 18% 80%, rgba(236, 72, 153, 0.35), transparent 58%);
    filter: blur(60px);
    mix-blend-mode: screen;
    opacity: 0.7;
    animation: auroraDrift 28s ease-in-out infinite alternate;
}
.bg-aurora::after {
    background:
        radial-gradient(36vmax 36vmax at 70% 30%, rgba(99, 102, 241, 0.35), transparent 56%),
        radial-gradient(28vmax 28vmax at 28% 56%, rgba(245, 158, 11, 0.18), transparent 60%),
        radial-gradient(30vmax 30vmax at 60% 75%, rgba(0, 206, 201, 0.30), transparent 60%);
    animation-duration: 38s;
    animation-direction: alternate-reverse;
    opacity: 0.55;
}
@keyframes auroraDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
    50%  { transform: translate3d(-3vw, 4vh, 0) scale(1.06) rotate(2deg); }
    100% { transform: translate3d(2vw, -3vh, 0) scale(1.02) rotate(-2deg); }
}

/* SVG 噪点叠层 - 增加质感 */
.bg-noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
    opacity: var(--noise-opacity);
    mix-blend-mode: overlay;
}

/* 全局鼠标 spotlight - 跟随鼠标的微弱径向光 */
.bg-spotlight {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(600px circle at var(--mx) var(--my),
        rgba(99, 102, 241, 0.10),
        rgba(168, 85, 247, 0.05) 30%,
        transparent 60%);
    transition: background 0.15s linear;
    mix-blend-mode: screen;
}

/* 把原 .bg-effects 中的 orb 弱化（让 aurora 接管），但保留网格 */
.bg-effects .gradient-orb { opacity: 0; }
.bg-effects .grid-bg { opacity: 0.6; }

/* ==================== 自定义鼠标光标 ==================== */
@media (hover: hover) and (pointer: fine) {
    body { cursor: none; }
    a, button, .btn, .nav-cta, .feature-card, .ops-card,
    .download-card, .tab-btn, .faq-question, .platform-link,
    .floating-contact-btn, .contact-card, summary, input, textarea,
    .mode-card, .panel-action { cursor: none; }

    .cursor-dot,
    .cursor-ring {
        position: fixed;
        top: 0; left: 0;
        pointer-events: none;
        z-index: 99999;
        transform: translate3d(-50%, -50%, 0);
        will-change: transform, width, height, opacity;
    }
    .cursor-dot {
        width: 6px; height: 6px;
        background: #fff;
        border-radius: 50%;
        mix-blend-mode: difference;
        box-shadow: 0 0 16px rgba(255, 255, 255, 0.6);
    }
    .cursor-ring {
        width: 32px; height: 32px;
        border: 1.5px solid rgba(168, 140, 255, 0.85);
        border-radius: 50%;
        transition: width 0.25s cubic-bezier(.2,.8,.2,1),
                    height 0.25s cubic-bezier(.2,.8,.2,1),
                    opacity 0.25s ease,
                    border-color 0.25s ease,
                    background 0.25s ease,
                    backdrop-filter 0.25s ease;
        backdrop-filter: invert(1) hue-rotate(180deg);
        -webkit-backdrop-filter: invert(1) hue-rotate(180deg);
    }
    .cursor-ring.is-hover {
        width: 64px; height: 64px;
        border-color: rgba(0, 206, 201, 0.9);
        background: rgba(99, 102, 241, 0.10);
    }
    .cursor-ring.is-down {
        width: 22px; height: 22px;
    }
}
@media (hover: none) {
    .cursor-dot, .cursor-ring { display: none !important; }
}

/* ==================== 顶部加载/进度条升级 ==================== */
.scroll-indicator {
    height: 2px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.15);
}
.scroll-progress {
    background: linear-gradient(90deg,
        var(--aurora-1), var(--aurora-2), var(--aurora-3), var(--aurora-4)) !important;
    box-shadow:
        0 0 12px rgba(168, 85, 247, 0.7),
        0 0 24px rgba(99, 102, 241, 0.45);
}

/* ==================== Hero 增强 - WebGL 容器 ==================== */
.hero { position: relative; }
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
    pointer-events: none;
    opacity: 0.9;
    mask-image:
        radial-gradient(ellipse 50% 60% at 50% 50%, transparent 0%, rgba(0,0,0,0.5) 35%, #000 70%),
        linear-gradient(180deg, transparent 0%, #000 8%, #000 88%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-image:
        radial-gradient(ellipse 50% 60% at 50% 50%, transparent 0%, rgba(0,0,0,0.5) 35%, #000 70%),
        linear-gradient(180deg, transparent 0%, #000 8%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in;
}

/* Hero 标题逐字 reveal */
.hero-title { perspective: 600px; }
.hero-title .char {
    display: inline-block;
    transform: translateY(120%) rotateX(-90deg);
    opacity: 0;
    transition:
        transform 0.9s cubic-bezier(.2,.8,.2,1),
        opacity 0.6s ease;
    transform-origin: 50% 100%;
    will-change: transform, opacity;
}
.hero-title.is-revealed .char {
    transform: translateY(0) rotateX(0);
    opacity: 1;
}
.hero-title .char.space { width: 0.3em; }

/* Hero 渐变文字加流光 */
.gradient-text {
    background-size: 200% 100% !important;
    animation: gradientShift 6s linear infinite;
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Hero badge 升级 - 玻璃质感 + 内发光 */
.hero-badge {
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.12),
        rgba(168, 85, 247, 0.06)) !important;
    border: 1px solid rgba(168, 140, 255, 0.25) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 30px rgba(99, 102, 241, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Hero 数字 stat 流光 */
.stat-value {
    text-shadow: 0 0 30px rgba(168, 140, 255, 0.45);
}

/* App preview 玻璃质感增强 + 漂浮 */
.app-preview {
    transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
    transition: transform 0.8s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s ease;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 80px rgba(99, 102, 241, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
    animation: previewFloat 9s ease-in-out infinite;
}
.app-preview:hover {
    transform: perspective(1200px) rotateY(-2deg) rotateX(0deg) scale(1.01);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 120px rgba(168, 85, 247, 0.25),
        0 0 0 1px rgba(168, 140, 255, 0.18) inset !important;
}
@keyframes previewFloat {
    0%, 100% { transform: perspective(1200px) rotateY(-6deg) rotateX(2deg) translateY(0); }
    50%      { transform: perspective(1200px) rotateY(-4deg) rotateX(1deg) translateY(-10px); }
}

/* Hero 浮动卡片玻璃化 */
.float-card {
    background: linear-gradient(135deg,
        rgba(25, 25, 40, 0.85),
        rgba(15, 15, 25, 0.7)) !important;
    border: 1px solid rgba(168, 140, 255, 0.18) !important;
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 24px rgba(99, 102, 241, 0.15);
}

/* ==================== 磁性按钮 ==================== */
.btn,
.nav-cta,
.download-btn,
.contact-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    will-change: transform;
    transform: translate3d(var(--magnet-x, 0), var(--magnet-y, 0), 0);
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1),
                box-shadow 0.3s ease,
                background 0.3s ease;
}
.btn::before,
.nav-cta::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from var(--angle, 0deg),
        transparent 0deg,
        var(--aurora-2) 90deg,
        var(--aurora-3) 180deg,
        transparent 270deg,
        transparent 360deg);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotateBorder 4s linear infinite;
    z-index: -1;
}
@property --angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}
@keyframes rotateBorder {
    to { --angle: 360deg; }
}
.btn-primary::before,
.nav-cta::before { opacity: 1; }

.btn-primary {
    background-image:
        linear-gradient(135deg, #6366f1, #a855f7) !important;
    box-shadow:
        0 12px 30px rgba(99, 102, 241, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
    box-shadow:
        0 18px 60px rgba(168, 85, 247, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Shine 扫光效果 */
.btn::after,
.nav-cta::after,
.download-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg,
        transparent,
        rgba(255, 255, 255, 0.18),
        transparent);
    transform: skewX(-20deg);
    transition: left 0.65s cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
}
.btn:hover::after,
.nav-cta:hover::after,
.download-btn:hover::after { left: 130%; }

/* ==================== 卡片 spotlight (跟随鼠标) ==================== */
.feature-card,
.ops-card,
.contact-card,
.download-card,
.dl-card,
.login-card {
    position: relative;
    isolation: isolate;
    --cx: 50%;
    --cy: 50%;
}
.feature-card::before,
.ops-card::before,
.contact-card::before,
.download-card::before,
.dl-card::before,
.login-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(280px circle at var(--cx) var(--cy),
        rgba(168, 140, 255, 0.55),
        rgba(99, 102, 241, 0.25) 35%,
        transparent 60%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}
.feature-card:hover::before,
.ops-card:hover::before,
.contact-card:hover::before,
.download-card:hover::before,
.dl-card:hover::before,
.login-card:hover::before { opacity: 1; }

/* spotlight 内部高亮层 */
.feature-card .feature-glow {
    background: radial-gradient(280px circle at var(--cx) var(--cy),
        rgba(99, 102, 241, 0.18),
        transparent 60%) !important;
    height: 100% !important;
    inset: 0 !important;
}

/* feature-card 整体玻璃强化 */
.feature-card,
.ops-card {
    background:
        linear-gradient(180deg, rgba(22, 22, 35, 0.78), rgba(12, 12, 20, 0.62)) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.feature-card:hover,
.ops-card:hover {
    border-color: rgba(168, 140, 255, 0.35) !important;
}

/* feature-title 内嵌 NEW 角标 */
.feature-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.feature-title .tag-new {
    padding: 3px 9px !important;
    font-size: 10px !important;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, var(--aurora-3), var(--aurora-2)) !important;
    color: #fff !important;
    border-radius: 6px !important;
    box-shadow:
        0 0 14px rgba(168, 85, 247, 0.45),
        0 0 26px rgba(0, 206, 201, 0.25);
    animation: tagNewPulse 2.4s ease-in-out infinite;
}
@keyframes tagNewPulse {
    0%, 100% { box-shadow: 0 0 14px rgba(168, 85, 247, 0.45), 0 0 26px rgba(0, 206, 201, 0.25); }
    50%      { box-shadow: 0 0 22px rgba(168, 85, 247, 0.7), 0 0 36px rgba(0, 206, 201, 0.45); }
}

/* ==================== Slogan banner - Marquee 流动文字 ==================== */
.slogan-banner { padding-bottom: 30px !important; }

.tech-marquee {
    position: relative;
    overflow: hidden;
    padding: 24px 0;
    margin: 24px 0 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg,
        rgba(99, 102, 241, 0.04),
        rgba(168, 85, 247, 0.06),
        rgba(0, 206, 201, 0.04));
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.tech-marquee-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: marqueeScroll 38s linear infinite;
    will-change: transform;
}
.tech-marquee:hover .tech-marquee-track { animation-play-state: paused; }
.tech-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(244, 244, 245, 0.6);
    white-space: nowrap;
    text-transform: uppercase;
}
.tech-marquee-item .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-3));
    box-shadow: 0 0 14px rgba(168, 140, 255, 0.7);
}
.tech-marquee-item.accent {
    background: linear-gradient(135deg, var(--aurora-2), var(--aurora-3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
}
@keyframes marqueeScroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

/* ==================== Section 标题升级 - 大标题 outline 效果 ==================== */
.section-title {
    background: linear-gradient(135deg,
        #ffffff 0%,
        #e0d4ff 50%,
        #fff 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0 0 40px rgba(168, 140, 255, 0.18);
}
.section-tag {
    background: linear-gradient(135deg,
        rgba(0, 206, 201, 0.15),
        rgba(99, 102, 241, 0.1)) !important;
    border-color: rgba(0, 206, 201, 0.3) !important;
    color: #5eead4 !important;
    box-shadow: 0 0 24px rgba(0, 206, 201, 0.18);
}

/* ==================== Navbar 升级 ==================== */
.navbar.scrolled {
    background: rgba(10, 10, 15, 0.72) !important;
    border-bottom: 1px solid rgba(168, 140, 255, 0.12) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.nav-link {
    position: relative;
    padding: 6px 2px;
}
.nav-link::after {
    background: linear-gradient(90deg, var(--aurora-2), var(--aurora-3)) !important;
    height: 2px !important;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}
.platform-link.active {
    box-shadow:
        0 8px 24px rgba(99, 102, 241, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ==================== Slogan Item 升级 ==================== */
.slogan-item {
    background: linear-gradient(180deg,
        rgba(22, 22, 35, 0.7),
        rgba(12, 12, 20, 0.55)) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(0);
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1),
                border-color 0.3s ease,
                box-shadow 0.4s ease,
                background 0.3s ease;
}
.slogan-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(168, 140, 255, 0.35) !important;
    box-shadow:
        0 25px 60px rgba(99, 102, 241, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.slogan-item::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -25%;
    width: 150%; height: 150%;
    background: radial-gradient(circle, rgba(168, 140, 255, 0.18), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}
.slogan-item:hover::after { opacity: 1; }
.slogan-item > * { position: relative; z-index: 1; }

/* ==================== Download Card 玻璃化 + spotlight ==================== */
.download-card {
    background: linear-gradient(135deg,
        rgba(22, 22, 35, 0.85),
        rgba(12, 12, 20, 0.65)) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    transition:
        transform 0.45s cubic-bezier(.2,.8,.2,1),
        border-color 0.3s ease,
        box-shadow 0.4s ease;
}
.download-card:hover {
    transform: translateX(6px) translateY(-4px) !important;
    border-color: rgba(168, 140, 255, 0.4) !important;
    box-shadow: 0 30px 70px rgba(99, 102, 241, 0.25);
}

/* ==================== FAQ 升级 ==================== */
.faq-item {
    background: linear-gradient(180deg,
        rgba(22, 22, 35, 0.78),
        rgba(12, 12, 20, 0.62)) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.faq-item[open] {
    background: linear-gradient(180deg,
        rgba(28, 24, 50, 0.88),
        rgba(20, 16, 38, 0.7)) !important;
    border-color: rgba(168, 140, 255, 0.4) !important;
    box-shadow:
        0 14px 40px rgba(99, 102, 241, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

/* ==================== Floating Contact 升级 ==================== */
.floating-contact-btn {
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2), var(--aurora-3)) !important;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    box-shadow:
        0 12px 40px rgba(99, 102, 241, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.floating-contact-btn::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(168, 140, 255, 0.4);
    animation: contactPulse 2.4s ease-out infinite;
    pointer-events: none;
}
@keyframes contactPulse {
    0%   { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ==================== Music Player 玻璃 ==================== */
.music-player {
    background: linear-gradient(135deg,
        rgba(22, 22, 35, 0.85),
        rgba(15, 15, 25, 0.75)) !important;
    border: 1px solid rgba(168, 140, 255, 0.2) !important;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

/* ==================== Tab 按钮升级 ==================== */
.tab-btn {
    transition: all 0.3s cubic-bezier(.2,.8,.2,1);
}
.tab-btn:hover { transform: translateY(-2px); }
.tab-btn.active {
    box-shadow:
        0 10px 28px rgba(99, 102, 241, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* ==================== Timeline 升级 ==================== */
.timeline-content {
    background: linear-gradient(180deg,
        rgba(22, 22, 35, 0.78),
        rgba(12, 12, 20, 0.62)) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.timeline-dot {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15),
                0 0 20px rgba(168, 85, 247, 0.5);
}

/* ==================== AOS 增强 - 加 stagger 效果 ==================== */
[data-aos] { transition-timing-function: cubic-bezier(.2,.8,.2,1) !important; }
[data-aos].aos-animate { transform: none !important; }

/* ==================== 视差/3D Tilt 容器（JS 控制） ==================== */
.tilt-3d {
    transform-style: preserve-3d;
    will-change: transform;
}
.tilt-3d > * { transform: translateZ(20px); }

/* ==================== 装饰性元素 - 角落 corner brackets ==================== */
.corner-bracket {
    position: fixed;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(168, 140, 255, 0.3);
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.6s ease 0.4s;
}
body.is-loaded .corner-bracket { opacity: 1; }
.corner-bracket.tl { top: 24px; left: 24px; border-right: none; border-bottom: none; }
.corner-bracket.tr { top: 24px; right: 24px; border-left: none; border-bottom: none; }
.corner-bracket.bl { bottom: 24px; left: 24px; border-right: none; border-top: none; }
.corner-bracket.br { bottom: 24px; right: 24px; border-left: none; border-top: none; }
@media (max-width: 768px) {
    .corner-bracket { width: 24px; height: 24px; }
    .corner-bracket.tl, .corner-bracket.tr { top: 12px; }
    .corner-bracket.bl, .corner-bracket.br { bottom: 12px; }
    .corner-bracket.tl, .corner-bracket.bl { left: 12px; }
    .corner-bracket.tr, .corner-bracket.br { right: 12px; }
}

/* ==================== Architecture 节点升级 ==================== */
.arch-node {
    background: linear-gradient(180deg,
        rgba(22, 22, 35, 0.78),
        rgba(12, 12, 20, 0.62)) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.arch-node:hover {
    border-color: rgba(168, 140, 255, 0.4) !important;
}

/* ==================== Module 卡片 ==================== */
.module-demo .demo-card {
    background: linear-gradient(180deg,
        rgba(22, 22, 35, 0.78),
        rgba(12, 12, 20, 0.62)) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(.2,.8,.2,1),
                border-color 0.3s ease,
                box-shadow 0.4s ease;
}
.module-demo .demo-card:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 140, 255, 0.3) !important;
    box-shadow: 0 24px 60px rgba(99, 102, 241, 0.18);
}

/* ==================== 强制减少动效（用户偏好） ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .bg-aurora, .hero-canvas, .tech-marquee-track { animation: none !important; }
    .cursor-dot, .cursor-ring { display: none !important; }
    body { cursor: auto; }
    a, button, .btn { cursor: pointer; }
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 1024px) {
    .app-preview { transform: none; animation: none; }
    .hero-canvas { opacity: 0.5; }
}
@media (max-width: 768px) {
    .bg-aurora { filter: saturate(1) blur(40px); }
    .tech-marquee-item { font-size: 16px; }
    .tech-marquee-track { gap: 36px; }
    .corner-bracket { display: none; }
}

/* ==================== Hero 角标动效 ==================== */
.hero-badge .badge-dot {
    box-shadow: 0 0 12px var(--aurora-3),
                0 0 24px rgba(0, 206, 201, 0.5);
}

/* ==================== Loading Mask 入场 ==================== */
.boot-loader {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease 0.2s, visibility 0.6s ease 0.2s;
}
body.is-loaded .boot-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.boot-loader-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    box-shadow: 0 18px 50px rgba(99, 102, 241, 0.45);
    animation: bootPulse 1.4s ease-in-out infinite;
}
@keyframes bootPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 18px 50px rgba(99, 102, 241, 0.45); }
    50%      { transform: scale(1.08); box-shadow: 0 24px 70px rgba(168, 85, 247, 0.6); }
}
