:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --ink: #1a1a1a;
  --ink-2: #5f5e5b;
  --ink-3: #9b9a97;
  --line: #ecebe9;
  --fill: #f1f1ef;
  --blue: #2383e2;
  --blue-deep: #0b6bcb;
  --danger: #c4554d;
  --danger-soft: #ffe2dd;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif; font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
#app { max-width: 880px; margin: 0 auto; min-height: 100vh; padding-bottom: 88px; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; }
.brand { font-weight: 700; font-size: 18px; }
.nav-desk { display: none; gap: 18px; color: var(--ink-2); font-size: 14px; }
.nav-desk a.on, .tab-bar a.on { color: var(--blue); font-weight: 600; }
.main { padding: 0 16px 24px; }
.page-title { font-size: 22px; font-weight: 600; line-height: 1.25; }
.page-desc { margin-top: 6px; color: var(--ink-2); font-size: 14px; }
.surface { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.search { height: 44px; padding: 0 14px; display: flex; align-items: center; color: var(--ink-3); margin-bottom: 12px; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; }
.spot, .card { position: relative; overflow: hidden; padding: 14px 16px; margin-bottom: 12px; }
.wm { position: absolute; right: 10px; bottom: 22px; font-size: 40px; font-weight: 800; line-height: 1; transform: rotate(-16deg); transform-origin: right center; pointer-events: none; opacity: 0.18; white-space: nowrap; }
.wm.A { color: #0b6bcb; opacity: 0.24; }
.wm.B { color: #c17a2e; opacity: 0.24; }
.wm.C { color: #448361; opacity: 0.22; }
.wm.N { color: #9b9a97; opacity: 0.14; font-size: 32px; }
.kicker { color: var(--blue); font-size: 13px; font-weight: 500; }
.spot-title, .name { font-size: 22px; font-weight: 600; line-height: 1.25; }
.name { font-size: 18px; }
.card-top { display: flex; align-items: flex-start; gap: 10px; }
.card-top .name { flex: 1; min-width: 0; }
.place { flex-shrink: 0; max-width: 42%; padding-top: 3px; font-size: 12px; color: var(--ink-3); text-align: right; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta, .spot-line { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.cd { margin-top: 10px; font-variant-numeric: tabular-nums; font-weight: 600; }
.cd.urgent { color: var(--blue-deep); }
.cd.passed { color: var(--ink-3); }
.nums { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; }
.num { flex: 1; min-width: 0; }
.num + .num { padding-left: 14px; border-left: 1px solid var(--line); }
.n { display: block; font-weight: 600; }
.n.est { color: var(--blue-deep); }
.l { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.l.est { color: var(--blue); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 32px; padding: 0 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.chip.on { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.sec { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 10px; font-weight: 600; }
.sec a, .more { color: var(--ink-3); font-size: 13px; font-weight: 500; }
.empty { color: var(--ink-3); font-size: 14px; padding: 12px 0; }
.foot-row { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-3); }
.toolbar { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 13px; margin-bottom: 8px; }
.sort { cursor: pointer; color: var(--blue); }
.facts { padding: 4px 16px; margin: 12px 0; }
.fact { display: flex; gap: 12px; padding: 10px 0; }
.fact + .fact { border-top: 1px solid var(--line); }
.fact-k { width: 36px; color: var(--ink-3); flex-shrink: 0; font-size: 14px; }
.fact-v { flex: 1; font-size: 14px; }
.remain { position: relative; overflow: hidden; padding: 14px 16px; margin-top: 12px; }
.actions { margin: 8px 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; display: flex; overflow: hidden; }
.act { flex: 1; padding: 12px 0; text-align: center; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.act + .act { border-left: 1px solid var(--line); }
.act.on { color: var(--blue); font-weight: 600; }
.circle { margin: 12px 0; padding: 16px; display: flex; align-items: center; gap: 16px; }
.circle-main { flex: 1; min-width: 0; }
.circle-title { font-size: 18px; font-weight: 600; margin-top: 4px; }
.circle-join { margin-top: 12px; height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; cursor: pointer; }
.circle-join.in { background: var(--fill); color: var(--ink-2); }
.circle-qrbox { width: 108px; height: 108px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; flex-shrink: 0; }
.circle-qr { width: 100%; height: 100%; display: block; }
.circle-board { padding: 4px 16px 14px; margin-bottom: 12px; }
.cmsg { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cmsg:last-of-type { border-bottom: 0; }
.cmsg-n { font-size: 12px; color: var(--ink-3); }
.cmsg-t { margin-top: 2px; font-size: 14px; }
.circle-composer { display: flex; gap: 8px; margin-top: 10px; }
.circle-composer input { flex: 1; height: 40px; border: 0; border-radius: 8px; background: var(--fill); padding: 0 12px; }
.circle-send { height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; cursor: pointer; }
.sheet { overflow: hidden; margin-top: 12px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; border: 0; background: transparent; padding: 12px 0; color: var(--ink-2); cursor: pointer; }
.tabs button.on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--blue); }
.block { padding: 12px 16px 20px; }
.tl, .ed { background: var(--fill); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; display: flex; gap: 10px; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-top: 8px; flex-shrink: 0; }
.tl-title { font-weight: 600; }
.tl-time { font-size: 13px; color: var(--ink-2); }
.ed { align-items: baseline; }
.ed-y { width: 52px; font-weight: 600; }
.ed-rate { min-width: 120px; white-space: nowrap; font-weight: 600; }
.ed-rate.dim { font-weight: 500; color: var(--ink-3); }
.ed-where { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.body-box, .tip { background: var(--fill); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; line-height: 1.7; }
.sec-title { margin: 16px 0 8px; font-weight: 600; }
.tip-t { font-weight: 600; }
.tip-b { margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.risk { background: var(--danger-soft); border-radius: 10px; padding: 12px 14px 12px 22px; margin-bottom: 8px; position: relative; }
.risk::before { content: ''; position: absolute; left: 10px; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }
.btn { display: block; width: 100%; height: 44px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 500; cursor: pointer; }
.btn[disabled] { opacity: 0.6; }
.gate { margin-top: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.mine-head { background: linear-gradient(160deg, #0b6bcb, #1a1a1a); color: #fff; border-radius: 16px; padding: 20px 16px 16px; margin-bottom: 12px; overflow: hidden; }
.user-row { display: flex; align-items: center; gap: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: #d7f56a; overflow: hidden; flex-shrink: 0; }
.avatar-img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #d7f56a; border: 2px solid rgba(255,255,255,.95); }
.id-card { display: flex; align-items: center; gap: 14px; padding: 18px 16px; margin: 8px 0 16px; }
.id-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #d7f56a; }
.fav-stats { display: flex; align-items: center; margin: 12px 0; padding: 14px 0; }
.st { flex: 1; text-align: center; }
.st-n { font-size: 22px; font-weight: 600; }
.st-l { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.st-split { width: 1px; height: 28px; background: var(--line); }
.empty-box { padding: 28px 20px; text-align: center; margin-top: 8px; }
.empty-title { font-weight: 600; font-size: 18px; }
.btn.dark { background: #1a1a1a; }
.kicker { color: var(--blue); font-size: 13px; font-weight: 500; }
.tag { display: inline-block; margin-left: 8px; font-size: 11px; padding: 1px 6px; border-radius: 8px; background: rgba(255,255,255,.16); }
.assets { display: flex; margin-top: 16px; }
.asset { flex: 1; text-align: center; }
.asset-n { font-size: 20px; font-weight: 600; }
.asset-l { font-size: 12px; opacity: .8; }
.mine-stack { display: flex; flex-direction: column; gap: 14px; }
.vip { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #1a1a1a; color: #e8d5a3; border-radius: 12px; margin: 0; }
.vip-cta { background: rgba(255,255,255,.12); padding: 6px 12px; border-radius: 16px; font-size: 13px; }
.panel { background: #fff; border-radius: 14px; padding: 8px 8px 12px; margin: 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g { padding: 12px; cursor: pointer; }
.g-t { display: block; font-weight: 600; }
.g-s { display: block; font-size: 12px; color: var(--ink-3); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.col { padding: 14px; }
.col.pro { background: #1a1a1a; color: #fff; border-radius: 12px; }
.col-h { font-weight: 600; }
.col-p { color: var(--blue); margin: 4px 0 8px; }
.col.pro .col-p { color: #e8d5a3; }
.li { font-size: 13px; margin: 6px 0; color: var(--ink-2); }
.col.pro .li { color: rgba(255,255,255,.78); }
.plan { padding: 14px; margin-bottom: 10px; cursor: pointer; }
.plan.on { border-color: var(--blue); }
.plan-top { display: flex; justify-content: space-between; }
.price { font-size: 22px; font-weight: 600; margin: 4px 0; }
.plan-d, .plan-d2, .fine { font-size: 13px; color: var(--ink-2); }
.save { color: var(--blue); font-size: 12px; }
.fields { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.f { height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; cursor: pointer; }
.f.on { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.nick { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 12px 0; }
.switch { display: flex; justify-content: space-between; align-items: center; padding: 14px; margin-bottom: 10px; }
.tab-bar { position: fixed; left: 0; right: 0; bottom: 0; height: 56px; background: #fff; border-top: 1px solid var(--line); display: flex; padding-bottom: env(safe-area-inset-bottom); }
.tab-bar a { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-3); }
.toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); background: rgba(26,26,26,.88); color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 13px; z-index: 9; }
.why { margin: 16px 0; color: var(--ink-2); font-size: 14px; }
.head-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.hn { font-size: 22px; font-weight: 600; }
.hn.est { color: var(--blue-deep); }
.hl { font-size: 12px; color: var(--ink-3); text-align: right; }
.hl.est { color: var(--blue); }
.rate-panel { padding: 16px; margin: 12px 0; }
.rate-panel.est { background: #e7f3f8; border-color: #d3e5ef; }
.rate-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rate-kicker { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.rate-panel.est .rate-kicker { color: var(--blue-deep); }
.rate-year { font-size: 12px; color: var(--ink-3); }
.rate-num { margin-top: 6px; font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; }
.rate-panel.est .rate-num { color: var(--blue-deep); }
.rate-note { margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.share-poster-btn { margin: 0; font-weight: 600; }
.share-board-hidden {
  position: fixed;
  left: 0;
  top: 0;
  width: 750px;
  height: 1000px;
  pointer-events: none;
  opacity: 0;
  z-index: -1;
}
.poster-wrap { max-width: 420px; margin: 0 auto; }
.poster-canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(16,42,76,.12);
}
.poster-bar { display: flex; gap: 10px; margin: 14px 0 8px; }
.poster-bar .btn { flex: 1; width: auto; }
.btn.ghost { background: #fff; color: #1a1a1a; border: 1px solid var(--line); }
.help-card { padding: 16px; margin: 14px 0; }
.help-k { font-size: 16px; font-weight: 600; line-height: 1.4; }
.help-card p { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.65; }
.help-steps { margin: 12px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.help-go { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.help-go a {
  display: inline-flex;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: #1a1a1a;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  align-items: center;
}
.help-go a.ghost {
  background: #fff;
  color: #1a1a1a;
  border: 1px solid var(--line);
}
@media (min-width: 768px) {
  .nav-desk { display: flex; }
  .tab-bar { display: none; }
  #app { padding-bottom: 24px; }
}
