/* ==========================================================================
   Yuki授权 · 设计系统
   基础令牌 / 通用组件 / 前台页面
   ========================================================================== */

:root {
    --ink-900: #070b18;
    --ink-800: #0c1224;
    --ink-700: #131b33;
    --ink-600: #1c2544;

    --brand-50: #eef0ff;
    --brand-100: #dfe2ff;
    --brand-300: #a8afff;
    --brand-500: #5b5bd6;
    --brand-600: #4a45c4;
    --brand-700: #3c37a3;

    --cyan-400: #22d3ee;
    --lime-400: #a3e635;

    --ok: #16a34a;
    --ok-soft: #e7f7ee;
    --warn: #d97706;
    --warn-soft: #fdf3e2;
    --danger: #dc2626;
    --danger-soft: #fdecec;
    --muted: #64748b;

    --paper: #ffffff;
    --paper-2: #f6f7fb;
    --line: #e6e8f0;
    --line-strong: #d3d7e4;
    --text: #14182b;
    --text-soft: #5a627a;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
    --shadow: 0 4px 12px rgba(15, 23, 42, .06), 0 12px 32px -12px rgba(15, 23, 42, .14);
    --shadow-lg: 0 24px 60px -24px rgba(23, 20, 80, .35);

    --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
    --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;

    --sidebar-w: 248px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--paper-2);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0 0 .75em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--brand-300); color: #fff; }

/* ------------------------------- 通用元件 ------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    color: var(--text);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .12s ease, box-shadow .16s ease;
    white-space: nowrap;
    text-decoration: none;
}
.btn:hover { background: #fbfbfd; border-color: #c2c7d8; color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }

.btn-primary {
    background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
    border-color: var(--brand-600);
    color: #fff;
    box-shadow: 0 1px 2px rgba(59, 55, 163, .3), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.btn-primary:hover { background: linear-gradient(180deg, #6a68e0, var(--brand-600)); color: #fff; border-color: var(--brand-700); }

.btn-dark { background: var(--ink-800); border-color: var(--ink-800); color: #fff; }
.btn-dark:hover { background: var(--ink-700); color: #fff; }

.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #c11f1f; color: #fff; border-color: #c11f1f; }

.btn-ghost { background: transparent; border-color: transparent; color: var(--text-soft); }
.btn-ghost:hover { background: rgba(91, 91, 214, .08); border-color: transparent; color: var(--brand-600); }

.btn-soft { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }
.btn-soft:hover { background: var(--brand-100); color: var(--brand-700); }

.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-xs { padding: 4px 9px; font-size: 12px; border-radius: 7px; gap: 4px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }

.label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 6px;
    letter-spacing: .01em;
}
.label .req { color: var(--danger); margin-left: 2px; }

.input, .select, .textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #9aa2b6; }
.input:hover, .select:hover, .textarea:hover { border-color: #c2c7d8; }
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3.5px rgba(91, 91, 214, .14);
}
.textarea { min-height: 82px; resize: vertical; line-height: 1.6; }

.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}

.input-group { display: flex; gap: 8px; }
.input-group > .input { flex: 1; }

.input-mono { font-family: var(--mono); letter-spacing: .06em; }

.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.hint strong { color: var(--text-soft); }

.err-text { font-size: 12px; color: var(--danger); margin-top: 5px; font-weight: 500; }

.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 13.5px; color: var(--text-soft); }
.checkbox input { width: 16px; height: 16px; accent-color: var(--brand-500); cursor: pointer; }

/* 状态徽标 */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
    white-space: nowrap;
    border: 1px solid transparent;
}
.pill::before {
    content: "";
    width: 5px; height: 5px; border-radius: 50%;
    background: currentColor;
    flex: none;
}
.pill.is-ok { background: var(--ok-soft); color: #12803c; border-color: #ccecd9; }
.pill.is-idle { background: #eef1f8; color: #4a5578; border-color: #dde2ef; }
.pill.is-warn { background: var(--warn-soft); color: var(--warn); border-color: #f6e3bf; }
.pill.is-danger { background: var(--danger-soft); color: var(--danger); border-color: #f6d4d4; }
.pill.is-muted { background: #f1f2f6; color: #8b93a7; border-color: #e4e6ee; }
.pill.is-info { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.pill.no-dot::before { display: none; }

/* 卡片 */
.panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.panel-head h3 { font-size: 14.5px; }
.panel-head .sub { font-size: 12.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.panel-body { padding: 18px; }

/* 提示条 */
.alert {
    display: flex;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.55;
    border: 1px solid;
    margin-bottom: 14px;
}
.alert:last-child { margin-bottom: 0; }
.alert-success { background: var(--ok-soft); border-color: #ccecd9; color: #106b34; }
.alert-error { background: var(--danger-soft); border-color: #f6d4d4; color: #a81c1c; }
.alert-warn { background: var(--warn-soft); border-color: #f6e3bf; color: #92560a; }
.alert-info { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }

/* 表格 */
.table-wrap { width: 100%; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
    text-align: left;
    padding: 10px 14px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #7b8398;
    background: #fafbfe;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
table.data td {
    padding: 11px 14px;
    border-bottom: 1px solid #f0f1f7;
    vertical-align: middle;
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: #fbfcff; }
table.data tbody tr.is-muted-row { color: #9aa2b6; }
table.data tbody tr.is-muted-row .key { color: #9aa2b6; text-decoration: line-through; }

.key {
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: .05em;
    color: var(--text);
    white-space: nowrap;
}

.mono { font-family: var(--mono); font-size: 12.5px; }

.num { font-variant-numeric: tabular-nums; }

/* 空状态 */
.empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--muted);
}
.empty .ico {
    width: 46px; height: 46px;
    margin: 0 auto 12px;
    border-radius: 14px;
    background: #f3f4f9;
    display: grid;
    place-items: center;
    color: #a7aec2;
}
.empty p { font-size: 13px; }

/* ==========================================================================
   前台：查询页
   ========================================================================== */

.public-body {
    min-height: 100vh;
    background: var(--paper-2);
    color: var(--text);
}

/* 顶部深色区：高度由内容决定，始终包住头部与首屏文案 */
.hero-band {
    position: relative;
    padding-bottom: 132px;
    background:
        radial-gradient(900px 480px at 15% -10%, rgba(91, 91, 214, .34), transparent 62%),
        radial-gradient(760px 420px at 92% 6%, rgba(34, 211, 238, .2), transparent 64%),
        linear-gradient(180deg, #070b18 0%, #0b1124 62%, #0e1630 100%);
    color: #fff;
    isolation: isolate;
}
.hero-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 74%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 74%);
    z-index: -1;
    pointer-events: none;
}

.site-head {
    max-width: 1080px;
    margin: 0 auto;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 3;
}
.brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
    width: 36px; height: 36px;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--brand-500), #7b5cf0 55%, var(--cyan-400));
    display: grid; place-items: center;
    box-shadow: 0 6px 18px -6px rgba(124, 92, 240, .8), inset 0 1px 0 rgba(255, 255, 255, .3);
    flex: none;
}
.brand-mark svg { display: block; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.brand-sub { font-size: 11px; color: #8b93b5; letter-spacing: .14em; text-transform: uppercase; margin-top: -2px; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
    color: #a9b1cb;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: 8px;
    transition: color .15s, background .15s;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.site-nav .btn { color: #fff; }

/* btn-tut-global：教程按钮（所有尺寸生效） */
.site-nav > a.btn-tut {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    color: #fff !important;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 2px 10px rgba(79, 70, 229, .4);
    transition: background .16s ease, box-shadow .16s ease, transform .12s ease;
}
.site-nav > a.btn-tut:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    border-color: rgba(255, 255, 255, .32);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(79, 70, 229, .55);
    transform: translateY(-1px);
}
.site-nav > a.btn-tut svg {
    flex: none;
    opacity: .95;
}
.site-nav .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

.hero {
    max-width: 1080px;
    margin: 0 auto;
    padding: 46px 24px 0;
    position: relative;
    z-index: 2;
    color: #fff;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    font-size: 12px;
    color: #c8cfe8;
    margin-bottom: 20px;
}
.hero-eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--lime-400);
    box-shadow: 0 0 0 3px rgba(163, 230, 53, .18);
}
.hero h1 {
    font-size: clamp(30px, 4.4vw, 46px);
    line-height: 1.12;
    letter-spacing: -.03em;
    font-weight: 760;
    max-width: 17em;
}
.hero h1 .accent {
    background: linear-gradient(100deg, #a8afff 10%, var(--cyan-400) 65%, #c4f56a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-lede {
    margin-top: 14px;
    font-size: 15px;
    color: #a4adc9;
    max-width: 34em;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 30px;
}
.hero-stat .k {
    font-size: 22px;
    font-weight: 700;
    font-family: var(--mono);
    letter-spacing: -.02em;
    color: #fff;
    display: block;
    line-height: 1.2;
}
.hero-stat .v { font-size: 11.5px; color: #8b93b5; letter-spacing: .04em; }

/* 查询卡片 */
.query-shell {
    max-width: 1080px;
    margin: -96px auto 0;
    padding: 0 24px 56px;
    position: relative;
    z-index: 4;
}
.query-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 0 30px 70px -34px rgba(12, 18, 36, .55), 0 2px 8px rgba(12, 18, 36, .06);
    padding: 26px 28px;
}
.query-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.query-input-wrap { position: relative; flex: 1; }
.query-input-wrap .ico {
    position: absolute;
    left: 15px; top: 50%;
    transform: translateY(-50%);
    color: #9aa2b6;
    pointer-events: none;
}
.query-input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 44px;
    border-radius: 12px;
    border: 1.5px solid var(--line-strong);
    font-family: var(--mono);
    font-size: 15.5px;
    letter-spacing: .1em;
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
.query-input::placeholder { font-family: var(--font); letter-spacing: 0; font-size: 14px; color: #a3aabc; }
.query-input:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(91, 91, 214, .12);
}
.query-form .btn {
    height: 52px;
    padding: 0 26px;
    font-size: 14.5px;
    border-radius: 12px;
}
.query-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--muted);
}
.query-tips span { display: inline-flex; align-items: center; gap: 6px; }

/* 查询结果 */
.result { margin-top: 22px; animation: rise .35s cubic-bezier(.2, .7, .3, 1); }

@keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(120deg, #0d1330, #171d3f 60%, #111a38);
    color: #fff;
}
.result-head .lab { font-size: 11.5px; color: #8b93b5; letter-spacing: .1em; text-transform: uppercase; }
.result-head .cardkey {
    font-family: var(--mono);
    font-size: 19px;
    letter-spacing: .12em;
    margin-top: 3px;
    color: #fff;
}
.result-body {
    border: 1px solid var(--line);
    border-top: none;
    border-radius: 0 0 14px 14px;
    background: #fff;
    overflow: hidden;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}
.result-cell {
    padding: 16px 20px;
    border-right: 1px solid #f0f1f7;
    border-bottom: 1px solid #f0f1f7;
}
.result-cell .k { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; letter-spacing: .02em; }
.result-cell .v { font-size: 14.5px; font-weight: 600; color: var(--text); }
.result-cell .v.mono { font-size: 13px; }
.result-cell .v.big { font-size: 26px; font-family: var(--mono); letter-spacing: -.02em; line-height: 1.15; }

.progress {
    height: 8px;
    border-radius: 999px;
    background: #eef0f7;
    overflow: hidden;
    margin-top: 8px;
}
.progress > i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-500), #7b5cf0);
    transition: width .5s cubic-bezier(.3, .8, .3, 1);
}
.progress.is-warn > i { background: linear-gradient(90deg, #f59e0b, #f97316); }
.progress.is-danger > i { background: linear-gradient(90deg, #ef4444, #dc2626); }

.result-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #fafbfe;
}
.result-foot .meta { font-size: 12px; color: var(--muted); }

/* 前台内容区 */
.public-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px 64px;
}
.section-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}
.section-title h2 { font-size: 19px; letter-spacing: -.02em; }
.section-title .sub { font-size: 12.5px; color: var(--muted); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.feature {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature .ico {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: grid; place-items: center;
    margin-bottom: 12px;
    background: var(--brand-50);
    color: var(--brand-600);
}
.feature h4 { font-size: 14px; margin-bottom: 5px; }
.feature p { font-size: 12.5px; color: var(--muted); line-height: 1.65; margin: 0; }

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
    gap: 14px;
}
.plan {
    position: relative;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.plan:hover { border-color: var(--brand-300); box-shadow: var(--shadow); transform: translateY(-2px); }
.plan .tier { font-size: 15px; font-weight: 650; margin-bottom: 2px; }
.plan .dur { font-size: 12px; color: var(--muted); }
.plan .amount {
    margin-top: 14px;
    font-family: var(--mono);
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -.03em;
    color: var(--ink-800);
}
.plan .amount .cur { font-size: 14px; color: var(--muted); margin-right: 3px; }
.plan .amount .unit { font-family: var(--font); font-size: 11.5px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.plan ul {
    list-style: none;
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-top: 1px dashed var(--line);
    font-size: 12.5px;
    color: var(--text-soft);
}
.plan li { display: flex; gap: 7px; align-items: flex-start; padding: 3px 0; }
.plan li svg { flex: none; margin-top: 4px; color: var(--ok); }

.notice-box {
    padding: 18px 20px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff, #fbfbff);
    border: 1px solid var(--line);
}
.notice-box .txt { font-size: 13px; color: var(--text-soft); line-height: 1.75; white-space: pre-line; }

.site-foot {
    border-top: 1px solid var(--line);
    background: #fff;
}
.site-foot-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 22px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--muted);
}
.site-foot a { color: var(--text-soft); }

/* ==========================================================================
   登录页
   ========================================================================== */

.auth-body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: #070b18;
}

.auth-aside {
    position: relative;
    padding: 46px 52px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background:
        radial-gradient(700px 460px at 18% 8%, rgba(91, 91, 214, .38), transparent 62%),
        radial-gradient(560px 420px at 88% 92%, rgba(34, 211, 238, .22), transparent 60%),
        linear-gradient(160deg, #080d1e, #0d1330 60%, #101a3a);
}
.auth-aside::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 78%);
    pointer-events: none;
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h2 {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.22;
    letter-spacing: -.03em;
    max-width: 12em;
    margin-bottom: 16px;
}
.auth-aside .lede { color: #a4adc9; font-size: 14.5px; max-width: 30em; line-height: 1.75; }

.auth-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 13px; }
.auth-points li { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: #c3cae2; }
.auth-points .tick {
    width: 20px; height: 20px; flex: none;
    border-radius: 6px;
    background: rgba(163, 230, 53, .14);
    color: var(--lime-400);
    display: grid; place-items: center;
    margin-top: 1px;
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--paper-2);
    position: relative;
}
.auth-card {
    width: 100%;
    max-width: 396px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 32px 30px;
}
.auth-card .role-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-600);
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    padding: 3px 9px;
    border-radius: 6px;
    margin-bottom: 14px;
}
.auth-card h1 { font-size: 22px; letter-spacing: -.025em; }
.auth-card .desc { font-size: 13px; color: var(--muted); margin-top: 6px; margin-bottom: 22px; }

.auth-actions { margin-top: 20px; display: grid; gap: 10px; }
.auth-links {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--muted);
}

@media (max-width: 860px) {
    .auth-body { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
}

/* 响应式 */
@media (max-width: 720px) {
    .hero-band { padding-bottom: 96px; }
    .hero { padding: 26px 20px 0; }
    .hero-stats { gap: 18px; }
    .query-shell { margin-top: -72px; padding: 0 16px 40px; }
    .query-card { padding: 18px; border-radius: 18px; }
    .query-form { flex-direction: column; }
    .query-form .btn { width: 100%; }
    .site-head { padding: 16px 18px; }
    .site-nav a:not(.btn) { display: none; }
    .result-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .public-section { padding: 0 16px 44px; }
    .auth-card { padding: 26px 22px; }
}

/* 超小屏（<=420）：首页导航只保留必要按钮，防止横向溢出 */
@media (max-width: 420px) {
    .site-head {
        padding: 12px 12px;
        flex-wrap: nowrap;
        gap: 8px;
        min-width: 0;
    }
    .brand {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }
    .brand-name {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .brand-sub { display: none; }
    .site-nav {
        flex: none;
        gap: 4px;
        min-width: 0;
        overflow: hidden;
    }
    /* 只保留「用户登录」一个按钮，其余全部隐藏 */
    .site-nav > a:not(.btn),
    .site-nav > a.btn-ghost,
    .site-nav > a.btn-soft { display: none; }
    /* 教程入口：手机端同样显示（admin/agent 之外的第 2 个按钮） */
    /* tut-btn-v2 */
    .site-nav > a.btn-tut {
        display: inline-flex !important;
        align-items: center;
        gap: 5px;
        padding: 6px 10px;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        background: linear-gradient(135deg, #6366f1, #4f46e5);
        border: 1px solid rgba(255, 255, 255, .18);
        color: #fff !important;
        border-radius: 8px;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(79, 70, 229, .35);
        transition: .15s;
    }
    .site-nav > a.btn-tut:hover {
        background: linear-gradient(135deg, #4f46e5, #4338ca);
        border-color: rgba(255, 255, 255, .3);
        color: #fff !important;
        box-shadow: 0 4px 14px rgba(79, 70, 229, .5);
        transform: translateY(-1px);
    }
    .site-nav > a.btn-primary {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
    }
    /* 首页主体不被撑宽 */
    .hero-band, .hero, .query-shell, .public-section {
        max-width: 100vw;
        overflow-x: hidden;
    }
    .hero h1 { font-size: 24px; }
    .hero-lede { font-size: 13px; }
    .hero-stats { flex-wrap: wrap; gap: 12px; }
    .query-card { padding: 14px; }
}


/* mq-421-560：中小屏也只保留「教程 + 用户登录」两个按钮 */
@media (min-width: 421px) and (max-width: 560px) {
    .site-head {
        padding: 13px 14px;
        flex-wrap: nowrap;
        gap: 8px;
    }
    .brand { min-width: 0; flex: 1 1 auto; overflow: hidden; }
    .brand-sub { display: none; }
    .site-nav {
        flex: none;
        gap: 5px;
        min-width: 0;
        overflow: hidden;
    }
    .site-nav > a:not(.btn),
    .site-nav > a.btn-ghost,
    .site-nav > a.btn-soft { display: none; }
    /* tut-btn-v2 */
    .site-nav > a.btn-tut {
        display: inline-flex !important;
        align-items: center;
        gap: 5px;
        padding: 6px 11px;
        font-size: 12.5px;
        font-weight: 600;
        white-space: nowrap;
        background: linear-gradient(135deg, #6366f1, #4f46e5);
        border: 1px solid rgba(255, 255, 255, .18);
        color: #fff !important;
        border-radius: 8px;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(79, 70, 229, .35);
        transition: .15s;
    }
    .site-nav > a.btn-primary {
        padding: 6px 11px;
        font-size: 12.5px;
        white-space: nowrap;
    }
}
/* 全局防溢出兜底：主容器永远不超过视口 */
.panel, .card, .table-wrap, .toolbar, .stat-grid {
    max-width: 100%;
    min-width: 0;
}
