/* ============================================================
   JAM 设计系统
   主色取自旅行地图那张参考图：青绿 + 薄荷底 + 白色大圆角卡片。
   全站只有一个强调色；分类色仅用于图标底与标签，不参与结构。
   ============================================================ */
*,*::before,*::after{box-sizing:border-box}

:root{
  --bg:#EDF5F4; --surface:#FFFFFF; --surface-2:#F5FAF9; --sunk:#E3EFED;
  --ink:#162927; --ink-2:#3B534F; --muted:#6C8380; --faint:#9BAFAC;
  --line:#DBEAE7; --hair:#EAF3F1;
  --accent:#0E9D96; --accent-2:#0B7C77; --accent-wash:#DDF2F0; --accent-soft:#EDF8F7;
  --grad-1:#16A69D; --grad-2:#0B7A74;
  --on-accent:#FFFFFF;
  --ok:#2E9E6B;   --ok-wash:#E2F4EB;
  --warn:#DE8A38; --warn-wash:#FCEFE1;
  --crit:#DE5A5A; --crit-wash:#FBEAEA;
  --info:#4A7FE0; --info-wash:#E7F0FD;
  --purple:#8566DE;--purple-wash:#EFEAFD;
  --pink:#DC6396; --pink-wash:#FBEAF2;
  --r-card:16px; --r-tile:13px; --r-in:12px;
  --sh:0 1px 2px rgba(16,42,40,.04), 0 6px 16px rgba(16,42,40,.055);
  --sh-lift:0 2px 6px rgba(16,42,40,.07), 0 16px 34px rgba(16,42,40,.11);
  --sans:"IBM Plex Sans","PingFang SC","Hiragino Sans GB",-apple-system,"Segoe UI",sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,"PingFang SC",monospace;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#08110F; --surface:#111D1C; --surface-2:#172625; --sunk:#0B1817;
  --ink:#E4EFED; --ink-2:#BED1CE; --muted:#88A09D; --faint:#68807C;
  --line:#223533; --hair:#1B2C2A;
  --accent:#2FC4BA; --accent-2:#63D7CE; --accent-wash:#0F312E; --accent-soft:#0D2726;
  --grad-1:#0F625C; --grad-2:#08403D;
  --on-accent:#06201E;
  --ok:#4FBD86;   --ok-wash:#102C21;
  --warn:#E0A05E; --warn-wash:#2F2211;
  --crit:#EB7C7C; --crit-wash:#301717;
  --info:#7BA3F0; --info-wash:#151F35;
  --purple:#A88FEB;--purple-wash:#201A36;
  --pink:#EA8DB7; --pink-wash:#2F1926;
  --sh:0 1px 2px rgba(0,0,0,.3), 0 6px 16px rgba(0,0,0,.34);
  --sh-lift:0 2px 8px rgba(0,0,0,.4), 0 18px 38px rgba(0,0,0,.46);
}}
:root[data-theme="dark"]{
  --bg:#08110F; --surface:#111D1C; --surface-2:#172625; --sunk:#0B1817;
  --ink:#E4EFED; --ink-2:#BED1CE; --muted:#88A09D; --faint:#68807C;
  --line:#223533; --hair:#1B2C2A;
  --accent:#2FC4BA; --accent-2:#63D7CE; --accent-wash:#0F312E; --accent-soft:#0D2726;
  --grad-1:#0F625C; --grad-2:#08403D;
  --on-accent:#06201E;
  --ok:#4FBD86;   --ok-wash:#102C21;
  --warn:#E0A05E; --warn-wash:#2F2211;
  --crit:#EB7C7C; --crit-wash:#301717;
  --info:#7BA3F0; --info-wash:#151F35;
  --purple:#A88FEB;--purple-wash:#201A36;
  --pink:#EA8DB7; --pink-wash:#2F1926;
  --sh:0 1px 2px rgba(0,0,0,.3), 0 6px 16px rgba(0,0,0,.34);
  --sh-lift:0 2px 8px rgba(0,0,0,.4), 0 18px 38px rgba(0,0,0,.46);
}

html{height:100%;box-sizing:border-box;background:var(--bg)}
body{height:100%;margin:0;display:flex;flex-direction:column;min-height:0;
  padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);
  padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px);
  background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:15px;line-height:1.55;
  -webkit-text-size-adjust:100%;overscroll-behavior-y:none}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ---------- 顶栏 ---------- */
header{flex:0 0 auto;background:var(--surface);border-bottom:1px solid var(--hair)}
.hrow{display:flex;align-items:center;gap:9px;padding:9px 14px}
.ham{appearance:none;border:0;background:none;padding:5px;cursor:pointer;display:grid;gap:4px;flex:0 0 auto}
.ham i{display:block;width:19px;height:2px;border-radius:2px;background:var(--ink)}
.htitle{display:flex;align-items:center;gap:6px;font-size:16px;font-weight:650;white-space:nowrap;flex:0 0 auto}
.htitle .ic{color:var(--accent);display:grid;place-items:center}
.htitle .ic svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round}
.hsearch{flex:1;min-width:0;position:relative;display:flex;align-items:center}
.hsearch svg{position:absolute;left:11px;width:15px;height:15px;fill:none;stroke:var(--faint);
  stroke-width:2;stroke-linecap:round;pointer-events:none}
.hsearch input{width:100%;border:0;background:var(--surface-2);border-radius:999px;
  padding:8px 12px 8px 32px;font-size:13.5px;color:var(--ink);font-family:var(--sans)}
.hsearch input::placeholder{color:var(--faint)}
.bell{appearance:none;border:0;background:none;padding:4px;cursor:pointer;position:relative;flex:0 0 auto}
.bell svg{width:20px;height:20px;fill:none;stroke:var(--ink);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bell b{position:absolute;top:3px;right:3px;width:7px;height:7px;border-radius:50%;background:var(--crit);
  border:1.5px solid var(--surface)}

main{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:0 16px 92px;position:relative}
.wrap{max-width:620px;margin:0 auto}

/* ---------- 底部导航 ---------- */
nav{flex:0 0 auto;display:grid;grid-template-columns:repeat(4,1fr);background:var(--surface);
  border-top:1px solid var(--hair)}
nav button{appearance:none;background:none;border:0;padding:8px 2px 9px;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;gap:3px;color:var(--faint);font-family:var(--sans)}
nav button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round}
nav button .zh{font-size:11px;font-weight:600;letter-spacing:.02em}
nav button[aria-current="true"]{color:var(--accent)}
nav button[aria-current="true"] svg{stroke-width:2.1}

/* ---------- 抽屉 ---------- */
.scrim{position:fixed;inset:0;z-index:900;background:rgba(8,24,22,.42);opacity:0;
  pointer-events:none;transition:opacity .22s}   /* 关着的时候绝不能拦点击 */
.scrim.on{opacity:1;pointer-events:auto}
.drawer{position:fixed;top:0;bottom:0;left:0;z-index:901;width:min(82vw,330px);background:var(--surface);
  display:flex;flex-direction:column;transform:translateX(-100%);transition:transform .26s cubic-bezier(.32,.72,0,1);
  box-shadow:var(--sh-lift);overflow:hidden}
.drawer{pointer-events:none}
.drawer.on{transform:none;pointer-events:auto}
.dhead{background:linear-gradient(140deg,var(--grad-1),var(--grad-2));color:#fff;flex:0 0 auto;
  padding:calc(20px + env(safe-area-inset-top,0px)) 20px 16px}
.dhead .who{display:flex;align-items:center;gap:13px}
.dhead .av{width:54px;height:54px;border-radius:50%;background:rgba(255,255,255,.2);
  border:2px solid rgba(255,255,255,.4);display:grid;place-items:center;font-size:22px;font-weight:600;flex:0 0 auto}
.dhead h2{margin:0;font-size:19px;font-weight:650;color:#fff}
.dhead p{margin:2px 0 0;font-size:12.5px;color:rgba(255,255,255,.82)}
.dstats{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-top:15px;
  padding-top:14px;border-top:1px solid rgba(255,255,255,.22)}
.dstats b{display:block;font-family:var(--mono);font-size:20px;font-weight:600;font-variant-numeric:tabular-nums}
.dstats span{display:block;font-size:11px;color:rgba(255,255,255,.75);margin-top:1px}
.dbody{flex:1 1 auto;overflow-y:auto;padding:6px 0 16px}
.dgroup{font-size:11.5px;color:var(--faint);padding:14px 20px 5px;font-weight:550}
.ditem{display:flex;align-items:center;gap:13px;padding:11px 20px;cursor:pointer;
  border-left:3px solid transparent;color:var(--ink);font-size:15.5px;font-weight:500;
  background:none;border-top:0;border-right:0;border-bottom:0;width:100%;text-align:left;font-family:var(--sans)}
.ditem svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto;color:var(--ink-2)}
.ditem .go{margin-left:auto;color:var(--faint);font-size:15px}
.ditem[aria-current="true"]{background:var(--accent-soft);border-left-color:var(--accent);
  color:var(--accent);font-weight:650}
.ditem[aria-current="true"] svg{color:var(--accent)}
.dfoot{flex:0 0 auto;border-top:1px solid var(--hair);padding:4px 0 calc(6px + env(safe-area-inset-bottom,0px))}

/* ---------- 排版 ---------- */
h1{font-size:25px;line-height:1.24;font-weight:700;letter-spacing:-.015em;margin:16px 0 2px;text-wrap:balance}
h2{font-size:16px;font-weight:650;margin:0}
h3{font-size:14px;font-weight:600;margin:0}
p{margin:0 0 8px}
.lede{color:var(--muted);font-size:13.5px;margin:0}
.mono,.num{font-family:var(--mono);font-variant-numeric:tabular-nums}
small{font-size:12px;color:var(--muted)}
a{color:var(--accent);text-underline-offset:2px}

.sechead{display:flex;align-items:center;gap:8px;margin:22px 0 11px}
.sechead .si{color:var(--accent);display:grid;place-items:center;flex:0 0 auto}
.sechead .si svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round}
.sechead h2{flex:1;min-width:0}
.sechead .more{font-size:13px;color:var(--faint);cursor:pointer;background:none;border:0;
  font-family:var(--sans);white-space:nowrap}

/* ---------- 卡片 ---------- */
.card{background:var(--surface);border-radius:var(--r-card);padding:14px 15px;box-shadow:var(--sh)}
.card+.card{margin-top:10px}
.soft{background:var(--accent-soft);box-shadow:none}

/* 顶部问候大卡 */
.hero{background:linear-gradient(140deg,var(--grad-1),var(--grad-2));border-radius:20px;
  padding:19px 19px 17px;color:#fff;position:relative;overflow:hidden;box-shadow:var(--sh)}
.hero::after{content:"";position:absolute;right:-46px;top:-56px;width:180px;height:180px;
  border-radius:50%;background:rgba(255,255,255,.07)}
.hero::before{content:"";position:absolute;right:16px;bottom:-72px;width:132px;height:132px;
  border-radius:50%;background:rgba(255,255,255,.05)}
.hero h1{margin:0;font-size:24px;color:#fff;position:relative}
.hero .date{display:flex;align-items:center;gap:6px;font-size:13px;color:rgba(255,255,255,.85);
  margin-top:5px;position:relative}
.hero .date svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.hero .quote{margin:11px 0 0;font-size:13.5px;color:rgba(255,255,255,.92);position:relative}
.hero .hstats{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;margin-top:15px;
  background:rgba(255,255,255,.13);border-radius:13px;padding:11px 4px;position:relative}
.hero .hstats div{text-align:center;border-right:1px solid rgba(255,255,255,.17);padding:0 2px}
.hero .hstats div:last-child{border-right:0}
.hero .hstats b{display:block;font-family:var(--mono);font-size:19px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.15}
.hero .hstats b i{font-style:normal;font-size:12px;font-weight:500;opacity:.8}
.hero .hstats span{display:block;font-size:10.5px;color:rgba(255,255,255,.78);margin-top:3px;white-space:nowrap}

/* 指标小卡 2x2 */
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media(max-width:340px){.grid2{grid-template-columns:1fr}}
.stat{background:var(--surface);border-radius:var(--r-card);padding:13px 14px 14px;box-shadow:var(--sh)}
.stat .it{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;margin-bottom:9px}
.stat .it svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}
.stat .n{font-family:var(--mono);font-size:25px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums}
.stat .n i{font-style:normal;font-size:13px;font-weight:500;color:var(--muted);margin-left:1px}
.stat .l{font-size:13px;color:var(--muted);margin-top:4px}
.bar{height:5px;border-radius:3px;background:var(--sunk);overflow:hidden;margin-top:10px}
.bar i{display:block;height:100%;border-radius:3px;background:var(--accent);transition:width .3s}
.t-ok .it{background:var(--ok-wash);color:var(--ok)} .t-ok .bar i{background:var(--ok)}
.t-warn .it{background:var(--warn-wash);color:var(--warn)} .t-warn .bar i{background:var(--warn)}
.t-acc .it{background:var(--accent-wash);color:var(--accent)} .t-acc .bar i{background:var(--accent)}
.t-info .it{background:var(--info-wash);color:var(--info)} .t-info .bar i{background:var(--info)}
.t-purple .it{background:var(--purple-wash);color:var(--purple)} .t-purple .bar i{background:var(--purple)}
.t-pink .it{background:var(--pink-wash);color:var(--pink)} .t-pink .bar i{background:var(--pink)}
.t-crit .it{background:var(--crit-wash);color:var(--crit)} .t-crit .bar i{background:var(--crit)}

/* 四格统计条 */
.quad{display:grid;grid-template-columns:repeat(4,1fr);background:var(--surface);
  border-radius:var(--r-card);padding:14px 4px;box-shadow:var(--sh)}
.quad div{text-align:center;border-right:1px solid var(--hair)}
.quad div:last-child{border-right:0}
.quad b{display:block;font-family:var(--mono);font-size:21px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.1}
.quad span{display:block;font-size:11.5px;color:var(--muted);margin-top:3px}
.quad b.acc{color:var(--accent)} .quad b.warn{color:var(--warn)} .quad b.ok{color:var(--ok)}
.quad b{background:none!important}

/* ---------- 任务卡 ---------- */
.task{background:var(--surface);border-radius:var(--r-card);padding:13px 14px;box-shadow:var(--sh);
  display:flex;gap:12px;align-items:flex-start;margin-bottom:10px}
.tick{appearance:none;flex:0 0 auto;width:23px;height:23px;margin-top:1px;border:2px solid var(--line);
  border-radius:50%;background:var(--surface);cursor:pointer;display:grid;place-items:center;
  color:transparent;padding:0;transition:background .15s,border-color .15s}
.tick svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.tick[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.task .body{flex:1;min-width:0}
.task .ttl{font-size:15.5px;font-weight:600;line-height:1.4}
.task.done .ttl{text-decoration:line-through;color:var(--faint);text-decoration-thickness:1.5px}
.task .meta{display:flex;flex-wrap:wrap;gap:6px 9px;align-items:center;margin-top:6px}
.task .tnote{font-size:12.5px;color:var(--muted);margin-top:7px;line-height:1.55}
.task .acts{display:flex;gap:2px;flex:0 0 auto;align-items:center}
.iact{appearance:none;border:0;background:none;padding:6px;cursor:pointer;color:var(--faint);
  display:grid;place-items:center;border-radius:8px}
.iact svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.iact:active{background:var(--sunk);color:var(--ink)}
.iact.del:active{color:var(--crit)}
.tmeta{display:inline-flex;align-items:center;gap:4px;font-family:var(--mono);font-size:11.5px;color:var(--muted)}
.tmeta svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

/* ---------- 标签 ---------- */
.chip{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:600;
  padding:3px 9px;border-radius:999px;background:var(--surface-2);color:var(--muted);white-space:nowrap}
.chip svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.c-acc{background:var(--accent-wash);color:var(--accent)}
.c-ok{background:var(--ok-wash);color:var(--ok)}
.c-warn{background:var(--warn-wash);color:var(--warn)}
.c-crit{background:var(--crit-wash);color:var(--crit)}
.c-info{background:var(--info-wash);color:var(--info)}
.c-purple{background:var(--purple-wash);color:var(--purple)}
.c-pink{background:var(--pink-wash);color:var(--pink)}
.c-plain{background:var(--surface-2);color:var(--muted)}

/* ---------- 按钮 ---------- */
.btn{appearance:none;font-family:var(--sans);font-size:13.5px;font-weight:600;border-radius:999px;
  padding:9px 16px;cursor:pointer;border:1px solid var(--line);background:var(--surface);color:var(--ink);
  white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none}
.btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.btn:active{background:var(--sunk)}
.btn.pri{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.btn.pri:active{filter:brightness(.93)}
.btn.ghost{background:transparent;border-color:var(--accent);color:var(--accent)}
.btn.sm{font-size:12.5px;padding:6px 12px}
.btn.wide{width:100%}
.btn[disabled]{opacity:.45;pointer-events:none}
.btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.linkbtn{appearance:none;background:none;border:0;color:var(--accent);font-weight:650;font-size:13.5px;
  font-family:var(--sans);cursor:pointer;display:inline-flex;align-items:center;gap:5px;padding:0}
.linkbtn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* 胶囊筛选 */
.pills{display:flex;gap:8px;overflow-x:auto;padding:2px 0 4px;margin:0 -16px;
  padding-left:16px;padding-right:16px;scrollbar-width:none}
.pills::-webkit-scrollbar{display:none}
.pills button{appearance:none;border:1px solid var(--line);background:var(--surface);color:var(--muted);
  font-family:var(--sans);font-size:13.5px;font-weight:550;padding:7px 16px;border-radius:999px;
  cursor:pointer;white-space:nowrap;flex:0 0 auto}
.pills button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);
  color:var(--on-accent);font-weight:650}

/* 分段控件 */
.seg{display:flex;background:var(--surface-2);border-radius:999px;padding:3px;gap:2px}
.seg button{appearance:none;flex:1;border:0;background:none;font-family:var(--sans);font-size:13px;
  font-weight:600;color:var(--muted);padding:7px 6px;cursor:pointer;border-radius:999px;white-space:nowrap}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--accent);box-shadow:var(--sh)}

/* 快捷入口 */
.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.tile{background:var(--surface);border-radius:var(--r-card);padding:13px 4px 11px;box-shadow:var(--sh);
  border:0;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:8px;font-family:var(--sans)}
.tile .it{width:42px;height:42px;border-radius:12px;display:grid;place-items:center}
.tile .it svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tile span{font-size:12px;color:var(--ink-2);font-weight:550}
.tiles.six{grid-template-columns:repeat(4,1fr)}

/* ---------- 热点排行 ---------- */
.rank{background:var(--surface);border-radius:var(--r-card);padding:14px;box-shadow:var(--sh);margin-bottom:10px}
.rank .top{display:flex;gap:12px}
.rank .no{width:62px;height:62px;border-radius:11px;display:grid;place-items:center;flex:0 0 auto;
  font-family:var(--mono);font-size:20px;font-weight:600;color:rgba(255,255,255,.72)}
.rank .no.n1{background:var(--accent-wash);color:var(--accent)}
.rank .no.n2{background:var(--warn-wash);color:var(--warn)}
.rank .no.n3{background:var(--info-wash);color:var(--info)}
.rank .no.nx{background:var(--surface-2);color:var(--faint)}
.rank h3{font-size:15.5px;line-height:1.42;font-weight:650}
.rank h3 a{color:var(--ink);text-decoration:none}
.rank .sum{font-size:13px;color:var(--muted);margin-top:5px;line-height:1.5}
.rank .foot{display:flex;gap:8px;align-items:flex-start;margin-top:11px}
.rank .foot .m{flex:1;min-width:0;display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center}
.rank .foot .a{flex:0 0 auto;display:flex;gap:1px;margin-top:-5px}
.rank .src{font-size:12px;color:var(--faint)}
.rank.read{opacity:.62}
.rank.read h3 a{color:var(--faint)}

/* ---------- 圆环 / 柱状图 ---------- */
.ringrow{display:flex;gap:18px;align-items:center}
.ring{position:relative;width:118px;height:118px;flex:0 0 auto}
.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring .tx{position:absolute;inset:0;display:grid;place-items:center;text-align:center}
.ring .tx b{display:block;font-family:var(--mono);font-size:27px;font-weight:600;line-height:1}
.ring .tx span{display:block;font-size:11.5px;color:var(--muted);margin-top:3px}
.kv{display:grid;grid-template-columns:auto 1fr;gap:9px 14px;font-size:14px;margin:0;flex:1;min-width:0}
.kv dt{color:var(--muted);font-size:13.5px}
.kv dd{margin:0;text-align:right;font-family:var(--mono);font-weight:600;font-variant-numeric:tabular-nums}
.bars{display:flex;align-items:flex-end;gap:7px;height:110px;margin-top:14px}
.bars div{flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;height:100%;justify-content:flex-end}
.bars i{display:block;width:100%;border-radius:6px 6px 3px 3px;
  background:linear-gradient(180deg,var(--accent),var(--accent-wash));min-height:3px}
.bars b{font-family:var(--mono);font-size:10.5px;font-weight:600;color:var(--muted)}
.bars s{font-size:10.5px;color:var(--faint);text-decoration:none}

/* ---------- 表单 ---------- */
input[type=text],input[type=date],input[type=time],input[type=number],textarea,select{
  font-family:var(--sans);font-size:15px;color:var(--ink);background:var(--surface-2);
  border:1px solid transparent;border-radius:var(--r-in);padding:11px 13px;width:100%;min-width:0}
textarea{resize:vertical;line-height:1.5}
input:focus-visible,textarea:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{
  outline:2px solid var(--accent);outline-offset:1px}
.field{display:flex;gap:8px;align-items:flex-start}
.flabel{font-size:13px;color:var(--muted);font-weight:550;margin:13px 0 6px;display:block}
.flabel:first-child{margin-top:0}
.empty{color:var(--faint);font-size:13.5px;padding:26px 0;text-align:center}
.note{font-size:12.5px;color:var(--muted);background:var(--accent-soft);border-radius:var(--r-in);
  padding:11px 13px;margin-top:11px;line-height:1.6}
.note b{color:var(--accent);font-weight:650}
hr.sp{border:0;border-top:1px solid var(--hair);margin:14px 0}

/* 麦克风 */
.mic{appearance:none;flex:0 0 auto;width:44px;height:44px;border-radius:50%;border:0;
  background:var(--accent-wash);cursor:pointer;display:grid;place-items:center;padding:0}
.mic svg{width:19px;height:19px;fill:var(--accent)}
.mic[data-live="1"]{background:var(--accent);animation:pulse 1.1s ease-in-out infinite}
.mic[data-live="1"] svg{fill:var(--on-accent)}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.55}}

/* FAB */
.fab{position:fixed;right:18px;bottom:calc(74px + env(safe-area-inset-bottom,0px));z-index:40;
  width:56px;height:56px;border-radius:50%;border:0;background:var(--accent);color:var(--on-accent);
  box-shadow:var(--sh-lift);cursor:pointer;display:grid;place-items:center}
.fab svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}

/* 底部弹层 */
.sheet{position:fixed;inset:0;z-index:950;background:rgba(8,24,22,.45);display:flex;
  align-items:flex-end;justify-content:center}
.sheet .card2{background:var(--surface);width:100%;max-width:620px;max-height:88%;overflow-y:auto;
  border-radius:22px 22px 0 0;padding:6px 18px calc(22px + env(safe-area-inset-bottom,0px));
  box-shadow:var(--sh-lift);animation:up .24s cubic-bezier(.32,.72,0,1)}
@keyframes up{from{transform:translateY(22px)}}
.shead{display:flex;align-items:center;gap:10px;padding:12px 0 14px;position:sticky;top:0;
  background:var(--surface);z-index:2}
.shead h2{flex:1;font-size:18px}
.sclose{appearance:none;border:0;background:none;padding:5px;cursor:pointer;color:var(--faint)}
.sclose svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.grabber{width:38px;height:4px;border-radius:2px;background:var(--line);margin:8px auto 0}

.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(86px + env(safe-area-inset-bottom,0px));
  z-index:980;max-width:calc(100% - 32px);background:var(--ink);color:var(--bg);font-size:13.5px;
  padding:10px 16px;border-radius:999px;box-shadow:var(--sh-lift);text-align:center}

/* ---------- 地图 ---------- */
#jmap{width:100%;height:360px;border-radius:var(--r-card);background:var(--surface-2);z-index:0;overflow:hidden}
#jmap.tall{height:min(76vh,620px)}
.mapwrap{position:relative;box-shadow:var(--sh);border-radius:var(--r-card)}
.leaflet-container{font-family:var(--sans);background:var(--surface-2);border-radius:var(--r-card)}
.mapcard,.mapbar{position:absolute;left:10px;right:10px;z-index:500;background:var(--surface);
  border-radius:15px;box-shadow:var(--sh-lift)}
.mapcard{top:10px;padding:9px 13px;text-align:center;pointer-events:none;transition:opacity .18s,transform .18s}
.mapwrap.popped .mapcard{opacity:0;transform:translateY(-8px)}
.mapcard .t{font-size:15px;font-weight:650;color:var(--accent)}
.mapcard .s{font-size:11.5px;color:var(--muted);margin-top:2px}
.mapcard .s b{color:var(--ink);font-family:var(--mono);font-weight:600}
.mapbar{bottom:10px;padding:8px 11px;display:flex;align-items:center;gap:10px}
.mapbar .lab{font-family:var(--mono);font-size:11px;color:var(--accent);white-space:nowrap;min-width:36px;font-weight:600}
.mapbar input[type=range]{flex:1;min-width:40px;width:auto;padding:0;border:0;background:none;
  accent-color:var(--accent);height:20px}
.mapbar input[type=range]:disabled{opacity:.4}
.leaflet-bottom.leaflet-right{bottom:56px}
.leaflet-control-attribution{font-size:9.5px!important;background:rgba(255,255,255,.76)!important;color:#5a6b69!important;
  border-radius:6px 0 0 0}
:root[data-theme="dark"] .leaflet-control-attribution{background:rgba(10,20,19,.76)!important;color:#8aa09d!important}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .leaflet-control-attribution{
  background:rgba(10,20,19,.76)!important;color:#8aa09d!important}}
.leaflet-control-attribution a{color:inherit!important}
.jpinwrap{background:none!important;border:0!important}
.jpin{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-size:20px;line-height:1;
  background:var(--surface);border:3px solid var(--ring,var(--accent));box-shadow:0 2px 9px rgba(0,0,0,.28)}
.leaflet-popup-content-wrapper{background:var(--surface);color:var(--ink);border-radius:15px;box-shadow:var(--sh-lift)}
.leaflet-popup-tip{background:var(--surface)}
.leaflet-popup-content{margin:11px 13px;font-size:13px;line-height:1.5;
  max-height:min(290px,58vh);overflow-y:auto}   /* 图 + 文字别超出地图高度 */
.leaflet-popup-close-button{color:var(--faint)!important}
.jpop img{width:100%;aspect-ratio:16/10;max-height:142px;object-fit:cover;border-radius:10px;
  margin-bottom:9px;display:block;background:var(--surface-2)}
.jpop .hd{font-size:15px;font-weight:650;display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.jpop .mt{font-family:var(--mono);font-size:11px;color:var(--accent);margin-top:4px;font-weight:600}
.jpop .dt{font-family:var(--mono);font-size:10.5px;color:var(--faint);margin-top:1px}
.jpop .st{margin:8px 0 0;font-size:13px;line-height:1.55;color:var(--ink-2)}
.jpop .st.dim{color:var(--faint);font-size:12px;margin-top:3px}
.jpop .ac{display:flex;flex-wrap:wrap;gap:11px;margin-top:10px;padding-top:9px;border-top:1px solid var(--hair)}
.jpop .ac a,.jpop .ac button{font-size:12.5px;font-weight:650;color:var(--accent);background:none;
  border:0;padding:0;cursor:pointer;font-family:var(--sans);text-decoration:none}
.jbadge{width:40px;height:40px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;
  font-size:19px;line-height:1;background:var(--surface-2);border:2.5px solid var(--ring,var(--accent))}
.maprow{display:flex;gap:8px;align-items:center;margin:11px 0}

/* 类别选择器 / 照片 */
.kbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(60px,1fr));gap:7px;margin-top:8px}
.kb{appearance:none;background:var(--surface-2);border:1.5px solid transparent;border-radius:12px;
  padding:8px 2px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px}
.kb span{font-size:18px;line-height:1}
.kb i{font-style:normal;font-size:10.5px;color:var(--muted);line-height:1.2}
.kb[aria-pressed="true"]{border-color:var(--ring);background:var(--surface)}
.kb[aria-pressed="true"] i{color:var(--ink);font-weight:650}
.thumbs{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 2px}
.th{position:relative;width:78px;height:78px;border-radius:12px;overflow:hidden;background:var(--surface-2)}
.th img{width:100%;height:100%;object-fit:cover;display:block}
.th button{position:absolute;top:3px;right:3px;width:21px;height:21px;border-radius:50%;border:0;
  background:rgba(0,0,0,.62);color:#fff;font-size:13px;line-height:1;cursor:pointer;padding:0}

/* 书脊 / 列表行 */
.listrow{display:flex;gap:12px;align-items:flex-start;background:var(--surface);border-radius:var(--r-card);
  padding:13px 14px;box-shadow:var(--sh);margin-bottom:10px}
.listrow .body{flex:1;min-width:0}
.listrow .ttl{font-size:15px;font-weight:600;line-height:1.4}
.listrow .meta{display:flex;flex-wrap:wrap;gap:6px 9px;align-items:center;margin-top:5px}
.listrow .sub{font-size:12.5px;color:var(--muted);margin-top:5px;line-height:1.5}
.quote{border-left:3px solid var(--accent);padding:3px 0 3px 15px;margin:0;font-size:16px;
  line-height:1.65;color:var(--ink);font-weight:500}
.dot{width:8px;height:8px;border-radius:50%;background:var(--faint);flex:0 0 auto}
.dot.on{background:var(--ok)} .dot.err{background:var(--crit)}
