/* ==========================================================================
   赞恩科技 · 官网设计系统  base.css  v1.0 (2026-11)
   深空霓虹 · 玻璃拟态 · 渐变科技感
   --------------------------------------------------------------------------
   目录：
   01. 字体 @font-face
   02. 设计 Tokens（色板/字体/间距/圆角/阴影/动效）
   03. Reset 与全局基底
   04. 排版 Typography
   05. 布局原语 Layout / Section / Eyebrow
   06. 装饰层 Aurora / Grid / Noise / Glow / Spotlight
   07. 按钮 Button
   08. 表单 Form（input/select/textarea/switch/radio/checkbox/upload）
   09. 卡片 Card / 玻璃 Surface
   10. 徽章 Badge / 标签 Tag
   11. 表格 Table
   12. 浮层 Overlay（modal / confirm / toast / dropdown / tooltip）
   13. 数据展示 Pagination / Breadcrumb / Empty / Skeleton / Tabs / Steps
   14. 金额与数字 Money
   15. 工具类 Utilities
   16. 动效 Motion
   17. 响应式与可访问性
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. 字体（本地自托管，禁止外链）
   -------------------------------------------------------------------------- */
@font-face {
    font-family: "Inter var";
    src: url("/static/fonts/inter-var.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Space Grotesk";
    src: url("/static/fonts/space-grotesk-var.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   02. Tokens
   -------------------------------------------------------------------------- */
:root {
    color-scheme: dark;

    /* --- 品牌色 --- */
    --cyan: #22d3ee;
    --cyan-bright: #67e8f9;
    --cyan-deep: #0891b2;
    --violet: #8b5cf6;
    --violet-bright: #a78bfa;
    --violet-deep: #6d28d9;
    --magenta: #e879f9;
    --emerald: #34d399;
    --emerald-deep: #10b981;
    --amber: #fbbf24;
    --rose: #fb7185;
    --sky: #38bdf8;

    /* --- 语义色 --- */
    --brand: var(--cyan);
    --brand-2: var(--violet);
    --brand-3: var(--emerald);
    --accent: var(--cyan);
    --accent-soft: rgba(34, 211, 238, .12);
    --accent-line: rgba(34, 211, 238, .32);
    --success: #34d399;
    --success-soft: rgba(52, 211, 153, .14);
    --warning: #fbbf24;
    --warning-soft: rgba(251, 191, 36, .14);
    --danger: #fb7185;
    --danger-soft: rgba(251, 113, 133, .14);
    --info: #38bdf8;
    --info-soft: rgba(56, 189, 248, .14);
    --violet-soft: rgba(139, 92, 246, .14);

    /* --- 背景（深空底） --- */
    --bg: #070b14;
    --bg-1: #0a1020;
    --bg-2: #0d1526;
    --bg-3: #111c33;
    --bg-elev: #0b1322;
    --bg-sunken: #050810;
    --bg-hover: rgba(255, 255, 255, .045);
    --bg-active: rgba(255, 255, 255, .07);
    --overlay: rgba(3, 6, 13, .72);

    /* --- 玻璃 --- */
    --glass-bg: rgba(12, 19, 34, .55);
    --glass-bg-strong: rgba(10, 16, 29, .82);
    --glass-bg-light: rgba(255, 255, 255, .035);
    --glass-border: rgba(255, 255, 255, .08);
    --glass-border-strong: rgba(255, 255, 255, .14);
    --glass-blur: saturate(160%) blur(22px);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .07);

    /* --- 文本 --- */
    --text: #eef4ff;
    --text-2: #a9b8d0;
    --text-3: #7488a3;
    --text-4: #4d5c72;
    --text-inverse: #04121d;

    /* --- 描边 --- */
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --line-3: rgba(255, 255, 255, .22);
    --line-brand: rgba(34, 211, 238, .3);

    /* --- 渐变 --- */
    --grad-brand: linear-gradient(115deg, #22d3ee 0%, #8b5cf6 55%, #34d399 100%);
    --grad-brand-2: linear-gradient(115deg, #8b5cf6 0%, #22d3ee 100%);
    --grad-cta: linear-gradient(135deg, #22d3ee 0%, #38bdf8 100%);
    --grad-violet: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    --grad-emerald: linear-gradient(135deg, #34d399 0%, #0891b2 100%);
    --grad-danger: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
    --grad-surface: linear-gradient(160deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .012));
    --grad-text: linear-gradient(100deg, #67e8f9 0%, #c4b5fd 48%, #6ee7b7 100%);
    --grad-hero: linear-gradient(180deg, rgba(7, 11, 20, 0) 0%, rgba(7, 11, 20, .55) 60%, #070b14 100%);
    --grad-hairline: linear-gradient(90deg, transparent, rgba(34, 211, 238, .35) 20%, rgba(139, 92, 246, .45) 50%, rgba(52, 211, 153, .3) 80%, transparent);

    /* --- 字体 --- */
    --font-sans: "Inter var", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", sans-serif;
    --font-display: "Space Grotesk", "Inter var", -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
    --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
    --font-cn: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", sans-serif;

    --fs-xs: .75rem;
    --fs-sm: .8125rem;
    --fs-base: .9375rem;
    --fs-md: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.375rem;
    --fs-2xl: 1.75rem;
    --fs-3xl: 2.25rem;
    --fs-4xl: 3rem;
    --fs-5xl: clamp(2.5rem, 5vw, 4.25rem);
    --fs-display: clamp(2.75rem, 6.2vw, 5.5rem);

    --lh-none: 1;
    --lh-tight: 1.08;
    --lh-snug: 1.28;
    --lh-normal: 1.6;
    --lh-loose: 1.85;

    --ls-tight: -.03em;
    --ls-snug: -.015em;
    --ls-normal: 0;
    --ls-wide: .08em;
    --ls-wider: .18em;

    /* --- 间距 --- */
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* --- 尺寸 --- */
    --container: 1200px;
    --container-wide: 1360px;
    --container-narrow: 860px;
    --gutter: clamp(20px, 4.5vw, 56px);
    --section-y: clamp(64px, 8.5vw, 132px);
    --header-h: 72px;
    --header-h-scrolled: 62px;

    /* --- 圆角 --- */
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-2xl: 40px;
    --r-pill: 999px;

    /* --- 阴影 --- */
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-2: 0 10px 28px -10px rgba(0, 0, 0, .6);
    --shadow-3: 0 28px 70px -28px rgba(0, 0, 0, .8);
    --shadow-glass: 0 24px 60px -28px rgba(2, 6, 16, .9), inset 0 1px 0 rgba(255, 255, 255, .07);
    --shadow-glow: 0 14px 44px -14px rgba(34, 211, 238, .5);
    --shadow-glow-violet: 0 14px 44px -14px rgba(139, 92, 246, .5);
    --ring: 0 0 0 3px rgba(34, 211, 238, .16);
    --ring-danger: 0 0 0 3px rgba(251, 113, 133, .18);

    /* --- 动效 --- */
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --t-fast: .16s;
    --t-base: .28s;
    --t-slow: .5s;
    --t-slower: .8s;

    /* --- 层级 --- */
    --z-header: 100;
    --z-drawer: 200;
    --z-dropdown: 300;
    --z-modal: 500;
    --z-toast: 700;
}

/* --------------------------------------------------------------------------
   03. Reset 与全局基底
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
    margin: 0;
    min-height: 100dvh;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; border-style: none; }
a {
    color: var(--cyan-bright);
    text-decoration: none;
    transition: color var(--t-fast) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}
a:hover { color: var(--cyan); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
table { border-collapse: collapse; border-spacing: 0; width: 100%; }
hr {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: var(--space-8) 0;
}
::selection { background: rgba(34, 211, 238, .28); color: #fff; }

/* 滚动条 */
* { scrollbar-width: thin; scrollbar-color: rgba(139, 92, 246, .45) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    border-radius: var(--r-pill);
    border: 2px solid transparent;
    background-clip: content-box;
    background-image: linear-gradient(180deg, rgba(34, 211, 238, .6), rgba(139, 92, 246, .6));
}

/* 焦点可见 */
:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
    border-radius: var(--r-xs);
}
:where(a, button, input, select, textarea, [tabindex]):focus:not(:focus-visible) { outline: none; }

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 999;
    padding: 10px 18px;
    border-radius: var(--r-sm);
    background: var(--bg-3);
    color: var(--text);
    border: 1px solid var(--line-2);
    transition: top var(--t-base) var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   04. 排版
   -------------------------------------------------------------------------- */
.display, .h-display {
    font-family: var(--font-display);
    font-size: var(--fs-display);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    font-weight: 700;
    margin: 0;
}
h1, .h1 {
    font-family: var(--font-display);
    font-size: var(--fs-5xl);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    font-weight: 700;
    margin: 0;
}
h2, .h2 {
    font-family: var(--font-display);
    font-size: var(--fs-4xl);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-snug);
    font-weight: 700;
    margin: 0;
}
h3, .h3 {
    font-size: var(--fs-2xl);
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-snug);
    font-weight: 650;
    margin: 0;
}
h4, .h4 {
    font-size: var(--fs-xl);
    line-height: var(--lh-snug);
    font-weight: 600;
    margin: 0;
}
h5, .h5 {
    font-size: var(--fs-lg);
    line-height: var(--lh-snug);
    font-weight: 600;
    margin: 0;
}
p { margin: 0; }
.lead {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: var(--lh-normal);
    color: var(--text-2);
    max-width: 66ch;
}
.text-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.text-gradient-brand {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }

/* SVG 图标（配合 partials/icons.html 雪碧图） */
.icon {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.15em;
}
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 28px; height: 28px; }

/* --------------------------------------------------------------------------
   05. 布局原语
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container-wide { max-width: var(--container-wide); }
.container-narrow { max-width: var(--container-narrow); }
.container-fluid { max-width: none; }

.section {
    position: relative;
    padding-block: var(--section-y);
}
.section-sm { padding-block: clamp(40px, 5vw, 72px); }
.section-lg { padding-block: clamp(80px, 11vw, 168px); }
.section-bordered { border-top: 1px solid var(--line); }
.section-head {
    max-width: 760px;
    margin-bottom: clamp(32px, 4.5vw, 64px);
}
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .section-desc { margin-inline: auto; }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.6vw, 3rem);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    font-weight: 700;
}
.section-desc {
    margin-top: var(--space-4);
    color: var(--text-2);
    font-size: var(--fs-lg);
    line-height: var(--lh-normal);
    max-width: 62ch;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--space-4);
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: var(--cyan-bright);
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--grad-hairline);
}
.eyebrow-dot {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line-2);
    background: var(--glass-bg-light);
    font-size: var(--fs-xs);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--text-2);
    backdrop-filter: blur(10px);
}
.eyebrow-dot::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    animation: pulse-glow 2.4s var(--ease-in-out) infinite;
}
.glow-line {
    height: 1px;
    border: 0;
    background: var(--grad-hairline);
    opacity: .7;
}

/* --------------------------------------------------------------------------
   06. 装饰层：aurora / grid / noise / glow
   -------------------------------------------------------------------------- */
.deco {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.deco-above { z-index: 1; }
.deco > * { position: absolute; }

.aurora {
    width: 56vw;
    aspect-ratio: 1;
    min-width: 380px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
    mix-blend-mode: screen;
    will-change: transform;
}
.aurora--cyan { background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, .75), transparent 68%); }
.aurora--violet { background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, .78), transparent 68%); }
.aurora--emerald { background: radial-gradient(circle at 50% 50%, rgba(52, 211, 153, .6), transparent 68%); }
.aurora--magenta { background: radial-gradient(circle at 50% 50%, rgba(232, 121, 249, .55), transparent 68%); }
.aurora--tl { top: -26%; left: -18%; }
.aurora--tr { top: -22%; right: -16%; }
.aurora--bl { bottom: -30%; left: -14%; }
.aurora--br { bottom: -26%; right: -18%; }
.aurora--center { top: 50%; left: 50%; translate: -50% -50%; }
.aurora-drift { animation: aurora-drift 24s var(--ease-in-out) infinite alternate; }
.aurora-drift-slow { animation: aurora-drift 38s var(--ease-in-out) infinite alternate-reverse; }

.grid-overlay {
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 80% 65% at 50% 32%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 32%, #000 20%, transparent 78%);
    opacity: .7;
}
.noise-overlay {
    inset: 0;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    pointer-events: none;
}
.spotlight {
    inset: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, .1), transparent 62%);
    opacity: 0;
    transition: opacity var(--t-slow) var(--ease-out);
}
.spotlight.is-on { opacity: 1; }
.hairline-top { position: relative; }
.hairline-top::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--grad-hairline);
    opacity: .6;
}

/* 通用玻璃面板 */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-glass);
}
.glass-strong {
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}
.gradient-border {
    position: relative;
    isolation: isolate;
}
.gradient-border::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(34, 211, 238, .65), rgba(139, 92, 246, .45) 45%, rgba(52, 211, 153, .55));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   07. 按钮 Button
   -------------------------------------------------------------------------- */
.btn {
    --btn-h: 44px;
    --btn-px: 22px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: var(--btn-h);
    padding: 0 var(--btn-px);
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-base) var(--ease-out),
        background-color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out),
        color var(--t-base) var(--ease-out), opacity var(--t-base) var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
    content: "";
    position: absolute;
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    animation: spin .7s linear infinite;
}

/* 主按钮：霓虹青渐变 */
.btn-primary {
    background: var(--grad-cta);
    color: var(--text-inverse);
    box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover {
    color: var(--text-inverse);
    box-shadow: 0 18px 52px -14px rgba(34, 211, 238, .7), inset 0 1px 0 rgba(255, 255, 255, .45);
    transform: translateY(-2px);
}
/* 品牌渐变按钮：青→紫→绿，白色文字 */
.btn-gradient {
    background: var(--grad-brand);
    background-size: 160% 160%;
    color: #fff;
    text-shadow: 0 1px 8px rgba(3, 6, 13, .35);
    box-shadow: 0 14px 40px -14px rgba(139, 92, 246, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-base) var(--ease-out),
        background-position .6s var(--ease-out);
}
.btn-gradient:hover {
    color: #fff;
    background-position: 100% 50%;
    box-shadow: 0 20px 56px -14px rgba(34, 211, 238, .65), inset 0 1px 0 rgba(255, 255, 255, .3);
    transform: translateY(-2px);
}
/* 幽灵按钮：玻璃描边 */
.btn-ghost {
    background: var(--glass-bg-light);
    border-color: var(--line-2);
    color: var(--text);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, .08);
    border-color: var(--line-3);
    color: var(--text);
    transform: translateY(-2px);
}
/* 品牌描边按钮 */
.btn-outline {
    background: transparent;
    border-color: var(--accent-line);
    color: var(--cyan-bright);
}
.btn-outline:hover {
    background: var(--accent-soft);
    border-color: var(--cyan);
    color: var(--cyan-bright);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .08);
}
/* 柔和底色按钮 */
.btn-soft {
    background: var(--accent-soft);
    color: var(--cyan-bright);
    border-color: transparent;
}
.btn-soft:hover { background: rgba(34, 211, 238, .2); color: #fff; }
/* 危险按钮 */
.btn-danger {
    background: var(--grad-danger);
    color: #fff;
    box-shadow: 0 12px 34px -14px rgba(251, 113, 133, .6);
}
.btn-danger:hover { color: #fff; box-shadow: 0 16px 44px -14px rgba(251, 113, 133, .8); transform: translateY(-2px); }
/* 纯文字按钮 */
.btn-text {
    height: auto;
    padding: 4px 6px;
    border-radius: var(--r-xs);
    background: transparent;
    color: var(--text-2);
    font-weight: 500;
}
.btn-text:hover { color: var(--cyan-bright); background: var(--bg-hover); }
.btn-dark {
    background: rgba(255, 255, 255, .06);
    border-color: var(--line);
    color: var(--text);
}
.btn-dark:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* 尺寸 */
.btn-sm { --btn-h: 34px; --btn-px: 14px; font-size: var(--fs-sm); gap: 6px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { --btn-h: 54px; --btn-px: 30px; font-size: var(--fs-md); }
.btn-xl { --btn-h: 60px; --btn-px: 36px; font-size: var(--fs-lg); }
.btn-block { display: flex; width: 100%; }
.btn-icon {
    --btn-h: 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--r-md);
}
.btn-icon.btn-sm { width: 34px; height: 34px; }
.btn-group { display: inline-flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* 图标 + 文字链接 */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--cyan-bright);
}
.link-arrow::after {
    content: "→";
    transition: transform var(--t-base) var(--ease-out);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* 关闭按钮 */
.btn-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: var(--r-sm);
    color: var(--text-3);
    background: transparent;
    transition: background var(--t-fast), color var(--t-fast);
}
.btn-close:hover { background: var(--bg-hover); color: var(--text); }
.btn-close svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   08. 表单 Form
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--space-5); }
.form-group { display: grid; gap: 8px; }
.form-row {
    display: grid;
    grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
    gap: var(--space-4) var(--space-5);
}
.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: .01em;
}
.form-label .req { color: var(--danger); font-size: var(--fs-sm); }
.form-hint { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.5; }
.form-error { font-size: var(--fs-xs); color: var(--danger); min-height: 1em; }
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    margin-top: var(--space-2);
}
.form-section-title {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 650;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    margin-top: var(--space-4);
}

.input, .textarea, .select, .form-control {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 15px;
    border-radius: var(--r-md);
    border: 1px solid var(--line-2);
    background: rgba(8, 13, 24, .65);
    color: var(--text);
    font-size: var(--fs-base);
    line-height: 1.4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
    transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out),
        background-color var(--t-fast) var(--ease-out);
    appearance: none;
    -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--line-3); }
.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--accent-line);
    box-shadow: var(--ring), inset 0 1px 0 rgba(255, 255, 255, .03);
    background: rgba(9, 15, 28, .85);
}
.textarea {
    height: auto;
    min-height: 132px;
    padding: 13px 15px;
    resize: vertical;
    line-height: var(--lh-normal);
}
.select {
    padding-right: 42px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237488a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}
.select option { background: var(--bg-2); color: var(--text); }
.input-lg { height: 54px; font-size: var(--fs-md); }
.input-sm { height: 38px; font-size: var(--fs-sm); padding: 0 12px; }
.input[readonly], .textarea[readonly] { color: var(--text-3); cursor: default; }
.input:disabled, .textarea:disabled, .select:disabled { opacity: .5; cursor: not-allowed; }
.is-invalid, .input.is-invalid, .textarea.is-invalid, .select.is-invalid {
    border-color: rgba(251, 113, 133, .7) !important;
    box-shadow: var(--ring-danger) !important;
}
.is-valid { border-color: rgba(52, 211, 153, .55) !important; }

/* 输入框带前后缀 / 图标 */
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrap .input { padding-left: 44px; }
.input-wrap .input:has(+ .input-suffix), .input-wrap .input.has-suffix { padding-right: 88px; }
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    translate: 0 -50%;
    display: inline-flex;
    color: var(--text-3);
    pointer-events: none;
}
.input-icon svg { width: 18px; height: 18px; }
.input-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    translate: 0 -50%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-3);
    font-size: var(--fs-sm);
}
.input-affix {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    background: rgba(8, 13, 24, .65);
    overflow: hidden;
}
.input-affix .input { border: 0; background: transparent; box-shadow: none; }
.input-affix .affix {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    color: var(--text-3);
    background: rgba(255, 255, 255, .03);
    font-size: var(--fs-sm);
    white-space: nowrap;
}

/* 开关 Switch */
.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: var(--fs-sm);
    color: var(--text-2);
}
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
    position: relative;
    width: 44px;
    height: 26px;
    flex: none;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .12);
    border: 1px solid var(--line-2);
    transition: background var(--t-base) var(--ease-out), border-color var(--t-base);
}
.switch-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #cfd9ea;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .45);
    transition: transform var(--t-base) var(--ease-spring), background var(--t-base);
}
.switch input:checked + .switch-track {
    background: var(--grad-cta);
    border-color: transparent;
    box-shadow: 0 0 18px -4px rgba(34, 211, 238, .6);
}
.switch input:checked + .switch-track::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + .switch-track { box-shadow: var(--ring); }
.switch input:disabled + .switch-track { opacity: .45; }

/* 单选/多选 */
.checkbox, .radio {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: var(--fs-base);
    color: var(--text-2);
    line-height: 1.5;
}
.checkbox input, .radio input {
    position: absolute;
    opacity: 0;
    width: 18px; height: 18px;
    margin: 0;
}
.checkbox-box, .radio-box {
    position: relative;
    flex: none;
    width: 18px; height: 18px;
    margin-top: 2px;
    border-radius: 6px;
    border: 1px solid var(--line-3);
    background: rgba(8, 13, 24, .7);
    transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.radio-box { border-radius: 50%; }
.checkbox-box::after {
    content: "";
    position: absolute;
    left: 5px; top: 1px;
    width: 5px; height: 10px;
    border: solid var(--text-inverse);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform var(--t-fast) var(--ease-spring);
}
.radio-box::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--text-inverse);
    transform: scale(0);
    transition: transform var(--t-fast) var(--ease-spring);
}
.checkbox input:checked + .checkbox-box,
.radio input:checked + .radio-box {
    background: var(--grad-cta);
    border-color: transparent;
    box-shadow: 0 0 14px -4px rgba(34, 211, 238, .65);
}
.checkbox input:checked + .checkbox-box::after,
.radio input:checked + .radio-box::after { transform: scale(1); }
.checkbox input:focus-visible + .checkbox-box,
.radio input:focus-visible + .radio-box { box-shadow: var(--ring); }
.checkbox input:disabled ~ *, .radio input:disabled ~ * { opacity: .5; }

/* 选择卡片（大块单选） */
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line-2);
    background: var(--glass-bg-light);
    color: var(--text-2);
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease-out);
}
.choice input { position: absolute; opacity: 0; }
.choice:hover { border-color: var(--line-3); color: var(--text); }
.choice:has(input:checked), .choice.is-active {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--cyan-bright);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .06);
}

/* 文件上传 */
.upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 20px;
    border-radius: var(--r-lg);
    border: 1px dashed var(--line-3);
    background: rgba(255, 255, 255, .02);
    color: var(--text-3);
    text-align: center;
    cursor: pointer;
    transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.upload:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--cyan-bright); }
.upload svg { width: 26px; height: 26px; }
.upload-title { color: var(--text-2); font-weight: 600; font-size: var(--fs-sm); }
.upload input[type="file"] { display: none; }
.upload-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.upload-thumb {
    position: relative;
    width: 84px; height: 84px;
    border-radius: var(--r-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-2);
}
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* 搜索框 */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.search-box .input { padding-left: 42px; padding-right: 96px; border-radius: var(--r-pill); }
.search-box .input-icon { left: 16px; }
.search-box .search-submit {
    position: absolute;
    right: 5px;
    height: 34px;
    padding: 0 16px;
    border-radius: var(--r-pill);
    background: var(--grad-cta);
    color: var(--text-inverse);
    font-size: var(--fs-sm);
    font-weight: 600;
}
.search-box .search-submit:hover { filter: brightness(1.08); }

/* --------------------------------------------------------------------------
   09. 卡片 Card / 玻璃面板
   -------------------------------------------------------------------------- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--r-lg);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-glass);
    overflow: hidden;
    transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out),
        box-shadow var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out);
}
.card-hover:hover {
    transform: translateY(-6px);
    border-color: var(--line-2);
    box-shadow: 0 32px 80px -32px rgba(2, 6, 16, .95), 0 0 0 1px rgba(34, 211, 238, .12), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.card-glow:hover {
    border-color: var(--line-brand);
    box-shadow: 0 24px 70px -28px rgba(34, 211, 238, .35), var(--shadow-glass);
}
.card-pad { padding: clamp(20px, 2.6vw, 32px); }
.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
}
.card-body { padding: 24px; flex: 1; }
.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .015);
}
.card-title {
    font-size: var(--fs-lg);
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: var(--ls-snug);
    color: var(--text);
}
.card-desc { margin-top: 10px; color: var(--text-2); font-size: var(--fs-base); line-height: 1.7; }
.card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-2);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.045); }
.card-media--square { aspect-ratio: 1; }
.card-media--wide { aspect-ratio: 16 / 7; }
.card-media--tall { aspect-ratio: 4 / 5; }
.card-content { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--fs-xs);
    color: var(--text-3);
    flex-wrap: wrap;
}
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); }
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    border-radius: var(--r-md);
    background: var(--accent-soft);
    border: 1px solid rgba(34, 211, 238, .2);
    color: var(--cyan-bright);
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon--violet { background: var(--violet-soft); border-color: rgba(139, 92, 246, .25); color: var(--violet-bright); }
.card-icon--emerald { background: var(--success-soft); border-color: rgba(52, 211, 153, .22); color: var(--emerald); }
.card--flat { background: rgba(255, 255, 255, .025); box-shadow: none; }
.card--feature {
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(34, 211, 238, .12), transparent 55%),
        radial-gradient(120% 120% at 100% 100%, rgba(139, 92, 246, .14), transparent 60%),
        var(--glass-bg);
}
.card-num {
    font-family: var(--font-display);
    font-size: var(--fs-4xl);
    font-weight: 700;
    line-height: 1;
    letter-spacing: var(--ls-tight);
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* 统计 / 数据条 */
.stat { display: grid; gap: 6px; }
.stat-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: var(--ls-tight);
}
.stat-label { font-size: var(--fs-sm); color: var(--text-3); letter-spacing: .02em; }
.stat-desc { font-size: var(--fs-sm); color: var(--text-2); }

/* --------------------------------------------------------------------------
   10. 徽章 Badge / 标签 Tag
   -------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 10px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .05);
    font-size: var(--fs-xs);
    font-weight: 600;
    line-height: 1;
    color: var(--text-2);
    white-space: nowrap;
    vertical-align: middle;
}
.badge--brand { color: var(--cyan-bright); background: var(--accent-soft); border-color: rgba(34, 211, 238, .28); }
.badge--violet { color: var(--violet-bright); background: var(--violet-soft); border-color: rgba(139, 92, 246, .3); }
.badge--success { color: var(--emerald); background: var(--success-soft); border-color: rgba(52, 211, 153, .28); }
.badge--warning { color: var(--amber); background: var(--warning-soft); border-color: rgba(251, 191, 36, .28); }
.badge--danger { color: var(--danger); background: var(--danger-soft); border-color: rgba(251, 113, 133, .28); }
.badge--info { color: var(--info); background: var(--info-soft); border-color: rgba(56, 189, 248, .28); }
.badge--solid { background: var(--grad-cta); border-color: transparent; color: var(--text-inverse); }
.badge--glass { background: var(--glass-bg); border-color: var(--glass-border); color: var(--text-2); backdrop-filter: blur(10px); }
.badge::before {
    content: "";
    width: 5px; height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}
.badge--nolint::before, .badge.no-dot::before { display: none; }
.badge-dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 8px var(--emerald);
}
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 14px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: var(--text-2);
    font-size: var(--fs-sm);
    transition: all var(--t-fast) var(--ease-out);
}
a.tag:hover, .tag:hover { color: var(--cyan-bright); border-color: var(--accent-line); background: var(--accent-soft); }
.tag.is-active { color: var(--cyan-bright); border-color: var(--accent-line); background: var(--accent-soft); }
.tag--sm { height: 24px; padding: 0 10px; font-size: var(--fs-xs); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* 价格 / 商品角标 */
.price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    font-family: var(--font-display);
    font-weight: 700;
}
.corner-badge {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border-radius: var(--r-pill);
    background: var(--grad-brand);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .04em;
    box-shadow: 0 6px 20px -6px rgba(139, 92, 246, .7);
}

/* --------------------------------------------------------------------------
   11. 表格 Table
   -------------------------------------------------------------------------- */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--r-lg);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-glass);
}
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-base); }
.table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 14px 18px;
    text-align: left;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-3);
    background: rgba(10, 16, 29, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.table td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    color: var(--text-2);
    vertical-align: middle;
}
.table tbody tr { transition: background var(--t-fast) var(--ease-out); }
.table tbody tr:hover { background: rgba(255, 255, 255, .035); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .cell-strong { color: var(--text); font-weight: 600; }
.table .cell-actions { display: flex; gap: 4px; align-items: center; }
.table .cell-num { font-variant-numeric: tabular-nums; text-align: right; }
.table .cell-check { width: 44px; }
.table-sm td, .table-sm th { padding: 10px 14px; }
.table-empty td { padding: 48px 18px; text-align: center; color: var(--text-3); }
.table-fixed { table-layout: fixed; }
.table-wrap--flush { border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }

/* --------------------------------------------------------------------------
   12. 浮层 Overlay
   -------------------------------------------------------------------------- */
/* 遮罩 */
.overlay-mask {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background: var(--overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity var(--t-base) var(--ease-out);
}
.overlay-mask.is-open { opacity: 1; }

/* 弹窗 Modal */
.modal-root { position: fixed; inset: 0; z-index: var(--z-modal); display: none; }
.modal-root.is-open { display: block; }
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}
.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: auto;
    border-radius: var(--r-xl);
    border: 1px solid var(--glass-border-strong);
    background: linear-gradient(165deg, rgba(19, 28, 48, .96), rgba(9, 14, 26, .98));
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08);
    transform: translateY(16px) scale(.97);
    opacity: 0;
    transition: transform var(--t-base) var(--ease-spring), opacity var(--t-base) var(--ease-out);
}
.modal-root.is-open .modal-dialog { transform: none; opacity: 1; }
.modal-dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(34, 211, 238, .5), rgba(139, 92, 246, .25) 40%, transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}
.modal-dialog--sm { max-width: 420px; }
.modal-dialog--lg { max-width: 760px; }
.modal-dialog--xl { max-width: 980px; }
.modal-dialog--full {
    max-width: none;
    width: 100%;
    height: 100%;
    border-radius: var(--r-lg);
}
.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 26px 0;
}
.modal-title {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: var(--ls-snug);
    line-height: 1.3;
}
.modal-subtitle { margin-top: 6px; color: var(--text-3); font-size: var(--fs-sm); }
.modal-body { padding: 20px 26px 26px; color: var(--text-2); line-height: 1.75; }
.modal-body > :first-child { margin-top: 0; }
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 26px 24px;
    flex-wrap: wrap;
}
.modal-footer.is-between { justify-content: space-between; }
.modal-close { flex: none; }

/* 二次确认 Confirm */
.confirm-dialog {
    display: flex;
    gap: 18px;
    padding: 26px;
    align-items: flex-start;
}
.confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    flex: none;
    border-radius: var(--r-md);
    background: var(--warning-soft);
    color: var(--warning);
    border: 1px solid rgba(251, 191, 36, .28);
}
.confirm-icon--danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(251, 113, 133, .3); }
.confirm-icon--info { background: var(--info-soft); color: var(--info); border-color: rgba(56, 189, 248, .3); }
.confirm-icon svg { width: 24px; height: 24px; }
.confirm-body { flex: 1; min-width: 0; }
.confirm-title { font-size: var(--fs-lg); font-weight: 650; color: var(--text); }
.confirm-text { margin-top: 8px; color: var(--text-2); font-size: var(--fs-base); line-height: 1.7; }

/* Toast */
.toast-root {
    position: fixed;
    top: 22px;
    left: 50%;
    translate: -50% 0;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(92vw, 420px);
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--r-md);
    border: 1px solid var(--glass-border-strong);
    background: rgba(13, 20, 36, .92);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .07);
    color: var(--text);
    font-size: var(--fs-base);
    pointer-events: auto;
    animation: toast-in .34s var(--ease-spring) both;
}
.toast.is-leaving { animation: toast-out .24s var(--ease-out) both; }
.toast-icon { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--cyan); }
.toast-icon svg { width: 20px; height: 20px; }
.toast-content { flex: 1; min-width: 0; line-height: 1.5; }
.toast-title { font-weight: 650; }
.toast-msg { color: var(--text-2); font-size: var(--fs-sm); margin-top: 2px; }
.toast-close { flex: none; color: var(--text-3); margin: -4px -6px 0 0; }
.toast--success { border-color: rgba(52, 211, 153, .3); }
.toast--success .toast-icon { color: var(--emerald); }
.toast--error { border-color: rgba(251, 113, 133, .32); }
.toast--error .toast-icon { color: var(--danger); }
.toast--warning { border-color: rgba(251, 191, 36, .3); }
.toast--warning .toast-icon { color: var(--warning); }
.toast--info .toast-icon { color: var(--info); }
.toast-progress {
    position: absolute;
    left: 0; bottom: 0;
    height: 2px;
    width: 100%;
    background: var(--grad-brand);
    opacity: .55;
    transform-origin: left;
    animation: toast-progress linear both;
    animation-duration: var(--toast-duration, 3000ms);
    border-radius: 0 0 var(--r-md) var(--r-md);
}

/* Dropdown */
.dropdown { position: relative; display: inline-flex; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: var(--z-dropdown);
    min-width: 190px;
    padding: 8px;
    border-radius: var(--r-md);
    border: 1px solid var(--glass-border-strong);
    background: rgba(13, 20, 36, .96);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 26px 60px -20px rgba(0, 0, 0, .8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), visibility var(--t-fast);
}
.dropdown.is-open .dropdown-menu, .dropdown-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.dropdown-menu--left { right: auto; left: 0; }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--r-xs);
    font-size: var(--fs-sm);
    color: var(--text-2);
    text-align: left;
    transition: background var(--t-fast), color var(--t-fast);
}
.dropdown-item:hover { background: var(--bg-hover); color: var(--text); }
.dropdown-item svg { width: 16px; height: 16px; color: var(--text-3); }
.dropdown-item--danger { color: var(--danger); }
.dropdown-item--danger:hover { background: var(--danger-soft); color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--line); margin: 6px 4px; }
.dropdown-header {
    padding: 8px 12px 6px;
    font-size: var(--fs-xs);
    color: var(--text-3);
    letter-spacing: .04em;
}

/* Tooltip */
.tooltip {
    position: absolute;
    z-index: var(--z-tooltip, 400);
    padding: 6px 10px;
    border-radius: var(--r-xs);
    background: rgba(18, 26, 44, .98);
    border: 1px solid var(--line-2);
    color: var(--text);
    font-size: var(--fs-xs);
    white-space: nowrap;
    box-shadow: var(--shadow-2);
    opacity: 0;
    transition: opacity var(--t-fast);
    pointer-events: none;
}
.tooltip.is-open { opacity: 1; }

/* --------------------------------------------------------------------------
   13. 数据展示
   -------------------------------------------------------------------------- */
/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: var(--space-10);
}
.pagination ul { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-item { display: inline-flex; }
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .025);
    color: var(--text-2);
    font-size: var(--fs-sm);
    font-weight: 500;
    transition: all var(--t-fast) var(--ease-out);
}
.page-link:hover { color: var(--text); border-color: var(--line-3); background: var(--bg-hover); }
.page-link svg { width: 16px; height: 16px; }
.page-item.is-active .page-link, .page-link.is-active {
    background: var(--grad-cta);
    border-color: transparent;
    color: var(--text-inverse);
    font-weight: 700;
    box-shadow: 0 8px 24px -8px rgba(34, 211, 238, .6);
}
.page-item.is-disabled .page-link, .page-link.is-disabled {
    opacity: .38;
    pointer-events: none;
}
.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 38px;
    color: var(--text-4);
    letter-spacing: .1em;
}
.page-total { color: var(--text-3); font-size: var(--fs-sm); margin: 0 8px; }

/* 面包屑 */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: var(--fs-sm);
    color: var(--text-3);
}
.breadcrumb-item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--text-4);
    font-size: var(--fs-xs);
}
.breadcrumb-item a { color: var(--text-3); }
.breadcrumb-item a:hover { color: var(--cyan-bright); }
.breadcrumb-item.is-active { color: var(--text); font-weight: 500; }
.breadcrumb-item svg { width: 14px; height: 14px; }

/* 空状态 */
.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: clamp(40px, 7vw, 88px) 24px;
    text-align: center;
}
.empty-media {
    width: min(200px, 46vw);
    aspect-ratio: 1;
    border-radius: var(--r-xl);
    overflow: hidden;
    opacity: .9;
    filter: drop-shadow(0 20px 40px rgba(34, 211, 238, .12));
}
.empty-media img { width: 100%; height: 100%; object-fit: contain; }
.empty-title { font-size: var(--fs-lg); font-weight: 650; color: var(--text); margin-top: 4px; }
.empty-desc { font-size: var(--fs-base); color: var(--text-3); max-width: 44ch; line-height: 1.7; }
.empty-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.empty--sm { padding: 32px 16px; }
.empty--sm .empty-media { width: 120px; }
.empty--sm .empty-title { font-size: var(--fs-base); }

/* 骨架屏 */
.skeleton {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-xs);
    background: rgba(255, 255, 255, .055);
}
.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .09), transparent);
    animation: skeleton-sweep 1.5s var(--ease-in-out) infinite;
}
.skeleton-text { height: 14px; margin-block: 7px; }
.skeleton-text.w-75 { width: 75%; }
.skeleton-text.w-50 { width: 50%; }
.skeleton-title { height: 24px; width: 56%; margin-bottom: 14px; }
.skeleton-avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.skeleton-thumb { width: 72px; height: 72px; border-radius: var(--r-sm); flex: none; }
.skeleton-block { height: 180px; border-radius: var(--r-md); }
.skeleton-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; }

/* Tabs */
.tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 5px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    width: fit-content;
    max-width: 100%;
}
.tab-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--r-pill);
    color: var(--text-3);
    font-size: var(--fs-sm);
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--t-fast) var(--ease-out);
}
.tab-item:hover { color: var(--text); background: var(--bg-hover); }
.tab-item.is-active {
    background: var(--grad-cta);
    color: var(--text-inverse);
    font-weight: 650;
    box-shadow: 0 8px 22px -10px rgba(34, 211, 238, .7);
}
.tabs--line {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 0;
    background: transparent;
    gap: var(--space-2);
    width: 100%;
}
.tabs--line .tab-item { border-radius: 0; padding: 12px 4px; background: transparent; position: relative; }
.tabs--line .tab-item.is-active {
    background: transparent;
    color: var(--text);
    box-shadow: none;
}
.tabs--line .tab-item.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-brand);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade-in var(--t-base) var(--ease-out) both; }

/* 步骤条 */
.steps { display: flex; align-items: flex-start; gap: 0; }
.step {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    min-width: 0;
}
.step::before {
    content: "";
    position: absolute;
    top: 17px;
    left: calc(50% + 24px);
    right: calc(-50% + 24px);
    height: 2px;
    background: var(--line-2);
    border-radius: 2px;
}
.step:last-child::before { display: none; }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .04);
    color: var(--text-3);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-sm);
    z-index: 1;
    transition: all var(--t-base) var(--ease-out);
}
.step-title { font-size: var(--fs-sm); color: var(--text-3); font-weight: 500; }
.step-desc { font-size: var(--fs-xs); color: var(--text-4); }
.step.is-active .step-num {
    background: var(--grad-cta);
    border-color: transparent;
    color: var(--text-inverse);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .12), 0 8px 22px -8px rgba(34, 211, 238, .6);
}
.step.is-active .step-title { color: var(--text); }
.step.is-done .step-num { border-color: var(--accent-line); color: var(--cyan-bright); background: var(--accent-soft); }
.step.is-done::before { background: var(--grad-cta); }

/* --------------------------------------------------------------------------
   14. 金额与数字
   -------------------------------------------------------------------------- */
.num, .money {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
    letter-spacing: .01em;
}
.money {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.money-symbol { font-size: .62em; font-weight: 600; margin-right: 1px; opacity: .9; }
.money-int { font-size: 1em; }
.money-dec { font-size: .58em; font-weight: 600; opacity: .8; }
.money--lg { font-size: var(--fs-3xl); }
.money--xl { font-size: var(--fs-4xl); }
.money--sm { font-size: var(--fs-base); }
.money--brand { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.money-old {
    color: var(--text-4);
    text-decoration: line-through;
    font-size: .72em;
    font-weight: 400;
    margin-left: 8px;
}
.amount-pos { color: var(--emerald); }
.amount-neg { color: var(--danger); }

/* 进度条 */
.progress {
    height: 6px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    border-radius: inherit;
    background: var(--grad-brand);
    transition: width var(--t-slow) var(--ease-out);
}
.progress--lg { height: 10px; }

/* 分割线带文字 */
.divider-text {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-4);
    font-size: var(--fs-xs);
}
.divider-text::before, .divider-text::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* 头像 */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--line-2);
    background: var(--bg-2);
    flex: none;
    font-weight: 600;
    color: var(--text-2);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 30px; height: 30px; font-size: var(--fs-xs); }
.avatar--lg { width: 56px; height: 56px; }
.avatar--xl { width: 84px; height: 84px; }
.avatar--brand { background: var(--grad-brand); color: #fff; border-color: transparent; }

/* --------------------------------------------------------------------------
   15. 工具类 Utilities
   -------------------------------------------------------------------------- */
/* flex */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-none { flex: none; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* grid */
.grid { display: grid; gap: var(--gap, var(--space-6)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-auto-260 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-auto-320 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-auto-380 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }

/* spacing（外距/内距 1-8） */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); } .mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); } .mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-1); } .mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); } .mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); } .mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); } .mb-10 { margin-bottom: var(--space-10); }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-inline: auto; }
.py-2 { padding-block: var(--space-2); } .py-3 { padding-block: var(--space-3); }
.py-4 { padding-block: var(--space-4); } .py-6 { padding-block: var(--space-6); }
.py-8 { padding-block: var(--space-8); } .py-10 { padding-block: var(--space-10); }
.px-2 { padding-inline: var(--space-2); } .px-3 { padding-inline: var(--space-3); }
.px-4 { padding-inline: var(--space-4); } .px-6 { padding-inline: var(--space-6); }

/* 文本 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-3); }
.text-secondary { color: var(--text-2); }
.text-brand { color: var(--cyan-bright); }
.text-violet { color: var(--violet-bright); }
.text-emerald { color: var(--emerald); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-white { color: #fff; }
.text-xs { font-size: var(--fs-xs); }
.text-sm { font-size: var(--fs-sm); }
.text-base { font-size: var(--fs-base); }
.text-lg { font-size: var(--fs-lg); }
.text-xl { font-size: var(--fs-xl); }
.text-2xl { font-size: var(--fs-2xl); }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; letter-spacing: var(--ls-wide); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2, .line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }

/* 尺寸/显示 */
.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.rounded-md { border-radius: var(--r-md); }
.rounded-lg { border-radius: var(--r-lg); }
.rounded-xl { border-radius: var(--r-xl); }
.rounded-full { border-radius: var(--r-pill); }
.border { border: 1px solid var(--line); }
.z-10 { z-index: 10; }
.hide-mobile { }
.hide-desktop { display: none !important; }
.block { display: block; }

/* 图片 */
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.img-contain { width: 100%; height: 100%; object-fit: contain; }
.img-rounded { border-radius: var(--r-lg); }
.img-ratio-16-9 { aspect-ratio: 16 / 9; }
.img-ratio-4-3 { aspect-ratio: 4 / 3; }
.img-ratio-1-1 { aspect-ratio: 1; }
.lazy-img { opacity: 0; transition: opacity .6s var(--ease-out); }
.lazy-img.is-loaded { opacity: 1; }

/* 背景 */
.bg-1 { background-color: var(--bg-1); }
.bg-2 { background-color: var(--bg-2); }
.bg-glass { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.bg-grid-overlay { position: relative; }

/* --------------------------------------------------------------------------
   16. 动效 Motion
   -------------------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
[data-reveal="left"] { transform: translate3d(-32px, 0, 0); }
[data-reveal="right"] { transform: translate3d(32px, 0, 0); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}
.fade-up { animation: fade-up .8s var(--ease-out) both; }
.fade-in { animation: fade-in .6s var(--ease-out) both; }
.hover-lift { transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out); }
.hover-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); }
.hover-glow { transition: box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out); }
.hover-glow:hover { box-shadow: var(--shadow-glow); border-color: var(--line-brand); }
.hover-scale { transition: transform var(--t-base) var(--ease-out); }
.hover-scale:hover { transform: scale(1.03); }
.float-anim { animation: float-y 6s var(--ease-in-out) infinite; }
.pulse-glow { animation: pulse-glow 3s var(--ease-in-out) infinite; }
.spin-slow { animation: spin 12s linear infinite; }
.shimmer-text {
    background: linear-gradient(100deg, var(--text-2) 20%, #fff 40%, var(--text-2) 60%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3.5s linear infinite;
}

@keyframes fade-up {
    from { opacity: 0; transform: translate3d(0, 26px, 0); }
    to { opacity: 1; transform: none; }
}
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
@keyframes pulse-glow {
    0%, 100% { opacity: .55; box-shadow: 0 0 10px currentColor; }
    50% { opacity: 1; box-shadow: 0 0 22px currentColor; }
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes skeleton-sweep {
    100% { transform: translateX(100%); }
}
@keyframes aurora-drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(4%, -3%, 0) scale(1.08); }
    100% { transform: translate3d(-3%, 4%, 0) scale(.96); }
}
@keyframes toast-in {
    from { opacity: 0; transform: translateY(-14px) scale(.96); }
    to { opacity: 1; transform: none; }
}
@keyframes toast-out {
    from { opacity: 1; transform: none; }
    to { opacity: 0; transform: translateY(-10px) scale(.97); }
}
@keyframes toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* 滚动跑马灯 */
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: var(--space-10); flex: none; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* 入场动效不再用 CSS 全局隐藏（避免 JS 异常/缓存不一致时整段内容不可见）。
   初始隐藏只由 official.js 对“首屏以下”的元素设置内联样式，并带滚动/定时兜底强制显现。 */

/* --------------------------------------------------------------------------
   17. 响应式与可访问性
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    :root {
        --header-h: 64px;
        --header-h-scrolled: 58px;
    }
    .hide-desktop { display: initial; }
    .hide-mobile { display: none; }
    .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    :root {
        --fs-2xl: 1.5rem;
        --fs-3xl: 1.9rem;
        --fs-4xl: 2.3rem;
        --section-y: clamp(52px, 11vw, 88px);
    }
    .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: minmax(0, 1fr); }
    .form-row { grid-template-columns: minmax(0, 1fr); }
    .card-head, .card-body, .card-foot { padding-inline: 18px; }
    .modal { padding: 14px; align-items: flex-end; }
    .modal-dialog { border-radius: var(--r-xl) var(--r-xl) var(--r-lg) var(--r-lg); max-height: 92dvh; overflow-y: auto; }
    .modal-footer { padding-inline: 20px; }
    .modal-header { padding-inline: 20px; }
    .modal-body { padding-inline: 20px; }
    .toast-root { top: 12px; width: calc(100vw - 24px); }
    .btn-group { gap: 8px; }
    .steps { flex-direction: column; gap: 18px; align-items: stretch; }
    .step { flex-direction: row; align-items: center; text-align: left; gap: 14px; }
    .step::before { display: none; }
    .pagination { gap: 4px; }
    .page-link { min-width: 34px; height: 34px; padding: 0 9px; }
}
@media (max-width: 480px) {
    .btn-xl { --btn-h: 52px; --btn-px: 24px; font-size: var(--fs-base); }
    .btn-lg { --btn-h: 48px; --btn-px: 22px; font-size: var(--fs-base); }
    .card-content { padding: 16px 16px 20px; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal], [data-gsap] { opacity: 1 !important; transform: none !important; }
    .aurora { animation: none; }
}

/* 打印 */
@media print {
    body { background: #fff; color: #000; }
    .site-header, .site-footer, .ai-chat-fab, .no-print { display: none !important; }
    .card, .table-wrap { border-color: #ddd; box-shadow: none; background: #fff; }
}




/* modal stacking: the blur mask must stay behind the dialog */
.modal-root .overlay-mask {
    z-index: 0 !important;
}
.modal-root .modal-dialog {
    z-index: 1;
}
