/* =============================================================================
   星链 API · 设计系统
   -----------------------------------------------------------------------------
   0. 设计 tokens（色彩 / 字体 / 间距 / 圆角 / 阴影 / 动效）
   1. 基础与排版
   2. 背景氛围
   3. 通用组件（按钮 / 标签 / 卡片 / 表单 / 表格 / 代码块）
   4. 导航与页脚
   5. 首页
   6. 接口广场与详情
   7. 定价
   8. 文档
   9. 登录注册
   10. 控制台
   11. 弹窗 / Toast / 空状态 / 错误页
   12. 响应式（1440 / 1024 / 768 / 375）
   13. 动效偏好与可访问性
   ========================================================================== */

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

    /* 背景与表面 */
    --bg-0: #070a14;
    --bg-1: #0b1020;
    --bg-2: #0f1528;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-2: rgba(255, 255, 255, 0.075);
    --surface-3: rgba(255, 255, 255, 0.11);
    --surface-soft: rgba(255, 255, 255, 0.025);
    --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
    --glass-strong: linear-gradient(180deg, rgba(20, 27, 50, 0.92), rgba(12, 17, 34, 0.96));
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.17);

    /* 文本 */
    --text: #e9edfa;
    --text-2: #c3cbe4;
    --muted: #909cbb;
    --muted-2: #6c7897;

    /* 品牌色 */
    --primary: #6366f1;
    --primary-2: #818cf8;
    --accent: #22d3ee;
    --violet: #a78bfa;
    --gradient: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
    --gradient-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(34, 211, 238, 0.12));

    /* 语义色 */
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --info: #38bdf8;

    /* 分类色调 */
    --tone-indigo: #818cf8;
    --tone-cyan: #22d3ee;
    --tone-violet: #c084fc;
    --tone-amber: #fbbf24;

    /* 字体 */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", ui-monospace, Menlo, Consolas,
        "Liberation Mono", monospace;

    /* 字号 */
    --fs-xs: 12px;
    --fs-sm: 13px;
    --fs-base: 15px;
    --fs-md: 16px;
    --fs-lg: 18px;
    --fs-xl: 22px;
    --fs-2xl: 28px;
    --fs-3xl: 36px;

    /* 间距（4px 基准） */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-7: 32px;
    --sp-8: 40px;
    --sp-9: 48px;
    --sp-10: 64px;
    --sp-11: 80px;
    --sp-12: 96px;

    /* 圆角 */
    --radius-xs: 8px;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 999px;

    /* 阴影与光晕 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 16px 40px -20px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 32px 80px -30px rgba(0, 0, 0, 0.78);
    --glow-primary: 0 18px 50px -18px rgba(99, 102, 241, 0.65);
    --focus-ring: 0 0 0 3px rgba(99, 102, 241, 0.35);

    /* 动效 */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast: 0.16s;
    --dur: 0.24s;
    --dur-slow: 0.5s;

    /* 布局 */
    --container: 1200px;
    --nav-h: 68px;
    --header-bg: rgba(7, 10, 20, 0.72);
    --code-bg: #070c18;
    --code-border: rgba(255, 255, 255, 0.08);
    --code-text: #dbe2f5;
    --chart-grid: rgba(255, 255, 255, 0.07);
}

[data-theme="light"] {
    color-scheme: light;

    --bg-0: #f4f6fd;
    --bg-1: #fafbff;
    --bg-2: #ffffff;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-2: rgba(15, 23, 42, 0.045);
    --surface-3: rgba(15, 23, 42, 0.08);
    --surface-soft: rgba(255, 255, 255, 0.5);
    --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.66));
    --glass-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94));
    --border: rgba(15, 23, 42, 0.09);
    --border-strong: rgba(15, 23, 42, 0.18);

    --text: #0f172a;
    --text-2: #273351;
    --muted: #5a6784;
    --muted-2: #7d89a3;

    --primary: #4f46e5;
    --primary-2: #6366f1;
    --accent: #0891b2;
    --violet: #7c3aed;
    --gradient: linear-gradient(135deg, #4f46e5 0%, #0891b2 100%);

    --success: #059669;
    --warning: #b45309;
    --danger: #dc2626;
    --info: #0284c7;

    --tone-indigo: #4f46e5;
    --tone-cyan: #0891b2;
    --tone-violet: #7c3aed;
    --tone-amber: #b45309;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 16px 40px -24px rgba(15, 23, 42, 0.25);
    --shadow-lg: 0 32px 80px -36px rgba(15, 23, 42, 0.35);
    --glow-primary: 0 18px 50px -20px rgba(79, 70, 229, 0.45);
    --focus-ring: 0 0 0 3px rgba(79, 70, 229, 0.25);

    --header-bg: rgba(250, 251, 255, 0.78);
    --chart-grid: rgba(15, 23, 42, 0.08);
}

/* ---------------------------------------------------------------------------
   1. 基础与排版
   --------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-0);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    color: var(--text);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

code,
kbd,
pre {
    font-family: var(--font-mono);
}

::selection {
    background: rgba(99, 102, 241, 0.4);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

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

.site-main {
    min-height: 60vh;
}

.muted {
    color: var(--muted);
}

.mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.icon {
    flex: none;
}

.skip-link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    transition: top var(--dur) var(--ease);
}

.skip-link:focus {
    top: 16px;
}

/* ---------------------------------------------------------------------------
   2. 背景氛围
   --------------------------------------------------------------------------- */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(900px 620px at 12% -8%, rgba(99, 102, 241, 0.22), transparent 62%),
        radial-gradient(820px 560px at 92% -4%, rgba(34, 211, 238, 0.14), transparent 60%),
        radial-gradient(720px 620px at 50% 108%, rgba(139, 92, 246, 0.14), transparent 62%);
}

[data-theme="light"] body::before {
    background:
        radial-gradient(900px 620px at 12% -8%, rgba(99, 102, 241, 0.14), transparent 62%),
        radial-gradient(820px 560px at 92% -4%, rgba(34, 211, 238, 0.12), transparent 60%),
        radial-gradient(720px 620px at 50% 108%, rgba(139, 92, 246, 0.08), transparent 62%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.55;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 72%);
}

[data-theme="light"] body::after {
    opacity: 0.8;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
}

/* ---------------------------------------------------------------------------
   3. 通用组件
   --------------------------------------------------------------------------- */

/* --- 按钮 --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
        border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease),
        filter var(--dur) var(--ease);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 22px 55px -18px rgba(99, 102, 241, 0.8);
}

.btn-ghost {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-ghost:hover {
    background: var(--surface-2);
    border-color: var(--border-strong);
}

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

.btn-outline:hover {
    background: var(--surface);
    border-color: var(--primary-2);
}

.btn-on-dark {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-on-dark:hover {
    background: rgba(255, 255, 255, 0.22);
}

.btn-danger-ghost {
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.24);
    color: var(--danger);
}

.btn-danger-ghost:hover {
    background: rgba(248, 113, 113, 0.16);
}

.btn-sm {
    height: 36px;
    padding: 0 14px;
    font-size: 13.5px;
    border-radius: var(--radius-xs);
}

.btn-xs {
    height: 30px;
    padding: 0 10px;
    font-size: 12.5px;
    border-radius: var(--radius-xs);
}

.btn-lg {
    height: 52px;
    padding: 0 26px;
    font-size: 16px;
    border-radius: var(--radius);
}

.btn-block {
    width: 100%;
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
}

.btn-submit {
    position: relative;
    margin-top: 6px;
}

.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn.is-loading .btn-spinner {
    display: inline-block;
}

.btn.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
        border-color var(--dur) var(--ease);
}

.icon-btn:hover {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--border);
}

/* --- 徽标 / 标签 --- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 26px;
    padding: 0 10px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.chip-xs {
    height: 22px;
    padding: 0 8px;
    font-size: 11px;
}

.chip-soft {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--muted);
}

.chip-free {
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.3);
    color: var(--success);
}

.chip-warning {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.3);
    color: var(--warning);
}

.chip-muted {
    background: var(--surface-2);
    color: var(--muted);
}

.tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border-radius: 7px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 11.5px;
    white-space: nowrap;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    color: var(--primary-2);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.grad-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--surface);
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 500;
    backdrop-filter: blur(12px);
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.pill:hover {
    border-color: var(--primary-2);
    background: var(--surface-2);
}

.pill-glow {
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.16), 0 12px 40px -18px rgba(99, 102, 241, 0.6);
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-2);
    font-size: 13.5px;
    font-weight: 600;
    transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}

.link-more:hover {
    gap: 10px;
    color: var(--accent);
}

/* --- 面板 / 卡片 --- */
.panel {
    position: relative;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--glass);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: var(--shadow-sm);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 4px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.panel-title .icon {
    color: var(--primary-2);
}

.panel-sub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.panel-head .panel-title {
    margin-bottom: 0;
}

/* --- 章节 --- */
.section {
    position: relative;
    padding: 88px 0;
}

.section-tight {
    padding: 48px 0 72px;
}

.section-alt {
    background: linear-gradient(180deg, transparent, var(--surface-soft) 12%, var(--surface-soft) 88%, transparent);
    border-block: 1px solid var(--border);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 40px;
}

.section-head h2 {
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.02em;
}

.section-head p {
    max-width: 560px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 15px;
}

.section-head-center {
    display: block;
    max-width: 720px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-head-center .eyebrow {
    justify-content: center;
}

.section-head-center p {
    margin-inline: auto;
}

/* --- 表单 --- */
.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
}

.field-control {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 14px;
    display: grid;
    place-items: center;
    color: var(--muted-2);
    pointer-events: none;
}

.field-control input,
.field-control select {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
        background var(--dur) var(--ease);
}

.field-control input::placeholder {
    color: var(--muted-2);
}

.field-control input:hover {
    border-color: var(--border-strong);
}

.field-control input:focus {
    border-color: var(--primary);
    background: var(--surface-2);
    box-shadow: var(--focus-ring);
}

.field-action {
    position: absolute;
    right: 8px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
}

.field-action:hover {
    background: var(--surface-2);
    color: var(--text);
}

.field-action .icon-hide {
    display: none;
}

.field-action.is-on .icon-show {
    display: none;
}

.field-action.is-on .icon-hide {
    display: block;
}

.field-error {
    display: none;
    margin-top: 6px;
    color: var(--danger);
    font-size: 12.5px;
}

.field.has-error .field-error,
.field-error:not(:empty) {
    display: block;
}

.field.has-error .field-control input {
    border-color: rgba(248, 113, 113, 0.55);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.field-hint {
    margin-top: 6px;
    color: var(--muted-2);
    font-size: 12px;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.checkbox input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary);
}

.checkbox-block {
    display: flex;
    align-items: flex-start;
    margin: 2px 0 14px;
    line-height: 1.6;
}

.checkbox-block a,
.auth-link {
    color: var(--primary-2);
    font-weight: 500;
}

.checkbox-block a:hover,
.auth-link:hover {
    text-decoration: underline;
}

.field-error:not(:empty) {
    display: block;
}

.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.password-strength[hidden] {
    display: none !important;
}

.strength-bar {
    position: relative;
    flex: 1;
    height: 5px;
    border-radius: var(--radius-full);
    background: var(--surface-3);
    overflow: hidden;
}

.strength-bar i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: var(--danger);
    transition: width var(--dur) var(--ease), background var(--dur) var(--ease);
}

.strength-text {
    color: var(--muted);
    font-size: 11.5px;
    white-space: nowrap;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23909cbb' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px !important;
}

/* --- 数据表格 --- */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius);
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.data-table th,
.data-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.data-table thead th {
    padding-top: 0;
    padding-bottom: 11px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.data-table tbody tr {
    transition: background var(--dur-fast) var(--ease);
}

.data-table tbody tr:hover {
    background: var(--surface-soft);
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.data-table .is-highlight {
    background: rgba(99, 102, 241, 0.07);
}

.data-table th.is-highlight {
    color: var(--primary-2);
}

.table-link {
    color: var(--text-2);
    font-weight: 500;
}

.table-link:hover {
    color: var(--primary-2);
}

.table-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    color: var(--muted-2);
    font-size: 12px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 9px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.status-success {
    background: rgba(52, 211, 153, 0.11);
    color: var(--success);
}

.status-warning {
    background: rgba(251, 191, 36, 0.12);
    color: var(--warning);
}

.status-danger {
    background: rgba(248, 113, 113, 0.12);
    color: var(--danger);
}

.status-muted {
    background: var(--surface-2);
    color: var(--muted);
}

/* --- 代码块 --- */
.code-block,
.code-tabs,
.response-box {
    border: 1px solid var(--code-border);
    border-radius: var(--radius);
    background: var(--code-bg);
    overflow: hidden;
}

.code-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
}

.code-dots {
    display: inline-flex;
    gap: 5px;
}

.code-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.code-dots i:first-child {
    background: rgba(248, 113, 113, 0.65);
}

.code-dots i:nth-child(2) {
    background: rgba(251, 191, 36, 0.65);
}

.code-dots i:nth-child(3) {
    background: rgba(52, 211, 153, 0.6);
}

.code-title {
    color: rgba(219, 226, 245, 0.62);
    font-family: var(--font-mono);
    font-size: 11.5px;
}

.code-head .copy-btn {
    margin-left: auto;
}

.code {
    margin: 0;
    padding: 18px 20px;
    color: var(--code-text);
    font-size: 12.8px;
    line-height: 1.75;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.code code {
    font-size: inherit;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(219, 226, 245, 0.85);
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
        color var(--dur) var(--ease);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.copy-btn.is-copied {
    background: rgba(52, 211, 153, 0.16);
    border-color: rgba(52, 211, 153, 0.4);
    color: #6ee7b7;
}

.copy-btn-floating {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    backdrop-filter: blur(8px);
}

.tok-key { color: #8ab4ff; }
.tok-str { color: #9ce8c4; }
.tok-num { color: #f5c777; }
.tok-lit { color: #c792ea; }

/* --- Toast --- */
.toasts {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--glass-strong);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    pointer-events: auto;
    animation: toast-in 0.32s var(--ease-spring);
}

.toast-icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    flex: none;
}

.toast-success .toast-icon {
    background: rgba(52, 211, 153, 0.14);
    color: var(--success);
}

.toast-danger .toast-icon {
    background: rgba(248, 113, 113, 0.14);
    color: var(--danger);
}

.toast-info .toast-icon {
    background: rgba(56, 189, 248, 0.14);
    color: var(--info);
}

.toast-text {
    flex: 1;
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.55;
}

.toast-close {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    flex: none;
}

.toast-close:hover {
    background: var(--surface-2);
    color: var(--text);
}

.toast.is-leaving {
    animation: toast-out 0.22s var(--ease) forwards;
}

/* --- 演示数据提示条 --- */
.demo-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(251, 191, 36, 0.1);
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
    color: #fcd34d;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

[data-theme="light"] .demo-strip {
    color: #92400e;
    background: rgba(251, 191, 36, 0.14);
}

.demo-strip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s var(--ease) infinite;
    flex: none;
}

.demo-strip-sep {
    opacity: 0.5;
}

.demo-strip-text {
    color: inherit;
    opacity: 0.8;
}

/* ---------------------------------------------------------------------------
   4. 导航与页脚
   --------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 14px 40px -30px rgba(0, 0, 0, 0.8);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: var(--nav-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    filter: drop-shadow(0 6px 16px rgba(99, 102, 241, 0.35));
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-name {
    color: var(--text);
    font-size: 16.5px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.brand-sub {
    color: var(--muted-2);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 13px;
    border-radius: var(--radius-xs);
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-link:hover {
    color: var(--text);
    background: var(--surface-2);
}

.nav-link.is-active {
    color: var(--text);
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-color: var(--border);
    background: var(--surface);
}

.theme-icon {
    display: grid;
    place-items: center;
}

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

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

.user-menu {
    position: relative;
}

.user-menu summary {
    list-style: none;
}

.user-menu summary::-webkit-details-marker {
    display: none;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 10px 0 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--surface);
    cursor: pointer;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.user-chip:hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.avatar {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex: none;
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-caret {
    color: var(--muted-2);
    transition: transform var(--dur) var(--ease);
}

.user-menu[open] .user-caret {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 232px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--glass-strong);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(24px);
    animation: dropdown-in 0.2s var(--ease);
}

.user-dropdown-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 10px 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

.user-dropdown-meta strong {
    color: var(--text);
    font-size: 13.5px;
}

.user-dropdown-meta span {
    color: var(--muted);
    font-size: 11.5px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown a,
.user-dropdown button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-2);
    font-size: 13px;
    text-align: left;
    transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: var(--surface-2);
    color: var(--text);
}

.user-dropdown .dropdown-logout {
    color: var(--danger);
}

.nav-toggle {
    display: none;
    border-color: var(--border);
    background: var(--surface);
}

.nav-toggle-close {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-close {
    display: block;
}

.mobile-nav {
    border-top: 1px solid var(--border);
    background: var(--header-bg);
    backdrop-filter: blur(24px);
    animation: mobile-nav-in 0.24s var(--ease);
}

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 12px;
    padding-bottom: 20px;
}

.mobile-nav-inner .nav-link {
    height: 46px;
    justify-content: flex-start;
    padding: 0 12px;
    font-size: 15px;
}

.mobile-nav-inner .nav-link.is-active::after {
    display: none;
}

.mobile-nav-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.mobile-nav-actions .btn {
    flex: 1;
}

/* --- 页脚 --- */
.site-footer {
    position: relative;
    margin-top: 40px;
    padding-top: 64px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, var(--surface-soft));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-brand .brand {
    margin-bottom: 16px;
}

.footer-slogan {
    max-width: 320px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 12px;
    border: 1px solid rgba(52, 211, 153, 0.22);
    border-radius: var(--radius-full);
    background: rgba(52, 211, 153, 0.07);
    color: var(--success);
    font-size: 11.5px;
    font-weight: 500;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16);
    animation: pulse 2.4s var(--ease) infinite;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-col h4 {
    margin-bottom: 4px;
    color: var(--text);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.footer-col a {
    color: var(--muted);
    font-size: 13px;
    transition: color var(--dur) var(--ease);
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    padding-bottom: 28px;
    border-top: 1px solid var(--border);
}

.footer-legal {
    color: var(--muted-2);
    font-size: 11.5px;
    line-height: 1.7;
}

.footer-legal-sep {
    opacity: 0.6;
}

.footer-made {
    color: var(--muted-2);
    font-size: 11.5px;
    white-space: nowrap;
}

.footer-heart {
    color: var(--danger);
}

/* ---------------------------------------------------------------------------
   5. 首页
   --------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 84px 0 72px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.hero-grid {
    position: absolute;
    inset: -10% 0 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 55% 40%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 70% at 55% 40%, #000 0%, transparent 75%);
}

[data-theme="light"] .hero-grid {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
}

.hero-orb-a {
    top: -140px;
    left: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.55), transparent 70%);
}

.hero-orb-b {
    top: 40px;
    right: -120px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.4), transparent 70%);
}

.hero-orb-c {
    bottom: -220px;
    left: 38%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.32), transparent 70%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 64px;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-title {
    margin: 20px 0 0;
    font-size: clamp(40px, 5vw, 62px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.hero-sub {
    max-width: 540px;
    margin: 22px 0 30px;
    color: var(--muted);
    font-size: 16.5px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 28px;
}

.hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12.5px;
}

.hero-trust .icon {
    color: var(--success);
}

.hero-visual {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.hero-terminal {
    position: relative;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99, 102, 241, 0.14);
    transform: perspective(1200px) rotateY(-3deg) rotateX(1.5deg);
    transition: transform var(--dur-slow) var(--ease);
}

.hero-terminal:hover {
    transform: perspective(1200px) rotateY(0) rotateX(0);
}

.hero-terminal .code {
    min-height: 112px;
    font-size: 12px;
    line-height: 1.8;
}

.terminal-response {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(52, 211, 153, 0.03);
    font-family: var(--font-mono);
    font-size: 11px;
}

.terminal-status {
    color: #6ee7b7;
    font-weight: 600;
}

.terminal-latency {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(219, 226, 245, 0.55);
}

.terminal-json {
    margin-left: auto;
    color: rgba(219, 226, 245, 0.42);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--glass-strong);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
    animation: float 6s var(--ease) infinite;
}

.hero-float-a {
    top: -46px;
    left: 6px;
}

.hero-float-b {
    right: -10px;
    bottom: -54px;
    animation-delay: -3s;
}

.hero-visual {
    padding: 14px 0;
}

.hero-float-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(99, 102, 241, 0.14);
    color: var(--primary-2);
}

.hero-float-b .hero-float-icon {
    background: rgba(34, 211, 238, 0.12);
    color: var(--accent);
}

.hero-float div {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.hero-float span {
    color: var(--muted);
    font-size: 10.5px;
}

.hero-float strong {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
}

.hero-float small {
    color: var(--muted);
    font-size: 10px;
}

/* --- 数据条 --- */
.stats-band {
    position: relative;
    padding: 0 0 8px;
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--glass);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.stat {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px 28px;
    text-align: left;
}

.stat + .stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 1px;
    background: var(--border);
}

.stat-value {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: clamp(24px, 2.4vw, 30px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, var(--text) 30%, var(--primary-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-suffix {
    font-size: 0.6em;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

/* --- 分类 --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--glass);
    backdrop-filter: blur(16px);
    overflow: hidden;
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
}

.category-card::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -30%;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 70%);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.38);
    box-shadow: var(--shadow-md);
}

.category-card:hover::after {
    opacity: 1;
}

.category-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--gradient-soft);
    color: var(--primary-2);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.category-name {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}

.category-name .icon {
    color: var(--muted-2);
    transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.category-card:hover .category-name .icon {
    transform: translateX(3px);
    color: var(--primary-2);
}

.category-desc {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
}

.category-count {
    margin-top: auto;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 11.5px;
}

/* --- 接口卡片 --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.product-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--glass);
    backdrop-filter: blur(16px);
    overflow: hidden;
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.65), rgba(34, 211, 238, 0.5), transparent);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.36);
    box-shadow: var(--shadow-lg);
}

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

.product-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--tone-bg, var(--surface-2));
    color: var(--tone, var(--primary-2));
    border: 1px solid var(--border);
    flex: none;
}

.tone-indigo { --tone: var(--tone-indigo); --tone-bg: rgba(99, 102, 241, 0.14); }
.tone-cyan { --tone: var(--tone-cyan); --tone-bg: rgba(34, 211, 238, 0.12); }
.tone-violet { --tone: var(--tone-violet); --tone-bg: rgba(168, 85, 247, 0.14); }
.tone-amber { --tone: var(--tone-amber); --tone-bg: rgba(251, 191, 36, 0.12); }

[data-theme="light"] .tone-indigo { --tone-bg: rgba(79, 70, 229, 0.09); }
[data-theme="light"] .tone-cyan { --tone-bg: rgba(8, 145, 178, 0.09); }
[data-theme="light"] .tone-violet { --tone-bg: rgba(124, 58, 237, 0.09); }
[data-theme="light"] .tone-amber { --tone-bg: rgba(180, 83, 9, 0.09); }

.product-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
}

.product-summary {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.65;
    min-height: 41px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.product-card-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.product-price strong {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 700;
}

.product-unit {
    color: var(--muted-2);
    font-size: 11px;
}

.product-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted-2);
    font-size: 11.5px;
}

.latency {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: var(--font-mono);
}

.latency .icon {
    color: var(--success);
}

.card-arrow {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--muted);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
        transform var(--dur) var(--ease);
}

.product-card:hover .card-arrow {
    background: var(--gradient);
    color: #fff;
    transform: translateX(2px);
}

/* --- 特性 --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--glass);
    overflow: hidden;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--tone-bg, var(--surface-2));
    color: var(--tone, var(--primary-2));
    border: 1px solid var(--border);
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
}

.feature-card p {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.7;
}

.feature-meta {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 11px;
}

/* --- 价格卡 --- */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: stretch;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--glass);
    overflow: hidden;
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
}

.plan-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.plan-card.is-recommended {
    border-color: rgba(99, 102, 241, 0.5);
    background:
        linear-gradient(180deg, rgba(99, 102, 241, 0.16), rgba(34, 211, 238, 0.04) 38%, transparent),
        var(--glass);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.22), 0 30px 80px -46px rgba(99, 102, 241, 0.9);
}

.plan-ribbon {
    position: absolute;
    top: 0;
    right: 20px;
    padding: 5px 12px;
    border-radius: 0 0 9px 9px;
    background: var(--gradient);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 20px -8px rgba(99, 102, 241, 0.7);
}

.plan-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    color: var(--muted-2);
    font-size: 10.5px;
    font-weight: 600;
}

.plan-head h3 {
    font-size: 17px;
    font-weight: 700;
}

.plan-tagline {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin: 22px 0 2px;
    color: var(--text);
}

.plan-currency {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--muted);
}

.plan-amount {
    font-family: var(--font-mono);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.plan-period {
    color: var(--muted);
    font-size: 12px;
}

.plan-quota {
    color: var(--primary-2);
    font-size: 12.5px;
    font-weight: 600;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55;
}

.plan-features .icon {
    margin-top: 2px;
    color: var(--success);
}

.plan-card .btn {
    margin-top: auto;
}

.pricing-note {
    margin-top: 26px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.pricing-note a {
    color: var(--primary-2);
    font-weight: 600;
}

.pricing-note a:hover {
    text-decoration: underline;
}

/* --- FAQ --- */
.faq-wrap {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: start;
}

.faq-intro h2 {
    font-size: clamp(24px, 2.6vw, 32px);
    letter-spacing: -0.02em;
}

.faq-intro p {
    margin: 14px 0 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.faq-intro a {
    color: var(--primary-2);
}

.faq-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 19px 2px;
    color: var(--text);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--primary-2);
}

.faq-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--muted);
    flex: none;
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
        color var(--dur) var(--ease);
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
}

.faq-body {
    padding: 0 2px 20px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.8;
    animation: fade-in 0.28s var(--ease);
}

/* --- CTA --- */
.cta-section {
    padding-top: 32px;
    padding-bottom: 96px;
}

.cta-band {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 52px 56px;
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(120deg, rgba(99, 102, 241, 0.22), rgba(34, 211, 238, 0.1) 55%, rgba(139, 92, 246, 0.18)),
        var(--bg-1);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -60%;
    right: -5%;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 68%);
    filter: blur(40px);
    pointer-events: none;
}

.cta-copy {
    position: relative;
    z-index: 1;
}

.cta-copy h2 {
    max-width: 620px;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.02em;
}

.cta-copy p {
    max-width: 560px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
}

.cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    flex: none;
}

/* ---------------------------------------------------------------------------
   6. 通用页面骨架 / 接口列表 / 详情
   --------------------------------------------------------------------------- */
.page-hero {
    position: relative;
    padding: 40px 0 44px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface-soft), transparent);
}

.page-hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.page-hero-sub {
    max-width: 620px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 22px;
    color: var(--muted-2);
    font-size: 12px;
}

.breadcrumb a {
    color: var(--muted-2);
    transition: color var(--dur) var(--ease);
}

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

.breadcrumb span[aria-current="page"] {
    color: var(--text-2);
}

.page-hero-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.page-hero-metrics {
    display: flex;
    gap: 36px;
    padding-bottom: 6px;
}

.page-hero-metrics div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.page-hero-metrics strong {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
}

.page-hero-metrics span {
    color: var(--muted-2);
    font-size: 11px;
}

.search-bar {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    max-width: 780px;
}

.search-field {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.search-field-icon {
    position: absolute;
    left: 16px;
    display: grid;
    place-items: center;
    color: var(--muted-2);
    pointer-events: none;
}

.search-field input {
    width: 100%;
    height: 52px;
    padding: 0 44px 0 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: 14.5px;
    outline: none;
    backdrop-filter: blur(12px);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
        background var(--dur) var(--ease);
}

.search-field input::placeholder {
    color: var(--muted-2);
}

.search-field input:focus {
    border-color: var(--primary);
    background: var(--surface-2);
    box-shadow: var(--focus-ring);
}

.search-clear {
    position: absolute;
    right: 14px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--muted);
}

.search-clear:hover {
    color: var(--text);
    background: var(--surface-3);
}

.search-bar .btn {
    height: 52px;
    padding-inline: 24px;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
}

.filter-bar-simple {
    margin-bottom: 24px;
}

.chip-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
        color var(--dur) var(--ease);
}

.filter-chip:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.filter-chip.is-active {
    color: #fff;
    border-color: transparent;
    background: var(--gradient);
    box-shadow: 0 8px 22px -12px rgba(99, 102, 241, 0.8);
}

.chip-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    border-radius: 5px;
    background: rgba(127, 127, 160, 0.16);
    font-family: var(--font-mono);
    font-size: 10.5px;
    line-height: 1;
}

.filter-chip.is-active .chip-count {
    background: rgba(255, 255, 255, 0.22);
}

.sort-form {
    margin-left: auto;
}

.sort-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    color: var(--muted);
    font-size: 12.5px;
    white-space: nowrap;
}

.sort-field > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.sort-field select {
    height: 36px;
    padding: 0 34px 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background-color: var(--surface);
    color: var(--text-2);
    font-size: 12.5px;
    outline: none;
    cursor: pointer;
    transition: border-color var(--dur) var(--ease);
}

.sort-field select:hover,
.sort-field select:focus {
    border-color: var(--border-strong);
}

.result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 13px;
}

.result-bar strong {
    color: var(--text);
    font-family: var(--font-mono);
}

.result-page {
    color: var(--muted-2);
    font-size: 12px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 72px 24px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    text-align: center;
}

.empty-illustration {
    color: var(--muted-2);
}

.empty-state h3 {
    font-size: 18px;
}

.empty-state p {
    max-width: 420px;
    color: var(--muted);
    font-size: 13.5px;
}

.empty-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.page-btn,
.page-num {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
        background var(--dur) var(--ease);
}

.page-num {
    justify-content: center;
    width: 38px;
    padding: 0;
    font-family: var(--font-mono);
}

.page-btn:hover,
.page-num:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.page-num.is-active {
    color: #fff;
    border-color: transparent;
    background: var(--gradient);
}

.page-btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* --- 详情 --- */
.detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.detail-head-main {
    min-width: 0;
}

.detail-title-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.product-icon-lg {
    width: 64px;
    height: 64px;
    border-radius: 17px;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
}

.detail-head h1 {
    margin: 0;
    font-size: clamp(28px, 3.4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.detail-summary {
    max-width: 780px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 18px;
}

.detail-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

.detail-meta-item strong {
    color: var(--text-2);
    font-family: var(--font-mono);
    font-weight: 600;
}

.detail-meta .tag {
    height: 22px;
}

.detail-head-actions {
    display: flex;
    gap: 10px;
    flex: none;
    padding-top: 8px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.detail-aside {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
}

.prose p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
}

.endpoint-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    padding-right: 96px;
    border: 1px solid var(--code-border);
    border-radius: var(--radius);
    background: var(--code-bg);
    overflow: hidden;
}

.method-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex: none;
}

.method-get {
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
}

.method-post {
    background: rgba(52, 211, 153, 0.14);
    color: #6ee7b7;
}

.endpoint-url {
    color: #c3cbe4;
    font-family: var(--font-mono);
    font-size: 13px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.endpoint-url::-webkit-scrollbar {
    display: none;
}

.endpoint-box .copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.endpoint-notes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.endpoint-notes li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
}

.endpoint-notes .icon {
    margin-top: 2px;
    color: var(--primary-2);
}

.endpoint-notes code,
.docs-tip code,
.docs-callout code,
.docs-prose code,
.alert code {
    padding: 1px 6px;
    border-radius: 5px;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 0.92em;
}

.params-table {
    min-width: 680px;
    table-layout: fixed;
}

.params-table th:nth-child(1),
.params-table td:nth-child(1) { width: 18%; }
.params-table th:nth-child(2),
.params-table td:nth-child(2) { width: 9%; }
.params-table th:nth-child(3),
.params-table td:nth-child(3) { width: 9%; }
.params-table th:nth-child(4),
.params-table td:nth-child(4) { width: 40%; }
.params-table th:nth-child(5),
.params-table td:nth-child(5) { width: 24%; }

.params-table td {
    font-size: 12.5px;
}

.param-name {
    color: #8ab4ff;
    font-size: 12.5px;
    white-space: nowrap;
}

.param-example {
    color: var(--muted);
    font-size: 11.5px;
    word-break: break-all;
}

.type-pill {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 5px;
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    font-family: var(--font-mono);
    font-size: 10.5px;
}

[data-theme="light"] .type-pill {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.08);
}

.required-yes {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 7px;
    border-radius: 4px;
    background: rgba(251, 191, 36, 0.12);
    color: var(--warning);
    font-size: 10.5px;
    font-weight: 600;
}

.required-no {
    color: var(--muted-2);
    font-size: 11px;
}

.code-tabs {
    position: relative;
}

.code-tabbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
    overflow-x: auto;
}

.code-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: rgba(219, 226, 245, 0.55);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.code-tab:hover {
    color: rgba(219, 226, 245, 0.9);
    background: rgba(255, 255, 255, 0.06);
}

.code-tab.is-active {
    color: #fff;
    background: rgba(99, 102, 241, 0.24);
    border-color: rgba(99, 102, 241, 0.35);
}

.code-tabbar-spacer {
    flex: 1;
}

.code-lang-hint {
    color: rgba(219, 226, 245, 0.35);
    font-family: var(--font-mono);
    font-size: 10.5px;
    white-space: nowrap;
}

.code-panel {
    position: relative;
    display: none;
}

.code-panel.is-active {
    display: block;
}

.code-panel .code {
    max-height: 420px;
}

.code-panel .copy-btn-floating {
    background: rgba(7, 12, 24, 0.85);
}

.response-box {
    position: relative;
}

.response-box .code {
    max-height: 380px;
}

.response-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--success);
    font-size: 11.5px;
    font-weight: 600;
}

.response-status .status-dot {
    animation: none;
}

.buy-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--glass);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.buy-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.7), rgba(34, 211, 238, 0.5), transparent);
}

.buy-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.buy-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.buy-currency {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 17px;
}

.buy-price strong {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.buy-price .buy-free {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 34px;
}

.buy-unit {
    color: var(--muted);
    font-size: 12px;
}

.buy-note {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--success);
    font-size: 11.5px;
}

.buy-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 4px;
}

.buy-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted-2);
    font-size: 11.5px;
}

.buy-links a {
    color: var(--muted);
}

.buy-links a:hover {
    color: var(--primary-2);
}

.buy-specs {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
}

.buy-specs li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 12px;
}

.buy-specs li:last-child {
    border-bottom: 0;
}

.buy-specs span {
    color: var(--muted);
}

.buy-specs strong {
    color: var(--text-2);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 11.5px;
}

.buy-safe {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: var(--muted-2);
    font-size: 10.5px;
    line-height: 1.55;
}

.buy-safe .icon {
    margin-top: 1px;
}

/* ---------------------------------------------------------------------------
   7. 定价页
   --------------------------------------------------------------------------- */
.page-hero-pricing .pricing-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 20px;
}

.pricing-badges span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12.5px;
}

.pricing-badges .icon {
    color: var(--success);
}

.plan-grid-pricing {
    align-items: stretch;
}

.compare-table {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--glass);
    overflow: auto;
}

.compare-table .data-table {
    min-width: 720px;
}

.compare-table th[scope="row"] {
    color: var(--muted);
    font-weight: 500;
}

.compare-table thead th {
    position: sticky;
    top: 0;
    background: var(--bg-1);
    z-index: 1;
}

.th-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.16);
    color: var(--primary-2);
    font-size: 9.5px;
    font-weight: 700;
    vertical-align: middle;
}

.pricing-calc {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    padding: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--glass);
}

.pricing-calc h2 {
    font-size: clamp(24px, 2.6vw, 32px);
    letter-spacing: -0.02em;
}

.pricing-calc p {
    max-width: 520px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.pricing-calc-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.calc-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--code-bg);
    font-family: var(--font-mono);
    font-size: 12.5px;
}

.calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    color: rgba(219, 226, 245, 0.55);
}

.calc-row strong {
    color: var(--code-text);
    font-weight: 600;
}

.calc-row-total {
    border-bottom: 0;
    padding-top: 16px;
    color: rgba(219, 226, 245, 0.75);
}

.calc-row-total strong {
    color: #6ee7b7;
}

/* ---------------------------------------------------------------------------
   8. 文档
   --------------------------------------------------------------------------- */
.docs-hero {
    padding: 40px 0 36px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface-soft), transparent);
}

.docs-hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(30px, 3.6vw, 42px);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.docs-hero .page-hero-sub {
    max-width: 720px;
}

.docs-hero .page-hero-sub code {
    padding: 1px 6px;
    border-radius: 5px;
    background: var(--surface-2);
    font-size: 0.9em;
}

.docs-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.docs-layout {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 56px;
    padding-top: 48px;
    padding-bottom: 96px;
    align-items: start;
}

.docs-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
}

.docs-tree {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.docs-tree-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.docs-tree-title {
    margin-bottom: 8px;
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.docs-tree-link {
    position: relative;
    display: block;
    padding: 8px 12px;
    border-left: 2px solid transparent;
    color: var(--muted);
    font-size: 13.5px;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
        background var(--dur) var(--ease);
}

.docs-tree-link:hover {
    color: var(--text);
    background: var(--surface-soft);
}

.docs-tree-link.is-active {
    color: var(--primary-2);
    border-left-color: var(--primary);
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), transparent);
}

.docs-sidebar-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--glass);
    color: var(--primary-2);
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.docs-sidebar-cta:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.docs-sidebar-cta span {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.docs-sidebar-cta strong {
    color: var(--text);
    font-size: 13px;
}

.docs-sidebar-cta small {
    color: var(--muted);
    font-size: 11px;
}

.docs-sidebar-cta > .icon:last-child {
    margin-left: auto;
    color: var(--muted-2);
}

.docs-content {
    min-width: 0;
}

.docs-section {
    scroll-margin-top: calc(var(--nav-h) + 24px);
    padding-bottom: 56px;
    margin-bottom: 56px;
    border-bottom: 1px solid var(--border);
}

.docs-section:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.docs-section-head {
    display: flex;
    gap: 18px;
    margin-bottom: 22px;
}

.docs-index {
    color: var(--primary-2);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    padding-top: 7px;
}

.docs-section-head h2 {
    font-size: 26px;
    letter-spacing: -0.02em;
}

.docs-section-head p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13.5px;
}

.docs-section > p {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.8;
}

.docs-section > p code,
.docs-prose code {
    padding: 1px 6px;
    border-radius: 5px;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 0.9em;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 26px;
}

.step {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.step-num {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--gradient-soft);
    border: 1px solid rgba(99, 102, 241, 0.28);
    color: var(--primary-2);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    flex: none;
}

.step h3 {
    font-size: 14.5px;
    font-weight: 700;
}

.step p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.step p code {
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--surface-2);
    font-size: 0.92em;
}

.docs-code {
    margin-bottom: 18px;
}

.docs-tip {
    display: block;
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: var(--radius-sm);
    background: rgba(56, 189, 248, 0.06);
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.7;
}

.docs-tip > .icon {
    display: inline-block;
    margin-right: 6px;
    vertical-align: -3px;
    color: var(--info);
}

.docs-tip code {
    padding: 1px 6px;
    border-radius: 5px;
    background: var(--surface-2);
    color: var(--text-2);
}

.docs-tip a {
    color: var(--primary-2);
}

.docs-callout {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-left: 2px solid var(--primary);
    border-radius: var(--radius);
    background: var(--surface-soft);
    margin-top: 18px;
}

.callout-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-2);
    flex: none;
}

.docs-callout strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13.5px;
}

.docs-callout p,
.docs-callout ul {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.8;
}

.docs-callout ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 2px;
}

.docs-callout li {
    position: relative;
    padding-left: 14px;
}

.docs-callout li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-2);
}

.code-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 7px;
    border-radius: 5px;
    background: var(--surface-2);
    color: var(--text-2);
    font-family: var(--font-mono);
    font-size: 11px;
}

.docs-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.docs-category {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.docs-category:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.docs-category-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gradient-soft);
    color: var(--primary-2);
    flex: none;
}

.docs-category span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.docs-category strong {
    font-size: 13.5px;
}

.docs-category small {
    color: var(--muted);
    font-size: 11.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-category > .icon {
    margin-left: auto;
    color: var(--muted-2);
}

.docs-prose h3 {
    margin: 24px 0 8px;
    font-size: 15px;
}

.docs-prose h3:first-child {
    margin-top: 0;
}

.docs-prose p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.85;
}

/* ---------------------------------------------------------------------------
   9. 登录 / 注册
   --------------------------------------------------------------------------- */
.auth-page {
    padding: 64px 0 96px;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 64px;
    align-items: center;
    max-width: 1080px;
}

.auth-pitch {
    position: relative;
    padding: 8px 0;
}

.auth-pitch h2 {
    margin: 12px 0 16px;
    font-size: clamp(30px, 3.4vw, 42px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.auth-pitch > p {
    max-width: 460px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.8;
}

.auth-points {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-2);
    font-size: 13.5px;
}

.auth-points .icon {
    color: var(--success);
}

.auth-quote {
    max-width: 460px;
    margin-top: 36px;
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--glass);
    backdrop-filter: blur(16px);
}

.auth-quote p {
    color: var(--text-2);
    font-size: 13.5px;
    line-height: 1.8;
}

.auth-quote-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.auth-quote-author span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.auth-quote-author strong {
    font-size: 12.5px;
}

.auth-quote-author small {
    color: var(--muted-2);
    font-size: 11px;
}

.auth-card {
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--glass);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow-lg);
}

.auth-card-head {
    margin-bottom: 24px;
}

.auth-card-head h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-card-head p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.auth-card-head a {
    color: var(--primary-2);
    font-weight: 600;
}

.auth-card-head a:hover {
    text-decoration: underline;
}

.auth-form {
    margin-top: 4px;
}

.auth-form .field:last-of-type {
    margin-bottom: 8px;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 4px 0 20px;
    font-size: 12.5px;
}

.auth-demo {
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.auth-demo-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
}

.auth-demo-head .icon {
    color: var(--info);
}

.auth-demo p {
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.65;
}

.auth-demo-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.auth-demo-row code {
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 11px;
    user-select: all;
}

.auth-demo-row .btn {
    margin-left: auto;
}

.auth-legal {
    margin-top: 20px;
    color: var(--muted-2);
    font-size: 10.5px;
    text-align: center;
}

.auth-legal a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    line-height: 1.65;
}

.alert .icon {
    margin-top: 1px;
    flex: none;
}

.alert-danger {
    border-color: rgba(248, 113, 113, 0.25);
    background: rgba(248, 113, 113, 0.07);
    color: #fca5a5;
}

[data-theme="light"] .alert-danger {
    color: #b91c1c;
}

.alert-warning {
    border-color: rgba(251, 191, 36, 0.25);
    background: rgba(251, 191, 36, 0.06);
    color: var(--warning);
}

[data-theme="light"] .alert-warning {
    color: #92400e;
}

/* ---------------------------------------------------------------------------
   10. 控制台
   --------------------------------------------------------------------------- */
.console-shell {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 28px;
    padding-top: 32px;
    padding-bottom: 88px;
    align-items: start;
}

.console-shell > * {
    min-width: 0;
}

.console-content > * {
    min-width: 0;
}

.console-nav {
    min-width: 0;
}

.console-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
}

.console-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--glass);
    backdrop-filter: blur(20px);
}

.sidebar-plan {
    padding: 16px;
    border: 1px solid rgba(99, 102, 241, 0.24);
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.14), rgba(34, 211, 238, 0.04));
}

.sidebar-plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.sidebar-label {
    color: var(--muted);
    font-size: 11px;
}

.sidebar-balance {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
}

.sidebar-balance strong {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.console-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.console-nav-title {
    padding: 0 10px 8px;
    color: var(--muted-2);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.console-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 11px;
    border-radius: var(--radius-xs);
    color: var(--muted);
    font-size: 13.5px;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.console-nav-link:hover {
    background: var(--surface-2);
    color: var(--text);
}

.console-nav-link.is-active {
    background: var(--surface-2);
    color: var(--text);
    box-shadow: inset 2px 0 0 var(--primary);
}

.console-nav-link.is-active .icon {
    color: var(--primary-2);
}

.console-sidebar-help {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.console-sidebar-help a {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 34px;
    padding: 0 10px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 12.5px;
}

.console-sidebar-help a:hover {
    background: var(--surface-2);
    color: var(--text);
}

.console-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

.console-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding-bottom: 4px;
}

.console-page-head h1 {
    margin: 2px 0 6px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.console-page-head p {
    color: var(--muted);
    font-size: 13px;
}

.console-page-head p strong {
    color: var(--text-2);
    font-family: var(--font-mono);
}

.console-head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.metric-grid-sm {
    gap: 12px;
}

.metric-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--glass);
    backdrop-filter: blur(16px);
    overflow: hidden;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.metric-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.metric-primary {
    border-color: rgba(99, 102, 241, 0.32);
    background:
        linear-gradient(160deg, rgba(99, 102, 241, 0.18), rgba(34, 211, 238, 0.05) 60%, transparent),
        var(--glass);
}

.metric-primary::after {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 70%);
    pointer-events: none;
}

.metric-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.metric-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.metric-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--tone-bg, var(--surface-2));
    color: var(--tone, var(--primary-2));
    border: 1px solid var(--border);
}

.metric-value {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.metric-unit {
    margin-left: 3px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
}

.metric-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    font-size: 11px;
}

.metric-trend {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--muted-2);
}

.metric-trend.is-up {
    color: var(--success);
}

.metric-foot a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--primary-2);
    font-weight: 500;
    white-space: nowrap;
}

.metric-foot a:hover {
    color: var(--accent);
}

.metric-compact {
    padding: 18px;
    gap: 6px;
}

.metric-compact .metric-value {
    font-size: 24px;
}

.console-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.console-grid > * {
    min-width: 0;
}

.chart-panel {
    min-width: 0;
}

.chart-wrap {
    position: relative;
    width: 100%;
    overflow-x: auto;
}

.chart {
    width: 100%;
    height: auto;
    overflow: visible;
}

.chart-grid {
    stroke: var(--chart-grid);
    stroke-dasharray: 4 7;
}

.chart-axis-label {
    fill: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 11.5px;
}

.chart-line-path {
    fill: none;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 6px 14px rgba(99, 102, 241, 0.35));
}

.chart-area {
    stroke: none;
}

.chart-dot-halo {
    fill: rgba(99, 102, 241, 0.16);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}

.chart-dot {
    fill: var(--primary-2);
    stroke: var(--bg-1);
    stroke-width: 2;
    transition: r var(--dur) var(--ease);
}

.chart-point,
.chart-bar-group {
    cursor: pointer;
}

.chart-point:hover .chart-dot-halo {
    opacity: 1;
}

.chart-point-label {
    fill: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 11px;
}

.chart-bar {
    fill: url(#barGradientStatic);
    fill: rgba(99, 102, 241, 0.55);
    transition: fill var(--dur) var(--ease);
}

.chart-bar-group:hover .chart-bar {
    fill: var(--primary-2);
}

.chart-tooltip {
    position: absolute;
    top: 12px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 7px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--glass-strong);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
    pointer-events: none;
    transform: translate(-50%, 0);
    z-index: 3;
    white-space: nowrap;
}

.chart-tooltip-label {
    color: var(--muted);
    font-size: 10px;
}

.chart-tooltip-value {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 12px;
}

.chart-empty {
    display: grid;
    place-items: center;
    height: 220px;
    color: var(--muted-2);
    font-size: 13px;
}

.quick-call {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quick-call .panel-head {
    margin-bottom: 0;
}

.mini-code {
    position: relative;
    border: 1px solid var(--code-border);
    border-radius: var(--radius-sm);
    background: var(--code-bg);
    overflow: hidden;
}

.mini-code .code {
    padding: 14px 16px;
    font-size: 11px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.quick-call-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
}

.quick-call-meta li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 11.5px;
}

.quick-call-meta li:last-child {
    border-bottom: 0;
}

.quick-call-meta span {
    color: var(--muted);
}

.quick-call-meta strong {
    color: var(--text-2);
    font-family: var(--font-mono);
    font-weight: 500;
}

.recent-panel {
    padding-bottom: 12px;
}

.recent-table {
    min-width: 620px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--glass);
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.quick-action:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.quick-action-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--tone-bg, var(--surface-2));
    color: var(--tone, var(--primary-2));
    flex: none;
}

.quick-action span:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.quick-action strong {
    font-size: 13px;
    font-weight: 600;
}

.quick-action small {
    color: var(--muted-2);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-action > .icon {
    margin-left: auto;
    color: var(--muted-2);
}

.empty-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 44px 20px;
    color: var(--muted-2);
    text-align: center;
}

.empty-inline p {
    max-width: 460px;
    color: var(--muted);
    font-size: 13px;
}

.empty-inline .icon {
    color: var(--muted-2);
}

/* --- 密钥 --- */
.key-reveal {
    position: relative;
    padding: 24px;
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(52, 211, 153, 0.09), rgba(99, 102, 241, 0.05) 60%, transparent);
    overflow: hidden;
}

.key-reveal-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.key-reveal-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(52, 211, 153, 0.14);
    color: var(--success);
    flex: none;
}

.key-reveal-copy {
    flex: 1;
    min-width: 0;
}

.key-reveal-copy h2 {
    font-size: 16px;
    font-weight: 700;
}

.key-reveal-copy p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.65;
}

.key-value-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--code-border);
    border-radius: var(--radius-sm);
    background: var(--code-bg);
    margin-bottom: 14px;
}

.key-value {
    flex: 1;
    color: #9ce8c4;
    font-family: var(--font-mono);
    font-size: 12.5px;
    word-break: break-all;
    user-select: all;
}

.key-reveal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.key-mask {
    color: var(--text-2);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.02em;
}

.order-no {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11.5px;
    white-space: nowrap;
}

.inline-form {
    display: inline-flex;
}

/* --- 充值 --- */
.balance-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 28px 32px;
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(120deg, rgba(99, 102, 241, 0.2), rgba(34, 211, 238, 0.07) 55%, rgba(139, 92, 246, 0.14)),
        var(--glass);
    overflow: hidden;
}

.balance-hero::after {
    content: "";
    position: absolute;
    top: -60%;
    right: 8%;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 70%);
    pointer-events: none;
}

.balance-label {
    color: var(--muted);
    font-size: 12px;
}

.balance-amount {
    margin: 6px 0 8px;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: clamp(34px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(120deg, #fff 20%, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

[data-theme="light"] .balance-amount {
    background: linear-gradient(120deg, var(--text) 20%, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
}

.balance-hero-main > p {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 11.5px;
}

.balance-hero-main > p .icon {
    color: var(--success);
}

.balance-hero-side {
    display: flex;
    gap: 36px;
    position: relative;
    z-index: 1;
}

.balance-hero-side div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.balance-hero-side span {
    color: var(--muted);
    font-size: 11px;
}

.balance-hero-side strong {
    color: var(--text-2);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
}

.pending-panel {
    border-color: rgba(251, 191, 36, 0.28);
    background:
        linear-gradient(160deg, rgba(251, 191, 36, 0.06), transparent 50%),
        var(--glass);
}

.pending-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pending-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.pending-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.pending-name {
    font-size: 13.5px;
    font-weight: 600;
}

.pending-meta {
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 10.5px;
}

.pending-amount {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 700;
}

.recharge-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.recharge-plan {
    position: relative;
    display: block;
    cursor: pointer;
}

.recharge-plan input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.recharge-plan-body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 17px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
}

.recharge-plan:hover .recharge-plan-body {
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.recharge-plan.is-selected .recharge-plan-body {
    border-color: var(--primary);
    background: linear-gradient(150deg, rgba(99, 102, 241, 0.14), rgba(34, 211, 238, 0.04));
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.4);
}

.recharge-plan input:focus-visible + .recharge-plan-body {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.recharge-plan-head {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    padding-right: 26px;
}

.recharge-plan-custom {
    grid-column: span 2;
}

.recharge-plan-custom .recharge-plan-head {
    padding-right: 0;
}

.recharge-plan-head strong {
    font-size: 13.5px;
    font-weight: 600;
}

.recharge-plan-price {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.recharge-plan-price small {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 400;
}

.recharge-plan-quota {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.recharge-plan-check {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    color: transparent;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
        color var(--dur) var(--ease);
}

.recharge-plan.is-selected .recharge-plan-check {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
}

.recharge-plan-custom .recharge-plan-body {
    border-style: dashed;
}

.recharge-amount-field {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: var(--bg-1);
}

.recharge-currency {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 14px;
}

.recharge-amount-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 15px;
    outline: none;
}

.recharge-plan-custom .recharge-amount-field {
    height: 38px;
}

.recharge-amount-field input::placeholder {
    color: var(--muted-2);
    font-size: 12px;
}

.recharge-amount-field input:disabled {
    opacity: 0.45;
}

.recharge-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.recharge-summary p {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
}

.recharge-summary .icon {
    color: var(--info);
}

.pay-success {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border: 1px solid rgba(52, 211, 153, 0.34);
    border-radius: var(--radius-lg);
    background: linear-gradient(140deg, rgba(52, 211, 153, 0.12), rgba(34, 211, 238, 0.05) 55%, transparent);
    overflow: hidden;
}

.success-mark {
    color: var(--success);
    flex: none;
}

.success-circle {
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    animation: draw-circle 0.7s var(--ease) forwards;
}

.success-check {
    stroke-dasharray: 44;
    stroke-dashoffset: 44;
    animation: draw-check 0.4s var(--ease) 0.45s forwards;
}

.pay-success-copy {
    flex: 1;
    min-width: 0;
}

.pay-success-copy h2 {
    margin: 6px 0 4px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pay-success-copy p {
    color: var(--muted);
    font-size: 12.5px;
}

.pay-success-copy p strong {
    color: var(--success);
    font-family: var(--font-mono);
}

.pay-success-copy code {
    color: var(--text-2);
    font-family: var(--font-mono);
    font-size: 11.5px;
}

.pay-success-actions {
    display: flex;
    gap: 8px;
    flex: none;
    position: relative;
    z-index: 2;
}

.confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: -10px;
    width: 7px;
    height: 11px;
    border-radius: 2px;
    opacity: 0;
    animation: confetti-fall 1.6s var(--ease) forwards;
}

.orders-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.orders-note .icon {
    margin-top: 2px;
    color: var(--info);
    flex: none;
}

.orders-note a {
    color: var(--primary-2);
}

.usage-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.usage-filter .sort-field select {
    max-width: 180px;
}

/* ---------------------------------------------------------------------------
   11. 弹窗 / 错误页
   --------------------------------------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 14, 0.66);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}

.modal-card {
    position: relative;
    width: min(460px, 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--bg-2);
    background: var(--glass-strong);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(24px);
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-spring);
    overflow: hidden;
}

.modal.is-open .modal-backdrop {
    opacity: 1;
}

.modal.is-open .modal-card {
    opacity: 1;
    transform: none;
}

.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 22px 16px;
    border-bottom: 1px solid var(--border);
}

.modal-head h2 {
    font-size: 18px;
    font-weight: 700;
}

.modal-head p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.modal-body {
    padding: 20px 22px;
}

.modal-body .field {
    margin-bottom: 10px;
}

.modal-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.65;
}

.modal-note .icon {
    color: var(--info);
    flex: none;
    margin-top: 1px;
}

.modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px 20px;
    border-top: 1px solid var(--border);
}

.error-page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 72px 0;
    overflow: hidden;
}

.error-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 620px;
}

.error-code {
    font-family: var(--font-mono);
    font-size: clamp(88px, 16vw, 160px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.06em;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(34, 211, 238, 0.55));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.9;
}

.error-orb {
    position: absolute;
    top: 30%;
    left: 50%;
    width: 420px;
    height: 420px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22), transparent 68%);
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}

.error-inner h1 {
    margin-top: 8px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
}

.error-inner > p {
    max-width: 460px;
    margin: 12px 0 26px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.error-search {
    display: flex;
    gap: 10px;
    width: min(480px, 100%);
    margin-bottom: 26px;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* ---------------------------------------------------------------------------
   12. 响应式
   --------------------------------------------------------------------------- */
@media (max-width: 1440px) {
    :root {
        --container: 1160px;
    }
}

@media (max-width: 1200px) {
    .hero-inner {
        gap: 44px;
    }

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    .product-card {
        padding: 18px;
    }

    .plan-grid {
        gap: 14px;
    }

    .plan-card {
        padding: 24px 18px 20px;
    }

    .plan-amount {
        font-size: 36px;
    }

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

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

@media (max-width: 1024px) {
    .hero {
        padding-top: 64px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .hero-copy {
        max-width: 720px;
    }

    .hero-sub {
        max-width: 640px;
    }

    .hero-visual {
        max-width: 640px;
    }

    .hero-float-a {
        left: -10px;
    }

    .hero-float-b {
        right: -6px;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

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

    .faq-wrap {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .faq-intro .btn {
        margin-top: 0;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-aside {
        position: static;
        order: -1;
    }

    .buy-card {
        max-width: 480px;
    }

    .detail-head {
        flex-direction: column;
        gap: 20px;
    }

    .detail-head-actions {
        padding-top: 0;
    }

    .docs-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .docs-sidebar {
        position: static;
    }

    .docs-tree {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        padding: 14px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--glass);
    }

    .docs-tree-group {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
    }

    .docs-tree-title {
        width: 100%;
        margin-bottom: 2px;
    }

    .docs-tree-link {
        border: 1px solid var(--border);
        border-radius: var(--radius-full);
        padding: 6px 12px;
        font-size: 12.5px;
    }

    .docs-tree-link.is-active {
        border-color: rgba(99, 102, 241, 0.45);
        background: rgba(99, 102, 241, 0.12);
    }

    .docs-sidebar-cta {
        display: none;
    }

    .auth-layout {
        grid-template-columns: 1fr;
        gap: 36px;
        max-width: 520px;
    }

    .auth-pitch {
        display: none;
    }

    .console-shell {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .console-sidebar {
        position: static;
    }

    .console-sidebar-inner {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 12px;
        overflow-x: auto;
    }

    .sidebar-plan {
        display: none;
    }

    .console-nav {
        flex-direction: row;
        gap: 4px;
        flex: none;
    }

    .console-nav-title {
        display: none;
    }

    .console-nav-link {
        height: 38px;
        padding: 0 12px;
        white-space: nowrap;
    }

    .console-nav-link.is-active {
        box-shadow: inset 0 -2px 0 var(--primary);
    }

    .console-sidebar-help {
        display: none;
    }

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

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

    .balance-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    .balance-hero-side {
        width: 100%;
        justify-content: space-between;
    }

    .pay-success {
        flex-wrap: wrap;
    }

    .pay-success-actions {
        width: 100%;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .cta-band {
        padding: 40px;
        flex-direction: column;
        align-items: flex-start;
    }

    .pricing-calc {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px;
    }

    .page-hero-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .page-hero-metrics {
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-h: 62px;
    }

    .container {
        padding: 0 18px;
    }

    .main-nav,
    .nav-login,
    .nav-cta,
    .user-name {
        display: none;
    }

    .nav-toggle {
        display: grid;
    }

    .nav-inner {
        gap: 12px;
    }

    .nav-actions {
        gap: 6px;
    }

    .mobile-nav {
        display: block;
    }

    .hero {
        padding: 44px 0 52px;
    }

    .hero-title {
        font-size: clamp(34px, 9vw, 46px);
    }

    .hero-sub {
        font-size: 15px;
        margin: 18px 0 24px;
    }

    .hero-actions .btn {
        flex: 1;
        min-width: 150px;
    }

    .hero-terminal {
        transform: none;
    }

    .hero-float {
        display: none;
    }

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

    .stat {
        padding: 18px 20px;
    }

    .stat:nth-child(3)::before,
    .stat:nth-child(1)::before {
        display: none;
    }

    .stat:nth-child(3),
    .stat:nth-child(4) {
        border-top: 1px solid var(--border);
    }

    .section {
        padding: 60px 0;
    }

    .section-tight {
        padding: 36px 0 56px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 28px;
    }

    .section-head-center {
        text-align: center;
    }

    .product-grid,
    .product-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card {
        padding: 16px;
        gap: 10px;
    }

    .product-summary {
        font-size: 12px;
        min-height: 38px;
    }

    .product-price strong {
        font-size: 15px;
    }

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

    .feature-card {
        padding: 22px;
    }

    .plan-card {
        padding: 24px 22px;
    }

    .plan-card .btn {
        margin-top: 4px;
    }

    .cta-section {
        padding-bottom: 64px;
    }

    .cta-band {
        padding: 30px 24px;
        border-radius: var(--radius-lg);
    }

    .cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .page-hero {
        padding: 28px 0 32px;
    }

    .page-hero h1 {
        font-size: clamp(26px, 7vw, 34px);
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar .btn {
        width: 100%;
    }

    .filter-bar {
        align-items: flex-start;
    }

    .chip-row {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .chip-row::-webkit-scrollbar {
        display: none;
    }

    .filter-chip {
        flex: none;
    }

    .sort-form {
        margin-left: 0;
    }

    .detail-title-row {
        gap: 14px;
    }

    .product-icon-lg {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .detail-head-actions {
        width: 100%;
    }

    .detail-head-actions .btn {
        flex: 1;
    }

    .endpoint-box {
        padding-right: 16px;
        padding-bottom: 46px;
        flex-wrap: wrap;
    }

    .endpoint-box .copy-btn {
        top: auto;
        bottom: 8px;
        right: 8px;
    }

    .buy-card {
        max-width: none;
    }

    .docs-quicklinks .btn {
        flex: 1;
    }

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

    .docs-section {
        padding-bottom: 40px;
        margin-bottom: 40px;
    }

    .docs-section-head h2 {
        font-size: 22px;
    }

    .steps .step {
        padding: 16px;
    }

    .auth-page {
        padding: 36px 0 64px;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .console-shell {
        padding-top: 20px;
        padding-bottom: 64px;
    }

    .console-page-head h1 {
        font-size: 24px;
    }

    .console-head-actions {
        width: 100%;
    }

    .console-head-actions .btn {
        flex: 1;
    }

    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .metric-card {
        padding: 15px;
    }

    .metric-value {
        font-size: 23px;
    }

    .metric-foot {
        flex-wrap: wrap;
    }

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

    .quick-action {
        padding: 15px;
    }

    .recharge-plan-grid {
        grid-template-columns: 1fr;
    }

    .recharge-summary {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .pending-item {
        flex-wrap: wrap;
    }

    .pending-amount {
        margin-left: auto;
    }

    .pending-item .inline-form {
        width: 100%;
    }

    .pending-item .btn {
        width: 100%;
    }

    .balance-hero {
        padding: 22px;
    }

    .pay-success {
        padding: 20px;
    }

    .pay-success-copy h2 {
        font-size: 19px;
    }

    .key-value-row {
        flex-direction: column;
        align-items: stretch;
    }

    .key-value-row .btn {
        width: 100%;
    }

    .quick-call .panel-head {
        margin-bottom: 0;
    }

    .panel {
        padding: 20px;
    }

    .panel-head {
        flex-direction: column;
        gap: 8px;
    }

    .chart {
        min-width: 560px;
    }

    .recharge-plan-custom {
        grid-column: auto;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 11px 9px;
    }

    .recent-table,
    .usage-table {
        min-width: 0;
    }

    .recent-table th:nth-child(3),
    .recent-table td:nth-child(3),
    .usage-table th:nth-child(3),
    .usage-table td:nth-child(3) {
        display: none;
    }

    .keys-table th:nth-child(4),
    .keys-table td:nth-child(4),
    .keys-table th:nth-child(5),
    .keys-table td:nth-child(5) {
        display: none;
    }

    .orders-table th:nth-child(6),
    .orders-table td:nth-child(6) {
        display: none;
    }

    .modal {
        padding: 14px;
    }

    .modal-card {
        max-height: 90vh;
        overflow-y: auto;
    }

    .toasts {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
    }

    .demo-strip-text {
        display: none;
    }

    .footer-legal {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .product-grid,
    .product-grid-3 {
        grid-template-columns: 1fr;
    }

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

    .hero-title {
        font-size: 32px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-trust {
        flex-direction: column;
        gap: 8px;
    }

    .stat {
        padding: 16px;
    }

    .stat-value {
        font-size: 22px;
    }

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

    .balance-hero-side {
        flex-direction: column;
        gap: 14px;
    }

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

    .auth-card {
        padding: 20px 16px;
    }

    .auth-demo-row {
        align-items: stretch;
    }

    .auth-demo-row .btn {
        margin-left: 0;
        width: 100%;
    }

    .plan-amount {
        font-size: 34px;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .page-btn span {
        display: none;
    }

    .error-actions {
        flex-direction: column;
        width: 100%;
    }

    .error-actions .btn {
        width: 100%;
    }

    .error-search {
        flex-direction: column;
    }

    .error-search .btn {
        width: 100%;
    }
}

/* ---------------------------------------------------------------------------
   13. 动效偏好与可访问性
   --------------------------------------------------------------------------- */
@keyframes reveal-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

html.js [data-reveal].in-view {
    animation: reveal-in 0.6s var(--ease) both;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.45;
    }
}

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

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateY(8px);
    }
}

@keyframes dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes mobile-nav-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes draw-circle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes draw-check {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(260px) rotate(420deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html.js [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .success-circle,
    .success-check {
        stroke-dashoffset: 0;
    }
}
