/* ==========================================================================
   Skin C · Playful Pop —— 活泼圆润品牌风
   奶油底 + 珊瑚橙单主色，大圆角、软弹阴影，配色克制干净。
   仅视觉替换，DOM 结构与原版一致。
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    color-scheme: light;
    --bg-deep: #FFF7F0;
    --bg-base: #FFFCF9;
    --bg-elevated: #FFF0E4;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFFFF;
    --surface: rgba(249, 109, 56, 0.06);
    --surface-soft: rgba(249, 109, 56, 0.04);
    --surface-strong: rgba(249, 109, 56, 0.1);

    --foreground: #352A26;
    --foreground-muted: #90756C;
    --foreground-dim: #C3AFA8;

    /* 单主色：珊瑚橙 */
    --primary: #F96D38;
    --primary-light: #FB8A5C;
    --primary-glow: rgba(249, 109, 56, 0.12);
    --primary-grad: linear-gradient(135deg, #F96D38, #FB8A5C);

    /* 功能色（仅语义场景使用） */
    --success: #2FA96B;
    --success-bg: rgba(47, 169, 107, 0.12);
    --warning: #E8960C;
    --warning-bg: rgba(232, 150, 12, 0.12);
    --danger: #E15544;
    --danger-bg: rgba(225, 85, 68, 0.1);
    --danger-text: #D94A3A;
    --info: #F96D38;
    --info-bg: rgba(249, 109, 56, 0.1);

    --border: rgba(53, 42, 38, 0.08);
    --border-light: rgba(53, 42, 38, 0.14);
    --table-row-border: rgba(53, 42, 38, 0.05);

    --code-inline-bg: rgba(249, 109, 56, 0.08);
    --code-inline-border: rgba(249, 109, 56, 0.2);
    --code-block-bg: #352A26;
    --code-text: #FFEBE0;
    --tooltip-bg: #FFFFFF;
    --tab-hover-bg: rgba(249, 109, 56, 0.08);
    --tab-active-bg: #FFFFFF;
    --lang-toggle-bg: #FFFFFF;
    --model-name-bg: rgba(53, 42, 38, 0.05);
    --model-name-border: rgba(53, 42, 38, 0.07);
    --rate-badge-bg: rgba(53, 42, 38, 0.06);
    --copy-btn-bg: rgba(255, 255, 255, 0.14);
    --copy-btn-border: rgba(255, 255, 255, 0.3);
    --copy-btn-hover-bg: rgba(255, 255, 255, 0.24);
    --header-title-edge: #352A26;

    /* 徽标：全部收敛为橙色系（橙 / 琥珀 / 绿 / 中性） */
    --badge-blue-bg: rgba(249, 109, 56, 0.1);    --badge-blue-color: #E85A24;   --badge-blue-border: rgba(249, 109, 56, 0.3);
    --badge-purple-bg: rgba(232, 150, 12, 0.12);  --badge-purple-color: #C77E08; --badge-purple-border: rgba(232, 150, 12, 0.32);
    --badge-green-bg: rgba(47, 169, 107, 0.12);   --badge-green-color: #2FA96B;  --badge-green-border: rgba(47, 169, 107, 0.32);
    --tag-cherry-bg: rgba(225, 85, 68, 0.1);      --tag-cherry-color: #D94A3A;   --tag-cherry-border: rgba(225, 85, 68, 0.3);
    --tag-claude-bg: rgba(249, 109, 56, 0.12);    --tag-claude-color: #E85A24;   --tag-claude-border: rgba(249, 109, 56, 0.32);
    --tag-codex-bg: rgba(249, 109, 56, 0.1);      --tag-codex-color: #E85A24;    --tag-codex-border: rgba(249, 109, 56, 0.3);
    --tag-banana-bg: rgba(232, 150, 12, 0.14);    --tag-banana-color: #C77E08;   --tag-banana-border: rgba(232, 150, 12, 0.34);

    --shadow-sm: 0 4px 14px rgba(249, 109, 56, 0.07);
    --shadow-md: 0 10px 30px rgba(249, 109, 56, 0.12);
    --shadow-card: 0 6px 20px rgba(53, 42, 38, 0.05), 0 2px 6px rgba(53, 42, 38, 0.04);
    --shadow-card-hover: 0 16px 40px rgba(249, 109, 56, 0.14), 0 4px 12px rgba(53, 42, 38, 0.05);

    --radius-lg: 32px;
    --radius: 24px;
    --radius-sm: 16px;
    --radius-xs: 10px;
    --ease: cubic-bezier(0.34, 1.56, 0.64, 1);   /* 软弹回弹 */

    --font-display: 'Baloo 2', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-body: 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-ui: 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
}

body {
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.7;
    color: var(--foreground);
    background: var(--bg-deep);
    background-image:
        radial-gradient(circle at 50% -10%, rgba(249, 109, 56, 0.08), transparent 45%);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 光斑（弱化为主色光晕） */
.ambient-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ambient-blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.14; }
.blob-1 { width: 480px; height: 480px; background: var(--primary); top: -180px; right: -120px; }
.blob-2 { width: 420px; height: 420px; background: var(--primary-light); bottom: -160px; left: -120px; opacity: 0.1; }
.blob-3 { display: none; }

/* Layout */
.page-wrapper { position: relative; z-index: 1; max-width: 1020px; margin: 0 auto; padding: 40px 22px 90px; }

/* ===== Header ===== */
.header { text-align: center; padding: 64px 20px 60px; }
.header-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary-grad); border: none;
    border-radius: 999px; padding: 8px 20px;
    font-size: 0.82rem; font-weight: 800; letter-spacing: 0.03em;
    color: #fff; margin-bottom: 26px;
    box-shadow: 0 8px 20px rgba(249, 109, 56, 0.3);
}
.header-badge svg { width: 14px; height: 14px; }
.header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 7.5vw, 4.6rem);
    font-weight: 800; line-height: 1.05; letter-spacing: -0.01em;
    color: var(--foreground); margin-bottom: 20px;
}
.header p { font-size: 1.12rem; font-weight: 700; color: var(--foreground-muted); max-width: 560px; margin: 0 auto; line-height: 1.75; }

/* ===== Doge 欢迎 ===== */
.doge-welcome { position: relative; max-width: 820px; margin: 0 auto 36px; padding: 0 20px; min-height: 390px; }
.doge-avatar { width: 390px; height: auto; position: relative; z-index: 2; filter: drop-shadow(0 12px 24px rgba(249, 109, 56, 0.2)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
.doge-bubble {
    position: absolute; top: 10px; right: 20px; max-width: 480px;
    background: var(--bg-card); border: 3px solid var(--foreground);
    border-radius: 28px; border-bottom-left-radius: 6px; padding: 20px 26px;
    font-size: 1.0rem; font-weight: 700; color: var(--foreground-muted); line-height: 1.75;
    box-shadow: 8px 8px 0 rgba(53, 42, 38, 0.9); z-index: 3;
}
.doge-bubble::before { content: ''; position: absolute; left: -16px; bottom: 28px; border-style: solid; border-width: 12px 16px 12px 0; border-color: transparent var(--foreground) transparent transparent; }
.doge-bubble::after { content: ''; position: absolute; left: -11px; bottom: 30px; border-style: solid; border-width: 9px 13px 9px 0; border-color: transparent #fff transparent transparent; }
.doge-name { display: inline-block; font-family: var(--font-display); font-size: 0.95rem; font-weight: 800; color: #fff; background: var(--primary); border-radius: 999px; padding: 3px 14px; margin-bottom: 8px; }
.doge-bubble strong { color: var(--primary); }
@media (max-width: 768px) {
    .doge-welcome { display: flex; position: static; max-width: 100%; min-height: auto; padding: 0 14px; align-items: flex-start; }
    .doge-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; filter: none; animation: none; border: 3px solid var(--foreground); margin-top: 4px; }
    .doge-bubble { position: static; max-width: none; padding: 14px 18px; font-size: 0.9rem; margin-left: 12px; box-shadow: 5px 5px 0 rgba(53, 42, 38, 0.9); }
    .doge-bubble::before, .doge-bubble::after { display: none; }
}

/* ===== 卡片基类（软弹卡片） ===== */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.glass-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }

/* ===== 公告 / 警示 ===== */
.announcements { padding: 26px 30px; margin-bottom: 20px; background: var(--warning-bg); border: 2px dashed rgba(232, 150, 12, 0.45); }
.warning-banner { display: flex; align-items: center; gap: 16px; padding: 18px 26px; margin-bottom: 60px; background: var(--danger-bg); border: 2px dashed rgba(225, 85, 68, 0.45); }
.warning-banner svg { width: 24px; height: 24px; color: var(--danger); flex-shrink: 0; }
.warning-banner p { font-size: 0.92rem; font-weight: 800; color: var(--danger-text); margin: 0; }

.section-label { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; margin-bottom: 18px; color: var(--foreground); }
.icon-wrapper { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 14px; flex-shrink: 0; box-shadow: none; }
.icon-wrapper svg { width: 20px; height: 20px; }
.icon-warning { background: var(--warning-bg); color: var(--warning); }
.icon-primary { background: var(--primary); color: #fff; }
.icon-success { background: var(--success-bg); color: var(--success); }
.icon-info { background: var(--info-bg); color: var(--info); }

.announcement-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.announcement-item { display: flex; align-items: flex-start; gap: 12px; font-size: 0.94rem; color: var(--foreground-muted); }
.announcement-item .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--warning); margin-top: 7px; flex-shrink: 0; }
.announcement-item strong { color: var(--foreground); font-weight: 800; }

code { background: var(--code-inline-bg); padding: 2px 8px; border-radius: 8px; font-family: var(--font-mono); font-size: 0.82em; color: var(--primary); border: 1px solid var(--code-inline-border); font-weight: 700; }

/* ===== Section ===== */
.section { margin-bottom: 72px; }
.section-title { display: flex; align-items: center; gap: 15px; font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--foreground); margin-bottom: 20px; }
.section-desc { color: var(--foreground-muted); font-size: 1.0rem; font-weight: 700; margin-bottom: 20px; max-width: 640px; }
.tabs-wrapper { width: 100%; }

/* ===== Endpoint ===== */
.endpoint-box { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; padding: 14px 20px; background: #fff; border: 2px solid var(--border-light); border-radius: 999px; margin-bottom: 14px; font-size: 0.92rem; font-weight: 700; color: var(--foreground-muted); box-shadow: var(--shadow-sm); }
.endpoint-box svg { width: 19px; height: 19px; color: var(--primary); flex-shrink: 0; }
.endpoint-box code { color: var(--foreground); font-size: 0.84rem; }

/* ===== Tab 导航（糖果胶囊） ===== */
.tab-nav { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px); border: 2px solid var(--border); border-radius: 999px; margin-bottom: 26px; box-shadow: var(--shadow-sm); }
.tab-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 2px solid transparent; background: transparent; cursor: pointer; font-family: var(--font-ui); font-size: 0.9rem; font-weight: 800; color: var(--foreground-muted); border-radius: 999px; transition: all 0.3s var(--ease); white-space: nowrap; }
.tab-btn:hover { color: var(--primary); background: var(--tab-hover-bg); transform: translateY(-2px); }
.tab-btn.active { color: #fff; background: var(--primary-grad); border-color: transparent; box-shadow: 0 8px 18px rgba(249, 109, 56, 0.3); transform: translateY(-2px); }
.tab-btn.active::before { display: none; }

.rate-badge { display: inline-flex; align-items: center; padding: 2px 9px; font-size: 0.72rem; font-family: var(--font-mono); font-weight: 700; color: var(--foreground-muted); background: var(--rate-badge-bg); border-radius: 999px; border: none; }
.tab-btn:hover .rate-badge { color: var(--primary); background: rgba(249, 109, 56, 0.14); }
.tab-btn.active .rate-badge { color: var(--primary); background: #fff; box-shadow: none; }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: popIn 0.45s var(--ease); }
@keyframes popIn { 0% { opacity: 0; transform: translateY(14px) scale(0.98); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

/* ===== 计费公式 ===== */
.pricing-formula { padding: 30px 34px; margin-bottom: 28px; background: #fff; border: none; box-shadow: var(--shadow-card); overflow: hidden; position: relative; }
.pricing-formula::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--primary-grad); }
.pricing-formula-header { margin-bottom: 18px; }
.pricing-formula-label { display: inline-block; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary); background: var(--primary-glow); border-radius: 999px; padding: 4px 14px; margin-bottom: 12px; }
.pricing-formula-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--foreground); }
.pricing-formula-equation { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--primary-glow); border: 2px dashed rgba(249, 109, 56, 0.4); border-radius: 999px; font-size: 0.92rem; font-weight: 800; color: var(--primary); margin-bottom: 26px; }
.pricing-formula-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.formula-item { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--bg-elevated); border-radius: 18px; transition: transform 0.3s var(--ease); }
.formula-item:hover { transform: translateY(-4px) rotate(-0.5deg); }
.formula-item-label { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--foreground-muted); }
.formula-item-value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--foreground); }
.formula-item-value.text-primary { color: var(--primary); }
.formula-item-value.text-success { color: var(--success); }
.formula-item-desc { font-size: 0.82rem; font-weight: 700; color: var(--foreground-muted); line-height: 1.55; }
@media (max-width: 768px) {
    .pricing-formula { padding: 24px; }
    .pricing-formula-grid { grid-template-columns: 1fr; gap: 12px; }
    .formula-item-value { font-size: 1.6rem; }
}

/* ===== 分组说明 ===== */
.group-desc-box { display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; margin-bottom: 20px; background: var(--primary-glow); border: 2px solid rgba(249, 109, 56, 0.22); border-radius: 20px; color: var(--foreground-muted); font-size: 0.94rem; font-weight: 700; }
.group-desc-box::before { display: none; }
.group-desc-box svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.group-desc-box strong { color: var(--foreground); font-weight: 800; }
.group-desc-content { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }

/* ===== 价格表 ===== */
.pricing-card { overflow: visible; padding: 6px; background: #fff; }
.pricing-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.pricing-table thead { background: transparent; }
.pricing-table th { padding: 14px 20px; text-align: left; font-weight: 800; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--foreground-dim); border-bottom: 2px solid var(--border-light); }
.pricing-table td { padding: 15px 20px; border-bottom: 1px solid var(--table-row-border); font-size: 0.94rem; font-weight: 700; vertical-align: middle; }
.pricing-table tbody tr { transition: background 0.2s var(--ease); }
.pricing-table tbody tr:hover td { background: var(--surface-soft); }
.pricing-table tbody tr:last-child td { border-bottom: none; }

.vendor-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 800; color: var(--foreground); white-space: nowrap; }
.vendor-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 2px 5px rgba(0,0,0,0.15); }
.vendor-anthropic { background: #D97757; } .vendor-openai { background: #10A37F; }
.vendor-google { background: #4285F4; } .vendor-xai { background: #33272B; }
.vendor-deepseek { background: #4D6BFE; } .vendor-zhipu { background: #3859FF; } .vendor-moonshot { background: #000000; }
.vendor-xiaomi { background: #FF6900; } .vendor-minimax { background: #F23F5D; } .vendor-qwen { background: #615CED; }

.model-cell { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.model-name { color: var(--foreground); font-family: var(--font-mono); font-size: 0.86em; font-weight: 700; padding: 4px 11px; background: var(--model-name-bg); border-radius: 999px; border: none; }

/* ===== 徽标（圆胖糖果） ===== */
.badge { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; border-width: 2px !important; border-style: solid; }
a.badge { text-decoration: none; transition: transform 0.25s var(--ease); }
a.badge:hover { filter: none; transform: translateY(-2px) scale(1.04); }
.interface-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge-blue { background: var(--badge-blue-bg); color: var(--badge-blue-color); border-color: var(--badge-blue-border); }
.badge-purple { background: var(--badge-purple-bg); color: var(--badge-purple-color); border-color: var(--badge-purple-border); }
.badge-green { background: var(--badge-green-bg); color: var(--badge-green-color); border-color: var(--badge-green-border); }
.tag-cherry { background: var(--tag-cherry-bg); color: var(--tag-cherry-color); border-color: var(--tag-cherry-border); }
.tag-claude-code { background: var(--tag-claude-bg); color: var(--tag-claude-color); border-color: var(--tag-claude-border); }
.tag-codex { background: var(--tag-codex-bg); color: var(--tag-codex-color); border-color: var(--tag-codex-border); }
.tag-banana { background: var(--tag-banana-bg); color: var(--tag-banana-color); border-color: var(--tag-banana-border); }

/* ===== Tooltip ===== */
.tooltip-trigger { position: relative; border-bottom: 2px dotted var(--primary); cursor: help; }
.tooltip-trigger .tooltip-content { visibility: hidden; opacity: 0; position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) scale(0.9); width: max-content; max-width: 320px; padding: 11px 15px; background: var(--tooltip-bg); border: 2px solid var(--foreground); border-radius: 16px; box-shadow: 5px 5px 0 rgba(51,39,43,0.9); font-size: 0.82rem; font-weight: 700; line-height: 1.5; color: var(--foreground-muted); z-index: 99999; transition: all 0.25s var(--ease); pointer-events: none; white-space: normal; }
.tooltip-trigger .tooltip-content::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: var(--foreground); }
.tooltip-trigger:hover .tooltip-content, .tooltip-trigger:focus-within .tooltip-content { visibility: visible; opacity: 1; transform: translateX(-50%) scale(1); }
.model-cell, .model-name, .pricing-table td, .pricing-table { overflow: visible; }

.pricing-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; font-size: 1.02rem; font-weight: 800; color: #fff; background: var(--primary-grad); padding: 13px 26px; border-radius: 999px; text-decoration: none; box-shadow: 0 8px 20px rgba(249, 109, 56, 0.3); transition: all 0.3s var(--ease); }
.pricing-link svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.pricing-link:hover { color: #fff; transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 30px rgba(249, 109, 56, 0.4); gap: 9px; }
.pricing-link:hover svg { transform: translateX(4px); }

/* ===== 教程 ===== */
.tutorial-card { padding: 32px; }
.tutorial-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.tutorial-icon { width: 52px; height: 52px; border-radius: 18px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); font-size: 1.5rem; }
.tutorial-icon svg { width: 28px; height: 28px; }
.tutorial-icon.cherry { background: var(--tag-cherry-bg); color: var(--tag-cherry-color); }
.tutorial-icon.translate { background: var(--tag-codex-bg); color: var(--tag-codex-color); }
.tutorial-icon.vscode { background: var(--badge-green-bg); color: var(--badge-green-color); }
.tutorial-icon.mobile { background: var(--info-bg); color: var(--info); }
.tutorial-header h4 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--foreground); }
.tutorial-card ol { margin-left: 4px; counter-reset: step; list-style: none; }
.tutorial-card ol > li { counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 16px; color: var(--foreground-muted); font-weight: 700; }
.tutorial-card ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-grad); color: #fff; font-family: var(--font-display); font-size: 0.92rem; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(249, 109, 56, 0.28); }
.tutorial-card ul { list-style: none; margin-top: 12px; padding: 16px 20px; background: var(--bg-elevated); border-radius: 18px; border: none; }
.tutorial-card ul li { margin-bottom: 8px; font-size: 0.9rem; position: relative; padding-left: 22px; }
.tutorial-card ul li::before { content: '●'; position: absolute; left: 0; color: var(--primary); font-size: 0.7rem; top: 4px; }
.tutorial-card ul li:last-child { margin-bottom: 0; }
.tutorial-card ul li a, .tutorial-card a { color: var(--primary) !important; font-weight: 800; }
.tutorial-card strong { color: var(--foreground); font-weight: 800; }
.tutorial-screenshot { display: block; max-width: 100%; height: auto; margin: 14px 0 6px; border-radius: 18px; border: 3px solid var(--border-light); box-shadow: var(--shadow-sm); }
.tutorial-tip { margin-top: 24px; padding: 16px 20px; background: var(--warning-bg); border-radius: 18px; border: 2px dashed rgba(232, 150, 12, 0.45); font-size: 0.9rem; font-weight: 700; color: var(--foreground-muted); display: flex; align-items: flex-start; gap: 12px; }
.tutorial-tip svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--warning); }
.tutorial-tip strong { color: var(--primary); }

/* ===== 代码块 ===== */
.config-section { margin-top: 22px; }
.code-block-wrapper { position: relative; margin-bottom: 14px; }
.code-block-wrapper pre { background: var(--code-block-bg); padding: 18px; padding-right: 80px; border-radius: 18px; overflow-x: auto; font-size: 0.84rem; line-height: 1.65; border: none; margin: 0; box-shadow: 0 8px 20px rgba(53, 42, 38, 0.2); }
.code-block-wrapper code { background: none; padding: 0; border: none; color: var(--code-text); font-family: var(--font-mono); font-weight: 500; }
.copy-btn { position: absolute; top: 12px; right: 12px; background: var(--copy-btn-bg); border: 1.5px solid var(--copy-btn-border); color: #FFEBE0; padding: 6px 13px; border-radius: 999px; font-size: 0.76rem; font-weight: 800; cursor: pointer; transition: all 0.25s var(--ease); display: flex; align-items: center; gap: 6px; font-family: var(--font-ui); }
.copy-btn:hover { background: var(--copy-btn-hover-bg); color: #fff; transform: scale(1.05); }
.copy-btn.copied { background: var(--success); border-color: var(--success); color: #fff; }
.copy-btn svg { width: 13px; height: 13px; }

/* ===== FAQ ===== */
.faq-grid { display: grid; gap: 16px; }
.faq-item { padding: 28px 32px; }
.faq-item h4 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--foreground); margin-bottom: 12px; }
.faq-item p { color: var(--foreground-muted); margin-bottom: 10px; font-size: 0.96rem; font-weight: 700; }
.faq-item p:last-child { margin-bottom: 0; }
.faq-item a { color: var(--primary); text-decoration: none; font-weight: 800; }
.faq-item a:hover { color: var(--primary-light); text-decoration: none; }
.faq-item ul, .faq-item ol { color: var(--foreground-muted); padding-left: 1.2em; margin: 8px 0 12px; line-height: 1.8; }
.faq-item li { margin-bottom: 4px; }
.faq-item li strong { color: var(--foreground); font-weight: 800; }
.faq-collapse { margin-top: 12px; border: 2px solid var(--border-light); border-radius: 18px; background: var(--bg-base); overflow: hidden; }
.faq-collapse > summary { list-style: none; cursor: pointer; user-select: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; font-size: 0.93rem; font-weight: 800; color: var(--foreground); transition: background 0.2s var(--ease); }
.faq-collapse > summary::-webkit-details-marker { display: none; }
.faq-collapse > summary::after { content: ''; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-glow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F96D38' stroke-width='3' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / 14px no-repeat; border: none; transform: rotate(0deg); transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq-collapse[open] > summary::after { transform: rotate(180deg); margin-top: 0; }
.faq-collapse > summary:hover { background: var(--surface-soft); }
.faq-collapse-body { padding: 6px 18px 18px; border-top: 2px solid var(--border); }
.faq-country-and-area-list { column-count: 4; column-gap: 24px; margin-top: 12px; font-size: 0.9rem; font-weight: 700; line-height: 1.9; color: var(--foreground-muted); }
.faq-country-and-area-list span { display: block; break-inside: avoid; }
@media (max-width: 900px) { .faq-country-and-area-list { column-count: 3; } }
@media (max-width: 600px) { .faq-country-and-area-list { column-count: 2; } }

/* FAQ: 错误速查 / 推荐 */
.faq-chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 18px; }
.faq-chip { padding: 14px 16px; border-radius: 18px; border: none; background: var(--surface-soft); transition: transform 0.3s var(--ease); }
.faq-chip:hover { transform: translateY(-3px) rotate(-0.5deg); }
.faq-chip-title { display: block; font-size: 0.88rem; font-weight: 800; color: var(--foreground); margin-bottom: 4px; }
.faq-chip-codes { font-size: 0.78rem; color: var(--foreground-muted); font-family: var(--font-mono); font-weight: 700; line-height: 1.5; }
.faq-chip-client { background: var(--danger-bg); }
.faq-chip-limit { background: var(--warning-bg); }
.faq-chip-upstream,
.faq-chip-cf { background: var(--primary-glow); }
.faq-chip-network { background: var(--success-bg); }
.faq-chip-heavy { background: rgba(53, 42, 38, 0.05); }
.faq-error-list { display: grid; gap: 9px; margin-top: 8px; }
.faq-error-item > summary { font-family: var(--font-mono); font-size: 0.88rem; font-weight: 700; }
.faq-error-item > summary .err-name { color: var(--primary); margin-left: 4px; }
.faq-error-item p, .faq-error-item ul { font-size: 0.9rem; }
.faq-feedback-box { margin-top: 16px; padding: 15px 18px; border-radius: 18px; border: 2px dashed rgba(249, 109, 56, 0.4); background: var(--primary-glow); font-size: 0.9rem; font-weight: 700; color: var(--foreground-muted); }
.faq-feedback-box strong { color: var(--foreground); }
.faq-recommend-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 12px 0 4px; font-size: 0.9rem; }
.faq-recommend-table th, .faq-recommend-table td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--foreground-muted); line-height: 1.65; font-weight: 700; }
.faq-recommend-table th { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--foreground-dim); font-weight: 800; background: var(--bg-elevated); border-bottom: 2px solid var(--border-light); }
.faq-recommend-table th:first-child { border-radius: 12px 0 0 0; }
.faq-recommend-table th:last-child { border-radius: 0 12px 0 0; }
.faq-recommend-table td:first-child, .faq-recommend-table th:first-child { color: var(--foreground); font-weight: 800; white-space: nowrap; }
.faq-tag-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.faq-tag-list code { display: inline-block; padding: 3px 9px; font-size: 0.76rem; font-weight: 700; line-height: 1.4; word-break: break-all; border-radius: 999px; }
@media (max-width: 768px) {
    .faq-chip-grid { grid-template-columns: repeat(2, 1fr); }
    .faq-recommend-table { display: block; overflow-x: auto; }
    .faq-recommend-table th, .faq-recommend-table td { white-space: normal; min-width: 110px; }
    .faq-recommend-table td:nth-child(2), .faq-recommend-table td:nth-child(3) { min-width: 140px; }
    .faq-recommend-table td:last-child { min-width: 180px; }
}
@media (max-width: 480px) { .faq-chip-grid { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.footer { text-align: center; padding: 60px 20px 26px; border-top: 2px dashed var(--border-light); margin-top: 40px; }
.footer p { color: var(--foreground-dim); font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; }
.footer a { color: var(--foreground-muted); text-decoration: none; font-weight: 800; }
.footer a:hover { color: var(--primary); }

/* ===== 动画 ===== */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(30px) scale(0.98); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal.visible { opacity: 1; transform: translateY(0) scale(1); }

/* ===== 语言切换 ===== */
.lang-toggle { display: flex; align-items: center; gap: 4px; background: var(--lang-toggle-bg); border: 2px solid var(--border-light); border-radius: 999px; padding: 4px; box-shadow: var(--shadow-sm); margin: 24px auto; width: fit-content; }
.lang-btn { padding: 7px 18px; border: none; background: transparent; font-family: var(--font-ui); font-size: 0.84rem; font-weight: 800; color: var(--foreground-muted); cursor: pointer; border-radius: 999px; transition: all 0.3s var(--ease); }
.lang-btn.active { background: var(--primary-grad); color: #fff; box-shadow: 0 4px 12px rgba(249, 109, 56, 0.3); }
.lang-btn:hover:not(.active) { color: var(--primary); }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .page-wrapper { padding: 24px 16px 60px; }
    .header { padding: 44px 10px 40px; }
    .announcements, .tutorial-card, .faq-item { padding: 22px; }
    .tab-nav { gap: 7px; padding: 9px; border-radius: 24px; }
    .tab-btn { padding: 8px 14px; font-size: 0.82rem; }
    .pricing-table th, .pricing-table td { padding: 12px 13px; font-size: 0.85rem; }
    .pricing-table th:first-child, .pricing-table td:first-child { padding-left: 15px; }
    .pricing-table th:last-child, .pricing-table td:last-child { padding-right: 15px; }
    .model-name { font-size: 0.8em; word-break: break-all; }
    .section-title { font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .pricing-table th, .pricing-table td { padding: 10px; font-size: 0.8rem; }
    .vendor-tag { font-size: 0.76rem; }
    .endpoint-box { font-size: 0.82rem; border-radius: 20px; }
    .endpoint-box code { font-size: 0.76rem; word-break: break-all; }
}
