/* 江苏酒文化陈列馆 · 研究智能体 — 样式
 * 设计取向：茶酒类高饱和撞色（酒红 / 鎏金）+ 极简 + 移动优先
 * 硬约束：全端自适应，390px 视口无横向溢出，输入字号 ≥16px（防 iOS 聚焦缩放）
 */

:root {
  --brand: #7A1F2B;        /* 酒红 */
  --brand-d: #5A1520;
  --brand-l: #A83246;
  --gold: #C89B3C;         /* 鎏金 */
  --gold-l: #E8C87A;
  --ink: #1F1B18;
  --ink-2: #4A423B;
  --ink-3: #7C7168;
  --line: rgba(31, 27, 24, .12);
  --line-2: rgba(31, 27, 24, .22);
  --bg: #F7F4EF;
  --card: #FFFFFF;
  --bg-2: #EFE9E0;
  --ok: #2E7D52;
  --err: #B3261E;
  --r: 12px;
  --r-sm: 8px;
  --nav-h: 58px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body { min-height: 100vh; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 10px); }
body[data-view="archive"] { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 10px); }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-d) 100%);
  color: #fff;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
  display: flex; align-items: center; gap: 10px;
}
.topbar h1 { font-size: 15px; font-weight: 500; margin: 0; flex: 1; letter-spacing: .5px; }
.topbar .tb-badge {
  font-size: 11px; padding: 3px 8px; border-radius: 20px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22);
}

/* ---------- 视图容器 ---------- */
#view {
  max-width: 720px; margin: 0 auto; padding: 14px 14px 20px;
}
.spacer { height: 8px; }

/* ---------- 首页 Hero ---------- */
.hero {
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-d) 62%, #3E0E16 100%);
  color: #fff; border-radius: var(--r);
  padding: 22px 18px; margin-bottom: 14px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(200, 155, 60, .16);
}
.hero-kicker { font-size: 11.5px; color: var(--gold-l); margin: 0 0 6px; letter-spacing: 1.5px; }
.hero-title { font-size: 22px; font-weight: 500; margin: 0 0 8px; line-height: 1.35; }
.hero-sub { font-size: 13px; color: rgba(255, 255, 255, .82); margin: 0; line-height: 1.7; }

/* ---------- 指标卡 ---------- */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.metric {
  background: var(--card); border: .5px solid var(--line);
  border-radius: var(--r-sm); padding: 12px 10px; text-align: center;
}
.metric-label { font-size: 11.5px; color: var(--ink-3); margin: 0 0 4px; }
.metric-num { font-size: 24px; font-weight: 500; color: var(--brand); margin: 0; line-height: 1.1; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border: .5px solid var(--line);
  border-radius: var(--r); padding: 16px; margin-bottom: 12px;
}
.card-title { font-size: 15px; font-weight: 500; margin: 0 0 12px; color: var(--ink); }
.card-title::before {
  content: ''; display: inline-block; width: 3px; height: 14px;
  background: var(--gold); vertical-align: -2px; margin-right: 8px; border-radius: 2px;
}

/* ---------- 操作按钮组 ---------- */
.act-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.act {
  background: var(--bg-2); border: .5px solid transparent; border-radius: var(--r-sm);
  padding: 13px 12px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px;
  font-family: inherit; transition: transform .12s ease, border-color .12s ease;
}
.act:active { transform: scale(.97); border-color: var(--gold); }
.act-t { font-size: 14px; font-weight: 500; color: var(--ink); }
.act-d { font-size: 11.5px; color: var(--ink-3); line-height: 1.45; }
.act-ic {
  width: 26px; height: 26px; border-radius: 7px; margin-bottom: 6px;
  background: var(--brand); position: relative;
}
.act-ic::after {
  content: ''; position: absolute; inset: 0;
  background: var(--gold); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.ic-plus::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.ic-play::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8 5l11 7-11 7z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8 5l11 7-11 7z'/%3E%3C/svg%3E"); }
.ic-pen::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M4 20h4L20 8l-4-4L4 16z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M4 20h4L20 8l-4-4L4 16z'/%3E%3C/svg%3E"); }
.ic-list::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E"); }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: 12px; padding: 4px 10px; border-radius: 20px;
  background: var(--bg-2); color: var(--ink-2); border: .5px solid var(--line);
}
.chip b { font-weight: 500; color: var(--brand); }
.chip-hot { background: rgba(200, 155, 60, .18); border-color: var(--gold); color: #7A5A12; }

/* ---------- 合规提示 ---------- */
.warn-card { border-color: rgba(179, 38, 30, .3); background: #FFF8F7; }
.warn-text { font-size: 13px; color: #7A2B26; margin: 0; line-height: 1.75; }
.warn-text strong { color: var(--err); }

/* ---------- 页头 ---------- */
.page-head { margin: 4px 0 14px; }
.page-head h2 { font-size: 19px; font-weight: 500; margin: 0 0 4px; color: var(--ink); }
.page-sub { font-size: 13px; color: var(--ink-3); margin: 0; line-height: 1.6; }
.guide-head { position: relative; }
.back-btn {
  background: none; border: none; color: var(--brand); font-size: 13px;
  padding: 8px 0; margin-bottom: 6px; cursor: pointer; font-family: inherit;
  min-height: 36px; /* 移动端点击目标 */
}

/* ---------- 表单 ---------- */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 5px; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input[type="text"], input[type="search"], input[type="number"], input:not([type]), select, textarea {
  width: 100%; font-family: inherit; font-size: 16px; /* ≥16px 防 iOS 缩放 */
  color: var(--ink); background: var(--bg);
  border: .5px solid var(--line-2); border-radius: var(--r-sm);
  padding: 10px 11px; outline: none; -webkit-appearance: none; appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C7168' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
  padding-right: 32px;
}
textarea { resize: vertical; line-height: 1.7; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); background: #fff; }
.search { margin-bottom: 10px; }
.sel { font-size: 14px; }

/* ---------- 按钮 ---------- */
.row-btns { display: flex; gap: 10px; margin-top: 12px; }
.row-btns.tight { margin-top: 8px; }
.row-btns.tight .sel { flex: 1; min-width: 0; }
.nav-row .btn { flex: 1; }
.btn {
  flex: 1; padding: 11px 14px; font-family: inherit; font-size: 14px;
  border-radius: var(--r-sm); border: .5px solid var(--line-2);
  background: var(--bg-2); color: var(--ink); cursor: pointer;
  transition: transform .12s ease; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-danger { background: #fff; color: var(--err); border-color: rgba(179, 38, 30, .35); }

/* ---------- 上传区 ---------- */
.up-zone {
  border: 1.5px dashed var(--line-2); border-radius: var(--r-sm);
  padding: 26px 16px; text-align: center; cursor: pointer;
  background: var(--bg); transition: border-color .15s ease, background .15s ease;
  min-height: 36px;
}
.up-zone:active { border-color: var(--gold); background: #FFFDF7; }
.up-icon {
  width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--brand); position: relative;
}
.up-icon::after {
  content: ''; position: absolute; inset: 0;
  background: #fff; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M23 19a2 2 0 01-2 2H3a2 2 0 01-2-2V8a2 2 0 012-2h4l2-3h6l2 3h4a2 2 0 012 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M23 19a2 2 0 01-2 2H3a2 2 0 01-2-2V8a2 2 0 012-2h4l2-3h6l2 3h4a2 2 0 012 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E");
}
.up-t { font-size: 14px; font-weight: 500; margin: 0 0 4px; }
.up-d { font-size: 12px; color: var(--ink-3); margin: 0; line-height: 1.6; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumb { position: relative; width: 62px; height: 62px; border-radius: var(--r-sm); overflow: hidden; border: .5px solid var(--line-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-del {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px;
  border-radius: 50%; border: none; background: rgba(0, 0, 0, .62); color: #fff;
  font-size: 13px; line-height: 1; cursor: pointer; padding: 0;
}
.hint { font-size: 12px; color: var(--ink-3); margin: 10px 0 0; line-height: 1.65; }

/* ---------- 草稿 ---------- */
.draft-photo { border-radius: var(--r-sm); overflow: hidden; margin-bottom: 14px; border: .5px solid var(--line); }
.draft-photo img { width: 100%; display: block; max-height: 260px; object-fit: cover; }
.ocr-box { background: var(--bg); border: .5px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 12px; }
.ocr-t { font-size: 11.5px; color: var(--ink-3); margin: 0 0 5px; }
.ocr-x { font-size: 13px; margin: 0; word-break: break-all; line-height: 1.7; color: var(--ink-2); }

/* ---------- 藏品卡片网格 ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.card-item {
  background: var(--card); border: .5px solid var(--line); border-radius: var(--r-sm);
  overflow: hidden; cursor: pointer; transition: transform .12s ease;
}
.card-item:active { transform: scale(.98); }
.ci-photo { aspect-ratio: 3 / 4; background: var(--bg-2); overflow: hidden; }
.ci-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-photo-blank { display: flex; align-items: center; justify-content: center; }
.ci-photo-blank span { font-size: 11.5px; color: var(--ink-3); }
.ci-body { padding: 9px 10px 11px; }
.ci-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.ci-t { font-size: 13.5px; font-weight: 500; margin: 0; line-height: 1.4; }
.ci-m { font-size: 11.5px; color: var(--ink-3); margin: 4px 0 0; line-height: 1.5; }
.ci-m2 { font-size: 11px; color: var(--ink-3); margin: 2px 0 0; opacity: .8; }
.ci-dt { font-size: 10.5px; color: var(--ink-3); margin: 6px 0 0; opacity: .65; }
.tag { font-size: 10.5px; padding: 2px 6px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; }
.tag-common { background: var(--bg-2); color: var(--ink-3); }
.tag-rare { background: rgba(200, 155, 60, .2); color: #7A5A12; }
.tag-unique { background: var(--brand); color: #fff; }

/* ---------- 键值表 ---------- */
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: .5px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.kv-i { background: var(--card); padding: 9px 11px; }
.kv-k { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 2px; }
.kv-v { display: block; font-size: 13.5px; color: var(--ink); word-break: break-word; }
.note-box { background: var(--bg); border-left: 3px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 10px 12px; margin-top: 12px; }
.note-box.src { border-left-color: var(--brand); }
.nb-t { font-size: 11.5px; color: var(--ink-3); margin: 0 0 5px; }
.nb-x { font-size: 13px; margin: 0; line-height: 1.75; color: var(--ink-2); }

/* ---------- 导览 ---------- */
.tour-list { display: flex; flex-direction: column; gap: 10px; }
.tour-card {
  background: var(--card); border: .5px solid var(--line); border-radius: var(--r);
  padding: 15px; display: flex; align-items: center; gap: 12px;
  cursor: pointer; text-align: left; font-family: inherit; width: 100%;
  transition: transform .12s ease;
}
.tour-card:active { transform: scale(.98); }
.tc-ic {
  width: 38px; height: 38px; border-radius: 50%; background: var(--brand);
  flex-shrink: 0; position: relative;
}
.tc-ic::after {
  content: ''; position: absolute; inset: 0; background: #fff;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M8 5l11 7-11 7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M8 5l11 7-11 7z'/%3E%3C/svg%3E");
}
.tc-body { flex: 1; min-width: 0; }
.tc-t { display: block; font-size: 15px; font-weight: 500; color: var(--ink); }
.tc-s { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; line-height: 1.5; }
.tc-n { font-size: 12px; color: var(--gold); flex-shrink: 0; }

.progress { height: 4px; background: var(--bg-2); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.pg-bar { height: 100%; background: linear-gradient(90deg, var(--brand), var(--gold)); border-radius: 3px; transition: width .3s ease; }
.pg-num { font-size: 11.5px; color: var(--ink-3); text-align: right; margin-bottom: 12px; }
.stop-text { font-size: 14.5px; line-height: 1.95; color: var(--ink); margin: 0 0 14px; text-align: justify; }
.stop-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.mark-box { background: var(--bg); border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 12px; }
.mark-x { font-size: 13px; margin: 0 0 3px; color: var(--ink); font-weight: 500; }
.mark-x:last-child { margin-bottom: 0; }

/* ---------- 内容出口 ---------- */
.content-pre {
  background: var(--bg); border: .5px solid var(--line); border-radius: var(--r-sm);
  padding: 12px; font-size: 13px; line-height: 1.8; white-space: pre-wrap;
  word-break: break-word; font-family: inherit; margin: 0 0 4px; color: var(--ink-2);
  max-height: 460px; overflow-y: auto;
}
.loading { text-align: center; padding: 26px 0; }
.spin {
  display: inline-block; width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid var(--bg-2); border-top-color: var(--brand);
  animation: sp .8s linear infinite;
}
@keyframes sp { to { transform: rotate(360deg); } }
.load-t { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }

/* ---------- 空态 ---------- */
.empty { text-align: center; padding: 40px 20px; }
.empty-ic {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--bg-2); position: relative;
}
.empty-ic::after {
  content: ''; position: absolute; inset: 0; background: var(--ink-3);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 7l9-4 9 4v10l-9 4-9-4z'/%3E%3Cpath d='M3 7l9 4 9-4M12 11v10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 7l9-4 9 4v10l-9 4-9-4z'/%3E%3Cpath d='M3 7l9 4 9-4M12 11v10'/%3E%3C/svg%3E");
}
.empty-t { font-size: 15px; font-weight: 500; margin: 0 0 6px; }
.empty-d { font-size: 13px; color: var(--ink-3); margin: 0 0 16px; }
.empty .btn { max-width: 220px; margin: 0 auto; }

/* ---------- 底部导航 ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: .5px solid var(--line);
  display: flex; padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav button {
  flex: 1; background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 8px 2px 7px; display: flex; flex-direction: column; align-items: center;
  gap: 3px; min-height: var(--nav-h); justify-content: center;
  color: var(--ink-3); transition: color .15s ease;
}
.nav button.on { color: var(--brand); }
.nav-ic {
  width: 20px; height: 20px; position: relative; background: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.nv-home .nav-ic { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-7 9 7v10a2 2 0 01-2 2H5a2 2 0 01-2-2z'/%3E%3Cpath d='M9 22V12h6v10'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-7 9 7v10a2 2 0 01-2 2H5a2 2 0 01-2-2z'/%3E%3Cpath d='M9 22V12h6v10'/%3E%3C/svg%3E"); }
.nv-archive .nav-ic { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M23 19a2 2 0 01-2 2H3a2 2 0 01-2-2V8a2 2 0 012-2h4l2-3h6l2 3h4a2 2 0 012 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M23 19a2 2 0 01-2 2H3a2 2 0 01-2-2V8a2 2 0 012-2h4l2-3h6l2 3h4a2 2 0 012 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E"); }
.nv-lib .nav-ic { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E"); }
.nv-guide .nav-ic { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 2a3 3 0 00-3 3v1a3 3 0 006 0V5a3 3 0 00-3-3z'/%3E%3Cpath d='M19 10v2a7 7 0 01-14 0v-2M12 19v3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 2a3 3 0 00-3 3v1a3 3 0 006 0V5a3 3 0 00-3-3z'/%3E%3Cpath d='M19 10v2a7 7 0 01-14 0v-2M12 19v3'/%3E%3C/svg%3E"); }
.nv-content .nav-ic { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 013 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 013 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E"); }
.nav-l { font-size: 10.5px; line-height: 1; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 16px);
  transform: translateX(-50%) translateY(14px);
  background: rgba(31, 27, 24, .94); color: #fff;
  padding: 10px 16px; border-radius: 22px; font-size: 13px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  max-width: calc(100vw - 32px); text-align: center; z-index: 60;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: rgba(46, 125, 82, .95); }
.toast.err { background: rgba(179, 38, 30, .95); }

/* ---------- 响应式 ---------- */
@media (min-width: 560px) {
  #view { padding: 18px 18px 24px; }
  .metrics { gap: 12px; }
  .act-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-title { font-size: 25px; }
}
@media (max-width: 400px) {
  .metrics { gap: 7px; }
  .metric { padding: 10px 6px; }
  .metric-num { font-size: 21px; }
  .metric-label { font-size: 10.5px; }
  .field-2 { grid-template-columns: 1fr; gap: 0; }
  .kv { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
  .nav-l { font-size: 10px; }
  .act-t { font-size: 13px; }
  .act-d { font-size: 11px; }
  .hero-title { font-size: 20px; }
  .stop-text { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
