/* ============================================================
   QQ 官方机器人控制台 · 样式表
   ============================================================ */

:root {
    --bg: #070b14;
    --bg-soft: #0b1220;
    --bg-elev: #0e1626;
    --panel: rgba(255, 255, 255, 0.035);
    --panel-strong: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #e9eefb;
    --text-soft: #b8c4dd;
    --muted: #8a99bb;
    --brand: #12b7f5;
    --brand-dark: #0a92c9;
    --brand-glow: rgba(18, 183, 245, 0.35);
    --violet: #7b6cff;
    --green: #43d9a3;
    --amber: #ffc44d;
    --rose: #ff6b81;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
    --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;
}

*,
*::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: #57d2ff;
}

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: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    padding: 1px 6px;
    border-radius: 5px;
    color: #9fe3ff;
}

.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 {
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
    opacity: 0.7;
}

.site-bg__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
}

.site-bg__blob--a {
    width: 620px;
    height: 620px;
    top: -260px;
    left: -140px;
    background: radial-gradient(circle, rgba(18, 183, 245, 0.55), transparent 68%);
}

.site-bg__blob--b {
    width: 560px;
    height: 560px;
    top: 120px;
    right: -220px;
    background: radial-gradient(circle, rgba(123, 108, 255, 0.45), 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, #17c3ff, #0c9ee0);
    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(18, 183, 245, 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(18, 183, 245, 0.55);
    background: rgba(18, 183, 245, 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 rgba(18, 183, 245, 0.28);
    background: rgba(18, 183, 245, 0.08);
    font-size: 12.5px;
    color: #9fe3ff;
    font-weight: 500;
}

.badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(18, 183, 245, 0.16);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(18, 183, 245, 0.18); }
    50% { box-shadow: 0 0 0 7px rgba(18, 183, 245, 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, #2fd0ff 10%, #7b6cff 55%, #b48cff 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(18, 183, 245, 0.16);
    color: #8fe0ff;
    border: 1px solid rgba(18, 183, 245, 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(18, 183, 245, 0.22), rgba(123, 108, 255, 0.18));
    border-color: rgba(18, 183, 245, 0.3);
    color: #e2f6ff;
}

.chat__bubble b {
    color: #9fe3ff;
    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(18, 183, 245, 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(18, 183, 245, 0.4);
    background: linear-gradient(180deg, rgba(18, 183, 245, 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(18, 183, 245, 0.12);
    border: 1px solid rgba(18, 183, 245, 0.22);
    color: #6fd8ff;
}

.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(18, 183, 245, 0.3);
    background:
        radial-gradient(120% 180% at 0% 0%, rgba(18, 183, 245, 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(18, 183, 245, 0.35);
    background: rgba(18, 183, 245, 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(18, 183, 245, 0.65);
    box-shadow: 0 0 0 4px rgba(18, 183, 245, 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: rgba(8, 13, 22, 0.8);
    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 #04121a;
    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(18, 183, 245, 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, #2fd0ff, #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(18, 183, 245, 0.13);
    color: #a9e9ff;
    box-shadow: inset 2px 0 0 var(--brand);
}

.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--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(18, 183, 245, 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: rgba(138, 153, 187, 0.8);
}

.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: rgba(8, 13, 22, 0.75);
    color: #a9e9ff;
    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(18, 183, 245, 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(18, 183, 245, 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: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--line);
    font-size: 12.5px;
    color: #9fe3ff;
    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;
    }

    .app__sidebar {
        position: static;
        height: auto;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        padding: 14px 18px;
    }

    .app__nav {
        flex-direction: row;
        gap: 4px;
    }

    .app__nav-label {
        display: none;
    }

    .app__sidebar-foot {
        margin-left: auto;
        margin-top: 0;
    }

    .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: rgba(9, 14, 24, 0.98);
        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: #ffd98a;
    border-color: rgba(255, 196, 77, 0.35);
    background: rgba(255, 196, 77, 0.1);
}

.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: rgba(184, 196, 221, 0.55);
}

.app__nav a.is-todo:hover {
    background: rgba(255, 255, 255, 0.035);
    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: #ffd98a;
    background: rgba(255, 179, 64, 0.1);
    box-shadow: inset 2px 0 0 var(--brand);
}

.app__nav a.app__nav-admin:hover {
    background: rgba(255, 179, 64, 0.18);
    color: #ffe6b8;
}

/* ---------- 筛选栏 ---------- */

.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: rgba(138, 153, 187, 0.75);
}

.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: #a9e9ff;
    background: rgba(18, 183, 245, 0.16);
}

.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__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: #a9e9ff;
    background: rgba(18, 183, 245, 0.16);
}

.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: #a9e9ff;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(18, 183, 245, 0.1);
    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: #a9e9ff;
    background: rgba(18, 183, 245, 0.12);
}