/* ============================================================
   发票管理系统 V1.0 — 商业化 UI 视觉系统
   设计基线: 蓝色商务 SaaS / 浅色主题 / 8px 间距栅格
   ============================================================ */
:root {
  /* 品牌色 */
  --brand: #3056d3;
  --brand-d: #2745ad;
  --brand-l: #eef2fd;
  --brand-grad: linear-gradient(135deg, #3a6cf6 0%, #3056d3 60%, #2745ad 100%);
  /* 功能色 */
  --ok: #16a34a; --ok-bg: #e8f7ee;
  --warn: #d97706; --warn-bg: #fdf3e3;
  --danger: #dc2626; --danger-bg: #fdeeee;
  --info-bg: #e9f0fe;
  /* 中性色 */
  --bg: #f4f6fa;
  --card: #ffffff;
  --line: #e6eaf2;
  --line-strong: #d6dcea;
  --txt: #1f2b3d;
  --txt-2: #55647a;
  --muted: #8b96a9;
  /* 组件 */
  --side-w: 224px;
  --r-lg: 14px; --r-md: 10px; --r-sm: 8px;
  --sh-sm: 0 1px 2px rgba(23, 39, 74, .06);
  --sh-md: 0 1px 2px rgba(23, 39, 74, .05), 0 8px 24px rgba(23, 39, 74, .07);
  --sh-lg: 0 24px 64px rgba(9, 20, 44, .28);
  --tr: .18s cubic-bezier(.4, 0, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--txt); font-size: 14px; line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--brand-d); }
small, .muted { color: var(--muted); }
i { color: var(--danger); font-style: normal; }
::selection { background: rgba(48, 86, 211, .16); }

/* 细滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c9d2e3; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #aeb9d0; }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: 2px solid rgba(48, 86, 211, .55); outline-offset: 2px; border-radius: 4px; }

/* ---------- 布局: 侧栏 ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: linear-gradient(180deg, #101d33 0%, #14243e 100%); color: #c4cfdf; display: flex; flex-direction: column; z-index: 50; }
.sidebar::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px 200px at -60px -40px, rgba(58, 108, 246, .18), transparent 60%); }
.brand { display: flex; gap: 11px; align-items: center; padding: 20px 18px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.brand b { color: #fff; display: block; font-size: 15px; letter-spacing: .5px; }
.brand span { font-size: 11px; color: #7488a5; letter-spacing: 1px; }
.brand-logo { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex: none; box-shadow: 0 6px 16px rgba(48, 86, 211, .4); }
.brand-logo.big { width: 48px; height: 48px; font-size: 22px; border-radius: 13px; }
.nav { flex: 1; overflow-y: auto; padding: 12px 12px 16px; }
.nav::-webkit-scrollbar { width: 4px; }
.nav a { display: flex; align-items: center; gap: 2px; padding: 10px 13px; border-radius: var(--r-sm); color: #aebccb; margin-bottom: 3px; font-size: 13.5px; transition: all var(--tr); position: relative; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; padding-left: 16px; }
.nav a.on { background: var(--brand-grad); color: #fff; font-weight: 500; box-shadow: 0 4px 14px rgba(48, 86, 211, .35); }
.nav-group { font-size: 11px; color: #6d7f9c; padding: 16px 13px 6px; letter-spacing: 2px; }
.side-foot { display: flex; align-items: center; gap: 9px; padding: 13px 15px; border-top: 1px solid rgba(255, 255, 255, .07); }
.side-user { flex: 1; line-height: 1.3; }
.side-user b { color: #fff; font-size: 13px; display: block; }
.side-user small { color: #7488a5; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: none; }
.btn-ghost { background: none; border: 1px solid rgba(255, 255, 255, .18); color: #c4cfdf; border-radius: var(--r-sm); padding: 6px 10px; cursor: pointer; transition: all var(--tr); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .4); color: #fff; }

/* ---------- 布局: 主区 ---------- */
.main { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 0 26px; height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 40; }
.page-title { font-size: 17px; font-weight: 700; letter-spacing: .3px; display: flex; align-items: center; gap: 10px; }
.page-title::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: var(--brand-grad); display: inline-block; }
.topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.content { padding: 20px 26px 46px; flex: 1; width: 100%; max-width: 1500px; animation: fadeUp .28s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 9px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: #fff; color: var(--txt-2); cursor: pointer; font-size: 13.5px; font-weight: 500; font-family: inherit; line-height: 1.2; transition: all var(--tr); white-space: nowrap; box-shadow: var(--sh-sm); }
.btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(48, 86, 211, .12); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand-grad); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(48, 86, 211, .28); }
.btn-primary:hover { background: linear-gradient(135deg, #2f5be0 0%, #2745ad 100%); color: #fff; box-shadow: 0 6px 18px rgba(48, 86, 211, .4); }
.btn-danger { background: #fff; border-color: #f3c7c7; color: var(--danger); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; box-shadow: 0 4px 12px rgba(220, 38, 38, .25); }
.btn-outline { background: #fff; border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; box-shadow: none; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.loading { pointer-events: none; opacity: .7; }

/* ---------- 卡片面板 ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; margin-bottom: 16px; box-shadow: var(--sh-sm); overflow-wrap: break-word; }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head b { font-size: 15px; }
.hr { border: none; border-top: 1px dashed var(--line-strong); margin: 16px 0; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 12px; line-height: 1.75; background: var(--brand-l); border-radius: var(--r-sm); padding: 9px 12px; }
.hint a { text-decoration: underline; }
.empty { text-align: center; color: var(--muted); padding: 34px 0 !important; }
.empty::before { content: "📭"; display: block; font-size: 26px; margin-bottom: 8px; opacity: .6; }

/* 指标卡 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 14px; margin-bottom: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 17px; position: relative; overflow: hidden; transition: all var(--tr); }
.card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand-grad); opacity: .85; }
.card small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 5px; }
.card b { display: block; font-size: 21px; margin: 7px 0 3px; color: var(--txt); font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.card span { color: var(--muted); font-size: 12px; }
.card.warn::before { background: linear-gradient(90deg, #f59e0b, #f97316); }
.card.danger::before { background: linear-gradient(90deg, #ef4444, #dc2626); }
.card.warn b { color: var(--warn); }
.card.danger b { color: var(--danger); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .4px; background: #f8fafd; text-transform: none; white-space: nowrap; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead tr:last-child th, tr:first-child th { border-top: none; }
tbody tr:last-child td, table > tr:last-child td { border-bottom: none; }
tbody tr:hover, table > tr:hover { background: #f8fafd; }
.td-s { white-space: nowrap; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
td.ops, .ops { white-space: nowrap; }
.ops form { display: inline-block; margin-left: 4px; }
.inline { display: inline; }
.input-sm { width: 118px; padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 12.5px; transition: border-color var(--tr); }
.input-sm:focus { outline: none; border-color: var(--brand); }

/* 状态徽标 */
.tag { display: inline-flex; align-items: center; padding: 2.5px 10px; border-radius: 999px; font-size: 12px; white-space: nowrap; font-weight: 500; }
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-right: 6px; opacity: .8; }
.tag.待处理 { background: #eef1f6; color: #5b6b84; }
.tag.已汇款待开票 { background: var(--info-bg); color: #2c55c9; }
.tag.已开票待付款 { background: var(--warn-bg); color: #b45309; }
.tag.已付款已开票 { background: var(--ok-bg); color: #15803d; }
.tag-warn { background: var(--warn-bg); color: #b45309; border-radius: 999px; padding: 2.5px 10px; font-size: 12px; font-weight: 500; }
.row-warn td { background: #fffaf1; }
.row-danger td { background: #fdf1f1; }
.row-locked td { background: #f7f8fb; }
.c-ok { color: var(--ok); font-variant-numeric: tabular-nums; }
.c-warn { color: var(--warn); font-variant-numeric: tabular-nums; }
.money { color: var(--brand-d); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Toast 通知 ---------- */
.toasts { position: fixed; top: 70px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, calc(100vw - 32px)); }
.flash { border-radius: var(--r-md); padding: 12px 16px 12px 14px; font-size: 13.5px; box-shadow: var(--sh-md); display: flex; gap: 8px; align-items: flex-start; background: #fff; border: 1px solid var(--line); animation: toastIn .3s cubic-bezier(.21, 1.02, .73, 1) both; position: relative; overflow: hidden; }
.flash::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.f-ok { color: #15803d; } .f-ok::after { background: var(--ok); }
.f-err { color: var(--danger); } .f-err::after { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-12px); } }

.banner-lock { background: linear-gradient(90deg, #fdf6e7, #fef9f0); color: #92400e; border: 1px solid #f2dfae; border-radius: var(--r-md); padding: 12px 15px; margin-bottom: 14px; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }

/* ---------- 筛选栏 ---------- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
input, select, textarea { padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: 13.5px; background: #fff; color: var(--txt); font-family: inherit; transition: border-color var(--tr), box-shadow var(--tr); }
input:hover, select:hover, textarea:hover { border-color: #b9c5dd; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(48, 86, 211, .12); }
select { cursor: pointer; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%238b96a9' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 28px; appearance: none; -webkit-appearance: none; }
.filter-bar input, .filter-bar select { min-width: 150px; }
.filter-bar.wrap input, .filter-bar.wrap select { min-width: 0; }

/* ---------- 分类 chips（往来单位等列表筛选） ---------- */
.tab-chips { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tab-chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--txt-2); font-size: 13px; font-weight: 600; text-decoration: none; transition: all var(--tr); }
.chip b { font-size: 11.5px; background: #eef2f9; color: var(--txt-3); border-radius: 999px; padding: 1px 7px; font-weight: 700; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(48, 86, 211, .28); }
.chip.active b { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---------- 表单 ---------- */
/* 根因修复: select 固有宽度=最长选项文本, 会撑破网格 → 控件统一 100% 宽 + 网格子项 min-width:0 */
.form-grid input:not([type="checkbox"]):not([type="radio"]),
.form-grid select, .form-grid textarea,
.filter-bar input:not([type="checkbox"]), .filter-bar select,
.date-op input { width: 100%; min-width: 0; }
.form-grid > *, .form-row3 > *, .two-col > * { min-width: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.form-grid.narrow { max-width: 430px; grid-template-columns: 1fr; }
.form-grid .form-actions { grid-column: 1 / -1; }
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row > label { font-size: 12.5px; color: var(--txt-2); font-weight: 600; }
.form-row3 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.checks { display: flex; gap: 14px; flex-wrap: wrap; background: #f8fafd; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 13px; }
.check { display: flex; gap: 6px; align-items: center; font-size: 13.5px; cursor: pointer; }
.check input { accent-color: var(--brand); width: 15px; height: 15px; padding: 0; }
.form-actions { display: flex; gap: 10px; margin-top: 6px; }
.tpl-editor { width: 100%; font-family: "JetBrains Mono", Consolas, monospace; font-size: 13px; line-height: 1.85; padding: 14px; border-radius: var(--r-md); resize: vertical; }
.stamp-thumb { width: 44px; height: 44px; object-fit: contain; }
code { background: var(--brand-l); border-radius: 6px; padding: 1.5px 7px; font-size: 12.5px; color: var(--brand-d); }

/* 计划详情 */
table.kv td { border-bottom: 1px dashed var(--line); padding: 9px 12px; font-size: 13px; overflow-wrap: anywhere; }

/* ---------- 品名明细编辑器 (需求4) ---------- */
.items-editor { border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; }
.items-head, .item-row { display: grid; grid-template-columns: 2fr 1.1fr .8fr 1fr 1.2fr 1.2fr 40px; gap: 8px; align-items: center; }
.items-head { background: #f8fafd; padding: 8px 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.item-row { padding: 8px 10px; border-top: 1px solid var(--line); }
.item-row input { padding: 7px 9px; font-size: 13px; }
.i-amt { text-align: right; font-weight: 600; color: var(--brand-d); font-variant-numeric: tabular-nums; padding-right: 4px; }
.row-del { justify-self: center; }
.items-foot { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-top: 1px solid var(--line); background: #f8fafd; flex-wrap: wrap; gap: 8px; }
.items-total { font-size: 13.5px; }
.items-total b { color: var(--brand-d); font-size: 15px; font-variant-numeric: tabular-nums; }
/* 开票类型色块 (需求1: 明显区分) */
.tag-type { display: inline-block; padding: 2.5px 12px; border-radius: 6px; font-size: 12.5px; font-weight: 600; }
.tag-type.专票 { background: #e8f7ef; color: #0f7a3d; border: 1px solid #b7e4c9; }
.tag-type.普票 { background: #fdf3e3; color: #b45309; border: 1px solid #f2dcae; }
/* 详情页明细表 */
.items-view { margin: 6px 0 4px; }
.items-view table { font-size: 12.5px; }
table.kv td:nth-child(odd) { color: var(--muted); width: 92px; white-space: nowrap; }
table.kv td:nth-child(even) { color: var(--txt); }
.ops-grid { display: flex; flex-direction: column; gap: 11px; }
.date-op { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #f8fafd; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; }
.date-op label { color: var(--txt-2); font-size: 13px; font-weight: 600; min-width: 62px; }

/* ---------- 登录页 ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(900px 500px at 78% -10%, rgba(58, 108, 246, .45), transparent 55%), radial-gradient(700px 420px at -8% 108%, rgba(39, 69, 173, .5), transparent 55%), linear-gradient(150deg, #0d1a2e 0%, #14264a 55%, #1b3a72 100%); padding: 22px; position: relative; overflow: hidden; }
.login-card { background: rgba(255, 255, 255, .98); border-radius: 20px; padding: 38px 34px 30px; width: 100%; max-width: 400px; box-shadow: var(--sh-lg); animation: fadeUp .4s ease both; }
.login-card .brand { padding: 0 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 6px; color: var(--txt); }
.login-card label { display: block; font-size: 12.5px; color: var(--txt-2); margin: 16px 0 7px; font-weight: 600; }
.login-card input { width: 100%; padding: 11px 13px; }
.login-card .btn-block { margin-top: 24px; padding: 12px; font-size: 15px; letter-spacing: 6px; text-indent: 6px; }
.login-tip { text-align: center; color: var(--muted); font-size: 12px; margin-top: 18px; }

/* ---------- 手机端（需求确认：手机能操作界面） ---------- */
.tabbar { display: none; }
@media (max-width: 900px) {
  input, select, textarea { font-size: 16px !important; }
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .topbar { padding: 0 12px; height: 52px; }
  .page-title { font-size: 16px; }
  .topbar-actions .btn { padding: 8px 12px; min-height: 38px; }
  .content { padding: 12px 10px calc(88px + env(safe-area-inset-bottom)); }
  .panel { padding: 13px; border-radius: var(--r-md); }
  .two-col, .form-grid, .form-row3 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .card { padding: 13px 14px; }
  .card b { font-size: 17px; word-break: break-all; }

  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .filter-bar input, .filter-bar select { width: 100%; min-width: 0; }
  .filter-bar input[name="q"] { grid-column: 1 / -1; }
  .filter-bar .btn, .filter-bar .btn-ghost { width: 100%; min-height: 40px; }
  .filter-bar .btn-ghost { grid-column: 1 / -1; }

  .table-wrap { -webkit-overflow-scrolling: touch; }
  .hide-m { display: none !important; }
  table { font-size: 13px; }
  th, td { padding: 9px 9px; }
  th { white-space: nowrap; }
  td.ops, .ops { white-space: normal; }
  .ops form { margin: 2px 4px 2px 0; }
  .btn { padding: 8px 12px; min-height: 38px; }
  .btn-sm { padding: 6px 10px; min-height: 32px; }
  .input-sm { width: 132px; font-size: 16px; }

  .date-op label { min-width: 100%; }
  .date-op input[type="date"] { flex: 1 1 100%; }
  .date-op .btn { flex: 1 1 100%; }
  .ops-grid > form { width: 100%; }
  .ops-grid .btn { width: 100%; }
  table.kv td { white-space: normal; }

  .checks { padding: 9px 11px; gap: 10px; }
  .form-actions .btn { flex: 1; min-height: 42px; }
  .tpl-editor { font-size: 14px; }
  .login-card { padding: 28px 20px 24px; }
  .stamp-thumb { width: 36px; height: 36px; }
  .toasts { top: 60px; right: 10px; left: 10px; max-width: none; }

  /* 品名明细编辑器: 手机端改两行式网格 */
  .items-head { display: none; }
  .item-row { grid-template-columns: 1fr 1fr 40px; }
  .item-row input[name="i_product[]"] { grid-column: 1 / 3; }
  .item-row .i-amt { grid-column: 1 / 4; text-align: left; padding-left: 2px; color: var(--txt-2); }
  .item-row .i-amt::before { content: "金额小计："; font-weight: 400; color: var(--muted); font-size: 12px; }

  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 5px 4px calc(5px + env(safe-area-inset-bottom)); z-index: 60; justify-content: space-around; box-shadow: 0 -4px 20px rgba(23, 39, 74, .08); }
  .tabbar a { color: var(--muted); text-align: center; font-size: 11px; padding: 5px 6px; border-radius: 10px; flex: 1; transition: all var(--tr); }
  .tabbar a.on { color: var(--brand); font-weight: 600; background: var(--brand-l); }
  .tabbar i { display: block; font-size: 20px; font-style: normal; margin-bottom: 1px; }
}
