/* ==========================================================================
   Aurora Theme for 主机销售系统 (前台模板)
   --------------------------------------------------------------------------
   · 零框架依赖的纯手写主题系统
   · CSS 自定义属性驱动的双模式(亮/暗) + 四套主色调(aurora/sunset/ocean/forest)
   · 玻璃拟态 + 渐变光斑背景 + 现代排版
   · 内置全量组件: 按钮/表单/卡片/表格/徽章/标签页/分页/弹窗/抽屉/提示
   · 兼容 ThinkPHP5 paginate 输出结构 与 主机插件 ClientArea(.btn/.btn-primary)
   ========================================================================== */

/* ---------- 0. 主色调方案 ---------- */
:root,
html[data-accent="aurora"] {
  --g1: #6366f1; --g2: #8b5cf6; --g3: #22d3ee;
  --acc: #6366f1; --acc-soft: rgba(99, 102, 241, .12); --acc-line: rgba(99, 102, 241, .32);
}
html[data-accent="sunset"] {
  --g1: #f97316; --g2: #ef4444; --g3: #ec4899;
  --acc: #f0533c; --acc-soft: rgba(240, 83, 60, .12); --acc-line: rgba(240, 83, 60, .32);
}
html[data-accent="ocean"] {
  --g1: #0ea5e9; --g2: #06b6d4; --g3: #3b82f6;
  --acc: #0891b2; --acc-soft: rgba(8, 145, 178, .12); --acc-line: rgba(8, 145, 178, .32);
}
html[data-accent="forest"] {
  --g1: #10b981; --g2: #059669; --g3: #84cc16;
  --acc: #0d9f6e; --acc-soft: rgba(13, 159, 110, .12); --acc-line: rgba(13, 159, 110, .32);
}

/* ---------- 1. 语义变量(亮色) ---------- */
:root {
  --bg: #f4f6fb;
  --bg-soft: #eef1f8;
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, .72);
  --card-2: #f8fafc;
  --line: #e5e9f2;
  --line-strong: #d4dae8;
  --tx: #17213c;
  --tx-2: #47536e;
  --tx-3: #8b94ad;
  --tx-inv: #ffffff;
  --shadow-sm: 0 1px 2px rgba(23, 33, 60, .06), 0 1px 4px rgba(23, 33, 60, .05);
  --shadow-md: 0 4px 18px rgba(23, 33, 60, .08);
  --shadow-lg: 0 16px 48px -12px rgba(23, 33, 60, .22);
  --glow: 0 8px 28px -8px var(--acc-line);
  --radius: 16px;
  --radius-sm: 10px;
  --ok: #16a34a; --ok-soft: rgba(22, 163, 74, .12);
  --warn: #d97706; --warn-soft: rgba(217, 119, 6, .13);
  --err: #dc2626; --err-soft: rgba(220, 38, 38, .11);
  --info: #0284c7; --info-soft: rgba(2, 132, 199, .11);
  --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, monospace;
}

/* ---------- 2. 暗色模式 ---------- */
html[data-mode="dark"] {
  --bg: #0b1020;
  --bg-soft: #0e1428;
  --card: #131a30;
  --card-glass: rgba(19, 26, 48, .74);
  --card-2: #182038;
  --line: #232c4a;
  --line-strong: #2e3960;
  --tx: #e6eaf6;
  --tx-2: #a7b0cc;
  --tx-3: #6b7594;
  --tx-inv: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-md: 0 4px 18px rgba(0, 0, 0, .4);
  --shadow-lg: 0 16px 48px -12px rgba(0, 0, 0, .6);
  --ok: #34d399; --ok-soft: rgba(52, 211, 153, .14);
  --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .14);
  --err: #f87171; --err-soft: rgba(248, 113, 113, .13);
  --info: #38bdf8; --info-soft: rgba(56, 189, 248, .13);
}
@media (prefers-color-scheme: dark) {
  html:not([data-mode]) { --bg: #0b1020; --bg-soft: #0e1428; --card: #131a30; --card-glass: rgba(19, 26, 48, .74); --card-2: #182038; --line: #232c4a; --line-strong: #2e3960; --tx: #e6eaf6; --tx-2: #a7b0cc; --tx-3: #6b7594; --shadow-sm: 0 1px 2px rgba(0,0,0,.35); --shadow-md: 0 4px 18px rgba(0,0,0,.4); --shadow-lg: 0 16px 48px -12px rgba(0,0,0,.6); --ok: #34d399; --ok-soft: rgba(52,211,153,.14); --warn: #fbbf24; --warn-soft: rgba(251,191,36,.14); --err: #f87171; --err-soft: rgba(248,113,113,.13); --info: #38bdf8; --info-soft: rgba(56,189,248,.13); }
}

/* ---------- 3. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.aurora {
  margin: 0; font-family: var(--font); color: var(--tx); background: var(--bg);
  font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; min-height: 100vh;
  transition: background-color .25s ease, color .25s ease;
}
a { color: var(--acc); text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .82; }
img { max-width: 100%; }
::selection { background: var(--acc); color: #fff; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; font-weight: 700; color: var(--tx); }
p { margin: 0 0 1em; }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 4. 图标(mask 方案, 模板中 <i class="ic ic-home"></i>) ---------- */
.ic { display: inline-flex; width: 18px; height: 18px; flex: none; vertical-align: -3.5px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.ic-lg { width: 24px; height: 24px; vertical-align: -6px; }
.ic-sm { width: 15px; height: 15px; vertical-align: -2.5px; }
.ic-home{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E")}
.ic-grid{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E")}
.ic-server{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='8' rx='2'/%3E%3Crect x='2' y='14' width='20' height='8' rx='2'/%3E%3Cline x1='6' y1='6' x2='6.01' y2='6'/%3E%3Cline x1='6' y1='18' x2='6.01' y2='18'/%3E%3C/svg%3E")}
.ic-cart{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E")}
.ic-card{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E")}
.ic-user{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E")}
.ic-lock{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E")}
.ic-mail{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E")}
.ic-phone{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E")}
.ic-shield{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E")}
.ic-wallet{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 7H5a2 2 0 0 1 0-4h14v4'/%3E%3Cpath d='M21 7v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5'/%3E%3Ccircle cx='16.5' cy='13.5' r='1' fill='black' stroke='none'/%3E%3C/svg%3E")}
.ic-receipt{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1z'/%3E%3Cline x1='8' y1='8' x2='16' y2='8'/%3E%3Cline x1='8' y1='12' x2='16' y2='12'/%3E%3Cline x1='8' y1='16' x2='12' y2='16'/%3E%3C/svg%3E")}
.ic-chat{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E")}
.ic-send{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='22' y1='2' x2='11' y2='13'/%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'/%3E%3C/svg%3E")}
.ic-users{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E")}
.ic-megaphone{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l18-5v12L3 14v-3z'/%3E%3Cpath d='M11.6 16.8a3 3 0 1 1-5.8-1.6'/%3E%3C/svg%3E")}
.ic-repeat{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='17 1 21 5 17 9'/%3E%3Cpath d='M3 11V9a4 4 0 0 1 4-4h14'/%3E%3Cpolyline points='7 23 3 19 7 15'/%3E%3Cpath d='M21 13v2a4 4 0 0 1-4 4H3'/%3E%3C/svg%3E")}
.ic-settings{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E")}
.ic-logout{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E")}
.ic-sun{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cline x1='12' y1='1' x2='12' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='23'/%3E%3Cline x1='4.22' y1='4.22' x2='5.64' y2='5.64'/%3E%3Cline x1='18.36' y1='18.36' x2='19.78' y2='19.78'/%3E%3Cline x1='1' y1='12' x2='3' y2='12'/%3E%3Cline x1='21' y1='12' x2='23' y2='12'/%3E%3Cline x1='4.22' y1='19.78' x2='5.64' y2='18.36'/%3E%3Cline x1='18.36' y1='5.64' x2='19.78' y2='4.22'/%3E%3C/svg%3E")}
.ic-moon{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E")}
.ic-menu{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E")}
.ic-x{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E")}
.ic-chevron-down{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")}
.ic-arrow-right{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E")}
.ic-arrow-left{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' y1='12' x2='5' y2='12'/%3E%3Cpolyline points='12 19 5 12 12 5'/%3E%3C/svg%3E")}
.ic-copy{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E")}
.ic-check{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")}
.ic-check-circle{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E")}
.ic-alert{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E")}
.ic-alert-triangle{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E")}
.ic-info{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E")}
.ic-zap{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E")}
.ic-globe{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E")}
.ic-trending{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 6 13.5 15.5 8.5 10.5 1 18'/%3E%3Cpolyline points='17 6 23 6 23 12'/%3E%3C/svg%3E")}
.ic-clock{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E")}
.ic-package{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='16.5' y1='9.4' x2='7.5' y2='4.21'/%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E")}
.ic-edit{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E")}
.ic-refresh{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 4 23 10 17 10'/%3E%3Cpath d='M20.49 15a9 9 0 1 1-2.12-9.36L23 10'/%3E%3C/svg%3E")}
.ic-up{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='16 12 12 8 8 12'/%3E%3Cline x1='12' y1='16' x2='12' y2='8'/%3E%3C/svg%3E")}
.ic-image{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E")}
.ic-plus{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E")}
.ic-trash{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E")}
.ic-external{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E")}
.ic-coins{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8'/%3E%3Cline x1='12' y1='6' x2='12' y2='18'/%3E%3C/svg%3E")}
.ic-chart{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'/%3E%3Cline x1='12' y1='20' x2='12' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='14'/%3E%3C/svg%3E")}
.ic-tag{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E")}
.ic-eye{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")}
.ic-star{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E")}

/* ---------- 5. 背景(极光光斑 + 网格) ---------- */
.aurora-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
/* 固定主题色渐变场: 顶部左右两角+中上三团主题色, 按视口百分比定位, 电脑/手机观感一致 */
.aurora-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 42% at 12% -6%, var(--g1), transparent 68%),
    radial-gradient(ellipse 62% 42% at 88% -6%, var(--g3), transparent 68%),
    radial-gradient(ellipse 85% 50% at 50% 22%, var(--g2), transparent 70%);
  opacity: .55;
}
html[data-mode="dark"] .aurora-bg::after { opacity: .3; }
.aurora-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .35;
  -webkit-mask: radial-gradient(ellipse 90% 55% at 50% 0%, #000 40%, transparent 100%);
  mask: radial-gradient(ellipse 90% 55% at 50% 0%, #000 40%, transparent 100%);
}
.aurora-bg .blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .26; animation: drift 26s ease-in-out infinite alternate; will-change: transform; }
.aurora-bg .b1 { width: 560px; height: 560px; top: -180px; left: -120px; background: var(--g1); }
.aurora-bg .b2 { width: 480px; height: 480px; top: -140px; right: -100px; background: var(--g3); animation-delay: -8s; }
.aurora-bg .b3 { width: 520px; height: 520px; top: 26%; left: 42%; background: var(--g2); opacity: .16; animation-delay: -16s; }
html[data-mode="dark"] .aurora-bg .blob { opacity: .3; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(60px, 40px, 0) scale(1.12); }
  100% { transform: translate3d(-40px, 70px, 0) scale(.94); }
}
@media (prefers-reduced-motion: reduce) { .aurora-bg .blob { animation: none; } }

/* ---------- 6. 布局骨架 ---------- */
.shell { display: flex; flex-direction: column; min-height: 100vh; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 860px; }

/* 用户中心: 侧栏 + 主区 */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-content { flex: 1; width: 100%; max-width: 1160px; margin: 0 auto; padding: 26px 24px 40px; }

/* ---------- 7. 侧栏 ---------- */
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column;
  background: var(--card-glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-right: 1px solid var(--line); z-index: 60; overflow-y: auto; padding: 18px 14px;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 6px 10px 18px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--g1), var(--g2) 55%, var(--g3));
  color: #fff; font-weight: 800; font-size: 17px; letter-spacing: -.5px;
  box-shadow: var(--glow);
}
.brand-mark .ic { width: 20px; height: 20px; }
.brand-name { font-weight: 700; font-size: 16.5px; color: var(--tx); letter-spacing: -.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav { flex: 1 0 auto; }
.nav-group { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); padding: 16px 12px 7px; }
.nav-link {
  display: flex; align-items: center; gap: 11px; padding: 9.5px 12px; margin: 1.5px 0;
  border-radius: 11px; color: var(--tx-2); font-weight: 500; font-size: 14.2px;
  border: 1px solid transparent; transition: all .16s ease; position: relative;
}
.nav-link .ic { width: 18px; height: 18px; color: var(--tx-3); transition: color .16s; }
.nav-link:hover { background: var(--acc-soft); color: var(--tx); opacity: 1; }
.nav-link:hover .ic { color: var(--acc); }
.nav-link.active { background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; box-shadow: var(--glow); }
.nav-link.active .ic { color: #fff; }
.nav-link .nav-sub { font-size: 12px; color: inherit; opacity: .75; }
/* 余额卡片 */
.side-balance {
  margin-top: 14px; border-radius: 14px; padding: 16px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--g1), var(--g2) 60%, var(--g3));
}
.side-balance::after { content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.16); top: -52px; right: -42px; }
.side-balance .sb-label { font-size: 12px; opacity: .85; display: flex; align-items: center; gap: 6px; }
.side-balance .sb-amount { font-size: 24px; font-weight: 800; margin: 4px 0 10px; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.side-balance .btn { position: relative; z-index: 1; width: 100%; }

/* ---------- 8. 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 14px;
  padding: 12px 24px; border-bottom: 1px solid var(--line);
  background: var(--card-glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.topbar-title { font-size: 16.5px; font-weight: 700; color: var(--tx); display: flex; align-items: center; gap: 10px; margin: 0; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: var(--card);
  color: var(--tx-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all .16s; position: relative;
}
.icon-btn:hover { color: var(--acc); border-color: var(--acc-line); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.icon-btn .ic { width: 18px; height: 18px; }
#btnSidebar { display: none; }

/* 用户下拉 */
.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; transition: all .16s; color: var(--tx); font-weight: 600; font-size: 13.5px; }
.user-chip:hover { border-color: var(--acc-line); box-shadow: var(--shadow-sm); }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--bg-soft); border: 2px solid var(--card); box-shadow: var(--shadow-sm); }
.user-chip .ic { width: 15px; height: 15px; color: var(--tx-3); }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 9px); min-width: 220px; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px) scale(.98); transition: all .18s ease; z-index: 90;
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-header { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown-header .dh-name { font-weight: 700; font-size: 14px; }
.dropdown-header .dh-sub { font-size: 12px; color: var(--tx-3); }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--tx-2); font-size: 13.8px; font-weight: 500; transition: all .14s; }
.dropdown-item .ic { width: 16px; height: 16px; color: var(--tx-3); }
.dropdown-item:hover { background: var(--acc-soft); color: var(--tx); opacity: 1; }
.dropdown-item:hover .ic { color: var(--acc); }
.dropdown-item.danger { color: var(--err); }
.dropdown-item.danger .ic { color: var(--err); }
.dropdown-item.danger:hover { background: var(--err-soft); }

/* ---------- 9. 门户导航(公开页) ---------- */
.pubnav {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line);
  background: var(--card-glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.pubnav-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.pubnav-brand { display: flex; align-items: center; gap: 11px; color: var(--tx); font-weight: 700; font-size: 16.5px; }
.pubnav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.pubnav-link { padding: 8px 14px; border-radius: 10px; color: var(--tx-2); font-weight: 500; font-size: 14.2px; transition: all .16s; }
.pubnav-link:hover { background: var(--acc-soft); color: var(--tx); opacity: 1; }
.pubnav-cta { margin-left: auto; display: flex; align-items: center; gap: 9px; }
#btnPubMenu { display: none; }

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; border-radius: 12px; border: 1px solid transparent;
  font-family: inherit; font-size: 14.2px; font-weight: 600; line-height: 1.2; cursor: pointer;
  transition: all .18s ease; text-decoration: none; white-space: nowrap; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -8px var(--acc-line); opacity: 1; }
.btn-ghost { background: var(--acc-soft); color: var(--acc); border-color: var(--acc-line); }
.btn-ghost:hover { background: var(--acc); color: #fff; border-color: transparent; opacity: 1; }
.btn-outline { background: var(--card); color: var(--tx-2); border-color: var(--line-strong); }
.btn-outline:hover { color: var(--acc); border-color: var(--acc-line); background: var(--acc-soft); opacity: 1; }
.btn-success { background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff; box-shadow: 0 8px 24px -8px rgba(22,163,74,.5); }
.btn-danger { background: linear-gradient(135deg, #dc2626, #f43f5e); color: #fff; box-shadow: 0 8px 24px -8px rgba(220,38,38,.45); }
.btn-sm { padding: 6.5px 13px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 13px 30px; font-size: 15.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: none; color: var(--acc); padding: 4px 6px; }
.btn-link:hover { text-decoration: underline; opacity: 1; }

/* ---------- 11. 卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease, border-color .2s;
}
.card + .card { margin-top: 18px; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--acc-line); }
.card-head { display: flex; align-items: center; gap: 12px; padding: 17px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-title { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.card-title .ic { color: var(--acc); width: 19px; height: 19px; }
.card-head .spacer { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-body { padding: 22px; }
.card-body.tight { padding: 14px 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

/* ---------- 12. 表单 ---------- */
.field { margin-bottom: 17px; }
.field:last-child { margin-bottom: 0; }
.label { display: flex; align-items: center; gap: 6px; font-size: 13.2px; font-weight: 600; color: var(--tx-2); margin-bottom: 7px; }
.label .req { color: var(--err); }
.input, .select, .textarea,
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="tel"], select, textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px; font-family: inherit; font-size: 14.2px;
  color: var(--tx); background: var(--card-2); border: 1.5px solid var(--line-strong);
  transition: border-color .16s, box-shadow .16s, background .16s; outline: none; appearance: none;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--acc); background: var(--card); box-shadow: 0 0 0 4px var(--acc-soft); }
input::placeholder, textarea::placeholder { color: var(--tx-3); }
input[readonly] { opacity: .75; cursor: default; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b94ad' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 15px; padding-right: 38px; cursor: pointer;
}
.input-wrap { display: flex; gap: 9px; }
.input-wrap .input { flex: 1; }
.input-append { flex: none; }
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row input { flex: 1; min-width: 0; }
.captcha-img { height: 47px; width: 128px; flex: none; border-radius: 12px; border: 1.5px solid var(--line-strong); cursor: pointer; object-fit: cover; background: var(--card-2); }
.hint { font-size: 12.6px; color: var(--tx-3); margin-top: 6px; line-height: 1.55; }

/* ---------- 13. 提示条 ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 15px; border-radius: 12px; font-size: 13.6px; line-height: 1.6; margin: 0 0 16px; border: 1px solid transparent; }
.alert .ic { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.alert-info { background: var(--info-soft); color: var(--info); border-color: rgba(2, 132, 199, .25); }
.alert-warning { background: var(--warn-soft); color: var(--warn); border-color: rgba(217, 119, 6, .25); }
.alert-success { background: var(--ok-soft); color: var(--ok); border-color: rgba(22, 163, 74, .25); }
.alert-danger { background: var(--err-soft); color: var(--err); border-color: rgba(220, 38, 38, .25); }
.alert a { font-weight: 700; }

/* ---------- 14. 徽章 ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3.5px 11px; border-radius: 999px; font-size: 12.2px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.badge .ic { width: 12px; height: 12px; }
.badge-primary { background: var(--acc-soft); color: var(--acc); }
.badge-success { background: var(--ok-soft); color: var(--ok); }
.badge-warning { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--err-soft); color: var(--err); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-mute { background: var(--bg-soft); color: var(--tx-3); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- 15. 表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 13.8px; min-width: 560px; }
.table th {
  text-align: left; padding: 12px 16px; background: var(--card-2); color: var(--tx-3);
  font-size: 12.2px; font-weight: 700; letter-spacing: .05em; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--tx-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .14s; }
.table tbody tr:hover { background: var(--acc-soft); }
.table .strong { color: var(--tx); font-weight: 600; }
.table .num { font-variant-numeric: tabular-nums; }
.table-actions { display: flex; gap: 7px; flex-wrap: wrap; }

/* ---------- 16. 分页(兼容 TP5 paginate 输出) ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 0; list-style: none; justify-content: center; }
.pagination > li { display: list-item; }
.pagination > li > a, .pagination > li > span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 10px; font-size: 13.5px; color: var(--tx-2); background: var(--card); border: 1px solid var(--line);
  transition: all .15s; float: none;
}
.pagination > li > a:hover { color: var(--acc); border-color: var(--acc-line); background: var(--acc-soft); z-index: 2; }
.pagination > .active > a, .pagination > .active > span { background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; border-color: transparent; font-weight: 700; }
.pagination > .disabled > a, .pagination > .disabled > span { color: var(--tx-3); background: var(--card-2); cursor: not-allowed; opacity: .6; }

/* ---------- 17. 标签页 ---------- */
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--card-2); border: 1px solid var(--line); border-radius: 13px; margin-bottom: 22px; flex-wrap: wrap; }
.tab-btn {
  flex: 1; min-width: 96px; padding: 9px 12px; border: none; border-radius: 9px; background: transparent;
  color: var(--tx-3); font-family: inherit; font-size: 13.8px; font-weight: 600; cursor: pointer;
  transition: all .18s ease; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.tab-btn .ic { width: 15.5px; height: 15.5px; }
.tab-btn:hover { color: var(--tx); }
.tab-btn.active { background: var(--card); color: var(--acc); box-shadow: var(--shadow-sm); }
html[data-mode="dark"] .tab-btn.active { background: var(--bg-soft); }
.tab-pane { display: none; animation: fadeIn .3s ease; }
.tab-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* ---------- 18. Toast / 弹窗 / 加载 ---------- */
.toast-wrap { position: fixed; top: 18px; right: 18px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 360px; padding: 12px 16px;
  border-radius: 13px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font-size: 14px; font-weight: 500; color: var(--tx); pointer-events: auto;
  animation: toastIn .3s cubic-bezier(.21, 1.02, .73, 1); position: relative; overflow: hidden;
}
.toast.out { animation: toastOut .25s ease forwards; }
.toast .ic { width: 19px; height: 19px; flex: none; }
.toast-success .ic { color: var(--ok); } .toast-error .ic { color: var(--err); }
.toast-warning .ic { color: var(--warn); } .toast-info .ic { color: var(--info); }
.toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3.5px; }
.toast-success::before { background: var(--ok); } .toast-error::before { background: var(--err); }
.toast-warning::before { background: var(--warn); } .toast-info::before { background: var(--info); }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px) scale(.96); } }

.modal-mask {
  position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(8, 12, 28, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .2s ease;
}
.modal {
  width: 100%; max-width: 440px; max-height: 86vh; overflow: auto; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: modalIn .28s cubic-bezier(.21, 1.02, .73, 1);
}
.modal.wide { max-width: 620px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 17px 22px 13px; }
.modal-title { margin: 0; font-size: 16.5px; font-weight: 700; flex: 1; }
.modal-x { border: none; background: var(--bg-soft); color: var(--tx-3); width: 30px; height: 30px; border-radius: 9px; cursor: pointer; display: grid; place-items: center; transition: all .15s; }
.modal-x:hover { color: var(--err); background: var(--err-soft); }
.modal-x .ic { width: 15px; height: 15px; }
.modal-body { padding: 6px 22px 22px; color: var(--tx-2); font-size: 14.2px; line-height: 1.7; overflow-wrap: anywhere; }
.modal-body .modal-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin: 4px auto 12px; }
.modal-body .modal-icon .ic { width: 26px; height: 26px; }
.modal-icon.ok { background: var(--ok-soft); color: var(--ok); }
.modal-icon.err { background: var(--err-soft); color: var(--err); }
.modal-icon.warn { background: var(--warn-soft); color: var(--warn); }
.modal-icon.info { background: var(--info-soft); color: var(--info); }
.modal-text-center { text-align: center; }
.modal-foot { display: flex; gap: 10px; padding: 0 22px 22px; }
.modal-foot .btn { flex: 1; }
.loading-mask { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; background: rgba(8, 12, 28, .38); backdrop-filter: blur(4px); }
.loading-box { display: flex; flex-direction: column; align-items: center; gap: 14px; color: #fff; font-size: 14px; font-weight: 500; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3.5px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 19. 门户 Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; text-align: center; }
.hero-bgimg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .9; }
.hero-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,28,.34), rgba(8,12,28,.58)); }
html[data-mode="dark"] .hero-mask { background: linear-gradient(180deg, rgba(8,12,28,.5), rgba(8,12,28,.72)); }
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); color: #fff;
  font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin-bottom: 22px;
}
.hero-badge .ic { width: 14px; height: 14px; }
.hero h1 { font-size: clamp(32px, 6vw, 54px); font-weight: 800; color: #fff; letter-spacing: -.03em; margin: 0 0 14px; text-shadow: 0 2px 10px rgba(8,12,28,.32), 0 8px 38px rgba(8,12,28,.5); }
.hero .hero-sub { font-size: clamp(15px, 2.4vw, 18.5px); color: rgba(255, 255, 255, .88); max-width: 640px; margin: 0 auto 34px; text-shadow: 0 1px 6px rgba(8,12,28,.4), 0 4px 22px rgba(8,12,28,.45); }
.hero-cta { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }
.btn-hero { background: rgba(255,255,255,.94); color: #1b2340; font-weight: 700; box-shadow: 0 10px 34px -8px rgba(0,0,0,.45); }
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(0,0,0,.5); opacity: 1; }
.btn-hero2 { background: rgba(255,255,255,.13); color: #fff; border: 1.5px solid rgba(255,255,255,.42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 600; }
.btn-hero2:hover { background: rgba(255,255,255,.24); opacity: 1; transform: translateY(-2px); }

/* 统计卡 */
.stat-card { padding: 22px; text-align: center; position: relative; overflow: hidden; }
.stat-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin: 0 auto 13px;
  background: linear-gradient(135deg, var(--acc-soft), var(--info-soft)); color: var(--acc);
}
.stat-icon .ic { width: 22px; height: 22px; }
.stat-num { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--tx); font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-label { font-size: 13.2px; color: var(--tx-3); margin-top: 3px; font-weight: 500; }

/* 特性卡 */
.feature-card { padding: 26px 22px; text-align: center; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; margin: 0 auto 15px; color: #fff;
  background: linear-gradient(135deg, var(--g1), var(--g2) 60%, var(--g3)); box-shadow: var(--glow);
}
.feature-icon .ic { width: 25px; height: 25px; }
.feature-card h3 { font-size: 16.5px; margin-bottom: 7px; }
.feature-card p { font-size: 13.8px; color: var(--tx-3); margin: 0; }

/* 分区标题 */
.section { padding: 58px 0; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.section-head p { color: var(--tx-3); font-size: 15px; margin: 0; }
.section-head .pill { display: inline-flex; align-items: center; gap: 7px; padding: 5.5px 14px; border-radius: 999px; background: var(--acc-soft); color: var(--acc); font-size: 12.8px; font-weight: 700; margin-bottom: 13px; }
.section-head .pill .ic { width: 13.5px; height: 13.5px; }

/* ---------- 20. 认证卡片(登录/注册/找回) ---------- */
.auth-shell { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 44px 18px 30px; }
.auth-card { width: 100%; max-width: 430px; background: var(--card-glass); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 34px 30px 30px; animation: modalIn .4s cubic-bezier(.21, 1.02, .73, 1); }
.auth-logo { width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 16px; background: linear-gradient(135deg, var(--g1), var(--g2) 60%, var(--g3)); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 21px; box-shadow: var(--glow); }
.auth-title { text-align: center; font-size: 22px; font-weight: 800; margin: 0 0 5px; letter-spacing: -.02em; }
.auth-sub { text-align: center; color: var(--tx-3); font-size: 13.8px; margin: 0 0 24px; }
.auth-foot { text-align: center; font-size: 13.2px; color: var(--tx-3); margin-top: 20px; }
.auth-foot a { font-weight: 600; }
.auth-copyright { text-align: center; color: var(--tx-3); font-size: 12.5px; padding: 22px 0 10px; }
.auth-copyright a { color: inherit; }

/* ---------- 21. 产品卡片(cart) ---------- */
.cat-tabs { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 26px; }
.cat-tab { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--tx-2); font-size: 13.8px; font-weight: 600; cursor: pointer; transition: all .18s; }
.cat-tab:hover { border-color: var(--acc-line); color: var(--acc); }
.cat-tab.active { background: linear-gradient(135deg, var(--g1), var(--g2)); border-color: transparent; color: #fff; box-shadow: var(--glow); }
.plan-card { display: flex; flex-direction: column; overflow: hidden; }
.plan-head { padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.plan-name { font-size: 16.5px; font-weight: 800; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.plan-price { padding: 15px 22px; background: var(--card-2); border-bottom: 1px solid var(--line); }
.plan-price .amount { font-size: 32px; font-weight: 800; letter-spacing: -.02em; background: linear-gradient(135deg, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--acc); font-variant-numeric: tabular-nums; }
.plan-price .cycle { font-size: 13px; color: var(--tx-3); font-weight: 500; margin-left: 5px; }
.plan-price .free-tag { font-size: 30px; font-weight: 800; color: var(--ok); }
.plan-desc { padding: 16px 22px; flex: 1; color: var(--tx-2); font-size: 13.8px; line-height: 1.75; }
.plan-desc img { border-radius: 8px; }
.plan-foot { padding: 15px 22px 19px; border-top: 1px solid var(--line); background: var(--card-2); }

/* ---------- 22. 键值列表(产品配置/信息) ---------- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; font-size: 14px; }
.kv dt { color: var(--tx-3); font-weight: 500; margin: 0; white-space: nowrap; }
.kv dd { color: var(--tx); font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.kv .kv-row { display: contents; }
.kv .kv-row span { color: var(--tx-3); font-weight: 500; white-space: nowrap; }
.kv .kv-row b { color: var(--tx); font-weight: 600; overflow-wrap: anywhere; }

/* ---------- 23. 工单对话 ---------- */
.chat { display: flex; flex-direction: column; gap: 16px; max-height: 520px; overflow-y: auto; padding: 6px 2px; scroll-behavior: smooth; }
.bubble-row { display: flex; gap: 11px; align-items: flex-start; }
.bubble-row.self { flex-direction: row-reverse; }
.bubble-avatar { width: 38px; height: 38px; border-radius: 13px; object-fit: cover; background: var(--bg-soft); border: 1px solid var(--line); flex: none; margin-top: 2px; }
.bubble { max-width: 78%; padding: 12px 15px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 13.9px; line-height: 1.7; word-break: break-word; }
.bubble-row:not(.self) .bubble { border-top-left-radius: 5px; background: var(--card); }
.bubble-row.self .bubble { border-top-right-radius: 5px; background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; border: none; }
.bubble-meta { display: flex; align-items: center; gap: 8px; font-size: 11.8px; color: var(--tx-3); margin-bottom: 5px; font-weight: 500; }
.bubble-row.self .bubble-meta { color: rgba(255,255,255,.75); }
.bubble-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.bubble-imgs img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; cursor: zoom-in; border: 1px solid var(--line); transition: transform .15s; background: var(--card-2); }
.bubble-imgs img:hover { transform: scale(1.04); }
.bubble-row.self .bubble-imgs img { border-color: rgba(255,255,255,.3); }

/* 图片上传网格 */
.upload-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.upload-item { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--card-2); }
.upload-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-del { position: absolute; top: 0; right: 0; width: 22px; height: 22px; display: grid; place-items: center; background: rgba(10, 14, 30, .62); color: #fff; cursor: pointer; border-bottom-left-radius: 10px; font-size: 14px; line-height: 1; }
.upload-del:hover { background: var(--err); }
.upload-add {
  width: 84px; height: 84px; border-radius: 12px; border: 1.6px dashed var(--line-strong); display: grid; place-items: center;
  color: var(--tx-3); cursor: pointer; transition: all .16s; background: var(--card-2); font-size: 26px; font-weight: 300;
}
.upload-add:hover { border-color: var(--acc); color: var(--acc); background: var(--acc-soft); }

/* ---------- 24. 空状态 ---------- */
.empty { text-align: center; padding: 46px 18px; color: var(--tx-3); }
.empty .ic { width: 42px; height: 42px; opacity: .4; margin-bottom: 12px; }
.empty-title { font-size: 15.5px; font-weight: 700; color: var(--tx-2); margin-bottom: 4px; }
.empty p { font-size: 13.4px; margin: 0; }

/* ---------- 25. 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; margin-top: 30px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--tx-3); font-size: 13px; }
.footer-inner a { color: var(--tx-2); font-weight: 600; }
.footer-beian a { color: var(--tx-3); }

/* ---------- 26. 404 ---------- */
.nf-wrap { flex: 1; display: grid; place-items: center; padding: 40px 18px; text-align: center; }
.nf-code {
  font-size: clamp(88px, 18vw, 150px); font-weight: 900; letter-spacing: -.04em; line-height: 1; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--g1), var(--g2) 50%, var(--g3));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nf-wrap h2 { font-size: 20px; }
.nf-wrap p { color: var(--tx-3); }

/* ---------- 27. 用户中心首页欢迎区 ---------- */
.welcome {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 26px 28px; color: #fff; margin-bottom: 18px;
  background: linear-gradient(120deg, var(--g1), var(--g2) 55%, var(--g3)); box-shadow: var(--glow);
}
.welcome::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.13); top: -130px; right: -80px; }
.welcome::after { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.09); bottom: -90px; left: 32%; }
.welcome-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.welcome-avatar { width: 56px; height: 56px; border-radius: 18px; object-fit: cover; border: 2.5px solid rgba(255,255,255,.55); background: rgba(255,255,255,.2); display: grid; place-items: center; color: #fff; flex: none; }
.welcome-avatar .ic { width: 26px; height: 26px; }
.welcome h2 { color: #fff; margin: 0; font-size: 20px; letter-spacing: -.01em; }
.welcome .sub { color: rgba(255,255,255,.82); font-size: 13px; margin: 3px 0 0; }
.welcome-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-glass { background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.4); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.3); opacity: 1; }

/* 快捷入口 */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.quick-link { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 18px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--tx-2); font-size: 13.2px; font-weight: 600; transition: all .18s; text-align: center; }
.quick-link .ic { width: 21px; height: 21px; color: var(--acc); }
.quick-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--acc-line); color: var(--tx); opacity: 1; }

/* ---------- 28. 优惠码提示等 ---------- */
.coupon-info { margin-top: 12px; }
.total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 13px 16px; border-radius: 12px; background: linear-gradient(135deg, var(--acc-soft), transparent); border: 1px dashed var(--acc-line); }
.total-row .t-label { font-size: 13.2px; color: var(--tx-2); font-weight: 600; }
.total-row .t-value { font-size: 22px; font-weight: 800; color: var(--acc); font-variant-numeric: tabular-nums; }

/* 实名认证横幅 */
.notice-bar { display: flex; align-items: center; gap: 11px; padding: 13px 18px; border-radius: 14px; margin-bottom: 18px; background: linear-gradient(135deg, var(--warn-soft), transparent); border: 1px solid rgba(217,119,6,.3); color: var(--tx); font-size: 13.8px; }
.notice-bar .ic { color: var(--warn); width: 19px; height: 19px; flex: none; }

/* 推广中心 */
.aff-hero { padding: 24px; border-radius: var(--radius); background: linear-gradient(120deg, var(--g1), var(--g2) 55%, var(--g3)); color: #fff; position: relative; overflow: hidden; box-shadow: var(--glow); }
.aff-hero h3 { color: #fff; margin: 0 0 6px; font-size: 18px; }
.aff-hero p { color: rgba(255,255,255,.85); font-size: 13.5px; margin: 0; }
.copy-box { display: flex; gap: 9px; }
.copy-box input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; }

/* 公告列表条目 */
.announce-item { display: flex; align-items: center; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--line); transition: background .15s; }
.announce-item:last-child { border-bottom: none; }
.announce-item:hover { background: var(--acc-soft); }
.announce-item .ai-icon { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); }
.announce-item .ai-icon .ic { width: 17px; height: 17px; }
.announce-item .ai-main { flex: 1; min-width: 0; }
.announce-item .ai-title { font-weight: 700; color: var(--tx); font-size: 14.3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce-item .ai-time { font-size: 12.2px; color: var(--tx-3); }
.article { line-height: 1.9; color: var(--tx-2); font-size: 14.6px; word-wrap: break-word; overflow-x: hidden; }
.article img, .article video { max-width: 100%; height: auto; border-radius: 10px; }

/* ---------- 29. layer 样式微调(与主题对齐, 插件兼容) ---------- */
.layui-layer { border-radius: 16px !important; overflow: hidden; box-shadow: var(--shadow-lg) !important; border: 1px solid var(--line); }
.layui-layer-title { background: var(--card-2) !important; color: var(--tx) !important; border-bottom: 1px solid var(--line) !important; font-weight: 700 !important; }
.layui-layer-btn a { border-radius: 10px !important; border: 1px solid var(--line-strong) !important; background: var(--card) !important; color: var(--tx-2) !important; padding: 0 16px !important; height: 32px !important; line-height: 32px !important; }
.layui-layer-btn .layui-layer-btn0 { background: linear-gradient(135deg, var(--g1), var(--g2)) !important; border-color: transparent !important; color: #fff !important; }
.layui-layer-content { color: var(--tx-2); }
.layui-layer-loading .layui-layer-content { color: #333; }

/* ---------- 30. 插件 ClientArea 兼容 ---------- */
.client-area .btn { margin: 3px 4px 3px 0; }
.client-area table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13.5px; }
.client-area table th, .client-area table td { border: 1px solid var(--line-strong); padding: 8px 12px; text-align: left; }
.client-area input[type="text"], .client-area input[type="password"] { width: auto; max-width: 100%; }

/* ---------- 31. 响应式 ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: 276px; transform: translateX(-104%); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  /* 移动端抽屉: 余额卡提升到顶部(品牌下方), 导航列表随其后滚动, 保证打开即可见 */
  .sidebar-brand { order: 1; flex: none; }
  .side-balance { order: 2; flex: none; margin-top: 0; margin-bottom: 4px; }
  .side-nav { order: 3; }
  #btnSidebar { display: inline-flex; }
  .app-content { padding: 20px 16px 32px; }
  .pubnav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; margin: 0; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); flex-direction: column; padding: 10px 14px; gap: 3px; }
  .pubnav-links.open { display: flex; }
  .pubnav-link { padding: 12px 14px; }
  #btnPubMenu { display: inline-flex; }
  .pubnav-cta { margin-left: auto; }
  .topbar { padding: 10px 16px; }
  .hide-sm { display: none !important; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-link { padding: 15px 8px; font-size: 12.8px; }
  .auth-card { padding: 26px 20px 22px; }
  .hero { padding: 66px 0 56px; }
  .app-content { padding: 16px 13px 28px; }
  .card-body { padding: 17px; }
  .card-head { padding: 14px 17px; }
  .table { min-width: 480px; }
  .bubble { max-width: 88%; }
  .welcome { padding: 20px; }
  .welcome-actions { margin-left: 0; }
  .tabs { gap: 4px; padding: 4px; }
  .tab-btn { min-width: 0; flex-basis: calc(50% - 4px); font-size: 13px; padding: 8px 6px; }
  .toast-wrap { left: 14px; right: 14px; top: 14px; }
  .toast { max-width: none; width: 100%; }
}

/* ---------- 32. 微交互 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.fade-up { animation: fadeUp .5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
