/* ==========================================================================
   components.css —— 通用组件库（PC 控制台 + 移动端共用）
   包含：顶部条 / 按钮 / 表单 / 卡片 / 统计 / 表格 / 标签 / 进度 /
        时间轴 / 抽屉 / 弹层 / 空态 / 分段控件 / 图表（纯 CSS）
   ========================================================================== */

/* ==========================================================================
   1. 顶部应用条
   ========================================================================== */
.appbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 14px;
  padding: 11px 22px;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.appbar-brand { display: flex; align-items: center; gap: 11px; min-width: 0; flex: none; }
.appbar-logo {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(199,0,11,.18); overflow: hidden;
}
.appbar-logo img { width: 34px; height: 34px; object-fit: contain; }
.appbar-title { font-size: 15.5px; font-weight: 800; letter-spacing: .4px; line-height: 1.2; white-space: nowrap; }
.appbar-sub { margin-top: 3px; font-size: 11.5px; color: var(--ink-4); letter-spacing: .2px; white-space: nowrap; }
/* 中间的面包屑在空间不足时优先收缩，避免挤压标题导致换行重叠 */
.appbar .crumbs { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; }
.appbar-tag {
  padding: 3px 9px; border-radius: var(--r-pill);
  font-size: 10.5px; font-weight: 700; letter-spacing: .6px;
  color: var(--brand); background: var(--brand-50); border: 1px solid var(--brand-100);
  flex: none;
}
.appbar-tag.gray { color: var(--ink-3); background: var(--mute-bg); border-color: var(--line-2); }
.appbar-spacer { flex: 1 1 auto; min-width: 8px; }
.appbar-actions { display: flex; align-items: center; gap: 9px; flex: none; }

/* 面包屑 */
.crumbs { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-4); }
.crumbs b { color: var(--ink-2); font-weight: 700; }
.crumbs i { font-style: normal; color: var(--ink-5); }

/* ==========================================================================
   2. 按钮
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600; letter-spacing: .3px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, color .14s ease, border-color .14s ease;
  white-space: nowrap;
}
.btn:hover { background: #F7F8FA; box-shadow: var(--sh-1); }
.btn:active { transform: scale(.97); }
.btn svg { width: 14px; height: 14px; flex: none; }
.btn-primary { background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: var(--brand-glow-s); }
.btn-primary:hover { background: var(--brand-grad); filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-3); }
.btn-ghost:hover { background: var(--mute-bg); box-shadow: none; }
.btn-dark { background: #22252C; color: #fff; border-color: transparent; }
.btn-dark:hover { background: #2E323A; }
.btn-sm { height: 28px; padding: 0 11px; font-size: 11.5px; }
.btn-sm svg { width: 12px; height: 12px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 14.5px; border-radius: var(--r-m); }
.btn-block { width: 100%; }
.btn-line { border-color: var(--brand-200); color: var(--brand); background: #fff; }
.btn-line:hover { background: var(--brand-50); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* 文字按钮 */
.link { color: var(--brand); font-weight: 600; font-size: 12.5px; }
.link:hover { text-decoration: underline; }

/* ==========================================================================
   3. 表单
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .2px; }
.field .hint { font-size: 11.5px; color: var(--ink-4); }

.input, .select, .textarea {
  height: 36px; padding: 0 12px; width: 100%;
  border-radius: var(--r-s); border: 1px solid var(--line-3);
  background: #fff; font-size: 13px; color: var(--ink);
  transition: border-color .14s ease, box-shadow .14s ease;
}
.textarea { height: auto; padding: 9px 12px; line-height: 1.6; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 3px var(--brand-50);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-5); }
.select { appearance: none; padding-right: 28px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7078' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9.5 12 15.5 18 9.5'/></svg>");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 13px; }

.search { position: relative; }
.search .input { padding-left: 33px; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--ink-4); pointer-events: none; }

/* 开关 */
.switch { position: relative; width: 42px; height: 24px; border-radius: 99px; background: var(--line-3); flex: none; transition: background .18s ease; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s cubic-bezier(.4,1.4,.5,1); }
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(18px); }

/* 复选 / 单选 */
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check i { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line-3); display: grid; place-items: center; flex: none; background: #fff; }
.check input { display: none; }
.check input:checked + i { background: var(--brand); border-color: var(--brand); }
.check i svg { width: 11px; height: 11px; color: #fff; opacity: 0; }
.check input:checked + i svg { opacity: 1; }

/* 分段控件 */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-3); border-radius: var(--r-pill); }
.seg button {
  height: 27px; padding: 0 14px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600; color: var(--ink-3);
  transition: all .16s ease;
}
.seg button.on { background: #fff; color: var(--brand); box-shadow: var(--sh-1); }

/* 标签页 */
.tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--line-2); overflow-x: auto; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  position: relative; padding: 11px 14px 12px; font-size: 13.5px; font-weight: 600;
  color: var(--ink-3); white-space: nowrap; transition: color .14s ease;
}
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--brand); }
.tabs button.on::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2.5px;
  border-radius: 3px; background: var(--brand-grad);
}

/* ==========================================================================
   4. 卡片 / 面板
   ========================================================================== */
.card {
  background: #fff; border-radius: var(--r-l); border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.card-pad { padding: 16px 18px; }
.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.card-head .ttl { font-size: 14px; font-weight: 800; letter-spacing: .3px; }
.card-head .sub { font-size: 11.5px; color: var(--ink-4); }
.card-head .sp { flex: 1 1 auto; }
.card-head .accent { width: 3px; height: 15px; border-radius: 2px; background: var(--brand-grad); flex: none; }

.panel { background: #fff; border-radius: var(--r-l); border: 1px solid var(--line); box-shadow: var(--sh-1); overflow: hidden; }

.sec-title { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.sec-title .bar { width: 3px; height: 16px; border-radius: 2px; background: var(--brand-grad); }
.sec-title h3 { font-size: 15px; font-weight: 800; letter-spacing: .3px; }
.sec-title .sub { font-size: 11.5px; color: var(--ink-4); }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
@media (max-width: 1400px) { .g6 { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 1180px) { .g5, .g4 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 980px)  { .g3, .g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 720px)  { .grid[class*="g"] { grid-template-columns: minmax(0,1fr); } }

/* ==========================================================================
   5. 统计卡
   ========================================================================== */
.stat {
  position: relative; overflow: hidden;
  padding: 15px 16px 16px; border-radius: var(--r-l);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.stat::after {
  content: ""; position: absolute; right: -28px; top: -28px;
  width: 82px; height: 82px; border-radius: 50%;
  background: var(--brand-50); opacity: .75;
}
.stat .k { position: relative; font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .3px; }
.stat .v { position: relative; margin-top: 8px; font-size: 26px; font-weight: 800; letter-spacing: -.6px; line-height: 1.05; }
.stat .v small { font-size: 12.5px; font-weight: 600; color: var(--ink-4); margin-left: 3px; letter-spacing: 0; }
.stat .d { position: relative; margin-top: 7px; font-size: 11.5px; color: var(--ink-4); display: flex; align-items: center; gap: 5px; }
.stat .d .up { color: var(--success); font-weight: 700; }
.stat .d .down { color: var(--danger); font-weight: 700; }
.stat.accent { background: var(--brand-grad-d); border-color: transparent; color: #fff; box-shadow: var(--brand-glow); }
.stat.accent .k, .stat.accent .d, .stat.accent .v small { color: rgba(255,255,255,.78); }
.stat.accent::after { background: rgba(255,255,255,.12); opacity: 1; }
.stat.gold { background: linear-gradient(135deg, #FDF6E8 0%, #F8EBD2 100%); border-color: #F0E1C4; }
.stat.gold::after { background: rgba(200,150,62,.12); }

/* ==========================================================================
   6. 表格
   ========================================================================== */
.tbl-wrap { width: 100%; overflow-x: auto; }
table.tbl { font-size: 12.5px; }
table.tbl th {
  padding: 10px 14px; text-align: left; white-space: nowrap;
  font-weight: 700; color: var(--ink-3); font-size: 11.5px; letter-spacing: .4px;
  background: var(--bg-2); border-bottom: 1px solid var(--line-2);
}
table.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
table.tbl tbody tr:hover td { background: var(--bg-2); }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl td.strong { color: var(--ink); font-weight: 700; }
table.tbl .num { font-family: var(--font-num); font-variant-numeric: tabular-nums; text-align: right; }

/* ==========================================================================
   7. 标签 / 徽标
   ========================================================================== */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 21px; padding: 0 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .2px; white-space: nowrap;
  background: var(--mute-bg); color: var(--ink-3);
}
.tag-red { background: var(--brand-50); color: var(--brand); }
.tag-blue { background: var(--info-bg); color: var(--info); }
.tag-green { background: var(--success-bg); color: var(--success); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag-danger { background: var(--danger-bg); color: var(--danger); }
.tag-violet { background: #F1ECFE; color: var(--violet); }
.tag-gold { background: var(--gold-50); color: var(--gold); }
.tag-solid-red { background: var(--brand); color: #fff; }

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-5); flex: none; }
.dot.red { background: var(--brand); } .dot.green { background: var(--success); }
.dot.warn { background: var(--warn); } .dot.blue { background: var(--info); }

.badge-num {
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px;
  background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 700;
  display: inline-grid; place-items: center;
}

/* 期次标记 */
.ph { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 5px; font-size: 11px; font-weight: 700; }
.ph-1 { background: var(--p1-bg); color: var(--p1); }
.ph-2 { background: var(--p2-bg); color: var(--p2); }
.ph-3 { background: var(--p3-bg); color: var(--p3); }
.ph-4 { background: var(--p4-bg); color: var(--p4); }
.ph-12 { background: var(--p4-bg); color: var(--p4); }

/* ==========================================================================
   8. 进度 / 占比
   ========================================================================== */
.bar { height: 6px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--brand-grad); transition: width .5s cubic-bezier(.3,1,.4,1); }
.bar.thin { height: 4px; }
.bar.blue > i { background: var(--blue-grad); }
.bar.green > i { background: linear-gradient(135deg,#34C4B0,#12A150); }
.bar.gold > i { background: var(--gold-grad); }

.ring { --p: 60; --sz: 64; --bw: 7; position: relative; width: var(--sz); height: var(--sz); flex: none; }
.ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--bg-3) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--bw)), #000 calc(100% - var(--bw) + 1px));
          mask: radial-gradient(farthest-side, transparent calc(100% - var(--bw)), #000 calc(100% - var(--bw) + 1px));
}
.ring > span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 800; }

/* ==========================================================================
   9. 时间轴
   ========================================================================== */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 10px; width: 2px; background: var(--line-2); border-radius: 2px; }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -22px; top: 4px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; border: 3px solid var(--line-3); box-sizing: border-box;
}
.tl-item.done::before { border-color: var(--success); background: var(--success); box-shadow: 0 0 0 3px var(--success-bg); }
.tl-item.now::before { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-100); animation: pulse 2s infinite; }
.tl-item.wait::before { border-color: var(--line-3); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px var(--brand-100); } 50% { box-shadow: 0 0 0 7px var(--brand-50); } }
.tl-item .tl-t { font-size: 13px; font-weight: 700; color: var(--ink); }
.tl-item .tl-s { margin-top: 3px; font-size: 11.5px; color: var(--ink-4); line-height: 1.6; }
.tl-item.dim .tl-t { color: var(--ink-4); font-weight: 600; }

/* ==========================================================================
   10. 列表行
   ========================================================================== */
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  transition: background .14s ease;
}
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--bg-2); }
.row.click { cursor: pointer; }
.row .ico {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center; background: var(--brand-50); color: var(--brand);
}
.row .ico svg { width: 17px; height: 17px; }
.row .ico.blue { background: var(--info-bg); color: var(--info); }
.row .ico.green { background: var(--success-bg); color: var(--success); }
.row .ico.gold { background: var(--gold-50); color: var(--gold); }
.row .ico.violet { background: #F1ECFE; color: var(--violet); }
.row .ico.teal { background: #E6F6F4; color: var(--teal); }
.row .tt { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.row .ss { margin-top: 3px; font-size: 11.5px; color: var(--ink-4); }

/* ==========================================================================
   11. 弹层 / 抽屉
   ========================================================================== */
.mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(16,18,24,.42);
  backdrop-filter: blur(2px); display: grid; place-items: center;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal {
  width: min(560px, calc(100vw - 40px)); max-height: 82vh; overflow: auto;
  background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-4);
  animation: popIn .22s cubic-bezier(.3,1.2,.4,1);
}
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; font-weight: 800; }
.modal-body { padding: 18px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--line); }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 200; width: min(560px, 100vw); background: #fff; box-shadow: var(--sh-4); display: flex; flex-direction: column; animation: slideIn .26s cubic-bezier(.3,1,.4,1); }
@keyframes slideIn { from { transform: translateX(34px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex: none; }
.drawer-body { flex: 1 1 auto; overflow: auto; padding: 18px 22px; }
.drawer-foot { flex: none; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); }

/* 轻提示 */
.toast-wrap { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: rgba(22,24,29,.9); color: #fff; font-size: 12.5px; font-weight: 600;
  box-shadow: var(--sh-3); animation: popIn .22s cubic-bezier(.3,1.2,.4,1);
}
.toast svg { width: 14px; height: 14px; }
.toast.ok svg { color: #4ADE80; }

/* ==========================================================================
   12. 空态 / 占位
   ========================================================================== */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 44px 20px; color: var(--ink-4); }
.empty .eico { width: 54px; height: 54px; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; color: var(--ink-5); }
.empty .eico svg { width: 24px; height: 24px; }
.empty .et { font-size: 13px; font-weight: 600; }

/* 骨架 */
.skel { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--bg-3) 25%, #E9EBEF 37%, var(--bg-3) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ==========================================================================
   13. 纯 CSS 图表
   ========================================================================== */
.chart-bars { display: flex; align-items: flex-end; gap: 12px; height: 172px; padding-top: 8px; }
.chart-bars .cb { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.chart-bars .cb .v { font-size: 10.5px; font-weight: 700; color: var(--ink-3); font-family: var(--font-num); flex: none; }
.chart-bars .cb .bwrap,
.chart-bars .cb .bars-pair {
  flex: 1 1 auto; width: 100%; min-height: 0;
  display: flex; align-items: flex-end; justify-content: center; gap: 4px;
}
.chart-bars .cb .b {
  width: 100%; max-width: 26px; border-radius: 6px 6px 3px 3px;
  background: var(--brand-grad); transition: height .6s cubic-bezier(.3,1,.4,1); min-height: 3px;
}
.chart-bars .cb .b.soft { background: linear-gradient(180deg, #F7B9BB 0%, #FFE3E4 100%); }
.chart-bars .cb .l { font-size: 11px; color: var(--ink-4); flex: none; }
.chart-bars.gold .cb .b { background: var(--gold-grad); }
.chart-bars.blue .cb .b { background: var(--blue-grad); }

.spark { display: flex; align-items: flex-end; gap: 3px; height: 42px; }
.spark i { flex: 1 1 0; border-radius: 2px 2px 0 0; background: var(--brand-200); }
.spark i.hi { background: var(--brand); }

.legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-3); }
.legend b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.legend b i { width: 9px; height: 9px; border-radius: 3px; background: var(--brand); }
.legend b i.g2 { background: var(--gold); }
.legend b i.g3 { background: var(--info); }
.legend b i.g4 { background: var(--ink-5); }

/* 横向进度排行 */
.rank { display: flex; flex-direction: column; gap: 13px; }
.rank .rk { display: flex; flex-direction: column; gap: 7px; }
.rank .rk .rh { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; }
.rank .rk .rh .n { font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.rank .rk .rh .m { font-family: var(--font-num); font-weight: 700; color: var(--ink); }
.rank .rk .rh .no { width: 17px; height: 17px; border-radius: 5px; background: var(--bg-3); color: var(--ink-4); font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }
.rank .rk:nth-child(1) .no { background: var(--brand); color: #fff; }
.rank .rk:nth-child(2) .no { background: var(--brand-200); color: var(--brand-700); }
.rank .rk:nth-child(3) .no { background: var(--brand-100); color: var(--brand-600); }

/* 瀑布 / 热力块 */
.heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.heat i { aspect-ratio: 1; border-radius: 4px; background: var(--brand-50); }
.heat i[data-l="1"] { background: var(--brand-100); }
.heat i[data-l="2"] { background: var(--brand-200); }
.heat i[data-l="3"] { background: var(--brand-400); }
.heat i[data-l="4"] { background: var(--brand); }

/* ==========================================================================
   14. 通用小件
   ========================================================================== */
.kv { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 12.5px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--ink-3); flex: none; }
.kv .v { color: var(--ink); font-weight: 600; text-align: right; }

.avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--brand-grad); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0; }
.avatar.sm { width: 30px; height: 30px; font-size: 11.5px; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.avatar.gray { background: var(--bg-3); color: var(--ink-3); }

.thumb { width: 44px; height: 44px; border-radius: 10px; flex: none; background: var(--bg-3); display: grid; place-items: center; color: var(--ink-4); }
.thumb svg { width: 20px; height: 20px; }

.divider { height: 1px; background: var(--line); margin: 14px 0; }
.divider.dashed { background: none; border-top: 1px dashed var(--line-2); }

.tipbox {
  display: flex; gap: 9px; padding: 11px 13px; border-radius: var(--r-m);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  font-size: 12px; color: var(--brand-700); line-height: 1.65;
}
.tipbox svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--brand); }
.tipbox.gray { background: var(--bg-2); border-color: var(--line-2); color: var(--ink-3); }
.tipbox.gray svg { color: var(--ink-4); }

.code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11.5px; background: var(--bg-3); padding: 2px 6px; border-radius: 5px; color: var(--ink-2);
}

/* 打印/截图 */
@media print { .appbar, .footnote { display: none; } }
