/**
 * Cat-Captcha 面板设计系统 v2（管理员后台 + 开发者中心共用）
 * 侧边栏 + 顶栏 + 移动端抽屉式适配；与验证弹窗（captcha.css）同一视觉语言
 * 包含：登录页渐变封面 / 统计卡片图标 / 悬停微交互 / 进度条 / 设置分组
 */
:root {
    --brand: #4f5bff;
    --brand-2: #8b5cf6;
    --brand-3: #c084fc;
    --brand-soft: #eef0ff;
    --bg: #f2f4fb;
    --card: #ffffff;
    --text: #1b2130;
    --text-2: #55607a;
    --text-3: #8b93a5;
    --line: rgba(22, 28, 45, .09);
    --ok: #0ea86d;
    --ok-bg: rgba(14, 168, 109, .1);
    --bad: #d2483d;
    --bad-bg: rgba(210, 72, 61, .09);
    --warn: #d8940a;
    --warn-bg: rgba(216, 148, 10, .1);
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(20, 24, 33, .05), 0 10px 30px rgba(20, 24, 33, .06);
    --shadow-lg: 0 22px 52px rgba(20, 24, 33, .14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font: 14px/22px -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(1100px 460px at 88% -140px, rgba(139, 92, 246, .13), transparent 60%),
        radial-gradient(900px 420px at -80px 10%, rgba(79, 91, 255, .11), transparent 55%),
        linear-gradient(160deg, #f4f6fb 0%, #eef1f9 55%, #f3f5fb 100%);
    background-attachment: fixed;
    color: var(--text); min-height: 100vh;
}
a { color: var(--brand); text-decoration: none; transition: color .14s; }
a:hover { color: var(--brand-2); }
[id] { scroll-margin-top: 76px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(22, 28, 45, .15); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(22, 28, 45, .28); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ===== 布局 ===== */
.layout { min-height: 100vh; }

.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 236px; z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid var(--line);
    display: flex; flex-direction: column;
    transition: transform .24s cubic-bezier(.2, .8, .3, 1), box-shadow .24s;
}
.sidebar-brand {
    display: flex; align-items: center; gap: 10px; padding: 20px 18px 14px;
    font-size: 16px; font-weight: 700; letter-spacing: .2px;
}
.sidebar-brand .logo {
    width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px;
    box-shadow: 0 4px 12px rgba(71, 83, 255, .35);
}
.sidebar-brand b, .sidebar-brand .brand-text { color: var(--brand); font-weight: 800; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 6px 12px 14px; }
.nav-group { font-size: 11px; color: var(--text-3); padding: 16px 10px 6px; letter-spacing: .8px; }
.nav-item {
    position: relative; display: flex; align-items: center; gap: 11px; padding: 9.5px 12px; margin-bottom: 2px;
    border-radius: 10px; color: var(--text-2); font-size: 13.5px; cursor: pointer;
    transition: background .14s, color .14s, transform .14s;
}
.nav-item:hover { background: rgba(79, 91, 255, .07); color: var(--text); transform: translateX(2px); }
.nav-item.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; font-weight: 600;
    box-shadow: 0 4px 12px rgba(71, 83, 255, .32);
}
.nav-item.active::before {
    content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px;
    border-radius: 3px; background: var(--brand);
}
.nav-item svg { flex-shrink: 0; }
.sidebar-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 13px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3);
}
.ver {
    font-size: 10.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px;
    background: var(--brand-soft); color: var(--brand); white-space: nowrap;
}

.main { margin-left: 236px; min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
    position: sticky; top: 0; z-index: 90;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 26px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.hamburger {
    display: none; width: 36px; height: 36px; border: none; border-radius: 10px;
    background: transparent; color: var(--text-2); cursor: pointer;
    align-items: center; justify-content: center; transition: background .14s, color .14s;
}
.hamburger:hover { background: rgba(79, 91, 255, .08); color: var(--brand); }
.topbar-title { font-size: 16px; font-weight: 700; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-2); }
.user-chip { display: flex; align-items: center; gap: 9px; }
.avatar {
    width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0;
    object-fit: cover; box-shadow: 0 2px 8px rgba(71, 83, 255, .22);
}
.topbar a { color: var(--text-2); }
.topbar a:hover { color: var(--brand); }

.content { padding: 24px 26px 44px; flex: 1; }
.content > .card,
.content > .grid2,
.content > .grid3 { margin-bottom: 16px; }
.content > * { animation: cap-fade .28s ease-out; }
.backdrop {
    display: none; position: fixed; inset: 0; z-index: 95; background: rgba(15, 17, 22, .4);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}

/* ===== 登录页封面 ===== */
.login-card { padding: 0; overflow: hidden; border: none; box-shadow: var(--shadow-lg); }
.hero {
    position: relative; padding: 34px 26px 26px; text-align: center; color: #fff;
    background: linear-gradient(135deg, #4f5bff 0%, #8b5cf6 55%, #c084fc 110%);
    overflow: hidden;
}
.hero::before, .hero::after {
    content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.hero::before { width: 130px; height: 130px; top: -48px; right: -34px; }
.hero::after { width: 90px; height: 90px; bottom: -40px; left: -26px; }
.hero .hero-logo {
    position: relative; z-index: 1; width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px;
    background: rgba(255, 255, 255, .18); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 800; color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.hero h2 { position: relative; z-index: 1; color: #fff; font-size: 18px; font-weight: 700; }
.hero p { position: relative; z-index: 1; color: rgba(255, 255, 255, .86); font-size: 12.5px; margin-top: 6px; }
.login-body { padding: 24px 28px 28px; }

/* ===== 卡片 ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 22px; box-shadow: var(--shadow);
}
.card h2 { font-size: 14.5px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card h2 .sub { font-weight: 400; font-size: 12px; color: var(--text-3); }
.stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; transition: transform .18s, box-shadow .18s; }
.stat:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20, 24, 33, .1); }
.stat-icon {
    width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
    box-shadow: 0 6px 14px rgba(71, 83, 255, .28);
}
.stat-icon.alt-sky { background: linear-gradient(135deg, #38bdf8, #0284c7); box-shadow: 0 6px 14px rgba(56, 189, 248, .3); }
.stat-icon.alt-ok { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 6px 14px rgba(16, 185, 129, .3); }
.stat-icon.alt-bad { background: linear-gradient(135deg, #f87171, #dc2626); box-shadow: 0 6px 14px rgba(248, 113, 113, .3); }
.stat-icon.alt-warn { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 6px 14px rgba(251, 191, 36, .32); }
.stat-icon.alt-violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); box-shadow: 0 6px 14px rgba(167, 139, 250, .3); }
.stat .stat-body { min-width: 0; }
.stat .num { font-size: 22px; line-height: 1.1; }
.stat .num.brand { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .num.ok { color: var(--ok); }
.stat .num.bad { color: var(--bad); }
.stat .lbl { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.stat.sm { gap: 12px; padding: 14px 16px; }
.stat.sm .stat-icon { width: 36px; height: 36px; border-radius: 10px; }
.stat.sm .num { font-size: 18px; }

/* ===== 进度条 ===== */
.prog { height: 7px; border-radius: 999px; background: rgba(22, 28, 45, .08); overflow: hidden; margin-top: 10px; }
.prog > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.prog.ok > i { background: linear-gradient(90deg, #10b981, #059669); }

/* ===== 表格 ===== */
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th {
    text-align: left; color: var(--text-3); font-weight: 600; font-size: 11px; letter-spacing: .5px;
    padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f7f8fc; white-space: nowrap;
}
.tbl td { padding: 10px 12px; border-bottom: 1px solid rgba(22, 28, 45, .05); color: #3d4452; word-break: break-all; vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(79, 91, 255, .03); }
.tbl .mono { font-family: Consolas, Monaco, monospace; font-size: 11.5px; }
.empty { text-align: center; color: var(--text-3); padding: 30px; }
.empty.block { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-ic {
    width: 44px; height: 44px; border-radius: 14px; border: 1.5px dashed rgba(22, 28, 45, .2);
    display: flex; align-items: center; justify-content: center; color: var(--text-3);
}
.empty a { font-weight: 500; }

/* ===== 标签 / 徽章 ===== */
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.neutral { background: rgba(20, 24, 33, .06); color: var(--text-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.ok { background: var(--ok); } .dot.bad { background: var(--bad); } .dot.warn { background: var(--warn); }

/* ===== 按钮 ===== */
.btn, button.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 18px; border: none; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; font-size: 13px; font-weight: 500; cursor: pointer;
    box-shadow: 0 4px 12px rgba(71, 83, 255, .28);
    transition: filter .14s, transform .1s, box-shadow .14s;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(71, 83, 255, .34); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--brand-3); outline-offset: 2px; }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid rgba(79, 91, 255, .4); box-shadow: none; }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.danger { background: var(--bad-bg); color: var(--bad); border: 1px solid rgba(210, 72, 61, .35); box-shadow: none; }
.btn.danger:hover { background: rgba(210, 72, 61, .16); }
.btn.sm { padding: 5px 12px; font-size: 12px; border-radius: 8px; box-shadow: none; }
.btn.sm:hover { box-shadow: 0 3px 8px rgba(71, 83, 255, .2); }
.btn.danger.sm:hover { box-shadow: 0 3px 8px rgba(210, 72, 61, .2); }

/* ===== 表单 ===== */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.input, input[type=text], input[type=number], input[type=password], input[type=search], select {
    width: 100%; padding: 9px 12px; border: 1px solid rgba(22, 28, 45, .14); border-radius: 10px;
    font-size: 13px; outline: none; background: #fff; color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
.input:focus, input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 91, 255, .12); }
.chk { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }

/* ===== 消息 ===== */
.msg { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 10px; font-size: 12.5px; margin-bottom: 14px; }
.msg::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.msg.ok { color: #0b7a50; background: var(--ok-bg); border: 1px solid rgba(14, 168, 109, .25); }
.msg.ok::before { background: var(--ok); }
.msg.err { color: #c33c32; background: var(--bad-bg); border: 1px solid rgba(210, 72, 61, .28); }
.msg.err::before { background: var(--bad); }
.msg.warn { color: #9a6b08; background: var(--warn-bg); border: 1px solid rgba(216, 148, 10, .3); }
.msg.warn::before { background: var(--warn); }

/* ===== 其他组件 ===== */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tab {
    padding: 6px 15px; border: 1px solid rgba(22, 28, 45, .13); border-radius: 999px;
    font-size: 12px; color: var(--text-2); cursor: pointer; background: #fff; transition: all .15s;
}
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(71, 83, 255, .25); }
.key-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.key-row .key { flex: 1; min-width: 0; }
.key-row .btn { flex-shrink: 0; }
.key { font-family: Consolas, Monaco, monospace; font-size: 12px; background: #f6f8fd; border: 1px solid rgba(22, 28, 45, .08); padding: 7px 12px; border-radius: 9px; color: #3d4452; overflow-x: auto; white-space: nowrap; }
.cred-box {
    position: relative; overflow: hidden; margin-bottom: 12px; padding: 12px 14px 12px 18px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.cred-box::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); }
.cred-box.cred-secret::before { background: linear-gradient(180deg, #a78bfa, #7c3aed); }
.cred-box.cred-id::before { background: rgba(22, 28, 45, .22); }
.cred-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.cred-name { font-size: 13px; font-weight: 700; }
.cred-name .mono { font-family: Consolas, Monaco, monospace; font-weight: 600; }
.cred-note { font-size: 11.5px; color: var(--text-3); }
.cred-top .btn { margin-left: auto; }
.cred-val {
    display: block; font-family: Consolas, Monaco, monospace; font-size: 12.5px;
    background: #f6f8fd; border: 1px solid rgba(22, 28, 45, .08); border-radius: 8px;
    padding: 8px 12px; color: #3d4452; white-space: nowrap; overflow-x: auto;
}
.cred-val.cred-id-val { background: #fafbfd; color: #8b93a5; }
.code { position: relative; background: #1e2230; color: #c9d1e6; padding: 16px; border-radius: 12px; overflow-x: auto; font: 12px/20px Consolas, Monaco, "Courier New", monospace; white-space: pre; }
.code::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 12px 12px 0 0; }
.code b { color: #8fa3ff; font-weight: 400; }
.hint { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.step-num {
    width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
    box-shadow: 0 4px 10px rgba(71, 83, 255, .25); margin-bottom: 10px;
}
.sec-h {
    display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-2);
    margin: 22px 0 14px;
}
.sec-h:first-child { margin-top: 0; }
.sec-h::before { content: ''; width: 3px; height: 13px; border-radius: 3px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); }
.sec-h:not(:first-child) { padding-top: 16px; border-top: 1px dashed rgba(22, 28, 45, .12); }
.pagination { display: flex; gap: 6px; align-items: center; margin-top: 14px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.pagination a, .pagination span { padding: 5px 12px; border: 1px solid rgba(22, 28, 45, .13); border-radius: 8px; background: #fff; color: var(--text-2); transition: all .14s; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .cur { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ===== 弹窗 ===== */
.modal-backdrop { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(15, 17, 22, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: 14px; max-width: 460px; width: 100%; box-shadow: 0 24px 60px rgba(15, 17, 22, .3); overflow: hidden; animation: cap-pop .2s cubic-bezier(.18, .89, .32, 1.1); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600; }
.modal-head .x { border: none; background: transparent; color: var(--text-3); cursor: pointer; font-size: 18px; line-height: 1; }
.modal-body { padding: 18px; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

@keyframes cap-pop { from { opacity: 0; transform: scale(.95) translateY(8px); } }
@keyframes cap-fade { from { opacity: 0; transform: translateY(6px); } }

/* ===== 趋势柱状图（纯 CSS，CSP 安全） ===== */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 88px; padding: 4px 2px 0; }
.chart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; min-width: 0; height: 100%; }
.chart .bar .col { width: 100%; max-width: 20px; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); min-height: 3px; transition: filter .14s; }
.chart .bar:hover .col { filter: brightness(1.12); }
.chart .bar .col.empty { background: rgba(22, 28, 45, .08); }
.chart .bar .lbl { font-size: 9px; color: var(--text-3); white-space: nowrap; }
.chart .bar .num { font-size: 9px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ===== PJAX 加载动画（顶栏进度条 + 内容渐入） ===== */
.pjax-bar {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1200;
    pointer-events: none; opacity: 0;
    background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3), var(--brand));
    background-size: 300% 100%;
    transition: opacity .18s ease;
}
.pjax-bar.active { opacity: 1; animation: pjax-slide 1.1s linear infinite; }
.pjax-bar.done { opacity: 0; transition: opacity .28s ease; }
.pjax-loading .content { opacity: .5; pointer-events: none; transition: opacity .18s ease; }
@keyframes pjax-slide { from { background-position: 0 0; } to { background-position: 300% 0; } }
@keyframes cap-fade-in { from { opacity: 0; transform: translateY(5px); } }

/* ===== 公告弹窗 ===== */
.announce-popup { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.announce-mask { position: absolute; inset: 0; background: rgba(15, 17, 22, .55); backdrop-filter: blur(3px); animation: cap-fade-in .2s ease; }
.announce-card {
    position: relative; width: min(520px, 100%); max-height: 78vh; overflow-y: auto;
    background: #fff; border-radius: 16px; padding: 26px 28px 22px; box-shadow: 0 24px 64px rgba(15, 17, 22, .28);
    animation: cap-fade-in .24s ease;
}
.announce-popup[hidden] { display: none; }
.announce-locked { overflow: hidden; }
.announce-close {
    position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; border: none; border-radius: 50%;
    background: rgba(22, 28, 45, .06); color: var(--text-2); font-size: 18px; line-height: 1; cursor: pointer;
}
.announce-close:hover { background: rgba(22, 28, 45, .12); }
.announce-icon { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); margin-bottom: 14px; }
.announce-card h3 { margin: 0 0 10px; font-size: 17px; font-weight: 700; }
.announce-content { color: var(--text-2); line-height: 1.75; font-size: 13.5px; }
.announce-actions { display: flex; gap: 10px; margin-top: 18px; }

/* ===== 工单对话 ===== */
.ticket-thread { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.ticket-msg { max-width: 85%; border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.ticket-msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.ticket-msg.admin { align-self: flex-start; background: var(--bg-2); color: var(--text-1); }
.ticket-msg-head { font-size: 11px; opacity: .75; margin-bottom: 4px; }
.ticket-msg-body { line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.ticket-body { color: var(--text-2); line-height: 1.7; white-space: pre-wrap; background: var(--bg-2); border-radius: 10px; padding: 14px; }

/* ===== 侧边栏角标 ===== */
.badge-dot {
    display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: auto;
    border-radius: 9px; font-size: 10px; font-weight: 700; color: #fff; background: #e5484d;
}

/* ===== 移动端适配 ===== */
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); box-shadow: none; }
    .sidebar.open { transform: translateX(0); box-shadow: 0 0 40px rgba(15, 17, 22, .2); }
    .main { margin-left: 0; }
    .hamburger { display: inline-flex; }
    .backdrop.show { display: block; }
    .content { padding: 16px 14px 30px; }
    .topbar { padding: 10px 14px; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .topbar-title { font-size: 14px; }
    .content > * { animation: none; }
}
@media (max-width: 420px) {
    .cards { grid-template-columns: 1fr; }
    .user-chip .name { display: none; }
}
