/* ==========================================================================
   SHUOXU-API 控制台组件库  (assets/css/console.css)
   适用：用户中心 /user、代理端 /agent、总后台 /admin

   与前台 front.css 完全同一套视觉语言：
     1. 克制的企业级：1px 细边框、6/8px 小圆角、零渐变、几乎不用阴影
     2. 单一主色 + 中性灰阶，颜色只用于状态与层级，不做装饰
     3. 图标一律使用 Font Awesome 字形（无 emoji、无彩色圆底）
     4. 数字统一 tabular-nums，保证对齐
     5. 移动优先断点：1024 / 768 / 560

   加载顺序：tailwind.css → app.css → console.css
   ========================================================================== */

/* 补齐 app.css 令牌里缺的几项（app.css 只定义了 --radius，没有 -lg / 阴影 / 等宽字体，
   缺失时 var() 会让 border-radius 等声明整条失效，圆角会变成 0） */
:root {
    --radius-lg: 8px;
    --shadow-1: 0 1px 2px rgba(14, 20, 32, .05);
    --shadow-2: 0 4px 12px -2px rgba(14, 20, 32, .10);
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
            "Liberation Mono", monospace;
    --info-soft: #eef2fd;
}

/* 内容区是 flex 子项，默认 min-width:auto 会被内部宽表格撑开导致整页横向溢出 */
.main-content,
.panel,
.table-scroll { min-width: 0; }

/* ==========================================================================
   1. 排版与工具
   ========================================================================== */
.page-head { margin-bottom: 20px; }
.page-head h1 {
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -.3px;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 9px;
}
.page-head .desc {
    margin-top: 5px;
    font-size: 13px;
    color: var(--ink-3);
}
.page-head .head-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* 区块标题（内容区内的次级标题） */
.sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.sec-head h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sec-head h2 i { color: var(--ink-3); font-size: 12.5px; }
.sec-head .sub { font-size: 12.5px; color: var(--ink-3); }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted   { color: var(--ink-3); }
.muted-2 { color: var(--ink-4); }
.strong  { color: var(--ink); font-weight: 600; }
.fs-12   { font-size: 12px; }
.fs-13   { font-size: 13px; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.stack > * + * { margin-top: 16px; }
.row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* 行内代码 / 密钥 */
.code-inline {
    font-family: var(--mono);
    font-size: 12.5px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2px 7px;
    color: var(--ink);
    word-break: break-all;
}

/* ==========================================================================
   2. 网格
   ========================================================================== */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-tight { gap: 12px; }

/* ==========================================================================
   3. 面板 / 卡片
   ========================================================================== */
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.panel-head {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.panel-head h2,
.panel-head h3 {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
}
.panel-head h2 i,
.panel-head h3 i { color: var(--ink-3); font-size: 12px; }
.panel-head .sub { font-size: 12px; color: var(--ink-3); }
.panel-body { padding: 16px; }
.panel-body-flush { padding: 0; }
.panel-foot {
    padding: 12px 16px;
    border-top: 1px solid var(--line-2);
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--ink-3);
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px;
}
.card-hover { transition: border-color .14s, background .14s; }
.card-hover:hover { border-color: var(--brand-line); background: #fcfdff; }
.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.card-desc {
    margin-top: 7px;
    font-size: 13px;
    color: var(--ink-3);
    line-height: 1.65;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--ink-3);
    margin-top: 10px;
}

/* 图标方块：统一代替彩色圆底 */
.ic {
    width: 34px; height: 34px;
    flex: 0 0 34px;
    border-radius: var(--radius);
    background: var(--brand-soft);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.ic-sm { width: 28px; height: 28px; flex-basis: 28px; font-size: 12px; }
.ic-lg { width: 42px; height: 42px; flex-basis: 42px; font-size: 17px; }
.ic-plain { background: var(--surface-2); color: var(--ink-3); }

/* ==========================================================================
   4. 按钮
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 550;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background .14s, border-color .14s, color .14s;
}
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 14.5px; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }

.btn-outline {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink-4); background: var(--surface-2); color: var(--ink); }

.btn-quiet { background: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--surface-2); color: var(--ink); }

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

.btn:disabled,
.btn.is-disabled { opacity: .5; cursor: not-allowed; }

/* ==========================================================================
   5. 表单
   ========================================================================== */
.field {
    height: 36px;
    width: 100%;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    font-family: inherit;
    font-size: 13.5px;
    color: var(--ink);
    transition: border-color .14s, box-shadow .14s;
}
.field::placeholder { color: var(--ink-4); }
.field:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(20, 73, 196, .10);
}
textarea.field { height: auto; padding: 9px 11px; line-height: 1.6; resize: vertical; }
select.field {
    appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237d8794' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.field-label {
    display: block;
    font-size: 12.5px;
    font-weight: 550;
    color: var(--ink);
    margin-bottom: 6px;
}
.field-hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.field-search { position: relative; flex: 1; min-width: 180px; }
.field-search i {
    position: absolute;
    left: 11px; top: 50%;
    transform: translateY(-50%);
    color: var(--ink-4);
    font-size: 12px;
    pointer-events: none;
}
.field-search .field { padding-left: 31px; }

/* ==========================================================================
   6. 指标卡
   ========================================================================== */
.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 15px 16px;
}
.stat .label {
    font-size: 12.5px;
    color: var(--ink-3);
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat .label i { color: var(--ink-4); font-size: 11.5px; }
.stat .value {
    margin-top: 8px;
    font-size: 24px;
    font-weight: 650;
    color: var(--ink);
    letter-spacing: -.5px;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}
.stat .foot {
    margin-top: 4px;
    font-size: 12px;
    color: var(--ink-4);
    font-variant-numeric: tabular-nums;
}
.stat.is-accent { border-color: var(--brand-line); background: #fcfdff; }
.stat.is-accent .value { color: var(--brand); }

/* 指标条（一线排列、内部分隔线，用于首页式概览） */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
}
.stats .stat-cell {
    padding: 18px 20px;
    border-right: 1px solid var(--line-2);
}
.stats .stat-cell:last-child { border-right: none; }
.stats .label {
    font-size: 12.5px;
    color: var(--ink-3);
    display: flex;
    align-items: center;
    gap: 7px;
}
.stats .value {
    margin-top: 7px;
    font-size: 26px;
    font-weight: 650;
    color: var(--ink);
    letter-spacing: -.5px;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}
.stats .foot { margin-top: 3px; font-size: 12px; color: var(--ink-4); }

/* ==========================================================================
   7. 徽标
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 21px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 550;
    line-height: 1;
    background: var(--surface-2);
    color: var(--ink-2);
    border: 1px solid var(--line);
    white-space: nowrap;
}
.badge i { font-size: 10px; }
.badge-brand  { background: var(--brand-soft);  color: var(--brand);  border-color: var(--brand-line); }
.badge-ok     { background: var(--ok-soft);     color: var(--ok);     border-color: #cbe9da; }
.badge-warn   { background: var(--warn-soft);   color: var(--warn);   border-color: #f2e0bf; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: #f6d5d1; }
.badge-plain  { background: transparent; border-color: var(--line); color: var(--ink-3); }

/* 兼容旧类名 */
.badge-success { background: var(--ok-soft);     color: var(--ok);     border-color: #cbe9da; }
.badge-info    { background: var(--brand-soft);  color: var(--brand);  border-color: var(--brand-line); }
.badge-warning { background: var(--warn-soft);   color: var(--warn);   border-color: #f2e0bf; }
.badge-secondary { background: var(--surface-2); color: var(--ink-2);  border-color: var(--line); }

/* ==========================================================================
   8. 表格
   ========================================================================== */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.table thead th {
    text-align: left;
    padding: 10px 16px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--ink-3);
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line-2);
    color: var(--ink-2);
    vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fbfcfe; }
.table .td-strong { color: var(--ink); font-weight: 550; }
.table .td-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .td-mono { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.table .td-actions { text-align: right; white-space: nowrap; }

/* 移动端：表格横向滚动（父容器加 .table-scroll） */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .table { min-width: 720px; }

/* ==========================================================================
   9. 进度条
   ========================================================================== */
.progress {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 110px;
}
.progress .track {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--line);
    overflow: hidden;
}
.progress .fill {
    height: 100%;
    background: var(--brand);
    border-radius: 2px;
}
.progress .pct {
    font-size: 11.5px;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
    min-width: 30px;
    text-align: right;
}

/* ==========================================================================
   10. 柱状图（近 7 天等）
   ========================================================================== */
.bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    height: 150px;
    margin-top: 4px;
}
.bars .col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 0;
}
.bars .col .n {
    font-size: 11px;
    color: var(--ink-3);
    margin-bottom: 5px;
    font-variant-numeric: tabular-nums;
}
.bars .col .bar {
    width: 100%;
    max-width: 46px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    border-bottom: none;
    border-radius: 3px 3px 0 0;
    transition: background .14s;
}
.bars .col:hover .bar { background: var(--brand); border-color: var(--brand); }
.bars .col .x {
    font-size: 11px;
    color: var(--ink-4);
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   11. 列表（Top5 / 记录行）
   ========================================================================== */
.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-2);
    font-size: 13.5px;
}
.list-row:last-child { border-bottom: none; }
.list-row .k {
    flex: 1 1 auto;
    color: var(--ink-2);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.list-row .v {
    color: var(--ink-3);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-size: 12.5px;
}
.list-row .rk {
    width: 20px;
    flex: 0 0 20px;
    font-size: 12px;
    color: var(--ink-4);
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   12. 账户概览
   ========================================================================== */
.acct {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
}
.acct-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.acct-title {
    font-size: 17px;
    font-weight: 650;
    color: var(--ink);
    letter-spacing: -.2px;
}
.acct-sub {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--ink-3);
}
.acct-side {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
.acct-bal-lbl {
    display: block;
    font-size: 12.5px;
    color: var(--ink-3);
}
.acct-bal-val {
    display: block;
    margin-top: 3px;
    font-size: 28px;
    font-weight: 650;
    color: var(--ink);
    letter-spacing: -.8px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.acct-tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* ==========================================================================
   13. 快捷入口
   ========================================================================== */
.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 500;
    transition: border-color .14s, background .14s, color .14s;
}
.quick-link:hover {
    border-color: var(--brand-line);
    background: #fcfdff;
    color: var(--brand);
}
.quick-link .arr {
    margin-left: auto;
    color: var(--ink-4);
    font-size: 11px;
}
.quick-link:hover .arr { color: var(--brand); }

/* ==========================================================================
   14. 空状态
   ========================================================================== */
.empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--ink-3);
}
.empty i {
    font-size: 26px;
    color: var(--ink-4);
    display: block;
    margin-bottom: 12px;
}
.empty p { font-size: 13.5px; }
.empty .hint { font-size: 12.5px; color: var(--ink-4); margin-top: 5px; }

/* ==========================================================================
   15. 分页
   ========================================================================== */
.pager {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.pager a, .pager span {
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 13px;
    color: var(--ink-2);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    transition: border-color .14s, background .14s;
}
.pager a:hover { border-color: var(--ink-4); color: var(--ink); background: var(--surface-2); }
.pager .is-current {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
}

/* ==========================================================================
   16. 标签页
   ========================================================================== */
.tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs .tab {
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-3);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    cursor: pointer;
    transition: color .14s, border-color .14s;
}
.tabs .tab:hover { color: var(--ink); }
.tabs .tab.is-active {
    color: var(--brand);
    border-bottom-color: var(--brand);
    font-weight: 600;
}

/* ==========================================================================
   17. 提示条
   ========================================================================== */
.note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--ink-4);
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.65;
}
.note i { margin-top: 2px; color: var(--ink-3); flex: 0 0 auto; }
.note .note-title { font-weight: 600; color: var(--ink); }
.note-ok     { border-left-color: var(--ok);      background: var(--ok-soft); }
.note-ok i     { color: var(--ok); }
.note-warn   { border-left-color: var(--warn);    background: var(--warn-soft); }
.note-warn i   { color: var(--warn); }
.note-danger { border-left-color: var(--danger);  background: var(--danger-soft); }
.note-danger i { color: var(--danger); }
.note-brand  { border-left-color: var(--brand);   background: var(--brand-soft); }
.note-brand i { color: var(--brand); }
.note .note-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-3);
    font-size: 12px;
    padding: 2px;
}
.note .note-close:hover { color: var(--ink); }

/* 公告条（静态展示，不滚动） */
.notice-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 13px;
    line-height: 1.6;
}
.notice-bar i { flex: 0 0 auto; }
.notice-bar .notice-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   18. 响应式
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats .stat-cell { border-right: none; border-bottom: 1px solid var(--line-2); }
    .stats .stat-cell:nth-child(odd) { border-right: 1px solid var(--line-2); }
    .stats .stat-cell:nth-last-child(-n+2) { border-bottom: none; }
    .acct { gap: 16px; }
    .acct-side { gap: 20px; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr; }
    .grid-2.keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-head h1 { font-size: 17px; }
    .panel-body { padding: 13px; }
    .panel-head { padding: 11px 13px; }
    .stat { padding: 13px; }
    .stat .value { font-size: 21px; }
    .acct { padding: 15px; }
    .acct-title { font-size: 15.5px; }
    .acct-bal-val { font-size: 23px; }
    .acct-side { gap: 16px; width: 100%; justify-content: space-between; }
    .table thead th,
    .table tbody td { padding: 10px 12px; }
    .bars { height: 120px; gap: 6px; }
}

/* ==========================================================================
   18.5 套餐 / 价格方案
   ========================================================================== */
.plan-group {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px;
    background: var(--surface);
}
.pg-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.pg-desc { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.pg-note { font-size: 12px; color: var(--ink-4); margin-top: 12px; }

.plan {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 14px;
    text-align: center;
    background: var(--surface);
    transition: border-color .14s, background .14s;
}
.plan:hover { border-color: var(--brand-line); background: #fcfdff; }
.plan-name {
    font-size: 14.5px;
    font-weight: 650;
    color: var(--ink);
    line-height: 1.35;
}
.plan-price {
    font-size: 21px;
    font-weight: 650;
    color: var(--brand);
    margin: 7px 0 12px;
    letter-spacing: -.4px;
    font-variant-numeric: tabular-nums;
}
.plan-actions { display: flex; flex-direction: column; gap: 8px; }
.plan-tag {
    display: inline-block;
    margin-top: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 550;
    background: var(--warn-soft);
    color: var(--warn);
    border: 1px solid #f2e0bf;
}

/* ==========================================================================
   19. 历史页面收敛层
   把旧页面残留的 Tailwind 装饰类收敛到企业风，免得逐页重写 HTML。
   只针对明确的「AI 风」特征下手，避免误伤功能类。
   ========================================================================== */

/* 大圆角 → 8px */
html body .rounded-2xl,
html body .rounded-3xl { border-radius: var(--radius-lg); }

/* 重阴影 → 去掉（企业风几乎不用阴影） */
html body .shadow-md,
html body .shadow-lg,
html body .shadow-xl,
html body .shadow-2xl { box-shadow: none; }

/* 卡片容器统一：白底 + 细边框 + 8px 圆角 + 无阴影 */
html body .bg-white.rounded-xl,
html body .bg-white.rounded-2xl {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: none;
}

/* 彩色圆底图标块 → 中性小圆角方块（典型 AI 风，收敛为弱底） */
html body .bg-blue-100.rounded-full,
html body .bg-green-100.rounded-full,
html body .bg-purple-100.rounded-full,
html body .bg-indigo-100.rounded-full,
html body .bg-emerald-100.rounded-full,
html body .bg-teal-100.rounded-full,
html body .bg-amber-100.rounded-full,
html body .bg-orange-100.rounded-full,
html body .bg-red-100.rounded-full,
html body .bg-pink-100.rounded-full,
html body .bg-yellow-100.rounded-full,
html body .bg-cyan-100.rounded-full,
html body .bg-gray-100.rounded-full {
    border-radius: var(--radius);
    background-color: var(--surface-2);
    color: var(--ink-2);
}

/* 页面标题条（老页面自绘的标题区）统一字号与间距 */
html body h1.text-2xl { font-size: 20px; letter-spacing: -.3px; }
html body h1.text-3xl { font-size: 22px; letter-spacing: -.4px; }
html body h2.text-xl,
html body h2.text-lg,
html body h3.text-lg { font-size: 15px; letter-spacing: -.1px; }

/* 卡片头部（老页面自绘的 bg-gray-50 标题条）统一为面板头观感 */
html body .border-b.bg-gray-50 { border-bottom-color: var(--line-2); }
html body .bg-gray-50.border-b h2,
html body .bg-gray-50.border-b h3 { color: var(--ink); }

/* 表格：老页面用 divide-y + thead 大写，统一成 .table 观感 */
html body table.w-full thead th {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--ink-3);
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}

@media (max-width: 560px) {
    /* 指标卡在手机上保持 2 列，避免 6 张卡纵向拖太长 */
    .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat .value { font-size: 19px; }
    .stats { grid-template-columns: 1fr; }
    .stats .stat-cell { border-right: none; border-bottom: 1px solid var(--line-2); }
    .stats .stat-cell:nth-child(odd) { border-right: none; }
    .stats .stat-cell:last-child { border-bottom: none; }
    .grid { gap: 12px; }
    .btn { height: 34px; padding: 0 13px; font-size: 13px; }
    .btn-lg { height: 40px; }
    .quick-link { padding: 12px 13px; font-size: 13px; }
    .list-row { font-size: 13px; }
}
