/* ==========================================================================
   首页（用户前台）—— 「Bento 控制台」设计
   独立设计：靛蓝→青 双色体系 + Bento 卡片网格 + 吸附式操作控制台
   仅由 public/index.html 引入，作用域限定 body.home-v2，不影响发票助手页与后台
   ========================================================================== */

body.home-v2 {
    --ink: #0b1220;
    --ink-soft: #1e293b;
    --ink-dim: #64748b;
    --ink-mute: #94a3b8;

    --indigo: #4f46e5;
    --cyan: #06b6d4;
    --violet: #7c3aed;
    --grad-brand: linear-gradient(120deg, #4f46e5 0%, #6366f1 40%, #06b6d4 100%);
    --grad-soft: linear-gradient(140deg, rgba(79, 70, 229, 0.08), rgba(6, 182, 212, 0.06));

    --emerald: #059669;
    --emerald-soft: rgba(5, 150, 105, 0.1);
    --amber: #b45309;
    --amber-soft: rgba(245, 158, 11, 0.12);
    --rose: #be123c;

    --canvas: #f4f6fb;
    --tile: #ffffff;
    --hairline: rgba(15, 23, 42, 0.07);
    --hairline-strong: rgba(15, 23, 42, 0.12);

    --r-lg: 22px;
    --r-md: 14px;
    --r-sm: 10px;

    --sh-tile: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px rgba(15, 23, 42, 0.055);
    --sh-tile-hover: 0 2px 6px rgba(15, 23, 42, 0.05), 0 18px 44px rgba(15, 23, 42, 0.09);
    --sh-console: 0 2px 8px rgba(15, 23, 42, 0.06), 0 28px 64px rgba(15, 23, 42, 0.13);

    --topbar-h: 64px;

    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
        'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--ink);
    background-color: var(--canvas);
    background-image:
        radial-gradient(900px 460px at 8% -6%, rgba(79, 70, 229, 0.13), transparent 60%),
        radial-gradient(820px 420px at 96% 4%, rgba(6, 182, 212, 0.12), transparent 58%),
        radial-gradient(700px 400px at 50% 104%, rgba(124, 58, 237, 0.07), transparent 60%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* 内联 SVG 图标默认尺寸（lucide 原默认 24×24；容器规则优先级更高会覆盖） */
.icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: middle;
}

body.home-v2 * {
    box-sizing: border-box;
}

/* ============================ 吸顶导航 ============================ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--topbar-h);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--hairline);
}

.topbar-inner {
    max-width: 1160px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: var(--grad-brand);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.32);
}

.brand-mark svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

.brand-text {
    display: flex;
    align-items: baseline;
    gap: 5px;
    line-height: 1.15;
    white-space: nowrap;
}

.brand-text b {
    font-size: 14.5px;
    font-weight: 780;
    letter-spacing: -0.015em;
}

.brand-text i {
    font-style: normal;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-mute);
}

/* 状态药丸（JS 更新的 4 个元素都在这里） */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--emerald-soft);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.16);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.88); }
}

.status-text {
    font-size: 12px;
    font-weight: 650;
    color: #065f46;
}

/* 原始占用数字（如 0/1）属于内部指标，不再对外展示；
   元素保留在 DOM 中供 JS 更新，仅用下方点阵表达排队情况 */
.status-ratio {
    display: none;
}

.status-pill.load-mid {
    background: var(--amber-soft);
    border-color: rgba(245, 158, 11, 0.24);
}

.status-pill.load-mid .status-dot {
    background: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.16);
}

.status-pill.load-mid .status-text,
.status-pill.load-mid .status-ratio {
    color: #92400e;
}

.status-pill.load-high {
    background: rgba(190, 18, 60, 0.09);
    border-color: rgba(190, 18, 60, 0.2);
}

.status-pill.load-high .status-dot {
    background: var(--rose);
    box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.14);
}

.status-pill.load-high .status-text,
.status-pill.load-high .status-ratio {
    color: #9f1239;
}

/* 槽位点阵同样不对外展示：容器保留在 DOM 中供 JS 渲染，避免出现孤立的小色块 */
.status-pill .public-slot-grid {
    display: none;
}

.public-slot-box {
    width: 5px;
    height: 12px;
    border-radius: 2px;
    background: rgba(5, 150, 105, 0.25);
}

.public-slot-box.occupied {
    background: var(--emerald);
}

.status-pill.load-mid .public-slot-box {
    background: rgba(217, 119, 6, 0.25);
}

.status-pill.load-mid .public-slot-box.occupied {
    background: #d97706;
}

.status-pill.load-high .public-slot-box {
    background: rgba(190, 18, 60, 0.2);
}

.status-pill.load-high .public-slot-box.occupied {
    background: var(--rose);
}

.topnav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.topnav a {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-dim);
    text-decoration: none;
    border-radius: 9px;
    transition: color 0.16s ease, background 0.16s ease;
}

.topnav a:hover {
    color: var(--ink);
    background: rgba(15, 23, 42, 0.045);
}

.topnav-cta {
    margin-left: 6px;
    padding: 9px 16px !important;
    color: #fff !important;
    background: var(--ink) !important;
}

.topnav-cta:hover {
    background: #1e293b !important;
}

/* ============================ Bento 网格 ============================ */
.page-shell {
    position: relative;
    z-index: 1;
    /* style.css 把宽度写死为 min(720px, 100% - 32px)，必须同时覆盖 width */
    width: min(1160px, calc(100% - 48px));
    max-width: none;
    margin: 0 auto;
    padding: 26px 0 60px;
}

.bento {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 16px;
    align-items: start;
}

.bento-left,
.bento-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.bento-right {
    position: sticky;
    top: calc(var(--topbar-h) + 16px);
}

.tile {
    background: var(--tile);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-tile);
    padding: 22px;
}

.tile-faq {
    grid-column: 1 / -1;
}

.tile-head {
    margin-bottom: 16px;
}

.tile-head h2 {
    margin: 0 0 4px;
    font-size: 16.5px;
    font-weight: 720;
    letter-spacing: -0.015em;
}

.tile-head p {
    margin: 0;
    font-size: 12.5px;
    color: var(--ink-dim);
}

/* ============================ Hero ============================ */
.tile-hero {
    position: relative;
    overflow: hidden;
    padding: 30px 28px 26px;
    background:
        radial-gradient(520px 260px at 88% -10%, rgba(6, 182, 212, 0.16), transparent 62%),
        radial-gradient(460px 240px at 4% 108%, rgba(79, 70, 229, 0.12), transparent 60%),
        #fff;
}

.tile-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, #000, transparent 78%);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 78%);
}

.tile-hero > * {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: var(--indigo);
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.16);
}

.eyebrow svg {
    width: 13px;
    height: 13px;
}

.tile-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(30px, 3.6vw, 42px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.03em;
    color: var(--ink);
}

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

.hero-copy {
    max-width: 460px;
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--ink-dim);
}

.hero-copy b {
    color: var(--ink-soft);
    font-weight: 650;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px;
    padding: 16px 0;
    border-top: 1px dashed var(--hairline-strong);
    border-bottom: 1px dashed var(--hairline-strong);
}

.stat dt {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.stat dt small {
    margin-left: 2px;
    font-size: 12px;
    font-weight: 650;
    color: var(--indigo);
}

.stat dd {
    margin: 6px 0 0;
    font-size: 11.5px;
    color: var(--ink-mute);
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-md);
    background: var(--grad-brand);
    box-shadow: 0 10px 26px rgba(79, 70, 229, 0.3);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(79, 70, 229, 0.36);
}

.btn-hero svg {
    width: 16px;
    height: 16px;
}

/* ============================ 三个特性小卡 ============================ */
.tile-console {
    padding: 0;
    overflow: hidden;
    border-color: var(--hairline-strong);
    box-shadow: var(--sh-console);
}

.console-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 20px 22px 14px;
    background:
        radial-gradient(320px 160px at 100% 0%, rgba(6, 182, 212, 0.14), transparent 60%),
        var(--grad-soft);
    border-bottom: 1px solid var(--hairline);
}

.console-kicker {
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--indigo);
}

.console-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 780;
    letter-spacing: -0.02em;
}

.flow-badge {
    flex: 0 0 auto;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 650;
    color: var(--ink-dim);
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid transparent;
}

.flow-badge.cdk_ok {
    color: var(--indigo);
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.18);
}

.flow-badge.running {
    color: var(--amber);
    background: var(--amber-soft);
    border-color: rgba(245, 158, 11, 0.22);
}

.flow-badge.success {
    color: #065f46;
    background: var(--emerald-soft);
    border-color: rgba(5, 150, 105, 0.22);
}

.flow-badge.failed {
    color: var(--rose);
    background: rgba(190, 18, 60, 0.09);
    border-color: rgba(190, 18, 60, 0.2);
}

.flow-badge.manual {
    color: var(--violet);
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.18);
}

.segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 16px 22px 0;
    padding: 4px;
    background: rgba(15, 23, 42, 0.04);
    border-radius: 12px;
}

.tab-btn {
    padding: 9px 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 650;
    color: var(--ink-dim);
    background: transparent;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.tab-btn:hover {
    color: var(--ink);
}

.tab-btn.active {
    color: var(--ink);
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.stepper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 22px 0;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 650;
    color: var(--ink-mute);
    white-space: nowrap;
}

.step-num {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink-mute);
    background: rgba(15, 23, 42, 0.05);
}

.step-item.active .step-num {
    color: #fff;
    background: var(--grad-brand);
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.3);
}

.step-item.active {
    color: var(--indigo);
}

.step-item.done .step-num {
    color: #fff;
    background: var(--emerald);
}

.step-item.done {
    color: #047857;
}

.step-line {
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.3), rgba(148, 163, 184, 0.22));
}

.console-body {
    padding: 16px 22px 18px;
}

.field-label {
    display: block;
    margin-bottom: 7px;
    font-size: 12.5px;
    font-weight: 650;
    color: var(--ink-soft);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mono-field {
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.mono-field:focus-within {
    border-color: var(--indigo);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.mono-prefix {
    flex: 0 0 auto;
    align-self: stretch;
    display: grid;
    place-items: center;
    padding: 0 11px;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--indigo);
    background: rgba(79, 70, 229, 0.07);
    border-right: 1px solid rgba(79, 70, 229, 0.12);
}

body.home-v2 .mono-field input[type='text'] {
    flex: 1;
    min-width: 0;
    padding: 13px;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13.5px;
    letter-spacing: 0.04em;
    color: var(--ink);
    background: transparent;
    border: none;
    outline: none;
}

body.home-v2 .mono-field input[type='text']::placeholder {
    color: #a9b4c4;
    letter-spacing: 0.02em;
}

.textarea-wrapper {
    position: relative;
}

body.home-v2 .textarea-wrapper textarea {
    width: 100%;
    /* 底部预留按钮高度，避免粘贴的长文本被按钮遮挡 */
    padding: 13px 13px 42px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    resize: vertical;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

body.home-v2 .textarea-wrapper textarea:focus {
    outline: none;
    border-color: var(--indigo);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.get-token-btn-floating {
    position: absolute;
    /* 放在输入框右下角；务必只设一侧（bottom），同时设 top+bottom 会被拉伸到整个 textarea 高 */
    top: auto;
    bottom: 8px;
    right: 8px;
    left: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 4px 10px;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 650;
    color: var(--indigo);
    text-decoration: none;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.16);
    border-radius: 999px;
    transition: background 0.16s ease;
}

.get-token-btn-floating:hover {
    background: rgba(79, 70, 229, 0.18);
}

.cdk-confirmed,
.plan-confirmed {
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 11px;
    font-size: 12.5px;
    line-height: 1.6;
}

.cdk-confirmed {
    color: #3730a3;
    background: rgba(79, 70, 229, 0.07);
    border: 1px solid rgba(79, 70, 229, 0.16);
}

.plan-confirmed {
    color: #5b21b6;
    background: rgba(124, 58, 237, 0.07);
    border: 1px solid rgba(124, 58, 237, 0.16);
}

/* ============================ 账号核对卡 ============================ */
.account-check {
    padding: 12px 13px;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.02);
    transition: border-color 0.16s ease, background 0.16s ease;
}

.account-check[data-state='ok'] {
    border-color: rgba(5, 150, 105, 0.24);
    background: rgba(5, 150, 105, 0.05);
}

.account-check[data-state='warn'] {
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(245, 158, 11, 0.06);
}

.account-check[data-state='error'] {
    border-color: rgba(190, 18, 60, 0.18);
    background: rgba(190, 18, 60, 0.04);
}

.account-check-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.account-check-title {
    font-size: 12.5px;
    font-weight: 680;
    color: var(--ink-soft);
}

.account-badge {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
    color: var(--ink-mute);
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid transparent;
}

.account-badge.checking {
    color: var(--indigo);
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.16);
}

.account-badge.ok {
    color: #065f46;
    background: var(--emerald-soft);
    border-color: rgba(5, 150, 105, 0.22);
}

.account-badge.warn {
    color: var(--amber);
    background: var(--amber-soft);
    border-color: rgba(245, 158, 11, 0.24);
}

.account-check-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-check-tip {
    margin: 0;
    font-size: 11.8px;
    line-height: 1.65;
    color: var(--ink-mute);
}

.account-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
}

.account-row span {
    color: var(--ink-mute);
    flex: 0 0 auto;
}

.account-row b {
    font-weight: 650;
    color: var(--ink-soft);
    text-align: right;
    word-break: break-all;
}

.account-note {
    margin: 2px 0 0;
    padding-top: 7px;
    border-top: 1px dashed var(--hairline);
    font-size: 11.8px;
    line-height: 1.6;
}

.account-note.ok {
    color: #047857;
}

.account-note.warn {
    color: var(--amber);
}

.field-hint {
    margin: -2px 0 0;
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--ink-mute);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--grad-brand);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.26);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.32);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    filter: grayscale(0.2);
    box-shadow: none;
}

.btn-lg {
    padding: 14px 20px;
    font-size: 14.5px;
}

.btn-secondary {
    padding: 11px 16px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 650;
    color: var(--ink-dim);
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.btn-secondary:hover {
    color: var(--ink);
    border-color: var(--hairline-strong);
    background: rgba(15, 23, 42, 0.03);
}

.task-progress {
    margin-top: 14px;
    padding: 13px 14px;
    background: rgba(15, 23, 42, 0.025);
    border: 1px solid var(--hairline);
    border-radius: 12px;
}

.task-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    font-size: 12px;
    font-weight: 650;
    color: var(--ink-soft);
}

.task-progress-header b {
    font-size: 13px;
    font-weight: 750;
    color: var(--indigo);
    font-variant-numeric: tabular-nums;
}

.task-progress-track {
    height: 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.task-progress-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--grad-brand);
    background-size: 200% 100%;
    animation: sheen 2.4s linear infinite;
    transition: width 0.4s ease;
}

.task-progress-bar.error {
    background: linear-gradient(90deg, #e11d48, #f97316);
    animation: none;
}

@keyframes sheen {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.task-progress-text {
    margin: 9px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--ink-dim);
}

.status-message {
    display: none;
    margin-top: 13px;
    padding: 11px 13px;
    font-size: 12.5px;
    line-height: 1.7;
    border: 1px solid transparent;
    border-radius: 12px;
}

.status-message.status-success {
    display: block;
    color: #065f46;
    background: var(--emerald-soft);
    border-color: rgba(5, 150, 105, 0.22);
}

.status-message.status-error {
    display: block;
    color: #9f1239;
    background: rgba(190, 18, 60, 0.07);
    border-color: rgba(190, 18, 60, 0.18);
}

.console-foot {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 13px 22px 16px;
    font-size: 11.5px;
    line-height: 1.65;
    color: var(--ink-mute);
    background: rgba(15, 23, 42, 0.015);
    border-top: 1px solid var(--hairline);
}

.console-foot svg {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-top: 2px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.plan-card {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.plan-card:hover {
    transform: translateY(-3px);
    border-color: rgba(79, 70, 229, 0.24);
    box-shadow: var(--sh-tile-hover);
}

.plan-card.highlight {
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.06), #fff 46%);
    border-color: rgba(79, 70, 229, 0.28);
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.06);
}

.plan-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.plan-card-head h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 720;
    white-space: nowrap;
}

.plan-tag {
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--indigo);
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.16);
}

.plan-tag.pro {
    color: var(--violet);
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.18);
}

.plan-desc {
    margin: 0;
    min-height: 38px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--ink-dim);
}

.plan-desc strong {
    color: var(--indigo);
    font-weight: 750;
}

.plan-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 9px 0 0;
    border-top: 1px dashed var(--hairline-strong);
}

.plan-points li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--ink-soft);
}

.plan-points svg {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    color: var(--emerald);
}

.guide-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.guide-steps li {
    display: flex;
    gap: 14px;
    padding: 13px 0;
}

.guide-steps li + li {
    border-top: 1px dashed var(--hairline-strong);
}

.guide-num {
    flex: 0 0 auto;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: rgba(79, 70, 229, 0.3);
}

.guide-steps b {
    display: block;
    margin-bottom: 3px;
    font-size: 13.5px;
    font-weight: 700;
}

.guide-steps p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--ink-dim);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 26px;
}

.faq-item {
    padding: 12px 0;
    border-bottom: 1px dashed var(--hairline);
}

.faq-item b {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 680;
}

.faq-item p {
    margin: 0;
    font-size: 12.3px;
    line-height: 1.7;
    color: var(--ink-dim);
}

.faq-item a {
    color: var(--indigo);
    text-decoration: none;
    border-bottom: 1px solid rgba(79, 70, 229, 0.3);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    padding: 16px 4px 4px;
    border-top: 1px solid var(--hairline);
    font-size: 12px;
    color: var(--ink-mute);
}

.footer-brand {
    font-weight: 650;
    color: var(--ink-dim);
}

.footer-security {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-security svg {
    width: 13px;
    height: 13px;
    color: var(--emerald);
}

@media (max-width: 1020px) {
    .bento {
        grid-template-columns: minmax(0, 1fr);
    }

    .bento-right {
        grid-row: 1;
        position: static;
    }

    .bento-left {
        grid-row: 2;
    }

    .tile-faq {
        grid-row: 3;
    }

    .topnav a:not(.topnav-cta) {
        display: none;
    }

    /* 单列时控制台已排在 hero 之上，hero 内的跳转按钮会向上跳，故隐藏 */
    .btn-hero {
        display: none;
    }

    .page-shell {
        width: min(720px, calc(100% - 36px));
    }
}

@media (max-width: 640px) {
    body.home-v2 {
        --topbar-h: 58px;
        --r-lg: 18px;
    }

    .topbar-inner,
    .page-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .page-shell {
        padding-top: 16px;
        padding-bottom: 40px;
    }

    /* 顶栏空间有限：手机上品牌只保留 "ChatGPT" */
    .topbar .brand-text i {
        display: none;
    }

    .topbar-inner {
        gap: 10px;
    }

    .status-pill {
        padding: 5px 10px;
    }

    .brand-text b {
        white-space: nowrap;
    }

    .tile {
        padding: 18px 16px;
    }

    .tile-hero {
        padding: 22px 18px 20px;
    }

    .hero-stats {
        gap: 6px;
    }

    .stat dt {
        font-size: 22px;
    }

    .console-head,
    .console-body,
    .console-foot {
        padding-left: 16px;
        padding-right: 16px;
    }

    .segmented,
    .stepper {
        margin-left: 16px;
        margin-right: 16px;
    }

    .plan-grid,
    .faq-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .plan-desc {
        min-height: 0;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home-v2 *,
    body.home-v2 *::before,
    body.home-v2 *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
