/* ═══════════════════════════════════════
   AUI v2 — 由 build-css.js 自动生成
   手动修改会被覆盖！编辑 components/*.css 然后运行:
   node _shared/build-css.js
   ═══════════════════════════════════════ */

/* ═══════════════════════════════════════
   AUI Design Tokens — 干净、克制、有温度
   ═══════════════════════════════════════ */
:root {
  /* ── 主题色 ── */
  --brand: #0F172A;
  --accent: #2563EB;
  --accent-hover: #3B82F6;
  --accent-bg: #EFF6FF;

  /* ── 功能语义色 ── */
  --success: #059669;
  --success-bg: #ECFDF5;
  --success-text: #065F46;
  --warning: #D97706;
  --warning-bg: #FFFBEB;
  --warning-text: #92400E;
  --danger: #DC2626;
  --danger-bg: #FEF2F2;
  --danger-text: #991B1B;

  /* ── 中性色 ── */
  --bg: #F8FAFC;
  --bg-subtle: #F1F5F9;
  --card: #FFFFFF;
  --text: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;

  /* ── 字体 ── */
  --font: -apple-system, 'Inter', 'PingFang SC', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* ── 字号比例尺 ── */
  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 13px;
  --text-lg: 14px;
  --text-xl: 16px;
  --text-2xl: 20px;
  --text-3xl: 28px;

  /* ── 间距网格（4px 基准） ── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* ── 圆角 ── */
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --radius-full: 999px;

  /* ── 阴影层级 ── */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 50px -8px rgba(0,0,0,.12);

  /* ── 移动端: 更大触摸目标 + 更暖底色（按需覆盖） ── */
  --touch-min: 40px;
}

/* ═══════════════════════════════════════
   Base 重置
   ═══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
input, select, textarea, button { font-family: inherit; }

/* ═══════════════════════════════════════
   移动端 Surface 视觉覆盖
   当 data-aui-surface="miniapp" 或 .h5-page 时生效
   ═══════════════════════════════════════ */

/* MiniApp 表面：暖底色 + 更柔和的卡片 */
[data-aui-surface="miniapp"] {
  --bg: #F5F0EB;
  --border: #E8E0D8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
}

[data-aui-surface="miniapp"] .h5-card {
  box-shadow: var(--shadow-sm);
  border: none;
}

[data-aui-surface="miniapp"] .a2-subheader {
  background: var(--card);
  border-bottom: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* H5 页面：更大触摸目标 */
.h5-page .btn { height: 44px; font-size: var(--text-lg); border-radius: var(--radius); }
.h5-page .btn-sm { height: 36px; font-size: var(--text-base); }
.h5-page .form-control { height: 44px; font-size: var(--text-lg); }
.h5-page .hq-filter .field input,
.h5-page .hq-filter .field select { height: 40px; font-size: var(--text-base); }

/* H5 列表项更大间距 */
.h5-page .member-item { padding: var(--space-4) var(--space-4); }
.h5-page .a2-list-item { padding: var(--space-4) var(--space-4); }

/* H5 空状态更紧凑 */
.h5-page .empty-state { padding: var(--space-8) var(--space-4); }

/* ═══════════════════════════════════════
   布局（AUI 核心）
   ═══════════════════════════════════════ */
.layout { display: flex; min-height: 100vh; }
.main { flex: 1; padding: 24px; max-width: 1280px; width: 100%; }
.page-content { display: flex; flex-direction: column; gap: 16px; }

/* ═══════════════════════════════════════
   Sidebar（由 aui.js data-aui-sidebar 渲染）
   ═══════════════════════════════════════ */
.sidebar { width: 220px; background: var(--brand); color: #fff; display: flex; flex-direction: column; flex-shrink: 0; min-height: 100vh; }
.sidebar-brand { padding: 20px 16px 12px; font-size: 18px; font-weight: 700; letter-spacing: .5px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-label { padding: 16px 16px 6px; font-size: 10px; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: 1px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.sidebar-divider { height: 1px; background: rgba(255,255,255,.08); margin: 8px 0; }
.sidebar-nav .nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; font-size: 13px; color: rgba(255,255,255,.65); cursor: pointer; transition: .12s; text-decoration: none; opacity: .65; }
.sidebar-nav .nav-item:hover { background: rgba(255,255,255,.1); opacity: 1; }
.sidebar-nav .nav-item.active { background: rgba(255,255,255,.1); opacity: 1; font-weight: 500; }
.sidebar-nav .nav-item i { width: 16px; text-align: center; flex-shrink: 0; }
.sidebar-footer { margin-top: auto; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: rgba(255,255,255,.4); }
.sidebar-footer a { color: inherit; }

/* ═══════════════════════════════════════
   Header（由 aui.js data-aui-header 渲染）
   ═══════════════════════════════════════ */
.aui-header-inner { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.aui-header-title { font-size: 16px; font-weight: 600; }

/* ═══════════════════════════════════════
   H5 页面容器 & 子标题
   ═══════════════════════════════════════ */
.h5-page { max-width: 414px; margin: 0 auto; background: var(--bg); min-height: 100vh; }
.h5-card { background: var(--card); border-radius: var(--radius-lg); padding: 16px; border: 1px solid var(--border); }
.a2-subheader { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--border); }
.a2-subheader .back { border: none; background: none; cursor: pointer; font-size: 16px; color: var(--text-secondary); padding: 4px; }
.a2-subheader .title { font-size: 16px; font-weight: 600; flex: 1; }

/* ═══════════════════════════════════════
   TopBar
   ═══════════════════════════════════════ */
.topbar {
  height: 52px; background: var(--brand);
  display: flex; align-items: center;
  padding: 0 20px; gap: 12px; flex-shrink: 0;
}
.topbar .logo {
  color: #fff; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.topbar .logo i { width: 18px; height: 18px; }
.search-box {
  flex: 1; max-width: 360px; display: flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px; border-radius: 17px;
  background: rgba(255,255,255,.15); color: rgba(255,255,255,.6);
  transition: .15s;
}
.search-box:focus-within { background: rgba(255,255,255,.25); }
.search-box input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 13px; color: #fff;
}
.search-box input::placeholder { color: rgba(255,255,255,.5); }

/* ═══════════════════════════════════════
   HQHeader
   ═══════════════════════════════════════ */
.hq-header { background: var(--card); border-bottom: 1px solid var(--border); }
.hq-header .inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.hq-header .left { display: flex; align-items: center; gap: 16px; }
.hq-header .brand { display: flex; align-items: center; gap: 8px; }
.hq-header .brand .logo { width: 32px; height: 32px; border-radius: 8px; background: var(--accent-bg); display: flex; align-items: center; justify-content: center; }
.hq-header .brand .logo i { width: 20px; height: 20px; color: var(--accent); }
.hq-header .brand .name { font-size: 20px; font-weight: 700; color: var(--text); }
.hq-header .divider { color: var(--border); }
.hq-header .subtitle { color: var(--text-secondary); font-size: 14px; }
.hq-header .right { display: flex; align-items: center; gap: 16px; }
.hq-header .username { font-size: 13px; color: var(--text-muted); }

/* ═══════════════════════════════════════
   MobileHeader
   ═══════════════════════════════════════ */
.mobile-header { background: var(--card); }
.mobile-header .status-bar { display: flex; align-items: center; justify-content: center; height: 44px; position: relative; }
.mobile-header .status-bar .time { font-size: 12px; color: var(--text-muted); }
.mobile-header .inner { display: flex; align-items: center; justify-content: space-between; padding: 0 20px 12px; }
.mobile-header .brand { display: flex; align-items: center; gap: 8px; }
.mobile-header .brand .icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.mobile-header .brand .name { font-size: 18px; font-weight: 700; color: var(--text); }
.mobile-header .actions { display: flex; align-items: center; gap: 12px; }
.mobile-header .actions i { width: 24px; height: 24px; color: rgb(var(--gray-5)); }

/* ═══════════════════════════════════════
   WecomHeader
   ═══════════════════════════════════════ */
.wecom-header {
  background: linear-gradient(135deg, var(--wecom-start, #147360) 0%, var(--wecom-end, #0f5c4e) 100%);
}
.wecom-header .inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.wecom-header .left { display: flex; align-items: center; gap: 12px; }
.wecom-header .left .back { padding: 4px; border-radius: 4px; color: #fff; }
.wecom-header .left .back:hover { background: rgba(255,255,255,.2); }
.wecom-header .left .back i { width: 24px; height: 24px; }
.wecom-header .left h1 { font-size: 18px; font-weight: 600; color: #fff; }
.wecom-header .avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; color: #fff; }

/* ═══════════════════════════════════════
   H5FixedActionBar
   ═══════════════════════════════════════ */
.a2-fixed-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--card); border-top: 1px solid var(--border-light);
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0,0,0,.04);
}
.a2-fixed-bar .inner {
  display: flex; align-items: center; gap: 12px;
  max-width: 414px; margin: 0 auto;
}

/* ═══════════════════════════════════════
   HRMSidebar
   ═══════════════════════════════════════ */
.hrm-sidebar { background: var(--card); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; transition: width .2s; }
.hrm-sidebar .header { height: 64px; display: flex; align-items: center; padding: 0 24px; border-bottom: 1px solid var(--border); cursor: pointer; }
.hrm-sidebar .header .logo { width: 32px; height: 32px; border-radius: 8px; background: var(--accent-bg); display: flex; align-items: center; justify-content: center; }
.hrm-sidebar .header .logo i { width: 20px; height: 20px; color: var(--accent); }
.hrm-sidebar .nav { flex: 1; overflow-y: auto; padding: 12px; }
.hrm-nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; color: var(--text-secondary); font-size: 13px; transition: .1s; cursor: pointer; white-space: nowrap; }
.hrm-nav-item:hover { background: var(--bg); color: var(--text); }
.hrm-nav-item.active { background: var(--accent-bg); color: var(--accent); font-weight: 500; }
.hrm-nav-section h6 { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; padding: 0 12px; margin-bottom: 4px; }

/* ═══════════════════════════════════════
   Breadcrumb
   ═══════════════════════════════════════ */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 8px 0; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border); font-size: 12px; }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ═══════════════════════════════════════
   Tabs & Segmented Control
   ═══════════════════════════════════════ */
.tabs { display: flex; border-bottom: 2px solid var(--border); gap: 0; }
.tabs .tab { padding: 10px 16px; cursor: pointer; font-size: 13px; color: var(--text-secondary); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: .12s; text-decoration: none; }
.tabs .tab:hover { color: var(--text); }
.tabs .tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tabs-card { display: flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: var(--radius-sm); }
.tabs-card .tab { padding: 6px 14px; border-radius: 4px; font-size: 12px; color: var(--text-secondary); cursor: pointer; transition: .12s; border: none; background: transparent; white-space: nowrap; }
.tabs-card .tab:hover { color: var(--text); }
.tabs-card .tab.active { background: var(--card); color: var(--text); font-weight: 500; box-shadow: var(--shadow-sm); }

/* ═══════════════════════════════════════
   Segmented
   ═══════════════════════════════════════ */
.a2-segmented {
  display: inline-flex; gap: 0; padding: 3px;
  background: var(--bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.a2-segmented .opt {
  padding: 5px 14px; border-radius: 4px;
  font-size: 12px; font-weight: 500; cursor: pointer;
  color: var(--text-secondary); transition: .1s;
  border: none; background: transparent;
  white-space: nowrap;
}
.a2-segmented .opt:hover { color: var(--text); }
.a2-segmented .opt.active {
  background: var(--card); color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
/* 变体：全宽等分 */
.a2-segmented.block { display: flex; }
.a2-segmented.block .opt { flex: 1; text-align: center; }

/* ═══════════════════════════════════════
   步骤指示器
   ═══════════════════════════════════════ */
.step-indicator { display: flex; align-items: center; }
.step-indicator .step { display: flex; align-items: center; flex: 1; position: relative; }
.step-indicator .step:last-child { flex: none; }
.step-indicator .step .dot { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.step-indicator .step.completed .dot { background: var(--accent); color: #fff; }
.step-indicator .step.active .dot { background: var(--accent-bg); border: 2px solid var(--accent); color: var(--accent); }
.step-indicator .step.pending .dot { background: var(--bg); border: 2px solid var(--border); color: var(--text-muted); }
.step-indicator .step .line { flex: 1; height: 2px; background: var(--border); margin: 0 4px; min-width: 20px; }
.step-indicator .step.completed .line { background: var(--accent); }
.step-indicator .step:last-child .line { display: none; }
.step-indicator .step .label { font-size: 11px; color: var(--text-muted); margin-left: 6px; white-space: nowrap; }
.step-indicator .step.active .label { color: var(--accent); font-weight: 500; }
.step-indicator.horizontal { justify-content: center; gap: 0; }
.step-indicator.horizontal .step { flex-direction: column; align-items: center; flex: none; width: auto; }
.step-indicator.horizontal .step .node { display: flex; flex-direction: column; align-items: center; position: relative; }
.step-indicator.horizontal .step .node .dot { width: 32px; height: 32px; font-size: 14px; }
.step-indicator.horizontal .step .node .line { flex: 1; height: 2px; background: var(--border); min-width: 0; }
.step-indicator.horizontal .step:last-child .node .line,
.step-indicator.horizontal .step .node .line { display: none; }
.step-indicator.horizontal .connector { width: 24px; height: 2px; background: var(--border); flex-shrink: 0; align-self: flex-start; margin-top: 15px; }
.step-indicator.horizontal .connector.completed { background: var(--accent); }
.step-indicator.horizontal .step .body { text-align: center; margin-left: 0; padding-top: 8px; }
.step-indicator.horizontal .step .body .label { font-size: 12px; margin-left: 0; white-space: nowrap; }

/* ═══════════════════════════════════════
   MobileTabBar
   ═══════════════════════════════════════ */
.mobile-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--card); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-tabbar .inner {
  display: flex; align-items: center; justify-content: space-around; padding: 8px 0;
}
.mobile-tabbar .tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer;
}
.mobile-tabbar .tab svg { width: 24px; height: 24px; }
.mobile-tabbar .tab span { font-size: 10px; }
.mobile-tabbar .tab.active svg { color: {active_color}; }
.mobile-tabbar .tab.active span { color: {active_color}; font-weight: 500; }
.mobile-tabbar .tab.inactive svg { color: rgb(var(--gray-5)); }
.mobile-tabbar .tab.inactive span { color: rgb(var(--gray-5)); }

/* ═══════════════════════════════════════
   Tree
   ═══════════════════════════════════════ */
.a2-tree { display: flex; flex-direction: column; gap: 2px; user-select: none; }
.a2-tree .node { display: flex; flex-direction: column; }
.a2-tree .node .row {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px; border-radius: 4px; cursor: pointer;
  font-size: 12px; color: var(--text); transition: .05s;
}
.a2-tree .node .row:hover { background: var(--bg); }
.a2-tree .node .row.active { background: var(--accent-bg); color: var(--accent); font-weight: 500; }
.a2-tree .node .row .toggle {
  width: 16px; height: 16px; display: flex; align-items: center;
  justify-content: center; color: var(--text-muted);
  transition: .15s; flex-shrink: 0;
}
.a2-tree .node .row .toggle.open { transform: rotate(90deg); }
.a2-tree .node .row .toggle.empty { visibility: hidden; }
.a2-tree .node .row .icon { width: 16px; text-align: center; color: var(--text-muted); flex-shrink: 0; font-size: 12px; }
.a2-tree .node .children { padding-left: 20px; display: flex; flex-direction: column; gap: 2px; }
.a2-tree .node .children.hidden { display: none; }

/* ═══════════════════════════════════════
   H5FloatingBack
   ═══════════════════════════════════════ */
.a2-floating-top {
  position: fixed; top: calc(44px + env(safe-area-inset-top, 0px));
  left: 50%; transform: translateX(-50%);
  width: min(100%, 414px); padding: 0 20px;
  display: flex; justify-content: space-between; align-items: flex-start;
  pointer-events: none; z-index: 60;
}
.a2-floating-top .btn {
  width: 40px; height: 40px; border-radius: 9999px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.5);
  color: var(--text-secondary); cursor: pointer;
  pointer-events: auto; transition: all .15s;
}
.a2-floating-top .btn:active { transform: scale(.92); }

/* ═══════════════════════════════════════
   H5CategoryScroll
   ═══════════════════════════════════════ */
.h5-category-scroll {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.h5-category-scroll .tag {
  padding: 4px 14px;
  border-radius: 14px;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.h5-category-scroll .tag.active {
  background: var(--accent);
  color: #fff;
}
.h5-category-scroll .tag.default {
  background: var(--border-light);
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════
   Button
   ═══════════════════════════════════════ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border: none; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; cursor: pointer; transition: .12s; text-decoration: none; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.btn:active { transform: translateY(0); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:disabled { opacity: .4; cursor: default; box-shadow: none; transform: none; }
.btn-default { background: var(--card); border: 1px solid var(--border); color: var(--text-secondary); }
.btn-default:hover { background: var(--bg); border-color: var(--accent); color: var(--accent); }
.btn-secondary { background: var(--accent-bg); color: var(--accent); }
.btn-secondary:hover { background: var(--accent); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(1.1); box-shadow: 0 2px 8px rgba(22,163,74,.25); }
.btn-danger { background: var(--danger-bg); color: var(--danger-text); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-text { background: transparent; color: var(--accent); height: auto; padding: 0; box-shadow: none; }
.btn-text:hover { text-decoration: underline; transform: none; box-shadow: none; }

/* ═══════════════════════════════════════
   Badge
   ═══════════════════════════════════════ */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 100px; font-size: 11px; font-weight: 500; background: var(--border-light); color: var(--text-secondary); white-space: nowrap; }
.badge-green { background: var(--success-bg); color: var(--success-text); }
.badge-red { background: var(--danger-bg); color: var(--danger-text); }
.badge-orange { background: var(--warning-bg); color: var(--warning-text); }
.badge-gray { background: var(--border-light); color: var(--text-secondary); }
.badge-blue { background: var(--accent-bg); color: var(--accent); }
.badge-purple { background: #f5f0ff; color: #7c3aed; }

/* ═══════════════════════════════════════
   Card
   ═══════════════════════════════════════ */
.card { background: var(--card); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow-sm); border: none; }
.card-title { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-3); }

/* ═══════════════════════════════════════
   Tag
   ═══════════════════════════════════════ */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 500;
  cursor: default; white-space: nowrap;
  transition: .1s;
}
.tag-sm { padding: 1px 6px; font-size: 10px; border-radius: 3px; }
.tag-lg { padding: 4px 12px; font-size: 13px; border-radius: 6px; }

/* solid variants */
.tag-blue { background: var(--accent-bg); color: var(--accent); border: 1px solid rgb(var(--arcoblue-2)); }
.tag-green { background: var(--success-bg); color: var(--success-text); border: 1px solid rgb(var(--green-2)); }
.tag-orange { background: var(--warning-bg); color: var(--warning-text); border: 1px solid rgb(var(--orange-2)); }
.tag-red { background: var(--danger-bg); color: var(--danger-text); border: 1px solid rgb(var(--red-2)); }
.tag-gray { background: var(--border-light); color: rgb(var(--gray-6)); border: 1px solid var(--border); }

/* outline variants */
.tag-outline { background: transparent; }
.tag-outline.tag-blue { color: var(--accent); border-color: var(--accent); }
.tag-outline.tag-green { color: var(--success-text); border-color: var(--success); }
.tag-outline.tag-orange { color: var(--warning-text); border-color: var(--warning); }
.tag-outline.tag-red { color: var(--danger-text); border-color: var(--danger); }
.tag-outline.tag-gray { color: rgb(var(--gray-6)); border-color: rgb(var(--gray-5)); }

.tag .close {
  font-size: 10px; cursor: pointer; opacity: .5; margin-left: 2px;
  display: inline-flex; align-items: center;
}
.tag .close:hover { opacity: 1; }

/* tag group */
.tag-group { display: flex; flex-wrap: wrap; gap: 6px; }

/* ═══════════════════════════════════════
   区块标题
   ═══════════════════════════════════════ */
.hq-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.hq-section-head .info .title { font-size: 15px; font-weight: 600; }
.hq-section-head .info .subtitle { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.hq-section-head .actions { display: flex; gap: 8px; }

/* ═══════════════════════════════════════
   筛选栏
   ═══════════════════════════════════════ */
.hq-filter { background: var(--card); border-radius: var(--radius); padding: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.hq-filter .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hq-filter .field label { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.hq-filter .field input, .hq-filter .field select { width: 160px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; outline: none; transition: .15s; background: var(--card); color: var(--text); }
.hq-filter .field input:focus, .hq-filter .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(37,99,235,.12); }
.hq-filter .field input::placeholder { color: var(--text-muted); }
.hq-filter .actions { display: flex; gap: 8px; }

/* ═══════════════════════════════════════
   Dropdown
   ═══════════════════════════════════════ */
.dropdown { position: relative; display: inline-block; }
.dropdown .trigger {
  display: flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 12px; cursor: pointer; background: var(--card); color: var(--text);
  transition: .15s; white-space: nowrap;
}
.dropdown .trigger:hover { border-color: var(--accent); }
.dropdown .trigger .arrow {
  font-size: 10px; color: var(--text-muted);
  transition: .2s;
}
.dropdown .trigger.open .arrow { transform: rotate(180deg); }

.dropdown .menu {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 40;
  min-width: 160px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 4px;
  animation: dropIn .12s;
}
.dropdown .menu .item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 4px;
  font-size: 12px; cursor: pointer; color: var(--text);
  transition: .05s;
}
.dropdown .menu .item:hover { background: var(--bg); }
.dropdown .menu .item.danger { color: var(--danger); }
.dropdown .menu .item .icon { width: 16px; color: var(--text-muted); text-align: center; }
.dropdown .menu .item .shortcut {
  margin-left: auto; font-size: 10px; color: var(--text-muted);
}
.dropdown .menu .divider { height: 1px; background: var(--border); margin: 4px 0; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════
   Tooltip
   ═══════════════════════════════════════ */
.a2-tooltip { position: relative; display: inline-flex; cursor: pointer; }
.a2-tooltip .tip {
  position: absolute; z-index: 100; white-space: nowrap;
  padding: 4px 10px; border-radius: 4px;
  font-size: 11px; line-height: 1.4; color: #fff;
  background: rgba(0,0,0,.82);
  pointer-events: none; user-select: none;
  animation: tipIn .12s;
}
.a2-tooltip .tip-top { bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); }
.a2-tooltip .tip-bottom { top: calc(100% + 6px); left: 50%; transform: translateX(-50%); }
.a2-tooltip .tip-left { right: calc(100% + 6px); top: 50%; transform: translateY(-50%); }
.a2-tooltip .tip-right { left: calc(100% + 6px); top: 50%; transform: translateY(-50%); }
.a2-tooltip .tip .arr {
  position: absolute; width: 5px; height: 5px; background: rgba(0,0,0,.82);
}
.a2-tooltip .tip-top .arr { bottom: -2.5px; left: calc(50% - 2.5px); transform: rotate(45deg); }
.a2-tooltip .tip-bottom .arr { top: -2.5px; left: calc(50% - 2.5px); transform: rotate(45deg); }
.a2-tooltip .tip-left .arr { right: -2.5px; top: calc(50% - 2.5px); transform: rotate(45deg); }
.a2-tooltip .tip-right .arr { left: -2.5px; top: calc(50% - 2.5px); transform: rotate(45deg); }
@keyframes tipIn { from { opacity: 0; } to { opacity: 1; } }

/* ═══════════════════════════════════════
   Avatar
   ═══════════════════════════════════════ */
.avatar { display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 600; color: #fff; flex-shrink: 0; overflow: hidden; }
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-md { width: 36px; height: 36px; font-size: 14px; }
.avatar-lg { width: 48px; height: 48px; font-size: 18px; }
.avatar-xl { width: 64px; height: 64px; font-size: 24px; }
.avatar-group { display: flex; }
.avatar-group .avatar { border: 2px solid var(--card); margin-left: -8px; }
.avatar-group .avatar:first-child { margin-left: 0; }

/* ═══════════════════════════════════════
   Image
   ═══════════════════════════════════════ */
.a2-image { display: inline-flex; position: relative; overflow: hidden; border-radius: var(--radius-sm); }
.a2-image img { display: block; max-width: 100%; object-fit: cover; transition: .2s; }
.a2-image .overlay {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; background: rgba(0,0,0,.04);
  opacity: 0; transition: .15s; cursor: pointer;
}
.a2-image:hover .overlay { opacity: 1; }
.a2-image .overlay .zoom {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 0; box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.a2-image .overlay .zoom:hover { background: #fff; }

/* 预览遮罩 */
.a2-image-preview {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center;
  animation: a2-fade-in .15s;
}
.a2-image-preview img {
  max-width: 90vw; max-height: 90vh; object-fit: contain;
  border-radius: 4px; box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.a2-image-preview .close {
  position: absolute; top: 20px; right: 24px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; border: none;
}
.a2-image-preview .close:hover { background: rgba(255,255,255,.25); }

/* ═══════════════════════════════════════
   PipelineColumn
   ═══════════════════════════════════════ */
.pipeline-column {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 12px;
  min-width: 260px;
  flex-shrink: 0;
}
.pipeline-column .head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.pipeline-column .head .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pipeline-column .head .title { font-size: 13px; font-weight: 600; color: var(--text); }
.pipeline-column .head .count {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--card);
  padding: 0 6px;
  border-radius: 4px;
}
.pipeline-column .body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ═══════════════════════════════════════
   DataTable
   ═══════════════════════════════════════ */
.data-table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
table.data-table { width: 100%; border-collapse: collapse; font-size: var(--text-base); }
table.data-table th { background: var(--bg-subtle); padding: 12px 16px; text-align: left; font-weight: 600; color: var(--text-secondary); border-bottom: 1px solid var(--border); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .5px; }
table.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); color: var(--text); font-size: var(--text-base); }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: var(--bg); }

/* ═══════════════════════════════════════
   分页
   ═══════════════════════════════════════ */
.pagination { display: flex; align-items: center; gap: 4px; justify-content: center; padding: 16px 0; }
.pagination .page { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; font-size: 12px; border-radius: 4px; border: 1px solid transparent; cursor: pointer; color: var(--text-secondary); transition: .12s; text-decoration: none; }
.pagination .page:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .page.disabled { opacity: .4; cursor: default; pointer-events: none; }
.pagination .info { font-size: 12px; color: var(--text-muted); margin-left: 12px; }

/* ═══════════════════════════════════════
   Modal
   ═══════════════════════════════════════ */
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; align-items: center; justify-content: center; }
.overlay.show { display: flex; }
.modal { background: var(--card); border-radius: var(--radius-lg); width: 480px; max-width: 90vw; max-height: 80vh; overflow-y: auto; box-shadow: var(--shadow-xl); animation: modalIn .15s; }
.modal-lg { width: 640px; }
.modal-xl { width: 800px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 0; }
.modal-h h2 { font-size: 16px; font-weight: 700; }
.modal-close { width: 28px; height: 28px; border: none; border-radius: 50%; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: .12s; }
.modal-close:hover { background: var(--bg); }
.modal-body { padding: 20px 24px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--border); }
@keyframes modalIn { from{opacity:0;transform:translateY(8px);} }

/* ═══════════════════════════════════════
   Toast
   ═══════════════════════════════════════ */
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 2000; padding: 10px 20px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; opacity: 0; transition: opacity .25s; pointer-events: none; }
.toast.show { opacity: 1; }
.toast-success { background: var(--success); color: #fff; }
.toast-error { background: var(--danger); color: #fff; }
.toast-warning { background: var(--warning); color: #fff; }
.toast-info { background: var(--text); color: #fff; }

/* ═══════════════════════════════════════
   描述列表
   ═══════════════════════════════════════ */
.a2-desc { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.a2-desc .head { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text); background: var(--bg); }
.a2-desc .grid { display: grid; gap: 0; }
.a2-desc .grid-1 { grid-template-columns: 1fr; }
.a2-desc .grid .item { display: flex; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.a2-desc .grid .item:last-child { border-bottom: none; }
.a2-desc .grid .item .label { width: 100px; flex-shrink: 0; font-size: 12px; color: var(--text-muted); }
.a2-desc .grid .item .value { flex: 1; font-size: 12px; color: var(--text); }

/* ═══════════════════════════════════════
   StatGrid（仪表盘统计卡片）
   ═══════════════════════════════════════ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.stat-card { background: var(--card); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow-sm); border: none; }
.stat-card .label { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-1); }
.stat-card .value { font-size: var(--text-3xl); font-weight: 700; }
.dashboard-grid { display: grid; gap: var(--space-4); }
.dashboard-grid.two-col { grid-template-columns: 1fr 1fr; }

/* ═══════════════════════════════════════
   空状态
   ═══════════════════════════════════════ */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px; text-align: center; }
.empty-state .icon-wrap { width: 64px; height: 64px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--text-muted); }
.empty-state .text { font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; font-weight: 600; }
.empty-state .sub { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }

/* ═══════════════════════════════════════
   Timeline
   ═══════════════════════════════════════ */
.a2-timeline { display: flex; flex-direction: column; gap: 0; padding-left: 8px; }
.a2-timeline .item { display: flex; gap: 12px; position: relative; padding-bottom: 24px; }
.a2-timeline .item:last-child { padding-bottom: 0; }
.a2-timeline .item .node { display: flex; flex-direction: column; align-items: center; width: 10px; flex-shrink: 0; }
.a2-timeline .item .node .dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid; flex-shrink: 0; z-index: 1;
  background: var(--card);
}
.a2-timeline .item .node .dot.blue { border-color: var(--accent); }
.a2-timeline .item .node .dot.green { border-color: var(--success); }
.a2-timeline .item .node .dot.orange { border-color: var(--warning); }
.a2-timeline .item .node .dot.red { border-color: var(--danger); }
.a2-timeline .item .node .dot.gray { border-color: rgb(var(--gray-5)); }
.a2-timeline .item .node .line {
  flex: 1; width: 2px; background: var(--border);
  margin-top: 4px; min-height: 24px;
}
.a2-timeline .item:last-child .node .line { display: none; }
.a2-timeline .item .body { flex: 1; padding-top: 1px; }
.a2-timeline .item .body .title { font-size: 13px; font-weight: 500; color: var(--text); }
.a2-timeline .item .body .desc { font-size: 11px; color: var(--text-secondary); margin-top: 4px; line-height: 1.5; }
.a2-timeline .item .body .time { font-size: 10px; color: var(--text-muted); margin-top: 6px; display: block; }

/* 带大圆点的第一个节点样式 */
.a2-timeline .item:first-child .node .dot { width: 12px; height: 12px; background: var(--accent); border-color: var(--accent); }
.a2-timeline .item:first-child .body .title { color: var(--accent); }

/* ═══════════════════════════════════════
   List
   ═══════════════════════════════════════ */
.a2-list { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.a2-list .item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; transition: .1s; border-bottom: 1px solid var(--border); }
.a2-list .item:last-child { border-bottom: none; }
.a2-list .item:hover { background: var(--bg); }
.a2-list .item .avt { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 600; }
.a2-list .item .body { flex: 1; min-width: 0; }
.a2-list .item .body .title { font-size: 13px; font-weight: 500; color: var(--text); }
.a2-list .item .body .desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.a2-list .item .body .meta { font-size: 10px; color: var(--text-muted); margin-top: 4px; }
.a2-list .item .actions { display: flex; gap: 4px; flex-shrink: 0; }
.a2-list .item .actions .action { padding: 4px 8px; border-radius: 4px; font-size: 11px; cursor: pointer; color: var(--accent); transition: .1s; }
.a2-list .item .actions .action:hover { background: var(--accent-bg); }
.a2-list .item .actions .action.danger { color: var(--danger); }
.a2-list .item .actions .action.danger:hover { background: var(--danger-bg); }

/* ═══════════════════════════════════════
   KanbanCard
   ═══════════════════════════════════════ */
.kanban-card { background: var(--card); border-radius: 10px; padding: 12px; border: 1px solid var(--border); cursor: pointer; transition: .15s; }
.kanban-card:hover { border-color: rgb(var(--gray-4)); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.kanban-card .top { display: flex; align-items: flex-start; gap: 10px; }
.kanban-card .avatar { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.kanban-card .info { flex: 1; min-width: 0; }
.kanban-card .nm { font-size: 14px; font-weight: 600; color: var(--text); }
.kanban-card .sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.kanban-card .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.kanban-card .tag { padding: 2px 6px; border-radius: 4px; font-size: 10px; background: var(--bg); color: var(--text-secondary); }
.kanban-card .footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.kanban-card .score { font-size: 13px; font-weight: 700; }
.kanban-card .score.h { color: var(--success); }
.kanban-card .score.m { color: var(--warning); }
.kanban-card .score.l { color: var(--danger); }
.kanban-card .meta { font-size: 10px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* ═══════════════════════════════════════
   RankList
   ═══════════════════════════════════════ */
.rank-list { padding: 0 4px 12px; }
.rank-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid rgb(var(--gray-2));
}
.rank-item:last-child { border: none; }
.rank-item .pos {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.pos-1 { background: rgb(var(--orange-6)); }
.pos-2 { background: rgb(var(--gray-5)); }
.pos-3 { background: rgb(var(--orange-6)); }
.pos-n { background: var(--border); color: rgb(var(--gray-5)); font-weight: 400; }
.rank-item .info { flex: 1; min-width: 0; }
.rank-item .info .nm {
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.rank-item .info .nm .id {
  font-size: 10px; color: rgb(var(--gray-5)); font-family: var(--font-mono); font-weight: 400;
}
.rank-item .info .sub { font-size: 10px; color: rgb(var(--gray-5)); }
.rank-item .score { font-size: 14px; font-weight: 700; }
.rank-item .score.g { color: var(--success); }
.rank-item .score.o { color: var(--warning); }
.rank-item .score.r { color: var(--danger); }

/* ═══════════════════════════════════════
   H5InfoGrid
   ═══════════════════════════════════════ */
.a2-info-grid {
  background: var(--bg); border-radius: var(--radius-xl);
  padding: var(--space-4); display: grid;
  grid-template-columns: 1fr 1fr; gap: 12px 16px;
}
.a2-info-grid .item .lbl { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; }
.a2-info-grid .item .val { font-size: var(--fs-sm); font-weight: 700; color: var(--text); margin-top: 2px; }
.a2-info-grid .full { grid-column: 1 / -1; }

/* ═══════════════════════════════════════
   H5MetricsGroup
   ═══════════════════════════════════════ */
.a2-metrics {
  display: flex; gap: 12px;
}
.a2-metrics .item {
  flex: 1; background: var(--bg); border-radius: var(--radius-xl);
  padding: var(--space-4) 12px; text-align: center;
}
.a2-metrics .item .val { font-size: 24px; font-weight: 900; color: var(--accent); line-height: 1.2; }
.a2-metrics .item .lbl { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; margin-top: 4px; }

/* 深色背景变体（用在渐变 banner 内） */
.a2-metrics.dark .item { background: rgba(255,255,255,.15); }
.a2-metrics.dark .item .val { color: #fff; }
.a2-metrics.dark .item .lbl { color: rgba(255,255,255,.7); }

/* ═══════════════════════════════════════
   H5StudentReview
   ═══════════════════════════════════════ */
.a2-review {
  display: flex; gap: 12px; padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-light);
}
.a2-review:last-child { border-bottom: none; }
.a2-review .avatar {
  width: 40px; height: 40px; border-radius: 9999px;
  background: var(--accent-bg); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: var(--fs-base); flex-shrink: 0;
}
.a2-review .body { flex: 1; min-width: 0; }
.a2-review .top { display: flex; align-items: center; gap: 8px; }
.a2-review .name { font-size: var(--fs-base); font-weight: 700; color: var(--text); }
.a2-review .school { font-size: var(--fs-xs); color: var(--text-muted); }
.a2-review .stars { color: #f59e0b; font-size: var(--fs-sm); display: inline-flex; gap: 2px; margin-top: 4px; }
.a2-review .content { font-size: var(--fs-sm); color: var(--text-secondary); margin-top: 4px; line-height: 1.5; }
.a2-review .date { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 4px; display: block; }

/* ═══════════════════════════════════════
   H5ServiceItem
   ═══════════════════════════════════════ */
.a2-service-list {
  background: var(--bg); border-radius: var(--radius-xl);
  padding: var(--space-5); border: 1px solid var(--border-light);
  display: flex; flex-direction: column; gap: 12px;
}
.a2-service-item {
  display: flex; align-items: flex-start; gap: 12px;
}
.a2-service-item .icon-box {
  width: 32px; height: 32px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: var(--fs-base);
}
.a2-service-item .icon-box.accent { background: var(--accent-bg); color: var(--accent); }
.a2-service-item .icon-box.success { background: var(--success-bg); color: var(--success); }
.a2-service-item .icon-box.warning { background: var(--warning-bg); color: var(--warning); }
.a2-service-item .icon-box.danger { background: var(--danger-bg); color: var(--danger); }
.a2-service-item .text { flex: 1; }
.a2-service-item .text .s-title { font-size: var(--fs-sm); font-weight: 700; color: var(--text); }
.a2-service-item .text .s-desc { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* ═══════════════════════════════════════
   ConfirmDialog
   ═══════════════════════════════════════ */
.cd-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cd-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.4); backdrop-filter: blur(4px); }
.cd-box { position: relative; z-index: 10; background: var(--card); border-radius: 12px; width: 100%; max-width: 448px; box-shadow: var(--shadow-xl); overflow: hidden; }
.cd-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.cd-icon-danger { background: var(--danger-bg); color: var(--danger); }
.cd-icon-warning { background: var(--warning-bg); color: var(--warning); }
.cd-icon-info { background: var(--accent-bg); color: var(--accent); }
.cd-msg { font-size: 14px; color: var(--text-secondary); text-align: center; line-height: 1.6; }
.cd-footer { display: flex; justify-content: flex-end; gap: 12px; padding: var(--space-4) var(--space-6); border-top: 1px solid var(--border); }
.cd-body { padding: var(--space-7) var(--space-6); text-align: center; }
.cd-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: var(--space-2); }
.cd-btn { height: 36px; padding: 0 20px; border-radius: var(--radius-sm); font-size: 13px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: .15s; }
.cd-btn-cancel { border: 1px solid var(--border); color: var(--text-secondary); background: var(--card); }
.cd-btn-cancel:hover { background: var(--bg); }
.cd-btn-confirm { border: none; color: #fff; background: var(--accent); }
.cd-btn-confirm:hover { filter: brightness(1.1); }
.cd-btn-confirm.danger { background: var(--danger); }

/* ═══════════════════════════════════════
   HintBar
   ═══════════════════════════════════════ */
.hint-bar { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: 12px; border-width: 1px; border-style: solid; }
.hint-blue { background: var(--accent-bg); border-color: rgb(var(--arcoblue-2)); }
.hint-blue .icon { color: rgb(var(--arcoblue-5)); }
.hint-blue .txt { color: rgb(var(--arcoblue-6)); }
.hint-yellow { background: var(--warning-bg); border-color: rgb(var(--orange-2)); }
.hint-yellow .icon { color: rgb(var(--orange-6)); }
.hint-yellow .txt { color: var(--warning-text); }
.hint-green { background: var(--success-bg); border-color: rgb(var(--green-2)); }
.hint-green .icon { color: rgb(var(--green-6)); }
.hint-green .txt { color: var(--success-text); }

/* ═══════════════════════════════════════
   Drawer
   ═══════════════════════════════════════ */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.4);
  animation: a2-fade-in .2s;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: {width}; max-width: 90vw;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  animation: slideIn .25s ease-out;
  z-index: 101;
}
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.drawer-header h3 {
  font-size: 16px; font-weight: 600; color: var(--text);
}
.drawer-header .close {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
  transition: .1s; border: none; background: transparent;
}
.drawer-header .close:hover {
  background: var(--bg); color: var(--text);
}
.drawer-body {
  flex: 1; overflow-y: auto; padding: 20px;
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.6;
}
.drawer-footer {
  padding: 16px 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 8px;
}
@keyframes slideIn { from { transform: translateX(100%) } to { transform: translateX(0) } }

/* ═══════════════════════════════════════
   Popover
   ═══════════════════════════════════════ */
.a2-popover { position: relative; display: inline-block; }
.a2-popover .popup {
  position: absolute; z-index: 40;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 200px; max-width: 360px;
  animation: popIn .12s;
}
.a2-popover .popup.top { bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
.a2-popover .popup.bottom { top: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
.a2-popover .popup.left { right: calc(100% + 8px); top: 50%; transform: translateY(-50%); }
.a2-popover .popup.right { left: calc(100% + 8px); top: 50%; transform: translateY(-50%); }
.a2-popover .popup .head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text);
}
.a2-popover .popup .head .close {
  width: 20px; height: 20px; display: flex; align-items: center;
  justify-content: center; border-radius: 4px; cursor: pointer;
  font-size: 12px; color: var(--text-muted);
}
.a2-popover .popup .head .close:hover { background: var(--bg); color: var(--text); }
.a2-popover .popup .body { padding: 12px 14px; font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.a2-popover .popup .arrow {
  position: absolute; width: 8px; height: 8px; background: var(--card);
  border: 1px solid var(--border); transform: rotate(45deg);
}
.a2-popover .popup.top .arrow { bottom: -5px; left: calc(50% - 4px); border-top: none; border-left: none; }
.a2-popover .popup.bottom .arrow { top: -5px; left: calc(50% - 4px); border-bottom: none; border-right: none; }
.a2-popover .popup.left .arrow { right: -5px; top: calc(50% - 4px); border-bottom: none; border-left: none; }
.a2-popover .popup.right .arrow { left: -5px; top: calc(50% - 4px); border-top: none; border-right: none; }
@keyframes popIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }

/* ═══════════════════════════════════════
   Skeleton
   ═══════════════════════════════════════ */
.skeleton {
  border-radius: 4px;
  background: linear-gradient(90deg, var(--border) 25%, rgb(var(--gray-2)) 50%, var(--border) 75%);
  background-size: 200% 100%; animation: a2-shimmer 1.2s infinite;
}
.skeleton-bar { height: 8px; }
.skeleton-text { height: 12px; width: 60%; }
.skeleton-circle { width: 32px; height: 32px; border-radius: 50%; }

/* ═══════════════════════════════════════
   Loading
   ═══════════════════════════════════════ */
.loading-spinner { display: inline-flex; align-items: center; gap: 8px; }
.loading-spinner .spin { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: a2-spin .6s linear infinite; }
.loading-spinner .text { font-size: 13px; color: var(--text-muted); }

.loading-dots { display: flex; align-items: center; gap: 4px; }
.loading-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: a2-dot-pulse 1.4s infinite; }
.loading-dots .dot:nth-child(2) { animation-delay: .16s; }
.loading-dots .dot:nth-child(3) { animation-delay: .32s; }

.loading-bar { width: 100%; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.loading-bar .fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--accent) 25%, transparent 50%, var(--accent) 75%); background-size: 40px 100%; animation: a2-bar-stripe 1s linear infinite; }

/* ═══════════════════════════════════════
   Result
   ═══════════════════════════════════════ */
.a2-result {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 24px; text-align: center;
}
.a2-result .icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 32px;
}
.a2-result .icon.success { background: var(--success-bg); color: var(--success); }
.a2-result .icon.error { background: var(--danger-bg); color: var(--danger); }
.a2-result .icon.warning { background: var(--warning-bg); color: var(--warning); }
.a2-result .icon.info { background: var(--accent-bg); color: var(--accent); }
.a2-result .icon._404 { background: var(--bg); color: var(--text-muted); font-size: 48px; font-weight: 700; }
.a2-result .title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.a2-result .subtitle { font-size: 13px; color: var(--text-secondary); line-height: 1.6; max-width: 400px; }
.a2-result .actions { display: flex; gap: 10px; margin-top: 24px; }

/* ═══════════════════════════════════════
   H5ConfirmDialog
   ═══════════════════════════════════════ */
.a2-cd-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
  animation: a2-cd-fadein .2s ease-out;
}
.a2-cd-panel {
  width: min(100%, 414px); background: var(--card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-6) var(--space-5);
  padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  animation: a2-cd-slideup .25s ease-out; max-height: 85vh; overflow-y: auto;
}
.a2-cd-header { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-5); }
.a2-cd-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.a2-cd-icon.info { background: var(--accent-bg); color: var(--accent); }
.a2-cd-icon.danger { background: var(--danger-bg); color: var(--danger); }
.a2-cd-icon.warning { background: var(--warning-bg); color: var(--warning); }
.a2-cd-title { font-size: var(--fs-lg); font-weight: 700; color: var(--text); }
.a2-cd-msg { font-size: var(--fs-sm); color: var(--text-secondary); margin-top: 2px; }
.a2-cd-actions { display: flex; gap: 12px; }
.a2-cd-actions .btn {
  flex: 1; padding: 14px; border-radius: var(--radius);
  font-size: var(--fs-base); font-weight: 700; text-align: center;
  cursor: pointer; border: none; transition: all .1s;
}
.a2-cd-actions .btn:active { transform: scale(.97); }
.a2-cd-actions .cancel { background: var(--bg); color: var(--text-secondary); }
.a2-cd-actions .confirm { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(22,93,255,.25); }
.a2-cd-actions .confirm.danger { background: var(--danger); box-shadow: 0 4px 12px rgba(245,63,63,.25); }
@keyframes a2-cd-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes a2-cd-slideup { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ═══════════════════════════════════════
   BottomPopup
   ═══════════════════════════════════════ */
.a2-bp-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.45); animation: a2-fade-in .2s; display: none; }
.a2-bp-overlay.show { display: flex; align-items: flex-end; justify-content: center; }
.a2-bp {
  width: min(100%, 414px); background: var(--card); border-radius: 16px 16px 0 0;
  max-height: 80vh; display: flex; flex-direction: column;
  animation: a2-slide-up-full .25s ease-out;
}
.a2-bp .handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--border); margin: 8px auto 0;
  flex-shrink: 0;
}
.a2-bp .head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 0; flex-shrink: 0;
}
.a2-bp .head h3 { font-size: 16px; font-weight: 600; color: var(--text); }
.a2-bp .head .close {
  width: 28px; height: 28px; display: flex; align-items: center;
  justify-content: center; border-radius: 6px; cursor: pointer;
  color: var(--text-muted); font-size: 16px;
}
.a2-bp .head .close:hover { background: var(--bg); }
.a2-bp .body { padding: 16px 20px 24px; overflow-y: auto; font-size: 13px; color: var(--text-secondary); }
.a2-bp .safe-bottom { height: env(safe-area-inset-bottom, 8px); }

/* ═══════════════════════════════════════
   FormInput
   ═══════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-input { width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; outline: none; transition: .15s; background: var(--card); color: var(--text); }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(22,119,255,.12); }
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { width: 100%; min-height: 80px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; outline: none; resize: vertical; font-family: var(--font); transition: .15s; background: var(--card); color: var(--text); }
.form-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(22,119,255,.12); }
.form-select { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; outline: none; background: var(--card); color: var(--text); cursor: pointer; }
.form-select:focus { border-color: var(--accent); }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.form-options{display:flex;gap:16px;flex-wrap:wrap;align-items:center}
.form-options label{display:inline-flex!important;align-items:center;gap:4px;font-size:13px;color:var(--text);margin:0;cursor:pointer;width:auto;height:auto;min-height:0;padding:0;line-height:1.4}
.form-options input[type=radio],.form-options input[type=checkbox]{width:auto!important;height:auto!important;accent-color:var(--accent);margin:0;flex-shrink:0}

/* ═══════════════════════════════════════
   Switch
   ═══════════════════════════════════════ */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch .track { width: 40px; height: 22px; border-radius: 11px; background: var(--border); position: relative; transition: .2s; flex-shrink: 0; }
.switch .track.on { background: var(--accent); }
.switch .track .thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; position: absolute; top: 2px; left: 2px; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.switch .track.on .thumb { left: 20px; }
.switch .label { font-size: 13px; color: var(--text); }
.radio { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: var(--text); }
.radio .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; transition: .15s; flex-shrink: 0; }
.radio .dot.on { border-color: var(--accent); }
.radio .dot.on::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.checkbox { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: var(--text); }
.checkbox .box { width: 16px; height: 16px; border-radius: 3px; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; transition: .15s; flex-shrink: 0; font-size: 10px; color: #fff; }
.checkbox .box.on { border-color: var(--accent); background: var(--accent); }

/* ═══════════════════════════════════════
   RangeSlider
   ═══════════════════════════════════════ */
.range-slider { display: flex; align-items: center; gap: 8px; }
.range-slider input[type=range] {
  flex: 1; height: 4px; -webkit-appearance: none; border-radius: 2px;
  outline: none; background: var(--border); cursor: pointer;
}
.range-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--accent);
  box-shadow: 0 1px 3px rgba(0,0,0,.12); cursor: pointer; transition: .1s;
}
.range-slider input[type=range]::-webkit-slider-thumb:active { width: 20px; height: 20px; }
.range-slider input[type=text] {
  width: 72px; height: 30px; border: 1px solid var(--border);
  border-radius: 5px; text-align: center; font-size: 13px; font-weight: 500;
  outline: none; transition: .15s; color: var(--text); background: var(--bg);
}
.range-slider input[type=text]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59,130,246,.15);
}
.range-slider .unit { font-size: 11px; color: var(--text-secondary); }

/* ═══════════════════════════════════════
   TagSelector
   ═══════════════════════════════════════ */
.tag-selector { display: flex; flex-direction: column; gap: 12px; }
.tag-selector .group .gname { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.tag-selector .group .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-selector .group .tag {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-secondary);
  transition: .1s;
}
.tag-selector .group .tag:hover { border-color: var(--accent); color: var(--accent); }
.tag-selector .group .tag.active {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
}

/* ═══════════════════════════════════════
   Upload
   ═══════════════════════════════════════ */
.upload-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; border: 2px dashed var(--border); border-radius: var(--radius); background: var(--bg); cursor: pointer; transition: .15s; }
.upload-zone:hover { border-color: var(--accent); background: var(--accent-bg); }
.upload-zone .icon { width: 32px; height: 32px; color: var(--text-muted); margin-bottom: 8px; }
.upload-zone .text { font-size: 14px; color: var(--text); }
.upload-zone .hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.upload-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--bg); border-radius: var(--radius-sm); margin-top: 8px; }
.upload-item .name { flex: 1; font-size: 12px; color: var(--text); }
.upload-item .size { font-size: 11px; color: var(--text-muted); }
.upload-item .remove { cursor: pointer; color: var(--text-muted); font-size: 14px; }
.upload-item .remove:hover { color: var(--danger); }

/* ═══════════════════════════════════════
   DatePicker
   ═══════════════════════════════════════ */
.date-picker { position: relative; display: inline-block; }
.date-picker .trigger {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; cursor: pointer;
  background: var(--card); color: var(--text);
  transition: .15s;
}
.date-picker .trigger:hover { border-color: var(--accent); }
.date-picker .trigger .icon { color: var(--text-muted); font-size: 14px; }

.date-picker .calendar {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 50;
  width: 280px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 16px;
  animation: fadeIn .15s;
}
.date-picker .cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.date-picker .cal-header .nav {
  width: 28px; height: 28px; display: flex; align-items: center;
  justify-content: center; border-radius: 6px; cursor: pointer;
  color: var(--text-secondary); font-size: 14px; user-select: none;
}
.date-picker .cal-header .nav:hover { background: var(--bg); color: var(--text); }
.date-picker .cal-header .ym { font-size: 14px; font-weight: 600; color: var(--text); }
.date-picker .cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; font-size: 11px; color: var(--text-muted);
  margin-bottom: 8px;
}
.date-picker .cal-days {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.date-picker .cal-days .day {
  height: 32px; display: flex; align-items: center;
  justify-content: center; border-radius: 6px;
  font-size: 12px; cursor: pointer; color: var(--text);
  transition: .1s;
}
.date-picker .cal-days .day:hover { background: var(--bg); }
.date-picker .cal-days .day.other { color: var(--text-muted); }
.date-picker .cal-days .day.today { font-weight: 700; color: var(--accent); }
.date-picker .cal-days .day.selected { background: var(--accent); color: #fff; font-weight: 500; }
.date-picker .cal-days .day.in-range { background: var(--accent-bg); }
.date-picker .cal-days .day.range-start { background: var(--accent); color: #fff; border-radius: 6px 2px 2px 6px; }
.date-picker .cal-days .day.range-end { background: var(--accent); color: #fff; border-radius: 2px 6px 6px 2px; }
.date-picker .cal-footer {
  display: flex; justify-content: space-between; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 12px;
}
.date-picker .cal-footer .today-btn {
  color: var(--accent); cursor: pointer; padding: 4px 8px;
  border-radius: 4px; transition: .1s;
}
.date-picker .cal-footer .today-btn:hover { background: var(--accent-bg); }
.date-picker .cal-footer .clear-btn {
  color: var(--text-muted); cursor: pointer; padding: 4px 8px;
  border-radius: 4px;
}
.date-picker .cal-footer .clear-btn:hover { color: var(--danger); background: var(--danger-bg); }
.range-picker { min-width: 320px; }
.range-picker .calendar { left: 0; width: 580px; }
.range-picker .dual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════
   PasswordInput
   ═══════════════════════════════════════ */
.a2-pwd { position: relative; display: flex; align-items: center; }
.a2-pwd input {
  width: 100%; height: 40px; padding: 0 40px 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; outline: none; transition: .15s;
  background: var(--card); color: var(--text);
}
.a2-pwd input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-bg); }
.a2-pwd .toggle {
  position: absolute; right: 10px; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); font-size: 14px;
  border-radius: 4px; background: transparent; border: none;
}
.a2-pwd .toggle:hover { color: var(--text); }

/* 强度条 */
.a2-pwd .strength { margin-top: 6px; }
.a2-pwd .strength .bar { display: flex; gap: 4px; }
.a2-pwd .strength .bar .seg { flex: 1; height: 3px; border-radius: 2px; background: var(--border); }
.a2-pwd .strength .bar .seg.on { }
.a2-pwd .strength .bar .seg.weak { background: var(--danger); }
.a2-pwd .strength .bar .seg.medium { background: var(--warning); }
.a2-pwd .strength .bar .seg.strong { background: var(--success); }
.a2-pwd .strength .label { font-size: 10px; color: var(--text-muted); margin-top: 2px; display: block; }

/* ═══════════════════════════════════════
   MultiSelect
   ═══════════════════════════════════════ */
.multi-select { position: relative; display: inline-block; width: 240px; }
.multi-select .trigger {
  display: flex; align-items: center; gap: 6px;
  width: 100%; height: 36px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; cursor: pointer; background: var(--card); color: var(--text);
  transition: .15s;
}
.multi-select .trigger:hover { border-color: var(--accent); }
.multi-select .trigger .label {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left;
}
.multi-select .trigger .label.placeholder { color: var(--text-muted); }
.multi-select .trigger .badge {
  flex-shrink: 0; background: var(--accent-bg); color: var(--accent);
  font-size: 11px; font-weight: 500; padding: 0 6px; height: 18px; line-height: 18px;
  border-radius: 9px;
}
.multi-select .trigger .arrow {
  flex-shrink: 0; font-size: 10px; color: var(--text-muted);
  transition: .2s;
}
.multi-select .trigger.open .arrow { transform: rotate(180deg); }

.multi-select .menu {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 40;
  width: 100%; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 4px;
  animation: dropIn .12s; max-height: 260px; overflow-y: auto;
}
.multi-select .menu .item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 4px;
  font-size: 13px; cursor: pointer; color: var(--text);
  transition: .05s;
}
.multi-select .menu .item:hover { background: var(--bg); }
.multi-select .menu .item .cbox {
  width: 16px; height: 16px; border-radius: 3px;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: .15s; flex-shrink: 0;
}
.multi-select .menu .item .cbox.on {
  border-color: var(--accent); background: var(--accent);
}
.multi-select .menu .item .cbox i { width: 10px; height: 10px; color: #fff; }
.multi-select .menu .item .clabel { flex: 1; }
.multi-select .menu .item .ccount {
  font-size: 11px; color: var(--text-muted);
}
.multi-select .menu .select-all {
  border-bottom: 1px solid var(--border); padding-bottom: 6px; margin-bottom: 4px;
  font-weight: 500; color: var(--accent);
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════
   H5Toggle
   ═══════════════════════════════════════ */
.a2-toggle {
  width: 48px; height: 28px; border-radius: 14px;
  background: var(--border); position: relative; cursor: pointer;
  transition: background .2s; flex-shrink: 0;
}
.a2-toggle.on { background: var(--accent); }
.a2-toggle::after {
  content: ''; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; position: absolute; top: 2px; left: 2px;
  transition: all .2s; box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
.a2-toggle.on::after { left: 22px; }
.a2-toggle:active::after { transform: scale(.92); }

/* ═══════════════════════════════════════
   H5FormUpload
   ═══════════════════════════════════════ */
.a2-upload {
  position: relative; border-radius: var(--radius-xl);
  border: 2px dashed var(--border); background: var(--bg);
  padding: var(--space-4); cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: all .2s; color: var(--text-muted);
  font-size: var(--fs-sm); font-weight: 600;
}
.a2-upload:hover { border-color: var(--accent); background: var(--accent-bg); }
.a2-upload input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 1;
}
.a2-upload .icon { color: var(--accent); font-size: 18px; flex-shrink: 0; display: flex; }
.a2-upload .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a2-upload .hint { font-size: var(--fs-xs); font-weight: 400; color: var(--text-muted); }

/* ═══════════════════════════════════════
   H5StarRating
   ═══════════════════════════════════════ */
.a2-stars { display: inline-flex; gap: 4px; align-items: center; }
.a2-stars .star {
  cursor: pointer; transition: all .15s; flex-shrink: 0;
  color: var(--border); font-size: 20px; line-height: 1;
}
.a2-stars .star.active { color: #f59e0b; }
.a2-stars .star:active { transform: scale(1.15); }
.a2-stars .label { font-size: var(--fs-sm); color: var(--text-muted); font-weight: 600; margin-left: 8px; }
.a2-stars.sm .star { font-size: 16px; }
.a2-stars.lg .star { font-size: 28px; }
.a2-stars.readonly .star { cursor: default; }
.a2-stars.readonly .star:active { transform: none; }

/* ═══════════════════════════════════════
   H5LoginForm
   ═══════════════════════════════════════ */
.a2-login {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 100vh;
  padding: 0 32px 80px; text-align: center;
}
.a2-login .brand-icon {
  width: 80px; height: 80px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 24px rgba(22,93,255,.2); margin-bottom: 32px;
}
.a2-login .brand-icon i { font-size: 28px; color: #fff; }
.a2-login h2 { font-size: var(--fs-2xl); font-weight: 800; color: var(--text); margin-bottom: 4px; }
.a2-login .sub { font-size: var(--fs-sm); color: var(--text-muted); font-weight: 700; margin-bottom: 24px; }
.a2-login .form { width: 100%; display: flex; flex-direction: column; gap: var(--space-4); }
.a2-login .field { text-align: left; }
.a2-login .field label { font-size: var(--fs-xs); font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; display: block; }
.a2-login .field input {
  width: 100%; background: var(--bg); border-radius: var(--radius-xl);
  padding: 14px 16px; font-size: var(--fs-base); font-weight: 700;
  color: var(--text); border: 2px solid transparent; outline: none;
  transition: all .2s; box-sizing: border-box;
}
.a2-login .field input:focus { border-color: var(--accent); background: var(--card); }
.a2-login .code-row { display: flex; gap: 12px; }
.a2-login .code-row input { flex: 1; }
.a2-login .code-btn {
  padding: 14px 16px; background: var(--accent-bg); color: var(--accent);
  font-size: var(--fs-xs); font-weight: 700; border-radius: var(--radius-xl);
  white-space: nowrap; cursor: pointer; border: none; transition: all .15s;
  flex-shrink: 0;
}
.a2-login .code-btn:active { transform: scale(.96); }
.a2-login .code-btn:disabled { opacity: .5; cursor: not-allowed; }
.a2-login .submit {
  width: 100%; background: var(--accent); color: #fff;
  padding: 16px; border-radius: var(--radius-xl);
  font-size: var(--fs-base); font-weight: 700;
  border: none; cursor: pointer; margin-top: 12px;
  box-shadow: 0 8px 20px rgba(22,93,255,.25); transition: all .15s;
}
.a2-login .submit:active { transform: scale(.97); }
.a2-login .switch {
  font-size: var(--fs-sm); color: var(--accent); font-weight: 700;
  cursor: pointer; margin-top: 16px; transition: all .15s;
}
.a2-login .switch:active { opacity: .7; }
.a2-login .agree { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 700; margin-top: 24px; }

/* ═══════════════════════════════════════
   H5ProductCard
   ═══════════════════════════════════════ */
.h5-product-card {
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.h5-product-card .img {
  height: 100px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.h5-product-card .body { padding: 8px 10px; }
.h5-product-card .body .name { font-size: 12px; font-weight: 600; }
.h5-product-card .body .sub { font-size: 10px; color: var(--text-muted); margin: 2px 0; }
.h5-product-card .body .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.h5-product-card .body .price { font-size: 15px; font-weight: 700; color: var(--danger); }
.h5-product-card .body .btn-add { height: 26px; padding: 0 10px; font-size: 11px; }

/* ═══════════════════════════════════════
   H5GridMenu
   ═══════════════════════════════════════ */
.h5-grid-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
}
.h5-grid-menu .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  background: var(--card);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .15s;
}
.h5-grid-menu .item:active { transform: scale(.95); }
.h5-grid-menu .item .icon { font-size: 20px; }
.h5-grid-menu .item .label { font-size: 11px; color: var(--text-secondary); }

/* 渐变变体：在 item 上添加 .gradient-* 类 */
.h5-grid-menu .item .icon-wrap {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; box-shadow: var(--shadow-sm);
}
.h5-grid-menu .item .icon-wrap.g-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.h5-grid-menu .item .icon-wrap.g-emerald { background: linear-gradient(135deg, #34d399, #059669); }
.h5-grid-menu .item .icon-wrap.g-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.h5-grid-menu .item .icon-wrap.g-orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
.h5-grid-menu .item .icon-wrap.g-rose { background: linear-gradient(135deg, #fb7185, #e11d48); }
.h5-grid-menu .item .icon-wrap.g-cyan { background: linear-gradient(135deg, #22d3ee, #0891b2); }

/* ═══════════════════════════════════════
   H5NoticeBar
   ═══════════════════════════════════════ */
.h5-notice-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--warning-bg);
  border: 1px solid rgb(var(--orange-2));
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--warning-text);
}
.h5-notice-bar .icon { font-size: 14px; }

/* ═══════════════════════════════════════
   H5OrderItem
   ═══════════════════════════════════════ */
.h5-order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--card);
  border-radius: var(--radius-sm);
}
.h5-order-item .info .id { font-size: 13px; }
.h5-order-item .info .time { font-size: 10px; color: var(--text-muted); }
.h5-order-item .amount { font-weight: 600; font-size: 13px; }

/* ═══════════════════════════════════════
   H5SearchBar
   ═══════════════════════════════════════ */
.h5-search-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--card);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
}
.h5-search-bar .input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border-radius: 20px;
  padding: 8px 14px;
}
.h5-search-bar .input-wrap .icon { font-size: 12px; }
.h5-search-bar .input-wrap input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  flex: 1;
}

/* ═══════════════════════════════════════
   H5GradientHeader
   ═══════════════════════════════════════ */
.h5-gradient-header {
  background: linear-gradient(135deg, var(--accent), #764ba2);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 20px 16px 24px;
}
.h5-gradient-header .store { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.h5-gradient-header .label { font-size: 11px; opacity: .8; }
.h5-gradient-header .balance { font-size: 28px; font-weight: 700; margin-top: 2px; }
.h5-gradient-header .balance small { font-size: 13px; font-weight: 400; opacity: .8; }

/* ═══════════════════════════════════════
   SwipeAction
   ═══════════════════════════════════════ */
.a2-swipe { position: relative; overflow: hidden; touch-action: pan-y; }
.a2-swipe .wrap { display: flex; transition: transform .2s; }
.a2-swipe .content { min-width: 100%; background: var(--card); }
.a2-swipe .actions { display: flex; flex-shrink: 0; }
.a2-swipe .actions .act {
  display: flex; align-items: center; justify-content: center;
  padding: 0 20px; font-size: 13px; font-weight: 500;
  color: #fff; cursor: pointer; user-select: none;
  white-space: nowrap;
}
.a2-swipe .actions .act.danger { background: var(--danger); }
.a2-swipe .actions .act.primary { background: var(--accent); }
.a2-swipe .actions .act.warning { background: var(--warning); }
.a2-swipe .actions .act.gray { background: rgb(var(--gray-6)); }

/* ═══════════════════════════════════════
   Picker
   ═══════════════════════════════════════ */
.a2-picker { display: flex; flex-direction: column; background: var(--card); }
.a2-picker .head {
  display: flex; justify-content: space-between; padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.a2-picker .head .cancel { font-size: 14px; color: var(--text-muted); cursor: pointer; }
.a2-picker .head .confirm { font-size: 14px; color: var(--accent); font-weight: 500; cursor: pointer; }
.a2-picker .cols { display: flex; position: relative; overflow: hidden; height: 200px; }
.a2-picker .cols .col { flex: 1; overflow-y: scroll; scroll-snap-type: y mandatory; }
.a2-picker .cols .col .opt {
  height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-secondary); scroll-snap-align: center;
  transition: .1s;
}
.a2-picker .cols .col .opt.sel { color: var(--text); font-weight: 600; font-size: 15px; }
.a2-picker .indicator {
  position: absolute; left: 0; right: 0; top: 50%; height: 40px;
  margin-top: -20px; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); pointer-events: none;
}

/* ═══════════════════════════════════════
   Carousel
   ═══════════════════════════════════════ */
.a2-carousel { position: relative; overflow: hidden; border-radius: var(--radius); }
.a2-carousel .track { display: flex; transition: transform .35s ease-out; }
.a2-carousel .track .slide { min-width: 100%; flex-shrink: 0; }
.a2-carousel .track .slide .img {
  width: 100%; height: 160px; object-fit: cover; display: block;
  background: linear-gradient(135deg, var(--accent), #764ba2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: 14px;
}
.a2-carousel .dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.a2-carousel .dots .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.45); transition: .2s; cursor: pointer;
}
.a2-carousel .dots .dot.active { width: 18px; border-radius: 3px; background: #fff; }

/* ═══════════════════════════════════════
   ProgressCircle
   ═══════════════════════════════════════ */
.a2-pcircle { display: inline-flex; align-items: center; justify-content: center; position: relative; }
.a2-pcircle svg { transform: rotate(-90deg); }
.a2-pcircle .bg { fill: none; stroke: var(--border); }
.a2-pcircle .fg { fill: none; stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.a2-pcircle .fg.accent { stroke: var(--accent); }
.a2-pcircle .fg.success { stroke: var(--success); }
.a2-pcircle .fg.warning { stroke: var(--warning); }
.a2-pcircle .fg.danger { stroke: var(--danger); }
.a2-pcircle .label { position: absolute; text-align: center; }
.a2-pcircle .label .pct { display: block; font-weight: 700; color: var(--text); }
.a2-pcircle .label .pct-sm { font-size: 16px; }
.a2-pcircle .label .pct-md { font-size: 22px; }
.a2-pcircle .label .pct-lg { font-size: 32px; }
.a2-pcircle .label .sub { font-size: 10px; color: var(--text-muted); display: block; margin-top: 2px; }

/* ═══════════════════════════════════════
   CountDown
   ═══════════════════════════════════════ */
.a2-countdown { display: inline-flex; align-items: center; gap: 4px; }
.a2-countdown .block { display: flex; align-items: center; gap: 4px; }
.a2-countdown .num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 32px; padding: 0 4px;
  background: var(--text); color: var(--card);
  border-radius: 4px; font-size: 16px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.a2-countdown .sep { color: var(--text-muted); font-weight: 700; font-size: 14px; }
.a2-countdown .label { font-size: 10px; color: var(--text-muted); margin-left: 2px; }

/* 大号变体 */
.a2-countdown.lg .num { min-width: 40px; height: 48px; font-size: 24px; border-radius: 6px; }
.a2-countdown.lg .sep { font-size: 20px; }

/* 主题色变体 */
.a2-countdown.accent .num { background: var(--accent); }
.a2-countdown.danger .num { background: var(--danger); }

/* full 变体：文字倒计时（天 时 分 秒） */
.a2-countdown.full { gap: 2px; }
.a2-countdown.full .num { min-width: auto; height: auto; background: none; color: var(--accent); font-size: var(--fs-base); padding: 0; }
.a2-countdown.full .sep { display: none; }
.a2-countdown.full .label { font-size: var(--fs-xs); color: var(--text-muted); margin-left: 0; }
.a2-countdown.full + .subtitle { display: block; font-size: 9px; color: var(--text-muted); font-weight: 700; margin-top: 2px; }
.a2-countdown .subtitle { display: none; }

/* ═══════════════════════════════════════
   MobileSideBar
   ═══════════════════════════════════════ */
.a2-msidebar {
  width: 90px; background: var(--bg); border-right: 1px solid var(--border);
  overflow-y: auto; flex-shrink: 0;
}
.a2-msidebar .item {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 8px; font-size: 12px; color: var(--text-secondary);
  cursor: pointer; text-align: center; line-height: 1.3;
  border-left: 3px solid transparent; transition: .1s;
}
.a2-msidebar .item:hover { color: var(--text); }
.a2-msidebar .item.active {
  background: var(--card); color: var(--accent); font-weight: 600;
  border-left-color: var(--accent);
}
.a2-msidebar .item .badge {
  margin-left: 4px; font-size: 10px; color: var(--text-muted);
}

/* ═══════════════════════════════════════
   OTPInput
   ═══════════════════════════════════════ */
.a2-otp { display: flex; gap: 8px; justify-content: center; }
.a2-otp .box {
  width: 44px; height: 52px; display: flex; align-items: center;
  justify-content: center; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: 22px; font-weight: 700;
  color: var(--text); transition: .1s;
}
.a2-otp .box.filled { border-color: var(--accent); }
.a2-otp .box.focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.a2-otp .cursor { width: 2px; height: 24px; background: var(--accent); animation: blink .8s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ═══════════════════════════════════════
   InfiniteScroll
   ═══════════════════════════════════════ */
.a2-infinite { display: flex; flex-direction: column; }
.a2-infinite .sentinel { height: 1px; }
.a2-infinite .loader {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 20px 0; gap: 8px;
}
.a2-infinite .loader .spinner {
  width: 24px; height: 24px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: a2-spin .6s linear infinite;
}
.a2-infinite .loader .text { font-size: 12px; color: var(--text-muted); }
.a2-infinite .loader .done { width: 24px; height: 2px; border-radius: 1px; background: var(--border); }

/* ═══════════════════════════════════════
   H5ActivityCard
   ═══════════════════════════════════════ */
.a2-activity-card {
  background: var(--card); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow); cursor: pointer;
  border: 1px solid var(--border-light); transition: all .15s;
}
.a2-activity-card:active { transform: scale(.97); }
.a2-activity-card .thumb {
  height: 112px; position: relative; overflow: hidden;
  background: var(--bg);
}
.a2-activity-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.a2-activity-card .thumb .tag {
  position: absolute; top: 8px; left: 8px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(4px);
  font-size: 9px; font-weight: 800; padding: 2px 8px;
  border-radius: 8px; color: var(--accent);
}
.a2-activity-card .thumb .badge {
  position: absolute; top: 8px; right: 8px;
}
.a2-activity-card .body { padding: 10px 12px; }
.a2-activity-card .body h4 {
  font-size: var(--fs-base); font-weight: 800; color: var(--text);
  line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.a2-activity-card .body .meta {
  display: flex; justify-content: space-between; align-items: center; margin-top: 8px;
}
.a2-activity-card .body .city { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 700; }
.a2-activity-card .body .price { font-size: var(--fs-sm); font-weight: 800; color: var(--text); }

/* ═══════════════════════════════════════
   H5CourseCard
   ═══════════════════════════════════════ */
.a2-course-card {
  display: flex; align-items: center; gap: var(--space-4);
  background: var(--card); padding: var(--space-3);
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--border-light); cursor: pointer;
  transition: all .15s;
}
.a2-course-card:active { transform: scale(.98); }
.a2-course-card .thumb {
  width: 64px; height: 64px; border-radius: var(--radius);
  object-fit: cover; flex-shrink: 0; background: var(--bg);
}
.a2-course-card .info { flex: 1; min-width: 0; }
.a2-course-card .info h4 { font-size: var(--fs-base); font-weight: 700; color: var(--text); }
.a2-course-card .info .type-badge {
  display: inline-block; font-size: 9px; font-weight: 700; padding: 1px 6px;
  border-radius: 4px; vertical-align: middle; margin-left: 4px;
}
.a2-course-card .info .type-badge.online { background: var(--success-bg); color: var(--success-text); }
.a2-course-card .info .type-badge.practice { background: var(--warning-bg); color: var(--warning-text); }
.a2-course-card .info .provider { font-size: var(--fs-xs); color: var(--accent); font-weight: 700; margin-top: 2px; }
.a2-course-card .info .sessions { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 700; margin-top: 2px; }
.a2-course-card .price-col { text-align: right; flex-shrink: 0; }
.a2-course-card .price-col .cur { font-size: var(--fs-base); font-weight: 800; }
.a2-course-card .price-col .cur.vip { color: var(--success); }
.a2-course-card .price-col .orig { font-size: 9px; color: var(--text-muted); font-weight: 700; text-decoration: line-through; margin-top: 2px; }

/* ═══════════════════════════════════════
   H5DetailHero
   ═══════════════════════════════════════ */
.a2-hero {
  position: relative; overflow: hidden; background: var(--bg);
}
.a2-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.9) 72%, #fff 100%);
  pointer-events: none;
}
.a2-hero img { width: 100%; height: 100%; object-fit: cover; }
.a2-hero-panel {
  position: relative; z-index: 10; margin-top: -22px;
  background: var(--card); border-radius: 48px 48px 0 0;
  padding: 32px 24px; box-shadow: 0 -8px 40px rgba(0,0,0,.06);
}
.a2-hero-panel h1 { font-size: var(--fs-2xl); font-weight: 800; color: var(--text); }
.a2-hero-panel .summary { font-size: var(--fs-sm); color: var(--text-secondary); margin-top: 8px; line-height: 1.5; }

/* ═══════════════════════════════════════
   H5SharePanel
   ═══════════════════════════════════════ */
.a2-sp-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90;
  display: flex; align-items: flex-end; justify-content: center;
  animation: a2-fade-in .2s ease-out;
}
.a2-sp-panel {
  width: min(100%, 414px); background: var(--card);
  border-radius: 32px 32px 0 0; padding: var(--space-5);
  padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  animation: a2-slide-up-full .3s cubic-bezier(.32,.72,0,1);
}
.a2-sp-poster {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-xl);
  position: relative; overflow: hidden; margin-bottom: var(--space-4);
}
.a2-sp-poster .deco {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.a2-sp-poster .content {
  position: absolute; inset: 0; padding: 28px; z-index: 1;
  display: flex; flex-direction: column; color: #fff;
}
.a2-sp-poster .top { display: flex; justify-content: space-between; align-items: flex-start; }
.a2-sp-poster .brand {
  font-size: 10px; font-weight: 700; opacity: .7; letter-spacing: .05em;
  padding: 4px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
}
.a2-sp-poster .tag {
  font-size: 10px; font-weight: 700; padding: 4px 12px;
  background: rgba(255,255,255,.2); backdrop-filter: blur(4px);
  border-radius: 999px;
}
.a2-sp-poster .middle { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: var(--space-4) 0; }
.a2-sp-poster .ptitle { font-size: 24px; font-weight: 900; line-height: 1.25; letter-spacing: -.01em; }
.a2-sp-poster .deco-line { width: 32px; height: 4px; background: rgba(255,255,255,.5); border-radius: 999px; margin: 12px 0; }
.a2-sp-poster .info { display: flex; flex-direction: column; gap: 4px; }
.a2-sp-poster .info-row { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; opacity: .85; }
.a2-sp-poster .bottom { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.15); }
.a2-sp-poster .price-area { display: flex; flex-direction: column; }
.a2-sp-poster .price-lbl { font-size: 8px; font-weight: 700; opacity: .6; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }
.a2-sp-poster .price-val { font-size: 28px; font-weight: 900; line-height: 1; }
.a2-sp-poster .qr-area { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.a2-sp-poster .qr-box { width: 56px; height: 56px; background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.a2-sp-poster .qr-hint { font-size: 8px; font-weight: 600; opacity: .65; white-space: nowrap; }
.a2-sp-actions { display: flex; gap: var(--space-4); margin-bottom: var(--space-4); }
.a2-sp-actions .btn {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 12px 0; border-radius: var(--radius-xl);
  background: var(--bg); cursor: pointer; transition: all .1s;
  font-size: 10px; font-weight: 700; color: var(--text-secondary);
  border: none;
}
.a2-sp-actions .btn:active { background: var(--border-light); }
.a2-sp-actions .btn i { font-size: 20px; color: var(--accent); }
.a2-sp-cancel {
  width: 100%; padding: var(--space-4); border-radius: var(--radius-xl);
  background: var(--bg); color: var(--text-muted); font-weight: 700;
  font-size: var(--fs-base); border: none; cursor: pointer; transition: all .1s;
}
.a2-sp-cancel:active { background: var(--border-light); }

/* ═══════════════════════════════════════
   H5PostCard
   ═══════════════════════════════════════ */
.a2-post {
  background: var(--card); border-radius: var(--radius-xl);
  box-shadow: var(--shadow); border: 1px solid var(--border-light);
  padding: var(--space-5);
}
.a2-post .head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.a2-post .avatar {
  width: 40px; height: 40px; border-radius: var(--radius-xl);
  background: var(--accent); display: flex;
  align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: var(--fs-base);
  box-shadow: 0 4px 12px rgba(22,93,255,.2); flex-shrink: 0;
}
.a2-post .meta { flex: 1; }
.a2-post .author { font-weight: 700; color: var(--text); font-size: var(--fs-base); }
.a2-post .time { font-size: var(--fs-sm); color: var(--text-muted); font-weight: 600; margin-top: 2px; }
.a2-post .ptag {
  font-size: 10px; padding: 4px 12px; border-radius: 999px;
  font-weight: 700; background: var(--accent-bg); color: var(--accent);
}
.a2-post .body { color: var(--text-secondary); font-size: var(--fs-base); line-height: 1.6; margin-bottom: 12px; }

/* 图片网格 */
.a2-post .imgs { display: grid; gap: 8px; margin: 12px 0; }
.a2-post .imgs.g1 { grid-template-columns: 1fr; }
.a2-post .imgs.g2 { grid-template-columns: repeat(2, 1fr); }
.a2-post .imgs.g3 { grid-template-columns: repeat(3, 1fr); }
.a2-post .imgs img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 16/9; background: var(--bg); }

/* 操作栏 */
.a2-post .actions {
  display: flex; gap: 24px; padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.a2-post .actions .act {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: var(--fs-sm);
  font-weight: 600; cursor: pointer; transition: all .15s;
}
.a2-post .actions .act:hover { color: var(--accent); }
.a2-post .actions .act.liked { color: var(--danger); }
.a2-post .actions .act i { font-size: var(--fs-base); }

/* ═══════════════════════════════════════
   H5JobCard
   ═══════════════════════════════════════ */
.a2-job {
  background: var(--card); padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-xl); border: 1px solid var(--border-light);
  box-shadow: var(--shadow); cursor: pointer; transition: all .15s;
}
.a2-job:active { transform: scale(.98); }
.a2-job .top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); }
.a2-job .info { flex: 1; min-width: 0; }
.a2-job .info h4 { font-size: var(--fs-xl); font-weight: 800; color: var(--text); }
.a2-job .info .company { font-size: var(--fs-sm); color: var(--accent); font-weight: 700; margin-top: 4px; }
.a2-job .info .summary { font-size: 11px; color: var(--text-secondary); line-height: 1.5; margin-top: 8px; }
.a2-job .salary { font-size: var(--fs-base); font-weight: 800; color: var(--warning); white-space: nowrap; }
.a2-job .salary .applied-badge {
  display: block; margin-top: 8px; background: var(--accent-bg); color: var(--accent);
  font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 8px; text-align: center;
}
.a2-job .tags { display: flex; gap: 8px; margin-top: var(--space-4); flex-wrap: wrap; }
.a2-job .tags .tag {
  font-size: 10px; font-weight: 700; padding: 4px 8px;
  background: var(--bg); color: var(--text-muted); border-radius: 6px;
}
.a2-job .foot {
  margin-top: var(--space-5); padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; color: var(--text-muted); font-weight: 700;
}

/* ═══════════════════════════════════════
   StatusBar
   ═══════════════════════════════════════ */
.status-bar { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: var(--card); }
.status-bar .time { font-size: 14px; font-weight: 600; color: var(--text); }
.status-bar .icons { display: flex; align-items: center; gap: 5px; }
.status-bar .icons svg { width: 16px; height: 16px; color: var(--text); }

/* ═══════════════════════════════════════
   PageHeader
   ═══════════════════════════════════════ */
.page-header { display: flex; align-items: center; padding: 0 16px 14px; background: var(--card); position: relative; min-height: 44px; }
.page-header .back { position: absolute; left: 16px; display: flex; align-items: center; gap: 2px; cursor: pointer; color: var(--text); }
.page-header .back i { width: 24px; height: 24px; }
.page-header h1 { flex: 1; text-align: center; font-size: 17px; font-weight: 600; color: var(--text); }
.page-header .right { position: absolute; right: 16px; display: flex; gap: 12px; }
.page-header .right i { width: 22px; height: 22px; color: var(--text); cursor: pointer; }

/* ═══════════════════════════════════════
   ActionSheet
   ═══════════════════════════════════════ */
.action-sheet { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; padding: 8px 16px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
.action-sheet .backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: -1; }
.action-sheet .sheet { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; }
.action-sheet .item { display: flex; align-items: center; justify-content: center; height: 48px; font-size: 16px; border-bottom: 1px solid var(--border-light); cursor: pointer; }
.action-sheet .item:last-child { border-bottom: none; }
.action-sheet .item.danger { color: var(--danger); }
.action-sheet .cancel { display: flex; align-items: center; justify-content: center; height: 48px; font-size: 16px; background: var(--card); border-radius: var(--radius-lg); margin-top: 8px; cursor: pointer; font-weight: 500; }

/* ═══════════════════════════════════════
   Stepper
   ═══════════════════════════════════════ */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.stepper button { width: 32px; height: 32px; border: none; background: var(--bg); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text); }
.stepper button:active { background: var(--border); }
.stepper button:disabled { color: var(--text-muted); cursor: default; }
.stepper .val { width: 44px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }

/* ═══════════════════════════════════════
   条目编辑器
   ═══════════════════════════════════════ */
.items-editor { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.items-editor .item-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border-light); }
.items-editor .item-row:last-child { border-bottom: none; }
.items-editor .item-row .type-badge { width: 52px; flex-shrink: 0; }
.items-editor .item-row .info { flex: 1; min-width: 0; }
.items-editor .item-row .info .name { font-size: 13px; font-weight: 500; }
.items-editor .item-row .info .spec { font-size: 11px; color: var(--text-muted); }
.items-editor .item-row .del-btn { width: 28px; height: 28px; border: none; border-radius: 50%; background: var(--danger-bg); color: var(--danger); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.items-editor .add-btns { display: flex; gap: 8px; padding: 12px; border-top: 1px dashed var(--border); }

/* ═══════════════════════════════════════
   商品选择网格 & 扫码输入 & 会员选择
   ═══════════════════════════════════════ */
.a2-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.a2-product-card { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-align: center; cursor: pointer; transition: .12s; background: var(--card); }
.a2-product-card .name { font-size: 12px; font-weight: 500; margin-top: 6px; }
.a2-product-card .price { font-size: 13px; color: var(--danger); font-weight: 700; margin-top: 2px; }
.a2-product-card .label-tag { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.a2-product-card:hover { border-color: var(--accent); background: var(--accent-bg); }
.a2-code-input { font-size: 18px; letter-spacing: 2px; font-family: var(--font-mono); }

/* ═══════════════════════════════════════
   会员选择列表
   ═══════════════════════════════════════ */
.member-item { display: flex; align-items: center; gap: 12px; padding: 12px; cursor: pointer; border-bottom: 1px solid var(--border-light); transition: .12s; }
.member-item:hover { background: var(--accent-bg); }
.member-item:last-child { border-bottom: none; }
.member-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-bg); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; flex-shrink: 0; }
.member-item .member-info { flex: 1; min-width: 0; }
.member-item .member-info .name { font-size: 14px; font-weight: 500; }
.member-item .member-info .phone { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ═══════════════════════════════════════
   ProgressBar
   ═══════════════════════════════════════ */
.progress-bar { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.progress-bar .fill { height: 100%; border-radius: 4px; transition: width .4s, background .3s; }
.progress-bar .fill-green { background: var(--success); }
.progress-bar .fill-orange { background: var(--warning); }
.progress-bar .fill-red { background: var(--danger); }

/* ═══════════════════════════════════════
   FloatButton
   ═══════════════════════════════════════ */
.a2-float-btn {
  position: fixed; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(22,119,255,.3);
  transition: .2s; border: none;
}
.a2-float-btn:hover { filter: brightness(1.1); transform: scale(1.05); }
.a2-float-btn.br { bottom: 24px; right: 24px; }
.a2-float-btn.bl { bottom: 24px; left: 24px; }
.a2-float-btn .badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.a2-float-btn .back-top { font-size: 14px; }

/* ═══════════════════════════════════════
   Collapse
   ═══════════════════════════════════════ */
.collapse { display: flex; flex-direction: column; gap: 4px; }
.collapse .panel {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--card);
}
.collapse .panel .head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; cursor: pointer; user-select: none;
  font-size: 13px; font-weight: 500; color: var(--text);
  transition: .1s;
}
.collapse .panel .head:hover { background: var(--bg); }
.collapse .panel .head .arrow {
  display: flex; align-items: center; color: var(--text-muted);
  transition: transform .2s;
}
.collapse .panel.open .head .arrow { transform: rotate(180deg); }
.collapse .panel .body {
  max-height: 0; overflow: hidden; transition: max-height .25s;
  font-size: 12px; color: var(--text-secondary); line-height: 1.6;
}
.collapse .panel.open .body {
  max-height: 600px; padding: 0 14px 12px;
}

/* ═══════════════════════════════════════
   工具类
   ═══════════════════════════════════════ */
.hidden { display: none !important; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.font-mono { font-family: var(--font-mono); }

/* ═══════════════════════════════════════
   动画
   ═══════════════════════════════════════ */
@keyframes a2-pop { 0%{transform:scale(0)} 50%{transform:scale(1.2)} 100%{transform:scale(1)} }
.a2-pop { animation: a2-pop .4s ease-out }
@keyframes dropIn { from{opacity:0;transform:translateY(-4px)} }
.step-content { min-height: 300px; }
.coupon-card-selectable { cursor: pointer; transition: all .15s; }
