﻿/* ============================================================
   QQ 官方机器人控制台 · 样式表
   ============================================================ */

:root {
    --bg: #f3f6f9;
    --bg-soft: #eef2f6;
    --bg-elev: #ffffff;
    --panel: #ffffff;
    --panel-strong: #ffffff;
    --line: #d7e0ea;
    --line-strong: #cfd8e3;
    --text: #101828;
    --text-soft: #344054;
    --muted: #667085;
    --brand: #2563eb;
    --brand-dark: #175cd3;
    --brand-glow: rgba(37, 99, 235, 0.22);
    --violet: #7b6cff;
    --green: #0f9f6e;
    --amber: #b7791f;
    --rose: #d92d20;
    --blue-soft: #eaf1ff;
    --green-soft: #e8f7ef;
    --red-soft: #fde8e7;
    --amber-soft: #fff4d8;
    --input-bg: #ffffff;
    --radius-sm: 8px;
    --radius: 8px;
    --radius-lg: 14px;
    --shadow: 0 16px 34px rgba(16, 24, 40, 0.08);
    --shadow-soft: 0 10px 24px rgba(16, 24, 40, 0.06);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

:root[data-theme="dark"] {
    --bg: #101722;
    --bg-soft: #131d2a;
    --bg-elev: #172230;
    --panel: #172230;
    --panel-strong: #1a2636;
    --line: #3a4c62;
    --line-strong: #40546c;
    --text: #f8fbff;
    --text-soft: #c7d4e4;
    --muted: #9eafc2;
    --brand: #5d8dff;
    --brand-dark: #7ba5ff;
    --brand-glow: rgba(93, 141, 255, 0.28);
    --violet: #9b8cff;
    --green: #22c58f;
    --amber: #f6c56b;
    --rose: #ff7569;
    --blue-soft: #1f335d;
    --green-soft: #143d33;
    --red-soft: #4b2528;
    --amber-soft: #493a1f;
    --input-bg: #223247;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.24);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--brand-dark);
}

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-weight: 700;
}

p {
    margin: 0;
}

code,
pre {
    font-family: var(--mono);
    font-size: 0.88em;
}

code {
    background: var(--blue-soft);
    border: 1px solid var(--line);
    padding: 1px 6px;
    border-radius: 5px;
    color: #175cd3;
}

.hidden {
    display: none !important;
}

.inline {
    display: inline;
    margin: 0;
}

.muted {
    color: var(--muted);
}

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 背景装饰 ---------- */

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg);
}

.site-bg__grid {
    display: none;
}

.site-bg__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
}

.site-bg__blob--a {
    width: 620px;
    height: 620px;
    top: -260px;
    left: -140px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.28), transparent 68%);
}

.site-bg__blob--b {
    width: 560px;
    height: 560px;
    top: 120px;
    right: -220px;
    background: radial-gradient(circle, rgba(123, 108, 255, 0.22), transparent 68%);
}

/* ---------- 品牌 ---------- */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    flex: none;
}

.brand:hover {
    color: var(--text);
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(140deg, var(--brand), var(--violet));
    color: #051018;
    box-shadow: 0 10px 24px -12px var(--brand-glow);
}

.brand__mark svg {
    width: 21px;
    height: 21px;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand__text strong {
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.brand__text small {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand--lg .brand__mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

.brand--lg .brand__text strong {
    font-size: 17px;
}

/* ---------- 按钮 ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    background: transparent;
    color: inherit;
    text-align: center;
}

.btn svg {
    width: 17px;
    height: 17px;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn--primary {
    background: linear-gradient(135deg, #2f6df6, #13a7d8);
    color: #03131c;
    box-shadow: 0 14px 30px -14px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--primary:hover {
    color: #03131c;
    box-shadow: 0 18px 40px -14px rgba(37, 99, 235, 0.65);
    transform: translateY(-1px);
}

.btn--ghost {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.btn--ghost:hover {
    border-color: rgba(37, 99, 235, 0.55);
    background: rgba(37, 99, 235, 0.08);
    color: #dff6ff;
}

.btn--block {
    width: 100%;
}

.btn--lg {
    padding: 13px 26px;
    font-size: 15px;
}

.btn--sm {
    padding: 7px 15px;
    font-size: 13px;
}

.btn--xs {
    padding: 5px 12px;
    font-size: 12px;
}

/* ---------- 顶栏 ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(7, 11, 20, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 68px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
}

.site-nav a {
    padding: 7px 13px;
    border-radius: 9px;
    font-size: 14px;
    color: var(--text-soft);
    font-weight: 500;
    transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    padding: 0 9px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 1.6px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5.6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5.6px) rotate(-45deg);
}

/* ---------- Flash 提示 ---------- */

.flash-stack {
    position: fixed;
    top: 84px;
    right: 24px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px, calc(100vw - 40px));
}

.flash-stack--inline {
    position: static;
    width: auto;
    margin: 0 0 18px;
}

.flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: rgba(14, 22, 38, 0.96);
    box-shadow: var(--shadow);
    font-size: 13.5px;
    color: var(--text-soft);
    animation: flash-in 0.28s ease both;
}

.flash__dot {
    flex: none;
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--brand);
}

.flash--success .flash__dot { background: var(--green); }
.flash--error .flash__dot { background: var(--rose); }
.flash--warning .flash__dot { background: var(--amber); }

.flash > span:nth-child(2) {
    flex: 1;
}

.flash button {
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.flash button:hover {
    color: var(--text);
}

.flash.is-leaving {
    animation: flash-out 0.25s ease both;
}

@keyframes flash-in {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@keyframes flash-out {
    to { opacity: 0; transform: translateY(-6px); }
}

/* ---------- 首页 Hero ---------- */

.hero {
    padding: 76px 0 40px;
    position: relative;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 11px;
    border-radius: 999px;
    border: 1px solid #aac1ff;
    background: var(--blue-soft);
    font-size: 12.5px;
    color: #175cd3;
    font-weight: 500;
}

.badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }
    50% { box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.04); }
}

.hero__title {
    margin: 22px 0 18px;
    font-size: clamp(34px, 4.4vw, 56px);
    line-height: 1.12;
    letter-spacing: -0.028em;
    font-weight: 800;
}

.grad {
    background: linear-gradient(120deg, #2563eb 10%, #7b6cff 55%, #0f9f6e 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero__lead {
    max-width: 520px;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0 26px;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--muted);
}

.hero__meta strong {
    display: block;
    font-size: 20px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ---------- 手机预览 ---------- */

.hero__preview {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone {
    width: 300px;
    border-radius: 34px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(20, 30, 48, 0.96), rgba(10, 15, 26, 0.98));
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 10px;
    position: relative;
    z-index: 2;
}

.phone__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px 12px;
    border-bottom: 1px solid var(--line);
}

.phone__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.phone__title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-soft);
}

.phone__badge {
    margin-left: auto;
    font-size: 10px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.16);
    color: #8fe0ff;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.phone__screen {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 10px;
    min-height: 330px;
}

.chat {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    animation: chat-in 0.4s ease both;
}

.chat:nth-child(2) { animation-delay: 0.12s; }
.chat:nth-child(3) { animation-delay: 0.28s; }
.chat:nth-child(4) { animation-delay: 0.42s; }

@keyframes chat-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.chat--out {
    flex-direction: row-reverse;
}

.chat__avatar {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-soft);
}

.chat__avatar--bot {
    background: linear-gradient(140deg, var(--brand), var(--violet));
    color: #031018;
}

.chat__bubble {
    position: relative;
    max-width: 200px;
    padding: 9px 12px 18px;
    border-radius: 14px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.chat--out .chat__bubble {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(123, 108, 255, 0.18));
    border-color: rgba(37, 99, 235, 0.3);
    color: #e2f6ff;
}

.chat__bubble b {
    color: #175cd3;
    font-weight: 600;
}

.chat__time {
    position: absolute;
    right: 10px;
    bottom: 5px;
    font-size: 9.5px;
    color: rgba(255, 255, 255, 0.35);
}

.chat-typing {
    display: inline-flex;
    gap: 4px;
    align-self: flex-start;
    margin-left: 34px;
    padding: 9px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.chat-typing span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--muted);
    animation: typing 1.3s infinite ease-in-out;
}

.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes typing {
    0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

.phone__input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    font-size: 11.5px;
    color: var(--muted);
}

.phone__input i {
    margin-left: auto;
    font-style: normal;
    font-size: 11px;
    color: #8fe0ff;
    background: rgba(37, 99, 235, 0.14);
    padding: 2px 9px;
    border-radius: 999px;
}

.float-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: rgba(13, 20, 34, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.float-card--a {
    top: 40px;
    left: -6px;
}

.float-card--b {
    bottom: 54px;
    right: -10px;
    animation-delay: 1.4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

.float-card__label {
    font-size: 10.5px;
    color: var(--muted);
    letter-spacing: 0.05em;
}

.float-card strong {
    font-size: 19px;
    letter-spacing: -0.02em;
}

.float-card em {
    font-style: normal;
    font-size: 10.5px;
    color: var(--muted);
}

.float-card em.up {
    color: var(--green);
}

/* ---------- 统计条 ---------- */

.stats-bar {
    margin: 46px 0 0;
}

.stats-bar__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.stat strong {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(120deg, #ffffff, #9fd8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat span {
    font-size: 12.5px;
    color: var(--muted);
}

/* ---------- 通用 section ---------- */

.section {
    padding: 88px 0;
}

.section--alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section__head {
    max-width: 620px;
    margin: 0 auto 46px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 12px;
}

.section__head h2 {
    font-size: clamp(25px, 3vw, 34px);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section__head p {
    color: var(--muted);
    font-size: 14.5px;
}

/* ---------- 卡片 ---------- */

.card {
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.card__head h3 {
    font-size: 15.5px;
}

.card__desc {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 14px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature {
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.feature:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.4);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.07), rgba(255, 255, 255, 0.015));
}

.feature__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.22);
    color: #4f8ef7;
}

.feature__icon svg {
    width: 21px;
    height: 21px;
}

.feature h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.feature p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.7;
}

/* ---------- 接入步骤 ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 26px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
}

.step__no {
    display: inline-block;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.step h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.step p {
    font-size: 13.5px;
    color: var(--muted);
}

.access-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 26px;
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 99, 235, 0.3);
    background:
        radial-gradient(120% 180% at 0% 0%, rgba(37, 99, 235, 0.16), transparent 60%),
        linear-gradient(120deg, rgba(123, 108, 255, 0.12), rgba(255, 255, 255, 0.02));
}

.access-cta h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.access-cta p {
    color: var(--muted);
    font-size: 13.5px;
}

/* ---------- FAQ ---------- */

.faq {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    padding: 4px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.2s ease;
}

.faq__item[open] {
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.045);
}

.faq__item summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: "+";
    margin-left: auto;
    font-size: 18px;
    font-weight: 400;
    color: var(--muted);
    transition: transform 0.2s ease;
}

.faq__item[open] summary::after {
    content: "−";
    color: var(--brand);
}

.faq__item p {
    padding: 0 0 18px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.75;
    max-width: 92%;
}

/* ---------- 页脚 ---------- */

.site-footer {
    margin-top: 40px;
    padding: 48px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
    padding-bottom: 32px;
}

.site-footer__brand {
    max-width: 330px;
}

.site-footer__brand strong {
    font-size: 15px;
}

.site-footer__brand p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.site-footer__links {
    display: flex;
    gap: 64px;
}

.site-footer__links h4 {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
    font-weight: 600;
}

.site-footer__links a {
    display: block;
    font-size: 13.5px;
    color: var(--text-soft);
    padding: 4px 0;
}

.site-footer__links a:hover {
    color: var(--brand);
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12.5px;
    color: var(--muted);
}

/* ---------- 表单 ---------- */

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field > label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
}

.field .optional {
    font-weight: 400;
    font-size: 11.5px;
    color: var(--muted);
}

.field input[type="text"],
.field input[type="password"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: rgba(8, 13, 22, 0.7);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    outline: none;
}

.field input::placeholder {
    color: rgba(138, 153, 187, 0.7);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: rgba(37, 99, 235, 0.65);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    background: rgba(8, 13, 22, 0.95);
}

.field input.is-invalid {
    border-color: rgba(255, 107, 129, 0.7);
    box-shadow: 0 0 0 4px rgba(255, 107, 129, 0.1);
}

.field input.is-valid {
    border-color: rgba(67, 217, 163, 0.55);
}

.field__group {
    position: relative;
    display: flex;
    align-items: center;
}

.field__group input {
    padding-right: 60px;
}

.field__toggle {
    position: absolute;
    right: 6px;
    padding: 5px 10px;
    border: 0;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 11.5px;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.field__toggle:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.11);
}

.field__state {
    position: absolute;
    right: 12px;
    font-size: 11.5px;
    pointer-events: none;
}

.field__state.is-ok { color: var(--green); }
.field__state.is-bad { color: var(--rose); }

.field__hint {
    font-size: 11.5px;
    color: var(--muted);
}

.field__error {
    font-size: 11.5px;
    color: #ff8a9a;
}

.checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: var(--muted);
    cursor: pointer;
    line-height: 1.5;
}

.checkbox--block {
    display: flex;
}

.checkbox input {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    border-radius: 5px;
    border: 1px solid var(--line-strong);
    background: #fff;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    position: relative;
}

.checkbox.is-invalid {
    color: #ff8a9a;
}

.checkbox.is-invalid input {
    border-color: rgba(255, 107, 129, 0.75);
}

.checkbox input:checked {
    background: var(--brand);
    border-color: var(--brand);
}

.checkbox input:checked::after {
    content: "";
    position: absolute;
    left: 4.5px;
    top: 1.5px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(42deg);
}

.form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.5px;
}

.link-muted {
    font-size: 12.5px;
    color: var(--muted);
}

.link-muted:hover {
    color: var(--brand);
}

/* 密码强度条 */

.strength {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.strength span {
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

.strength[data-level="1"] span:nth-child(1) { background: var(--rose); }
.strength[data-level="2"] span:nth-child(-n+2) { background: var(--amber); }
.strength[data-level="3"] span:nth-child(-n+3) { background: #7fd6ff; }
.strength[data-level="4"] span { background: var(--green); }

/* ---------- 登录 / 注册页 ---------- */

.auth-body {
    min-height: 100vh;
}

.auth {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: 100vh;
}

.auth__aside {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 48px clamp(28px, 5vw, 72px);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(90% 70% at 10% 0%, rgba(37, 99, 235, 0.12), transparent 60%),
        radial-gradient(80% 60% at 100% 100%, rgba(123, 108, 255, 0.12), transparent 60%);
    position: relative;
}

.auth__headline {
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.22;
    letter-spacing: -0.03em;
    margin-top: auto;
    font-weight: 800;
}

.auth__headline em {
    font-style: normal;
    display: inline-block;
    background: linear-gradient(120deg, #2563eb, #8a7bff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth__sub {
    max-width: 420px;
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.8;
}

.auth__points {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
    font-size: 13.5px;
    color: var(--text-soft);
}

.auth__points li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tick {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(67, 217, 163, 0.14);
    border: 1px solid rgba(67, 217, 163, 0.4);
    position: relative;
}

.tick::after {
    content: "";
    position: absolute;
    left: 5.6px;
    top: 3.4px;
    width: 4px;
    height: 7px;
    border: solid var(--green);
    border-width: 0 1.6px 1.6px 0;
    transform: rotate(42deg);
}

.auth__quote {
    margin-top: auto;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: var(--muted);
    max-width: 420px;
}

.auth__quote p {
    color: var(--text-soft);
    font-style: italic;
    margin-bottom: 6px;
}

.auth__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 48px clamp(20px, 4vw, 56px);
}

.auth-card {
    width: 100%;
    max-width: 430px;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(20, 29, 47, 0.82), rgba(11, 17, 29, 0.92));
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.auth-card__head {
    margin-bottom: 24px;
}

.auth-card__head h2 {
    font-size: 23px;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.auth-card__head p {
    font-size: 13px;
    color: var(--muted);
}

.auth-card__hint {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.7;
}

.auth__copyright {
    font-size: 11.5px;
    color: rgba(138, 153, 187, 0.7);
}

/* ---------- 控制台 ---------- */

.app {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 100vh;
}

.app__sidebar {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 22px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(9, 14, 24, 0.72);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    height: 100vh;
}

.app__nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.app__nav-label {
    margin: 14px 0 6px;
    padding-left: 10px;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(138, 153, 187, 0.75);
}

.app__nav a {
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 13.5px;
    color: var(--text-soft);
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.app__nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.app__nav a.is-active {
    background: rgba(37, 99, 235, 0.13);
    color: #a9e9ff;
    box-shadow: inset 2px 0 0 var(--brand);
}

/* 手机端的菜单按钮：桌面端不显示 */
.app__nav-toggle {
    display: none;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-soft);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.app__nav-toggle:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(37, 99, 235, 0.45);
}

.app__nav-toggle-bars {
    display: block;
    width: 15px;
}

.app__nav-toggle-bars i {
    display: block;
    height: 2px;
    margin: 3px 0;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.app__nav-toggle[aria-expanded="true"] {
    background: var(--blue-soft);
    border-color: #aac1ff;
    color: #175cd3;
}

.app__nav-toggle[aria-expanded="true"] .app__nav-toggle-bars i:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.app__nav-toggle[aria-expanded="true"] .app__nav-toggle-bars i:nth-child(2) {
    opacity: 0;
}

.app__nav-toggle[aria-expanded="true"] .app__nav-toggle-bars i:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.app__sidebar-foot {
    margin-top: auto;
}

.app__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 22px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(9, 14, 24, 0.5);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.app__topbar-left h1 {
    font-size: 19px;
    letter-spacing: -0.02em;
}

.app__topbar-left p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.app__topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 6px 5px 5px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.user-chip__avatar {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--brand), var(--violet));
    color: #04131c;
    font-weight: 700;
    font-size: 13px;
}

.user-chip__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    padding-right: 4px;
}

.user-chip__meta strong {
    font-size: 12.5px;
}

.user-chip__meta small {
    font-size: 10.5px;
    color: var(--muted);
}

.app__content {
    padding: 26px 30px 56px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    overflow: hidden;
}

.metric::after {
    content: "";
    position: absolute;
    inset: auto -30% -60% auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 70%);
}

.metric__label {
    font-size: 12px;
    color: var(--muted);
}

.metric__value {
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.35;
}

.metric__hint {
    font-size: 11.5px;
    color: var(--muted);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 500;
    border: 1px solid var(--line-strong);
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}

.pill i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.pill--ok {
    color: var(--green);
    border-color: rgba(67, 217, 163, 0.35);
    background: rgba(67, 217, 163, 0.1);
}

.pill--muted {
    color: var(--muted);
}

.copy-field {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.copy-field input {
    flex: 1;
    min-width: 0;
    padding: 10px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--text);
    font-family: var(--mono);
    font-size: 12.5px;
    outline: none;
}

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 12.5px;
    color: var(--muted);
}

.checklist li {
    padding-left: 18px;
    position: relative;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand);
    opacity: 0.75;
}

.kv {
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.kv > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.022);
    font-size: 12.5px;
}

.kv dt {
    color: var(--muted);
}

.kv dd {
    margin: 0;
    font-weight: 500;
}

.empty {
    padding: 32px 20px;
    text-align: center;
    border-radius: 12px;
    border: 1px dashed var(--line-strong);
    color: var(--muted);
}

.empty p {
    color: var(--text-soft);
    font-size: 14px;
    margin-bottom: 4px;
}

.empty span {
    font-size: 12.5px;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 560px;
}

.table th {
    text-align: left;
    padding: 11px 14px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--line);
}

.table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table tr:last-child td {
    border-bottom: 0;
}

.table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.022);
}

.todo-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.todo {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.022);
}

.todo__dot {
    flex: none;
    width: 9px;
    height: 9px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.todo strong {
    font-size: 13px;
    display: block;
    margin-bottom: 2px;
}

.todo p {
    font-size: 12px;
    color: var(--muted);
}

/* ---------- 错误页 ---------- */

.error-card {
    max-width: 620px;
    margin: 60px auto;
    text-align: center;
    padding: 44px 32px;
}

.error-card__code {
    display: block;
    font-family: var(--mono);
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: rgba(37, 99, 235, 0.5);
    line-height: 1;
    margin-bottom: 14px;
}

.error-card h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.error-card p {
    color: var(--muted);
    font-size: 13.5px;
}

.error-card__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.error-card__trace {
    margin-top: 20px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--line);
    font-size: 11.5px;
    color: #ff9aa6;
    text-align: left;
    overflow: auto;
    max-height: 320px;
    white-space: pre-wrap;
}

/* ---------- 安装页 ---------- */

.setup {
    display: flex;
    justify-content: center;
    padding: 60px 24px;
}

.setup__card {
    max-width: 680px;
    width: 100%;
    padding: 36px;
}

.setup__card h1 {
    font-size: 25px;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.setup__error {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 107, 129, 0.1);
    border: 1px solid rgba(255, 107, 129, 0.3);
    color: #ff9aa6;
    font-size: 13px;
    margin-bottom: 22px;
}

.setup__steps {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 13.5px;
    color: var(--text-soft);
}

.setup__code {
    margin: 10px 0 0;
    padding: 13px 15px;
    border-radius: 10px;
    background: var(--soft);
    border: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--text-soft);
    overflow-x: auto;
}

.setup__foot {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
    font-size: 12px;
    color: var(--muted);
}

/* ---------- 响应式 ---------- */

@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero__lead {
        margin: 0 auto;
    }

    .hero__actions,
    .hero__meta {
        justify-content: center;
    }

    .hero__preview {
        margin-top: 8px;
    }

    .feature-grid,
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-bar__inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .auth {
        grid-template-columns: 1fr;
    }

    .auth__aside {
        display: none;
    }

    .app {
        grid-template-columns: 1fr;
        /* 别让网格把多出来的高度摊到行上，否则侧栏和内容之间会出现大片空白 */
        align-content: start;
    }

    /* 手机/平板：侧栏变成顶部条，菜单收进折叠面板 */
    .app__sidebar {
        position: sticky;
        top: 0;
        z-index: 30;
        align-self: start;
        height: auto;
        min-height: 0;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: flex-start;
        align-items: center;
        gap: 0;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 12px 16px;
        background: var(--panel);
    }

    .app__sidebar .brand {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
    }

    .app__nav-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        margin-left: 10px;
    }

    .app__nav {
        display: none;
        flex: 1 1 100%;
        order: 2;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .app__nav.is-open {
        display: flex;
    }

    .app__nav a {
        flex: 1 1 calc(50% - 3px);
        min-width: 0;
        padding: 10px 12px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        background: rgba(255, 255, 255, 0.04);
    }

    .app__nav-label {
        display: none;
    }

    .app__nav a.is-active {
        box-shadow: none;
        border: 1px solid rgba(37, 99, 235, 0.45);
    }

    .app__sidebar-foot {
        display: none;
        flex: 1 1 100%;
        order: 3;
        margin-left: 0;
        margin-top: 10px;
    }

    /* 菜单展开时才显示「返回首页」 */
    .app__nav.is-open ~ .app__sidebar-foot {
        display: block;
    }

    .app__sidebar-foot .btn {
        width: 100%;
    }

    .grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .todo-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .site-header__inner {
        gap: 12px;
        height: 62px;
    }

    .site-nav {
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px 16px 16px;
        background: var(--panel);
        border-bottom: 1px solid var(--line);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
    }

    .site-nav.is-open {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .site-nav a {
        padding: 11px 12px;
    }

    .nav-toggle {
        display: flex;
    }

    .site-header__actions .btn--ghost {
        display: none;
    }

    .hero {
        padding: 48px 0 24px;
    }

    .hero__meta {
        gap: 18px;
        font-size: 12px;
    }

    .hero__meta strong {
        font-size: 17px;
    }

    .float-card--a {
        left: -4px;
        top: 10px;
    }

    .float-card--b {
        right: -4px;
        bottom: 20px;
    }

    .phone {
        width: 270px;
    }

    .section {
        padding: 60px 0;
    }

    .feature-grid,
    .steps,
    .grid--2,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .stats-bar__inner {
        grid-template-columns: 1fr 1fr;
    }

    .stat {
        padding: 18px 18px;
    }

    .auth-card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .app__topbar {
        padding: 16px 18px;
    }

    .app__content {
        padding: 18px 16px 44px;
    }

    .app__sidebar {
        gap: 12px;
    }

    .site-footer__links {
        gap: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   管理后台
   ============================================================ */

/* 管理后台整体换成琥珀色强调，和用户后台区分开 */
.admin-body {
    --brand: #ffb340;
    --brand-dark: #e59422;
    --brand-glow: rgba(255, 179, 64, 0.32);
}

.pill--admin {
    color: #b7791f;
    border-color: rgba(183, 121, 31, 0.35);
    background: var(--amber-soft);
}

.pill--error {
    color: var(--rose);
    border-color: rgba(255, 107, 129, 0.35);
    background: rgba(255, 107, 129, 0.1);
}

.pill--warn {
    color: var(--amber);
    border-color: rgba(255, 196, 77, 0.35);
    background: rgba(255, 196, 77, 0.1);
}

.pill--xs {
    padding: 1px 8px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* 侧边栏：待开发菜单项 + 管理后台入口 */
.app__nav a.is-todo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
}

.app__nav a.is-todo:hover {
    background: var(--soft);
    color: var(--text-soft);
}

.nav-tag {
    flex: none;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(138, 153, 187, 0.9);
    background: rgba(255, 255, 255, 0.06);
}

.app__nav a.app__nav-admin {
    margin-top: 2px;
    color: #b7791f;
    background: var(--amber-soft);
    box-shadow: inset 2px 0 0 #ffb340;
}

.app__nav a.app__nav-admin:hover {
    background: var(--amber-soft);
    color: #92400e;
}

/* ---------- 筛选栏 ---------- */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    padding: 2px 0 16px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 148px;
}

.filter-field--grow {
    flex: 1 1 240px;
}

.filter-field label {
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.filter-field input,
.filter-field select {
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: inherit;
    font-size: 13.5px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-field input::placeholder {
    color: var(--muted);
}

.filter-field input:focus,
.filter-field select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow);
}

.filter-field select option {
    background: var(--bg-elev);
    color: var(--text);
}

.filter-actions {
    display: flex;
    gap: 8px;
    padding-bottom: 1px;
}

/* ---------- 账号表格 ---------- */

.table--accounts td {
    vertical-align: middle;
}

.table--accounts th.is-narrow {
    width: 58px;
}

.table--accounts th.is-actions,
.table--accounts td.is-actions {
    width: 210px;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.user-cell__avatar {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 12.5px;
    font-weight: 600;
    color: #08111f;
    background: linear-gradient(135deg, var(--brand), var(--violet));
}

.admin-body .user-cell__avatar {
    color: #1d1302;
    background: linear-gradient(135deg, #ffc86b, #ff9f43);
}

.user-cell__meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.35;
    min-width: 0;
}

.user-cell__meta strong {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}

.user-cell__meta small {
    font-size: 11.5px;
    color: var(--muted);
}

.tag-self {
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 500;
    color: #175cd3;
    background: var(--blue-soft);
}

.admin-body .tag-self {
    color: #ffd98a;
    background: rgba(255, 179, 64, 0.16);
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.btn--danger {
    color: var(--rose);
    border-color: rgba(255, 107, 129, 0.32);
    background: rgba(255, 107, 129, 0.12);
}

.btn--danger:hover {
    color: #ffd0d8;
    background: rgba(255, 107, 129, 0.2);
}

.btn--soft {
    color: var(--green);
    border-color: rgba(67, 217, 163, 0.3);
    background: rgba(67, 217, 163, 0.12);
}

.btn--soft:hover {
    color: #b7f5df;
    background: rgba(67, 217, 163, 0.2);
}

.block {
    display: block;
}

/* ---------- 分页 ---------- */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
}

.pager__info {
    font-size: 12.5px;
    color: var(--muted);
}

.pager__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.pager__links a,
.pager__links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid var(--line);
    font-size: 13px;
    color: var(--text-soft);
}

.pager__links a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.pager__links .is-current {
    border-color: transparent;
    font-weight: 600;
    color: #08111f;
    background: var(--brand);
}

.admin-body .pager__links .is-current {
    color: #1d1302;
}

.pager__links .is-disabled {
    opacity: 0.4;
}

/* ---------- 日志列表 ---------- */

.log-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.log-line {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.log-line:last-child {
    border-bottom: 0;
}

.log-line__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.log-line__body strong {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    word-break: break-word;
}

.log-line__body small {
    font-size: 11.5px;
    color: var(--muted);
}

/* ---------- 上线自检 ---------- */

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.check-item__ico {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
}

.check-item.is-ok .check-item__ico {
    color: #7fe9c3;
    background: rgba(67, 217, 163, 0.16);
}

.check-item.is-warn .check-item__ico {
    color: #ffd98a;
    background: rgba(255, 196, 77, 0.16);
}

.check-item__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.check-item__body strong {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.check-item__body small {
    font-size: 11.5px;
    color: var(--muted);
    word-break: break-word;
}

@media (max-width: 720px) {
    .filter-field,
    .filter-field--grow {
        flex: 1 1 100%;
        min-width: 0;
    }

    .filter-actions {
        width: 100%;
    }

    .filter-actions .btn {
        flex: 1;
    }

    .pager {
        justify-content: flex-start;
    }

    .table--accounts th.is-actions,
    .table--accounts td.is-actions {
        width: auto;
    }
}

/* ============================================================
   用户后台 · 账号列表（机器人账号）
   ============================================================ */

/* 页头：左上角放操作按钮 */
.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.page-head__left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.page-head__meta {
    font-size: 12.5px;
    color: var(--muted);
}

.page-head__meta b {
    color: var(--text);
    font-weight: 600;
}

/* 账号卡片 */
.bot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
}

.bot-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.bot-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.bot-card__head {
    display: flex;
    align-items: center;
    gap: 11px;
}

.bot-card__avatar {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #08111f;
    background: linear-gradient(135deg, var(--brand), var(--violet));
}

/* 拿到平台头像时用真实图片，尺寸和首字头像保持一致 */
.bot-card__avatar--img {
    object-fit: cover;
    background: #1a2333;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 卡片里的收发条数，数字突出一点 */
.bot-card__tags .num {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.bot-card__tags .num--in {
    color: var(--brand);
}

.bot-card__tags .num--out {
    color: var(--ok, #38d39f);
}

.bot-card__title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.bot-card__title strong {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bot-card__title small {
    font-size: 11.5px;
    color: var(--muted);
    font-family: var(--mono);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-default {
    flex: none;
    padding: 1px 7px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    color: #175cd3;
    background: var(--blue-soft);
}

.bot-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bot-card__remark {
    margin: 0;
    font-size: 12.5px;
    color: var(--text-soft);
    padding: 8px 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}

.bot-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
    margin-top: auto;
    border-top: 1px solid var(--line);
}

/* 空状态 */
.empty-card {
    text-align: center;
    padding: 40px 24px 34px;
}

.empty-card__ico {
    font-size: 34px;
    line-height: 1;
    margin-bottom: 10px;
}

.empty-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
}

.empty-card p {
    margin: 0 auto 18px;
    max-width: 420px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
}

/* 表单卡片 */
.form-card {
    max-width: 780px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-errors {
    margin-bottom: 14px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 107, 129, 0.3);
    background: rgba(255, 107, 129, 0.09);
}

.form-errors p {
    margin: 0;
    font-size: 12.5px;
    color: #ffb3bf;
}

.form-errors p + p {
    margin-top: 4px;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    font-size: 12.5px;
    color: var(--text-soft);
}

.check-row input {
    margin-top: 2px;
    flex: none;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

@media (max-width: 720px) {
    .bot-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================================
   用户后台 · 关键词回复
   ============================================================ */

.table--keywords {
    min-width: 720px;
}

.table--keywords th {
    white-space: nowrap;
}

.table--keywords th.is-narrow,
.table--keywords td.is-narrow {
    width: 84px;
}

.table--keywords th.is-actions,
.table--keywords td.is-actions {
    width: 210px;
}

.table--keywords td {
    vertical-align: middle;
}

.kw-text {
    font-family: var(--mono);
    font-size: 12.5px;
    color: #175cd3;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--blue-soft);
    word-break: break-all;
}

.kw-reply {
    max-width: 340px;
    color: var(--text-soft);
    font-size: 12.5px;
    line-height: 1.55;
}

.kw-reply span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .kw-reply {
        max-width: 200px;
    }
}
/* 在线状态：小圆点 + 在线时呼吸灯 */
.presence-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding-left: 7px;
}

.presence-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.45;
    flex: none;
}

.presence-dot.is-live {
    opacity: 1;
    box-shadow: 0 0 0 0 currentColor;
    animation: presence-pulse 2s ease-out infinite;
}

@keyframes presence-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(67, 217, 163, 0.55); }
    70%  { box-shadow: 0 0 0 5px rgba(67, 217, 163, 0); }
    100% { box-shadow: 0 0 0 0 rgba(67, 217, 163, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .presence-dot.is-live {
        animation: none;
    }
}
/* ============================================================
   用户后台 · 消息记录
   ============================================================ */

.table--messages {
    min-width: 760px;
}

.table--messages th.is-narrow,
.table--messages td.is-narrow {
    width: 88px;
    white-space: nowrap;
}

.table--messages td {
    vertical-align: middle;
}

.is-nowrap {
    white-space: nowrap;
}

.msg-content {
    max-width: 420px;
}

.msg-content > span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-soft);
    font-size: 12.5px;
}

.kw-hit {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 10.5px;
    color: #175cd3;
    background: var(--blue-soft);
}

/* ---- 运行日志（日志流样式） ---- */
.log-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.log-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.log-select,
.log-input {
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 12.5px;
    outline: none;
}

.log-select:focus,
.log-input:focus {
    border-color: rgba(37, 99, 235, 0.65);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
}

.log-input {
    width: 130px;
}

.log-input--grow {
    width: 180px;
}

.log-input::placeholder {
    color: var(--muted);
}

/* 开关 */
.log-switch {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
    font-size: 12.5px;
    color: var(--text-soft);
    position: relative;
}

.log-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.log-switch__track {
    position: relative;
    display: block;
    width: 38px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: #e4eaf1;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.log-switch__dot {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.2);
    transition: transform 0.16s ease, background 0.16s ease;
}

.log-switch input:checked + .log-switch__track {
    background: linear-gradient(135deg, #2f6df6, #13a7d8);
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.log-switch input:checked + .log-switch__track .log-switch__dot {
    transform: translateX(18px);
    background: #fff;
}

.log-switch__text b {
    color: var(--brand);
    font-weight: 600;
}

.log-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: var(--muted);
}

.log-card {
    padding: 0;
    overflow: hidden;
}

.log-stream {
    max-height: 64vh;
    overflow-y: auto;
}

.log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.log-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 9px 12px;
    text-align: left;
    font-weight: 500;
    color: var(--muted);
    background: rgba(10, 16, 28, 0.96);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.log-table td {
    padding: 7px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: top;
    line-height: 1.55;
}

.log-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

.log-row.is-new td {
    animation: log-flash 1.6s ease-out;
}

@keyframes log-flash {
    from {
        background: rgba(37, 99, 235, 0.16);
    }

    to {
        background: transparent;
    }
}

.log-cell-time {
    width: 96px;
    white-space: nowrap;
    color: var(--muted);
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
}

.log-cell-level {
    width: 66px;
    white-space: nowrap;
}

.log-cell-dir {
    width: 62px;
    white-space: nowrap;
}

.log-cell-qq {
    width: 118px;
    white-space: nowrap;
    color: #7fb6ff;
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
}

.log-cell-msg {
    color: var(--text-soft);
    word-break: break-word;
}

.dir {
    display: inline-block;
    padding: 0 6px;
    border-radius: 5px;
    font-size: 11px;
    line-height: 18px;
}

.dir--send {
    color: #9be7b8;
    background: rgba(45, 200, 120, 0.12);
}

.dir--receive {
    color: #8fd4ff;
    background: rgba(37, 99, 235, 0.12);
}

.dir--system {
    color: #c6c9d4;
    background: rgba(255, 255, 255, 0.07);
}

.dir--event {
    color: #f2c98a;
    background: rgba(240, 180, 80, 0.12);
}

.log-pairs {
    display: block;
    margin-top: 3px;
}

.log-kv {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    margin: 0 10px 3px 0;
    padding: 0 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 11.5px;
    line-height: 1.7;
}

.log-kv i {
    font-style: normal;
    color: var(--muted);
}

.log-kv b {
    font-weight: 500;
    color: var(--text-soft);
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: bottom;
}

.log-raw {
    display: block;
    margin-top: 3px;
    font-family: var(--mono);
    font-size: 11.5px;
    color: #8fd4ff;
    word-break: break-all;
}

/* hidden 属性要能压过上面的 display:block */
.log-raw[hidden],
.log-pairs[hidden] {
    display: none;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 0 4px;
}

.pager__info {
    font-size: 12.5px;
    color: var(--muted);
}
/* ============================================================
   用户后台 · 机器首页
   ============================================================ */

.mh-page-head {
    align-items: center;
    justify-content: space-between;
}

.mh-page-head__right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.mh-switcher {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    color: var(--muted);
}

.mh-switcher select {
    min-width: 220px;
    max-width: 320px;
    padding: 8px 34px 8px 12px;
    border-radius: 9px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 12.5px;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mh-switcher select:focus {
    border-color: rgba(37, 99, 235, 0.65);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ---------- 顶部三张卡 ---------- */

.mh-top {
    display: grid;
    grid-template-columns: 1.15fr 1fr 0.95fr;
    gap: 14px;
}

.mh-profile,
.mh-stats,
.mh-license {
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.mh-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(37, 99, 235, 0.14), transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.mh-avatar {
    position: relative;
    flex: none;
    width: 58px;
    height: 58px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: #06131f;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand), var(--violet));
    box-shadow: 0 14px 28px -18px var(--brand-glow);
}

.mh-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    background: #1a2333;
}

.mh-avatar__dot {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: var(--muted);
}

.mh-avatar__dot.is-live {
    background: var(--green);
    box-shadow: 0 0 12px rgba(67, 217, 163, 0.65);
}

.mh-profile__meta {
    min-width: 0;
    flex: 1;
}

.mh-profile__meta h2 {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 16.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mh-profile__meta p {
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--muted);
    font-family: var(--mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mh-profile__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

/* ---------- 今日概览 ---------- */

.mh-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 17px 18px;
}

.mh-stats__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.mh-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.mh-stat {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.028);
}

.mh-stat strong {
    display: block;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.mh-stat .num--in {
    color: var(--brand);
}

.mh-stat .num--out {
    color: var(--green);
}

.mh-stat .mh-stat__clock {
    font-size: 14.5px;
    font-family: var(--mono);
    letter-spacing: -0.03em;
    color: var(--text-soft);
}

.mh-stat span {
    display: block;
    font-size: 10.5px;
    color: var(--muted);
}

.mh-stats__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    font-size: 10.5px;
    color: var(--muted);
}

/* ---------- 授权信息 ---------- */

.mh-license {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 17px 18px;
    background:
        radial-gradient(120% 150% at 100% 0%, rgba(123, 108, 255, 0.12), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.mh-license__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.mh-license__version {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.mh-license__version strong {
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-family: var(--mono);
}

.mh-license__list {
    margin: 2px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mh-license__list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11.5px;
}

.mh-license__list dt {
    color: var(--muted);
}

.mh-license__list dd {
    margin: 0;
    color: var(--text-soft);
    font-family: var(--mono);
}

.mh-license__list dd.is-ok {
    color: var(--green);
}

/* ---------- 基础设置 ---------- */

.mh-card-head {
    align-items: flex-start;
    margin-bottom: 18px;
}

.mh-card-head__title {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.mh-card-head__title h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15.5px;
}

.mh-card-head__title .card__desc {
    margin: 0 0 0 35px;
}

.mh-head-ico {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    color: #74dcff;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.mh-head-ico svg {
    width: 15px;
    height: 15px;
}

.mh-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: none;
}

.mh-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 26px;
}

.mh-setting {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    cursor: pointer;
}

.mh-setting__label {
    font-size: 12.5px;
    color: var(--text-soft);
    text-align: right;
    line-height: 1.4;
    white-space: nowrap;
}

.mh-setting__control {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.mh-setting__control input[type="text"],
.mh-setting__control input[type="password"],
.mh-setting__control input[type="number"] {
    width: 100%;
    min-width: 0;
    padding: 9px 12px;
    border-radius: 9px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.mh-setting__control input::placeholder {
    color: var(--muted);
}

.mh-setting__control input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #fff;
}

.mh-setting__control.has-suffix input {
    padding-right: 52px;
}

.mh-setting__control.has-clear input {
    padding-right: 62px;
}

.mh-setting__suffix {
    position: absolute;
    right: 11px;
    font-size: 10.5px;
    color: var(--muted);
    pointer-events: none;
}

.mh-setting__clear {
    position: absolute;
    right: 9px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
}

.mh-setting__clear input {
    width: 12px;
    height: 12px;
    margin: 0;
    accent-color: var(--brand);
}

/* ---------- 功能开关 ---------- */

.mh-switches {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mh-switch-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.022);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.mh-switch-row:hover {
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.032);
}

.mh-switch {
    position: relative;
    display: inline-flex;
    flex: none;
    width: 38px;
    height: 22px;
    cursor: pointer;
}

.mh-switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.mh-switch__track {
    position: relative;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mh-switch__track::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #b8c4dd;
    transition: transform 0.18s ease, background 0.18s ease;
}

.mh-switch input:checked + .mh-switch__track {
    background: linear-gradient(135deg, #2f6df6, #13a7d8);
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mh-switch input:checked + .mh-switch__track::after {
    transform: translateX(16px);
    background: #04121a;
}

.mh-switch input:focus-visible + .mh-switch__track {
    outline: 2px solid rgba(37, 99, 235, 0.8);
    outline-offset: 2px;
}

.mh-switch-row__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 130px;
    flex: 1;
}

.mh-switch-row__text strong {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.01em;
    color: var(--text);
}

.mh-switch-row__text small {
    font-size: 10.5px;
    color: var(--muted);
}

.mh-switch-row__input {
    flex: 0 1 360px;
    min-width: 200px;
    padding: 8px 11px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 12px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mh-switch-row__input::placeholder {
    color: var(--muted);
}

.mh-switch-row__input:focus {
    border-color: rgba(37, 99, 235, 0.65);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ---------- 底部保存条 ---------- */

.mh-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 2px 4px 6px;
}

.mh-foot__hint {
    font-size: 11.5px;
    color: var(--muted);
}

@media (max-width: 1180px) {
    .mh-top {
        grid-template-columns: 1fr 1fr;
    }

    .mh-license {
        grid-column: 1 / -1;
    }

    .mh-license__list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px 20px;
    }

    .mh-license__list > div {
        justify-content: flex-start;
        gap: 8px;
    }
}

@media (max-width: 920px) {
    .mh-settings {
        grid-template-columns: 1fr;
    }

    .mh-card-head__title .card__desc {
        margin-left: 0;
    }
}

@media (max-width: 720px) {
    .mh-top {
        grid-template-columns: 1fr;
    }

    .mh-page-head__right {
        width: 100%;
    }

    .mh-switcher {
        flex-wrap: wrap;
    }

    .mh-switcher select {
        min-width: 0;
        width: 100%;
    }

    .mh-setting {
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 8px;
    }

    .mh-switch-row__input {
        flex: 1 1 100%;
        min-width: 0;
    }

    .mh-license__list {
        grid-template-columns: 1fr;
    }

    .mh-card-head {
        flex-direction: column;
        gap: 10px;
    }

    .mh-card-head .mh-actions {
        width: 100%;
    }
}

/* ============================================================
   用户后台 · 功能系统
   ============================================================ */
.fs-page-head {
    align-items: flex-end;
}

.fs-page-head .page-head__right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.fs-eyebrow {
    margin: 0 0 6px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.fs-page-head h2 {
    font-size: 22px;
}

.fs-page-head .page-head__meta {
    margin-top: 6px;
}

.fs-current {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.fs-current__avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: none;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(123, 108, 255, 0.35));
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.fs-current__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fs-current__meta {
    flex: 1;
    min-width: 0;
}

.fs-current__meta strong {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.fs-current__meta small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.fs-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.fs-card:hover {
    border-color: rgba(37, 99, 235, 0.45);
    background: var(--panel-strong);
    color: var(--text);
    transform: translateY(-1px);
}

.fs-card__ico {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.12);
    font-size: 19px;
    color: #2563eb;
}

.fs-card__ico svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.fs-card__body {
    flex: 1;
    min-width: 0;
}

.fs-card__title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.fs-card__desc {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.fs-card__meta {
    flex: none;
    padding-top: 2px;
    color: var(--muted);
    font-size: 11.5px;
    white-space: nowrap;
}

.fs-card__tag {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
}

.fs-card__tag.is-on {
    border: 1px solid rgba(67, 217, 163, 0.2);
    background: rgba(67, 217, 163, 0.12);
    color: var(--green);
}

.fs-card__tag.is-todo {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.fs-card--todo {
    cursor: default;
    opacity: 0.7;
}

.fs-card--todo:hover {
    border-color: var(--line);
    background: var(--panel);
    transform: none;
}

@media (max-width: 760px) {
    .fs-grid {
        grid-template-columns: 1fr;
    }

    .fs-card__meta {
        display: none;
    }

    .fs-current {
        flex-wrap: wrap;
    }

    .fs-current__meta {
        flex: 1 1 160px;
    }
}

/* ---------- 问答系统 ---------- */
.table--qa {
    min-width: 1040px;
}

.qa-question {
    display: inline-block;
    max-width: 320px;
    color: var(--text);
    font-weight: 600;
    word-break: break-word;
}

.qa-scope {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    color: var(--muted);
}

.qa-hits {
    white-space: nowrap;
}

.qa-hits b {
    color: var(--green);
}

.qa-hits small {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    font-weight: 400;
    color: var(--muted);
}

@media (max-width: 760px) {
    .qa-question {
        max-width: 220px;
    }
}

/* ---------- 功能系统：机器选择 ---------- */
.fs-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fs-picker label {
    font-size: 11.5px;
    color: var(--muted);
    white-space: nowrap;
}

.fs-picker select {
    min-width: 180px;
    max-width: 260px;
    padding: 8px 30px 8px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    font-size: 12.5px;
}

/* ---------- 问答：横向表单 / 图片 ---------- */
.qa-form-card {
    max-width: none;
    width: 100%;
}

.qa-form__top {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(170px, 1.1fr);
    gap: 14px;
    align-items: start;
}

.qa-form__bottom {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(180px, 1fr);
    gap: 14px;
    align-items: start;
}

.qa-form__answer textarea {
    min-height: 210px;
    resize: vertical;
}

.qa-answer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.qa-answer__head label {
    margin: 0;
}

.qa-answer__tools {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.qa-upload__status {
    font-size: 11.5px;
    color: var(--muted);
}

.qa-upload__status.is-error {
    color: #ff8d8d;
}

.qa-md-guide__list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 4px 0 6px;
}

.qa-md-guide__list code {
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 11.5px;
}

.qa-image-preview span {
    font-size: 11.5px;
    color: var(--muted);
}

.qa-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
}

.qa-toggle__text {
    font-size: 12.5px;
    color: var(--text);
    white-space: nowrap;
}

.qa-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.qa-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.qa-upload__name {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11.5px;
    color: var(--muted);
}

.qa-existing,
.qa-image-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 11px;
}

.qa-image-preview[hidden] {
    display: none !important;
}

.qa-existing img,
.qa-image-preview img {
    width: 92px;
    height: 70px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.qa-thumb {
    display: inline-block;
    width: 38px;
    height: 38px;
    margin-right: 8px;
    vertical-align: middle;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
}

.qa-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qa-answer {
    min-width: 180px;
}

@media (max-width: 1200px) {
    .qa-form__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qa-form__top .field:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .fs-picker {
        width: 100%;
    }

    .qa-answer__head {
        align-items: flex-start;
    }

    .qa-answer__tools {
        width: 100%;
    }

    .fs-picker select {
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .qa-form__top,
    .qa-form__bottom {
        grid-template-columns: minmax(0, 1fr);
    }

    .qa-form__top .field:first-child {
        grid-column: auto;
    }

    .qa-toggle__text {
        white-space: normal;
    }
}

/* 问答列表在当前机器下不需要机器列，宽度收一点 */
.table--qa {
    min-width: 900px;
}
/* ============================================================
   广告检测 · 检测结果提示条
   ============================================================ */
.notice {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-soft);
}

.notice--ok {
    border-color: rgba(45, 214, 141, 0.35);
    background: rgba(45, 214, 141, 0.1);
    color: #9df0c7;
}

.notice--warn {
    border-color: rgba(255, 179, 64, 0.38);
    background: rgba(255, 179, 64, 0.11);
    color: #ffd79a;
}

.notice b,
.notice code {
    color: inherit;
}

/* ============================================================
   广告检测 · 撤回体系
   ============================================================ */
.adp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 开关卡片：两列，单列变体用于独占一行 */
.adp-switch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 6px;
}

.adp-switch-grid--single {
    grid-template-columns: 1fr;
}

.adp-switch {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.adp-switch:hover {
    border-color: var(--line-strong);
}

.adp-switch.is-on {
    border-color: rgba(37, 99, 235, 0.38);
    background: rgba(37, 99, 235, 0.08);
}

.adp-switch .mh-switch {
    flex: 0 0 auto;
    margin-top: 1px;
}

.adp-switch__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.adp-switch__body strong {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}

.adp-switch__body small {
    font-size: 12px;
    line-height: 1.55;
    color: var(--muted);
}

/* 字段块 */
.adp-field {
    margin-top: 14px;
}

.adp-field__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.adp-field__head label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-soft);
}

.adp-field > label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-soft);
}

.adp-field__hint {
    font-size: 12px;
    color: var(--muted);
}

.adp-field textarea {
    min-height: 96px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.65;
}

.adp-field input[type="text"],
.adp-field input[type="number"],
.adp-field select {
    max-width: 100%;
}

/* 恢复默认按钮 */
.adp-reset {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.adp-reset span {
    font-size: 13px;
    line-height: 1;
}

@media (max-width: 900px) {
    .adp-switch-grid { grid-template-columns: 1fr; }
}

/* .adp-field 不带 .field 类，这里补齐同样的控件样式 */
.adp-field input[type="text"],
.adp-field input[type="number"],
.adp-field select,
.adp-field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--text);
    font-size: 13.5px;
    font-family: inherit;
    line-height: 1.6;
}

.adp-field input::placeholder,
.adp-field textarea::placeholder {
    color: var(--muted);
}

.adp-field input:focus,
.adp-field textarea:focus,
.adp-field select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    background: #fff;
}

/* hint 与变量说明不要挤在框里 */
.adp-field > .field__hint,
.adp-field > small.field__hint {
    display: block;
    margin-top: 7px;
    line-height: 1.7;
}

.adp-field > small.field__hint code {
    padding: 1px 5px;
    margin: 0 1px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-soft);
    white-space: nowrap;
}

/* 单行文本框高度收一点，别和 textarea 一样高 */
.adp-field input[type="text"],
.adp-field input[type="number"] {
    max-width: 560px;
}

.adp-field select {
    max-width: 560px;
}

/* 三个字段并排铺满一行（处理方式 / 警告上限 / 禁言分钟） */
.adp-triple {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

/* 网格里的控件撑满自己的格子，不留固定宽度 */
.adp-triple .adp-field {
    margin-top: 0;
}

.adp-triple .adp-field input[type="text"],
.adp-triple .adp-field input[type="number"],
.adp-triple .adp-field select {
    width: 100%;
    max-width: none;
}

@media (max-width: 900px) {
    .adp-triple {
        grid-template-columns: 1fr;
    }
}

/* 独占一行的单框输入，铺满整行别在右边留白 */
.adp-field input.adp-input--full {
    max-width: none;
    width: 100%;
}
/* ---------- 入群审核 ---------- */
.ja-stats { margin-bottom: 16px; }
.ja-stat { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; }
.ja-stat__label { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.ja-stat__num { font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--text); }

.ja-hint { padding: 4px 2px; font-size: 13px; color: var(--text-soft); line-height: 1.75; }
.ja-hint__list { margin: 8px 0 8px 18px; padding: 0; }
.ja-hint__list li { margin-bottom: 6px; }
.ja-hint code {
    padding: 1px 5px; border-radius: 4px;
    background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line);
    font-family: var(--mono); font-size: 12px; color: var(--brand);
}
.ja-hint__note { margin-top: 6px; font-size: 12px; color: var(--muted); }

.ja-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ja-filter {
    padding: 4px 11px; border-radius: 999px; font-size: 12px;
    color: var(--text-soft); background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent; text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.ja-filter:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.ja-filter.is-active {
    background: rgba(37, 99, 235, 0.16); color: var(--brand);
    border-color: rgba(37, 99, 235, 0.4);
}

.ja-openid {
    margin-top: 2px; font-size: 11px; color: var(--muted);
    font-family: var(--mono); word-break: break-all; max-width: 220px;
}
.ja-reason { max-width: 260px; word-break: break-word; color: var(--text-soft); }
.ja-risk { margin-top: 4px; font-size: 12px; color: var(--rose); }
.ja-time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ja-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ja-done { color: var(--muted); }
/* ---------- 入群审核 · 状态横幅 ---------- */
.ja-alert {
    margin-bottom: 16px; padding: 14px 18px; border-radius: var(--radius);
    border: 1px solid var(--line); background: var(--panel);
    font-size: 13px; line-height: 1.75; color: var(--text-soft);
}
.ja-alert b { color: var(--text); }
.ja-alert p { margin: 6px 0 0; }
.ja-alert ol { margin: 8px 0 0 18px; padding: 0; }
.ja-alert ol li { margin-bottom: 4px; }
.ja-alert code {
    padding: 1px 5px; border-radius: 4px; font-family: var(--mono); font-size: 12px;
    background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); color: var(--brand);
}
.ja-alert__no { color: var(--rose); font-weight: 600; }
.ja-alert__note { font-size: 12px; color: var(--muted); }

.ja-alert--danger {
    border-color: rgba(255, 107, 129, 0.45);
    background: linear-gradient(180deg, rgba(255, 107, 129, 0.14), rgba(255, 107, 129, 0.05));
}
.ja-alert--warn {
    border-color: rgba(255, 196, 77, 0.45);
    background: linear-gradient(180deg, rgba(255, 196, 77, 0.13), rgba(255, 196, 77, 0.04));
}
.ja-alert--ok {
    border-color: rgba(67, 217, 163, 0.4);
    background: linear-gradient(180deg, rgba(67, 217, 163, 0.12), rgba(67, 217, 163, 0.04));
    color: var(--green);
}
/* 只读展示的字段值（替代 select / input） */
.field__static {
    display: block; padding: 10px 12px; border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
    font-size: 13px; color: var(--text-soft);
}
/* ---------- 入群审核 · 紧凑模式 ---------- */
.form--compact .card { padding: 18px 20px; margin-bottom: 14px; }
.form--compact .card__head { margin-bottom: 12px; }
.form--compact .card__head h3 { font-size: 15px; }
.form--compact .adp-switch { padding: 11px 13px; }
.form--compact .adp-switch__body b { font-size: 13px; }
.form--compact .adp-switch__body small { font-size: 12px; line-height: 1.5; }
.form--compact .field { margin-bottom: 12px; }
.form--compact .field__label { font-size: 12.5px; margin-bottom: 5px; }
.form--compact .input { padding: 7px 10px; font-size: 13px; }
.form--compact .input--area { line-height: 1.65; }
.form--compact .field__hint { font-size: 11.5px; margin-top: 5px; line-height: 1.6; }
.form--compact .btn { padding: 8px 18px; font-size: 13px; }
.form--compact .form-actions { margin-top: 14px; }

/* 统计卡片更紧凑 */
.ja-stats .ja-stat { padding: 14px 16px; }
.ja-stats .ja-stat__num { font-size: 22px; }
.ja-stats .ja-stat__label { font-size: 12px; }
/* ---------- 入群验证 ---------- */
.ja-code {
    display: inline-block; padding: 3px 10px; border-radius: 6px;
    background: rgba(56, 132, 255, 0.14); border: 1px solid rgba(56, 132, 255, 0.35);
    font-family: var(--mono); font-size: 14px; letter-spacing: 2px;
    color: #6ba8ff; font-weight: 600;
}
.ja-user { display: flex; flex-direction: column; gap: 2px; }
.ja-user b { font-size: 13px; color: var(--text); font-weight: 600; }
/* ---------- 积分系统 ---------- */
.form-row {
    display: grid;
    gap: 14px;
    margin-bottom: 6px;
}
.form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.pagination {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px;
}
.pagination__item {
    min-width: 32px; height: 32px; padding: 0 8px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; border: 1px solid var(--line);
    font-size: 13px; color: var(--text-soft); text-decoration: none;
}
.pagination__item:hover { border-color: rgba(37, 99, 235, 0.5); color: var(--text); }
.pagination__item.is-active {
    background: rgba(37, 99, 235, 0.16); border-color: rgba(37, 99, 235, 0.5); color: #6bc7f0;
}

.pts-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; }

.pts-stats .pts-stat { padding: 16px 18px; }
.pts-stat { display: flex; flex-direction: column; gap: 4px; }
.pts-stat__label { font-size: 12px; color: var(--muted); }
.pts-stat__num { font-size: 24px; font-weight: 700; color: var(--text); }

.pts-adjust-hint { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; line-height: 1.7; }

.pts-cell { display: flex; flex-direction: column; gap: 2px; }
.pts-cell b { font-size: 13px; color: var(--text); font-weight: 600; }
.pts-openid { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.pts-detail { font-size: 12.5px; color: var(--text-soft); max-width: 260px; }
.pts-time { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.pts-delta { font-weight: 700; font-family: var(--mono); }
.pts-delta.is-plus { color: #3ddc84; }
.pts-delta.is-minus { color: #ff6b6b; }

.pts-rank {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 26px; height: 26px; padding: 0 6px; border-radius: 8px;
    font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, 0.05); color: var(--text-soft);
}
.pts-rank--1 { background: rgba(255, 193, 7, 0.18); color: #ffd54f; }
.pts-rank--2 { background: rgba(205, 220, 57, 0.14); color: #cddc39; }
.pts-rank--3 { background: rgba(255, 138, 101, 0.16); color: #ff8a65; }

.pts-earn { color: #3ddc84; font-family: var(--mono); }
.pts-spend { color: #ff6b6b; font-family: var(--mono); }

@media (max-width: 900px) {
    .form-row--3, .form-row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .form-row--2, .form-row--3, .form-row--4 { grid-template-columns: 1fr; }
}

/* ============================================================
   NapCat 浅色主题覆盖层
   ============================================================ */

/* ---------- 布局：侧栏 + 内容，四周留白卡片式 ---------- */
.app {
    gap: 18px;
    padding: 18px;
    background: var(--bg);
}

/* ---------- 侧栏：白底卡片 ---------- */
.app__sidebar {
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
    position: sticky;
    top: 18px;
    height: calc(100vh - 36px);
    backdrop-filter: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.brand__mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8, #0f9f6e);
    flex: 0 0 auto;
}

.brand__mark svg {
    width: 20px;
    height: 20px;
}

.brand__text strong {
    display: block;
    font-size: 15px;
    line-height: 1.2;
    color: var(--text);
}

.brand__text small {
    color: var(--muted);
    font-size: 12px;
}

.app__nav {
    gap: 2px;
}

.app__nav-label {
    margin: 12px 0 6px;
    padding-left: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--muted);
}

.app__nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--text-soft);
    font-weight: 500;
}

.app__nav a svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    stroke-width: 2;
}

.app__nav a:hover {
    background: var(--soft);
    color: var(--text);
}

.app__nav a.is-active {
    background: var(--blue-soft);
    color: var(--brand);
    box-shadow: none;
    font-weight: 700;
}

.app__nav .nav-tag {
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 6px;
    font-size: 10.5px;
    background: var(--amber-soft);
    color: var(--amber);
}

/* 子导航：缩进 + 左边竖线（NapCat 分组样式） */
.app__nav .sub-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 2px 0 6px;
    margin-left: 17px;
    padding-left: 14px;
    border-left: 1px solid var(--line);
}

.app__nav .sub-nav a {
    padding: 7px 10px;
    font-size: 13px;
}

.app__nav a.is-todo {
    color: var(--muted);
    opacity: 0.75;
}

.app__nav a.app__nav-admin {
    color: var(--brand);
    font-weight: 700;
}

.app__sidebar-foot .btn {
    border-radius: 10px;
}

/* ---------- 顶栏：白底 ---------- */
.app__topbar {
    padding: 0 4px;
    min-height: 64px;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
    position: static;
    gap: 18px;
}

.app__topbar-left h1 {
    font-size: 19px;
    letter-spacing: 0;
}

.app__topbar-left p {
    font-size: 12px;
    color: var(--muted);
}

.user-chip {
    padding: 5px 10px 5px 6px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(135deg, #fff 0%, #f7fbff 48%, #fff4fb 100%);
    box-shadow: var(--shadow-soft);
}

.user-chip__avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #0f9f8f);
    color: #fff;
}

.user-chip__meta strong {
    color: var(--text);
}

/* ---------- 内容区 ---------- */
.app__content {
    padding: 0 4px 40px;
    gap: 16px;
}

/* ---------- 卡片：白面板 ---------- */
.card {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.card__head h3 {
    font-size: 15.5px;
}

.card__desc {
    color: var(--muted);
}

/* ---------- 按钮：圆角 + 渐变 ---------- */
.btn {
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.btn--primary {
    background: linear-gradient(135deg, #2f6df6 0%, #13a7d8 55%, #12b981 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.48);
    border-color: rgba(37, 99, 235, 0.42);
}

.btn--primary:hover {
    color: #fff;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24), 0 0 0 4px rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}

.btn--ghost {
    border-color: var(--brand);
    background: linear-gradient(135deg, #fff 0%, #f7fbff 48%, #fff4fb 100%);
    color: var(--brand);
}

.btn--ghost:hover {
    border-color: #8bb8ff;
    background: var(--input-bg);
    color: var(--brand);
}

/* ---------- pill / 徽章 ---------- */
.pill {
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    border: 0;
    color: var(--text-soft);
    background: var(--bg-soft);
}

.pill--ok {
    color: #057047;
    background: var(--green-soft);
}

.pill--muted {
    color: var(--text-soft);
    background: var(--bg-soft);
}

.pill--warn {
    color: var(--amber);
    background: var(--amber-soft);
}

.pill--error,
.pill--danger {
    color: #b42318;
    background: var(--red-soft);
}

.pill--admin {
    color: #b7791f;
    background: var(--amber-soft);
}

/* ---------- 字段：白底输入框 ---------- */
.field input[type="text"],
.field input[type="password"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea,
.adp-field input,
.adp-field select,
.adp-field textarea {
    padding: 10px 13px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: var(--input-bg);
    color: var(--text);
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.adp-field input:focus,
.adp-field select:focus,
.adp-field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: var(--input-bg);
}

.field input::placeholder {
    color: var(--muted);
}

.field__error {
    color: var(--rose);
}

/* ---------- 表格 ---------- */
.table th {
    background: var(--soft);
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.table td {
    border-bottom: 1px solid var(--line);
}

.table tbody tr:hover td {
    background: var(--blue-soft);
}

/* ---------- 开关 ---------- */
.mh-switch__track {
    border: 1px solid var(--line-strong);
    background: var(--bg-soft);
}

.mh-switch__track::after {
    background: var(--input-bg);
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.2);
}

.mh-switch input:checked + .mh-switch__track {
    background: linear-gradient(135deg, #2f6df6, #13a7d8);
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.mh-switch input:checked + .mh-switch__track::after {
    transform: translateX(16px);
    background: var(--input-bg);
}

.adp-switch.is-on {
    border-color: #aac1ff;
    background: var(--blue-soft);
}

/* ---------- flash 提示 ---------- */
.flash {
    background: var(--panel);
    border: 1px solid var(--line-strong);
    color: var(--text-soft);
}

/* ---------- notice / 表单错误 ---------- */
.notice {
    border: 1px solid var(--line-strong);
    background: var(--panel);
    color: var(--text-soft);
}

.form-errors {
    border: 1px solid var(--red-soft);
    background: var(--red-soft);
    color: #b42318;
}

.form-errors p {
    color: #b42318;
}

/* ---------- 空状态 ---------- */
.empty-card {
    border: 1px dashed var(--line-strong);
    background: #fbfcfe;
    color: var(--muted);
}

/* ---------- 积分/审核/验证等统计卡的深色值修正 ---------- */
.pts-rank {
    background: var(--soft);
    color: var(--text-soft);
}
.pts-rank--1 { background: var(--amber-soft); color: var(--amber); }
.pts-rank--2 { background: var(--soft); color: var(--muted); }
.pts-rank--3 { background: var(--red-soft); color: #b42318; }

/* 顶栏状态 pill 保留原结构，交给 .pill 覆盖层处理 */

/* ---------- 登录 / 注册页 ---------- */
.auth__aside {
    border-right: 1px solid var(--line);
    background:
        radial-gradient(90% 70% at 10% 0%, rgba(37, 99, 235, 0.06), transparent 60%),
        radial-gradient(80% 60% at 100% 100%, rgba(123, 108, 255, 0.06), transparent 60%);
}

.auth__headline em {
    background: linear-gradient(120deg, #2563eb, #7b6cff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth__quote {
    border-top: 1px solid var(--line);
}

.auth-card {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: none;
}

.auth__copyright {
    color: var(--muted);
}

/* ---------- 主题切换按钮 ---------- */
.theme-toggle {
    min-height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff 0%, #f7fbff 48%, #fff4fb 100%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.12);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
}

:root[data-theme="dark"] .theme-toggle {
    background: linear-gradient(180deg, #1d2a3a, #172230);
    border-color: var(--line);
    color: var(--text);
}

/* 深色主题下 user-chip 渐变也适配 */
:root[data-theme="dark"] .user-chip {
    background: linear-gradient(180deg, #1d2a3a, #172230);
    border-color: var(--line);
}

:root[data-theme="dark"] .btn--ghost {
    background: linear-gradient(180deg, #1d2a3a, #172230);
}

:root[data-theme="dark"] .brand__mark {
    background: linear-gradient(135deg, #2f6df6, #0f9f6e);
}

/* ---------- 积分商城 · 标签页 ---------- */
.pts-shop-tabs,
.shop-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.pts-tab,
.shop-tab {
    height: 36px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-soft);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pts-tab .nav-tag,
.shop-tab .nav-tag {
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 10px;
    background: var(--amber-soft);
    color: var(--amber);
}

.pts-tab.is-active,
.shop-tab.is-active {
    color: var(--brand);
    background: var(--panel);
    box-shadow: 0 8px 16px rgba(16, 24, 40, 0.08);
}

.pts-tab-panel {
    display: none;
}

.pts-tab-panel.is-active {
    display: block;
}

.pts-divider {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

/* ---------- 区间输入框（最小 ~ 最大） ---------- */
.field__group .field__sep {
    padding: 0 8px;
    color: var(--muted);
    flex: none;
    font-size: 14px;
}

.field__group:has(.field__sep) input {
    padding-right: 12px;
}
/* ---------- 积分系统 · 模块卡片（对齐 NapCat points-module-card） ---------- */
.points-section-title {
    margin-bottom: 12px;
}

.points-section-title h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.points-section-title p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.points-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.points-module-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--soft);
}

.points-module-card .setting-switch,
.points-module-card .adp-switch {
    border: 0;
    padding: 0;
    background: transparent;
}

.points-module-body {
    display: grid;
    gap: 10px;
}

.points-module-body.compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.points-module-card .field.full-field,
.points-module-body .field.full-field {
    grid-column: 1 / -1;
}

.points-module-title {
    display: grid;
    gap: 3px;
}

.points-module-title strong {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
}

.points-module-title em {
    font-size: 12px;
    font-style: normal;
    line-height: 1.5;
    color: var(--muted);
}

@media (max-width: 900px) {
    .points-module-grid,
    .points-module-body.compact-grid {
        grid-template-columns: 1fr;
    }
}
/* ---------- 功能页顶部选择栏（对齐 NapCat feature-select-bar） ---------- */
.feature-select-bar {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

.feature-select-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 180px;
    flex: 1 1 200px;
}

.feature-select-field > span {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.feature-select-form {
    display: block;
    margin: 0;
}

.feature-select-field select {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.feature-select-field select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.feature-select-state {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
}

.feature-select-state em {
    font-size: 12px;
    font-style: normal;
    color: var(--muted);
}

.feature-select-state a {
    color: var(--brand);
    font-weight: 600;
}

@media (max-width: 640px) {
    .feature-select-field {
        flex: 1 1 100%;
    }
}
/* ---------- 用户端 · 公告条 ---------- */
.ann-list {
    display: grid;
    gap: 10px;
}

.ann-item {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: 8px;
    background: var(--soft);
}

.ann-item.notice--ok { border-left-color: var(--green); }
.ann-item.notice--warn { border-left-color: var(--amber); }
.ann-item.notice--bad { border-left-color: var(--rose); }

.ann-item__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 5px;
}

.ann-item__head strong {
    font-size: 13.5px;
    color: var(--text);
}

.ann-item__time {
    flex: none;
    font-size: 11.5px;
    color: var(--muted);
}

.ann-item__body {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--text-soft);
}
/* ---------- 授权页 · 三栏并排 ---------- */
.lic-grid {
    align-items: stretch;
}

/* 中等屏幕（两个授权表单并排，已授权群换行） */
@media (max-width: 1180px) {
    .lic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lic-grid > section:last-child {
        grid-column: 1 / -1;
    }
}

/* 手机（全部单列） */
@media (max-width: 780px) {
    .lic-grid {
        grid-template-columns: 1fr;
    }

    .lic-grid > section:last-child {
        grid-column: auto;
    }
}

/* 授权表单按钮占满整行 */
.lic-grid .btn--block {
    width: 100%;
    justify-content: center;
}/* 授权页：等高排列，按钮贴底 */
.lic-grid {
    align-items: stretch;
}

.lic-grid > section {
    display: flex;
    flex-direction: column;
}

.lic-grid > section > form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 让 form-actions（按钮行）始终贴到卡片底部 */
.lic-grid > section > form > .form-actions {
    margin-top: auto;
    padding-top: 12px;
}

/* 让最后一个 field 也能自然撑开，避免内容挤压 */
.lic-grid > section > form > .field:last-of-type {
    margin-bottom: 0;
}

/* 授权页：覆盖 form--compact 的固定 margin，让按钮真正贴底 */
.lic-grid > section > form > .form-actions,
.lic-grid > section > form.form--compact > .form-actions {
    margin-top: auto !important;
    padding-top: 16px;
}