/* 潍集通 · 样式表
   设计：宣纸底 · 朱砂印 · 鲁中集市的烟火气
*/
:root {
  --paper: #F6F0E4;
  --paper-2: #FBF6EC;
  --card: #FFFDF7;
  --ink: #2A211B;
  --ink-2: #6B5B4D;
  --ink-3: #9C8B78;
  --line: #E8DCCB;
  --line-2: #D9C9B2;
  --red: #C03A2B;
  --red-2: #9E2B1E;
  --red-soft: #F6E2DC;
  --gold: #C98A2E;
  --gold-soft: #F6E8CE;
  --green: #4F7A5F;
  --green-soft: #E2EBDD;
  --blue: #3F6E8C;
  --shadow-sm: 0 1px 2px rgba(74, 52, 30, .05), 0 2px 8px rgba(74, 52, 30, .04);
  --shadow-md: 0 6px 18px rgba(74, 52, 30, .09), 0 2px 4px rgba(74, 52, 30, .05);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: #E6DCCB;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .7), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(194, 160, 120, .25), transparent 60%);
  min-height: 100dvh;
  overflow: hidden;
}
button { font-family: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input, select { font-family: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--red-2); }
svg { width: 100%; height: 100%; display: block; }

#app {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  background-image:
    radial-gradient(rgba(160, 128, 88, .07) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 4px;
  overflow: hidden;
}

@media (min-width: 620px) and (min-height: 700px) {
  body { display: flex; align-items: center; justify-content: center; padding: 26px; }
  #app {
    height: calc(100dvh - 52px);
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(60, 40, 20, .22), 0 4px 14px rgba(60, 40, 20, .1);
    border: 1px solid rgba(255, 255, 255, .6);
  }
}

/* ---------- 顶栏 ---------- */
.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(246, 240, 228, .98), rgba(246, 240, 228, .86));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 201, 178, .5);
  position: relative;
  z-index: 20;
}
#app[data-route="map"] .topbar,
#app[data-route="detail"] .topbar,
#app[data-route="about"] .topbar { display: none; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-seal {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(160deg, #CE4635, var(--red-2));
  color: #FFF6EA; font-family: var(--serif); font-size: 23px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(158, 43, 30, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  transform: rotate(-3deg);
  padding-bottom: 2px;
}
.brand-text h1 {
  font-family: var(--serif);
  font-size: 18px; letter-spacing: .14em; line-height: 1.15; font-weight: 700;
}
.brand-text p { font-size: 10px; color: var(--ink-3); letter-spacing: .12em; margin-top: 2px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 11px 0 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 11.5px; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.icon-pill svg { width: 15px; height: 15px; color: var(--red); }
.icon-pill.is-ok { color: var(--green); border-color: #C7D8C7; background: #F1F6EE; }
.icon-pill.is-ok svg { color: var(--green); }
.icon-pill.is-loading svg { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- 视图容器 ---------- */
.view {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.view::-webkit-scrollbar { display: none; }
.view.no-pad { padding: 0; }
.page { padding: 14px 14px 26px; animation: rise .26s cubic-bezier(.2, .7, .3, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  border-radius: var(--r-lg);
  padding: 16px 16px 15px;
  background:
    linear-gradient(150deg, #F5E4C6 0%, #F0D9B4 52%, #ECD2A9 100%);
  overflow: hidden;
  border: 1px solid rgba(201, 138, 46, .22);
  box-shadow: var(--shadow-sm);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(160, 110, 40, .07) 0 1px, transparent 1px 9px);
  pointer-events: none;
}
.hero-glow {
  position: absolute; width: 190px; height: 190px; right: -50px; top: -70px;
  background: radial-gradient(circle, rgba(255, 246, 226, .95), rgba(255, 246, 226, 0) 68%);
  border-radius: 50%;
}
.hero-head { display: flex; align-items: center; gap: 8px; position: relative; }
.hero-date { font-size: 11.5px; letter-spacing: .05em; color: #7C5A2E; }
.hero-lunar {
  font-size: 10.5px; color: #8A6A3C; padding: 2px 7px; border-radius: 999px;
  border: 1px solid rgba(140, 100, 40, .25); background: rgba(255, 250, 238, .55);
}
.hero-title {
  position: relative; margin-top: 9px;
  font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .04em;
  color: #3A2A16;
}
.hero-title em {
  font-style: normal; font-size: 34px; color: var(--red-2);
  margin: 0 2px; text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}
.hero-sub {
  position: relative; margin-top: 5px; font-size: 11.5px; color: #84653A;
  max-width: 78%; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-actions { display: flex; gap: 8px; margin-top: 13px; position: relative; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn svg { width: 15px; height: 15px; }
.btn:active { transform: scale(.96); }
.btn-solid { background: var(--ink); color: #FBF3E6; box-shadow: 0 4px 12px rgba(42, 33, 27, .22); }
.btn-plain { background: rgba(255, 252, 243, .72); color: #6A4A22; border: 1px solid rgba(140, 100, 40, .22); }
.hero-stamp {
  position: absolute; right: 15px; bottom: 15px;
  width: 54px; height: 54px; border-radius: 8px;
  border: 2px solid rgba(176, 52, 38, .55);
  color: rgba(176, 52, 38, .62);
  font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.05;
  display: flex; align-items: center; justify-content: center; text-align: center;
  transform: rotate(-7deg);
  letter-spacing: .06em;
  box-shadow: inset 0 0 0 3px rgba(176, 52, 38, .12);
  pointer-events: none;
}

/* ---------- 搜索 ---------- */
.searchbar {
  display: flex; align-items: center; gap: 8px;
  height: 44px; margin-top: 13px; padding: 0 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.searchbar:focus-within { border-color: var(--line-2); box-shadow: 0 0 0 3px rgba(201, 138, 46, .12); }
.search-icon { width: 17px; height: 17px; color: var(--ink-3); flex: 0 0 auto; }
.searchbar input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-size: 13.5px; color: var(--ink); height: 100%;
}
.searchbar input::placeholder { color: #B4A28C; }
.search-clear { width: 20px; height: 20px; color: var(--ink-3); flex: 0 0 auto; }

/* ---------- 筛选 ---------- */
.chips {
  display: flex; gap: 6px; overflow-x: auto; padding: 12px 1px 2px;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 20px), transparent 100%);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; height: 30px; padding: 0 11.5px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 253, 247, .7);
  font-size: 12px; color: var(--ink-2); letter-spacing: .02em;
  transition: all .18s ease;
}
.chip.is-on {
  background: var(--c, var(--ink)); color: #FFF7EA; border-color: var(--c, var(--ink));
  box-shadow: 0 3px 8px rgba(74, 52, 30, .18);
  font-weight: 600;
}
.chip--sm { height: 28px; padding: 0 11px; font-size: 11.5px; background: rgba(255, 253, 247, .94); }
.chips--float { padding: 0; }
.filterbar { display: flex; align-items: center; gap: 7px; margin-top: 10px; }
.toggle {
  height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 253, 247, .7); font-size: 11.5px; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 5px;
}
.toggle::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  border: 1.3px solid var(--ink-3); background: transparent;
}
.toggle.is-on { background: var(--green-soft); border-color: #C3D5C1; color: #3C6047; font-weight: 600; }
.toggle.is-on::before { background: var(--green); border-color: var(--green); }
.mini-select {
  height: 28px; padding: 0 22px 0 10px; border-radius: 999px;
  border: 1px solid var(--line); background-color: rgba(255, 253, 247, .7);
  font-size: 11.5px; color: var(--ink-2); outline: none;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239C8B78' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 7px center; background-size: 11px;
}
.result-count { margin-left: auto; font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }

/* ---------- 集市卡片 ---------- */
.list { display: flex; flex-direction: column; gap: 10px; margin-top: 11px; }
.list--tight { margin-top: 4px; gap: 8px; }
.mcard {
  position: relative;
  display: grid; grid-template-columns: 66px 1fr; gap: 11px;
  padding: 11px; border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
  overflow: hidden;
}
.mcard:active { transform: scale(.985); box-shadow: 0 1px 3px rgba(74, 52, 30, .08); }
.mcard.is-open { border-color: #D8CDB7; }
.mcard::after {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--dc, var(--gold)); opacity: .55;
}
.mcard-visual {
  position: relative; border-radius: 12px; overflow: hidden;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, .8), transparent 62%),
    linear-gradient(160deg, color-mix(in srgb, var(--dc) 14%, #F7EEDD), color-mix(in srgb, var(--cc) 34%, #EFE1C9));
  display: flex; align-items: center; justify-content: center;
  min-height: 78px;
  border: 1px solid rgba(255, 255, 255, .55);
}
.mcard-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .35) 0 1px, transparent 1px 7px);
}
.mcard-emoji { font-size: 30px; filter: drop-shadow(0 2px 3px rgba(80, 50, 20, .18)); position: relative; }
.mcard-district {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2px 0 3px; text-align: center;
  font-size: 9px; letter-spacing: .08em; color: #FFF8EC;
  background: color-mix(in srgb, var(--dc) 78%, transparent);
  backdrop-filter: blur(2px);
}
.mcard-body { min-width: 0; display: flex; flex-direction: column; }
.mcard-top { display: flex; align-items: center; gap: 6px; }
.mcard-top h3 {
  font-family: var(--serif); font-size: 16px; font-weight: 700; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mcard-fav { width: 13px; height: 13px; color: var(--gold); flex: 0 0 auto; }
.status {
  flex: 0 0 auto; margin-left: auto;
  font-size: 9.5px; padding: 2px 6px; border-radius: 5px; line-height: 1.35;
  letter-spacing: .02em; white-space: nowrap;
}
.status--open { color: #3C6047; background: var(--green-soft); font-weight: 600; }
.status--soon { color: #8A6420; background: var(--gold-soft); }
.status--closed { color: #8A7A68; background: #F0E9DD; }
.status--rest { color: #8A7A68; background: #F0E9DD; }
.mcard-meta {
  margin-top: 3px; font-size: 10.5px; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mcard-tags { display: flex; gap: 4px; margin-top: 6px; overflow: hidden; }
.tag {
  font-size: 9.5px; padding: 1.5px 6px; border-radius: 4px;
  background: #F3EADB; color: #7B6244; white-space: nowrap;
}
.tag--ghost { background: transparent; border: 1px dashed var(--line-2); color: var(--ink-3); }
.mcard-foot {
  display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 7px;
  font-size: 10px; color: var(--ink-3);
}
.dist { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.dist svg { width: 11px; height: 11px; }
.crowd-inline { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; color: var(--ink-2); }
.crowd-inline i { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.teaser {
  margin-left: auto; font-size: 9.5px; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.teaser b { color: var(--red-2); font-weight: 700; font-size: 10.5px; }
.teaser small { color: var(--ink-3); }
.teaser span + span::before { content: "·"; margin: 0 3px; color: var(--line-2); }

.empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 42px 18px; color: var(--ink-3); font-size: 12.5px; text-align: center;
}
.empty svg { width: 34px; height: 34px; opacity: .45; }
.empty .hint { font-size: 11px; color: #B4A28C; }
.empty--sm { padding: 26px 14px; gap: 6px; }
.empty .btn { margin-top: 4px; }
.page-note {
  margin-top: 18px; text-align: center; font-size: 10px; line-height: 1.7;
  color: #A9977F; letter-spacing: .02em;
}

/* ---------- 底部导航 ---------- */
.tabbar {
  flex: 0 0 auto; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
  background: rgba(252, 247, 238, .95);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(217, 201, 178, .6);
  position: relative; z-index: 30;
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 0 2px; color: #A08E79; border-radius: 12px;
  transition: color .18s ease;
}
.tab-ic {
  width: 40px; height: 24px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.tab-ic svg { width: 20px; height: 20px; }
.tab span:last-child { font-size: 9.5px; letter-spacing: .04em; }
.tab.is-active { color: var(--red-2); font-weight: 600; }
.tab.is-active .tab-ic { background: var(--red-soft); }
.tab:active .tab-ic { transform: scale(.94); }

/* ---------- 地图 ---------- */
.map-page { position: relative; width: 100%; height: 100%; background: #E9E0D0; }
.map-canvas {
  position: absolute; inset: 0;
  background: #E9E0D0;
  font-family: var(--sans);
}
.map-canvas .leaflet-tile { filter: saturate(.82) sepia(.12) contrast(.94) brightness(1.04); }
.map-canvas .leaflet-bottom.leaflet-right { bottom: 246px; right: 12px; }
.map-canvas .leaflet-bottom.leaflet-left { bottom: 164px; left: 0; }
.map-canvas .leaflet-control-zoom {
  border: 1px solid var(--line) !important; border-radius: 11px !important;
  overflow: hidden; box-shadow: var(--shadow-md) !important; margin: 0 !important;
}
.map-canvas .leaflet-control-zoom a {
  width: 34px; height: 34px; line-height: 34px; font-size: 17px;
  color: var(--ink-2); background: var(--card); border-bottom-color: var(--line);
}
.map-canvas .leaflet-control-zoom a:hover { background: #FBF5E9; color: var(--red-2); }
.map-canvas .leaflet-control-attribution {
  font-size: 9px; background: rgba(255, 252, 245, .8); color: #8C7A64;
  padding: 2px 6px; border-radius: 8px 0 0 0;
}
.map-canvas .leaflet-control-attribution a { color: #8C7A64; }
.map-float { position: absolute; left: 0; right: 0; z-index: 500; pointer-events: none; }
.map-float--top { top: 10px; padding: 0 12px; }
.map-float--top .chips { pointer-events: auto; padding: 0; }
.chips--float { display: flex; gap: 6px; overflow-x: auto; }
.map-locate {
  position: absolute; right: 12px; bottom: 196px; z-index: 500;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); box-shadow: var(--shadow-md);
}
.map-locate svg { width: 20px; height: 20px; }
.map-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 500;
  padding: 11px 0 12px;
  background: linear-gradient(180deg, rgba(246, 240, 228, 0), rgba(246, 240, 228, .92) 22%, var(--paper) 55%);
  border-radius: 22px 22px 0 0;
}
.map-sheet-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 16px 8px; font-size: 11px; color: var(--ink-3);
}
.map-sheet-head b { font-family: var(--serif); font-size: 14px; color: var(--ink); letter-spacing: .04em; }
.map-cards {
  display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 4px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.map-cards::-webkit-scrollbar { display: none; }
.map-card {
  flex: 0 0 auto; width: 236px; scroll-snap-align: start;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 14px; text-align: left;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.map-card-emoji { font-size: 22px; }
.map-card-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.map-card-main b { font-size: 12.5px; white-space: nowrap; }
.map-card-main small, .map-card-side small { font-size: 9px; color: var(--ink-3); white-space: nowrap; }
.map-card-side { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.map-card-side b { font-size: 11px; color: var(--red-2); }
.mk {
  display: flex; align-items: center; gap: 4px;
  width: max-content;
}
.mk-dot {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 6px;
  transform: rotate(-45deg);
  background: var(--dc, var(--red));
  border: 2px solid #FFFBF3;
  box-shadow: 0 3px 8px rgba(50, 30, 10, .3);
  display: flex; align-items: center; justify-content: center;
}
.mk-dot span { transform: rotate(45deg); font-size: 14px; line-height: 1; }
.mk-name {
  display: none; padding: 2px 7px; border-radius: 999px;
  background: rgba(255, 252, 245, .95); border: 1px solid var(--line-2);
  font-size: 10px; color: var(--ink); white-space: nowrap;
  box-shadow: 0 2px 6px rgba(50, 30, 10, .12);
}
.map-canvas.zoomed .mk-name { display: block; }
.map-canvas.far .mk-dot { width: 21px; height: 21px; border-width: 1.5px; box-shadow: 0 2px 5px rgba(50, 30, 10, .28); }
.map-canvas.far .mk-dot span { display: none; }
.map-canvas.far .mk-name { display: none; }
.map-canvas.far .mk--closed .mk-dot { width: 16px; height: 16px; opacity: .55; }
.mk--closed .mk-dot { background: #B2A28C; opacity: .82; }
.mk--closed .mk-name { color: var(--ink-3); }
.leaflet-popup-content-wrapper {
  border-radius: 14px; background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.leaflet-popup-content { margin: 10px 12px; font-size: 11px; line-height: 1.6; }
.leaflet-popup-tip { background: var(--card); }
.pop-name { font-family: var(--serif); font-size: 14px; font-weight: 700; }
.pop-meta { color: var(--ink-2); font-size: 10px; margin-top: 2px; }
.pop-actions { display: flex; gap: 6px; margin-top: 7px; }
.pop-btn {
  flex: 1; height: 28px; border-radius: 8px;
  background: var(--ink); color: #FBF3E6; font-size: 11px; font-weight: 600;
}
.pop-btn--ghost { background: #F3EADB; color: var(--ink); border: 1px solid var(--line); }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink-3); }

/* ---------- 日历 ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px 10px; }
.cal-title { text-align: center; }
.cal-title h2 { font-family: var(--serif); font-size: 19px; letter-spacing: .06em; }
.cal-title p { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; letter-spacing: .06em; }
.cal-nav {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-2); padding: 7px;
}
.cal-nav svg { transform: rotate(0); }
.cal-nav--next svg { transform: rotate(180deg); }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 0 0 6px; }
.cal-week span { text-align: center; font-size: 10px; color: var(--ink-3); letter-spacing: .1em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell {
  position: relative; aspect-ratio: 1 / 1.12;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid transparent;
  background: rgba(255, 253, 247, .55); color: var(--ink);
}
.cal-cell.has-market { background: #FBF1DF; border-color: #EFE0C6; }
.cal-cell.is-other { opacity: .3; }
.cal-cell.is-today { border-color: var(--red); }
.cal-cell.is-selected { background: var(--ink); border-color: var(--ink); color: #FBF3E6; }
.cal-cell.is-selected .cal-l { color: rgba(251, 243, 230, .7); }
.cal-d { font-family: var(--serif); font-size: 15px; line-height: 1.1; }
.cal-l { font-size: 8px; color: var(--ink-3); margin-top: 1px; letter-spacing: .02em; }
.cal-dot {
  position: absolute; top: 3px; right: 3px;
  min-width: 14px; height: 12px; padding: 0 3px; border-radius: 6px;
  background: var(--red); color: #FFF6EA; font-size: 7.5px; font-style: normal;
  display: flex; align-items: center; justify-content: center;
}
.cal-cell.is-selected .cal-dot { background: var(--gold); }
.cal-legend {
  display: flex; gap: 14px; justify-content: center; padding: 10px 0 4px;
  font-size: 9.5px; color: var(--ink-3);
}
.cal-legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.legend-ring { width: 8px; height: 8px; border-radius: 50%; border: 1.3px solid var(--red); }
.cal-day { margin-top: 8px; }
.cal-day-head { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 2px 4px; }
.cal-day-head h3 { font-family: var(--serif); font-size: 15px; letter-spacing: .02em; }
.cal-day-head span { font-size: 10.5px; color: var(--ink-3); }

/* ---------- 行情 ---------- */
.page-head { padding: 4px 2px 12px; }
.page-head h2 { font-family: var(--serif); font-size: 21px; letter-spacing: .05em; }
.page-head p { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pcard {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: 1px 8px; padding: 10px 11px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.pcard-icon {
  grid-row: span 2; width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  background: color-mix(in srgb, var(--c) 14%, #FFFDF7);
}
.pcard-name { font-size: 11.5px; color: var(--ink-2); }
.pcard-price { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--ink); }
.pcard-price small { font-family: var(--sans); font-size: 8.5px; color: var(--ink-3); margin-left: 3px; font-weight: 400; }
.trend {
  position: absolute; right: 9px; top: 9px; font-size: 9px; font-weight: 600;
  padding: 1px 4px; border-radius: 4px;
}
.trend.up { color: #B04A34; background: #F8E7E0; }
.trend.down { color: #3F7A5C; background: #E5EFE3; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 13px; margin-top: 10px; box-shadow: var(--shadow-sm);
}
.panel--flush { padding-bottom: 6px; }
.panel-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 9px; gap: 8px;
}
.panel-head h3 { font-family: var(--serif); font-size: 15px; letter-spacing: .03em; }
.panel-head span { font-size: 9.5px; color: var(--ink-3); white-space: nowrap; }
.panel-head span.is-open { color: var(--green); font-weight: 600; }
.price-group + .price-group { margin-top: 12px; }
.price-group h4 {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 3px;
}
.price-group h4 span { font-size: 13px; }
.ptable { width: 100%; border-collapse: collapse; }
.ptable td { padding: 5px 0; border-bottom: 1px dashed #EFE6D7; font-size: 11.5px; }
.ptable tr:last-child td { border-bottom: 0; }
.pt-name { color: var(--ink); }
.pt-name small { display: block; font-size: 8.5px; color: var(--ink-3); margin-top: 1px; }
.pt-avg { text-align: right; font-weight: 700; color: var(--red-2); font-family: var(--serif); font-size: 14px; }
.pt-avg small { font-family: var(--sans); font-weight: 400; font-size: 8.5px; color: var(--ink-3); }
.pt-market { text-align: right; color: var(--ink-3); font-size: 10.5px; width: 62px; }
.pt-trend { text-align: right; width: 46px; font-size: 10px; }
.pt-trend.up { color: #B04A34; }
.pt-trend.down { color: #3F7A5C; }
.pt-trend.flat { color: var(--ink-3); }
.cheap-list { display: flex; flex-direction: column; }
.cheap-row {
  display: flex; align-items: center; gap: 9px; padding: 8px 0;
  border-bottom: 1px dashed #EFE6D7; text-align: left;
}
.cheap-row:last-child { border-bottom: 0; }
.cheap-rank {
  width: 19px; height: 19px; border-radius: 6px; flex: 0 0 auto;
  background: #F3EADB; color: #8A6A3C; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cheap-row:nth-child(1) .cheap-rank { background: var(--red); color: #FFF6EA; }
.cheap-name { display: flex; flex-direction: column; gap: 1px; font-size: 12px; }
.cheap-name small { font-size: 9px; color: var(--ink-3); }
.cheap-idx { margin-left: auto; font-family: var(--serif); font-size: 16px; color: var(--green); font-weight: 700; }
.cheap-idx small { font-family: var(--sans); font-size: 8px; color: var(--ink-3); margin-left: 2px; font-weight: 400; }
.disclaimer {
  margin-top: 14px; font-size: 10px; line-height: 1.8; color: var(--ink-3);
  padding: 10px 12px; border-radius: 12px; background: rgba(255, 253, 247, .55);
  border: 1px dashed var(--line-2);
}

/* ---------- 我的 ---------- */
.me-head {
  display: flex; align-items: center; gap: 13px; padding: 8px 4px 14px;
}
.me-avatar {
  width: 54px; height: 54px; border-radius: 18px;
  background: radial-gradient(circle at 30% 25%, #FFF9EC, #F3E3C6);
  border: 1px solid var(--line-2);
  font-size: 27px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(74, 52, 30, .12);
}
.me-head h2 { font-family: var(--serif); font-size: 19px; letter-spacing: .06em; }
.me-head p { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.me-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 11px 0; box-shadow: var(--shadow-sm);
}
.me-stats div { text-align: center; position: relative; }
.me-stats div + div::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line);
}
.me-stats b { display: block; font-family: var(--serif); font-size: 20px; color: var(--red-2); }
.me-stats span { font-size: 9.5px; color: var(--ink-3); letter-spacing: .04em; }
.report-list { display: flex; flex-direction: column; }
.report-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 0;
  border-bottom: 1px dashed #EFE6D7; font-size: 11px;
}
.report-row:last-child { border-bottom: 0; }
.report-row > span:first-child { font-size: 14px; }
.report-main { display: flex; flex-direction: column; gap: 1px; }
.report-main small { font-size: 9.5px; color: var(--ink-3); }
.report-time { margin-left: auto; font-size: 9px; color: var(--ink-3); }
.menu { padding: 0; overflow: hidden; }
.menu-row {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 13px 14px; font-size: 12.5px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.menu-row:last-child { border-bottom: 0; }
.menu-row svg { width: 16px; height: 16px; color: var(--ink-3); flex: 0 0 auto; }
.menu-row span { flex: 1; }
.menu-row em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.menu-row--danger { color: #A24A3B; }
.menu-row--danger svg { color: #A24A3B; }

/* ---------- 详情 ---------- */
.page-detail { padding: 0 0 24px; }
.detail-hero {
  position: relative; padding: 12px 16px 18px;
  min-height: 232px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 248, 232, .95), transparent 55%),
    linear-gradient(160deg, color-mix(in srgb, var(--dc) 30%, #F3E3C6), color-mix(in srgb, var(--dc) 55%, #E7CEA6));
  overflow: hidden;
}
.detail-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 10px);
}
.detail-hero::after {
  content: ""; position: absolute; left: -20%; right: -20%; bottom: -70px; height: 150px;
  background: var(--paper); border-radius: 50% 50% 0 0 / 60px 60px;
}
.detail-hero-top {
  position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center;
  padding-top: env(safe-area-inset-top);
}
.round-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 252, 244, .82); border: 1px solid rgba(255, 255, 255, .7);
  color: var(--ink); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(60, 40, 20, .16); padding: 8px;
  backdrop-filter: blur(6px);
}
.round-btn.is-on { color: var(--gold); }
.round-btn--light { background: rgba(255, 252, 244, .9); }
.detail-hero-tools { display: flex; gap: 8px; }
.detail-emoji {
  position: absolute; right: 18px; bottom: 46px; z-index: 1;
  font-size: 96px; opacity: .26; transform: rotate(-8deg);
  filter: grayscale(.1);
}
.detail-head { position: relative; z-index: 3; margin-top: auto; padding-bottom: 4px; }
.detail-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 6px; }
.d-tag {
  font-size: 9.5px; padding: 2px 7px; border-radius: 5px;
  background: rgba(255, 250, 238, .7); color: #6A4A22; border: 1px solid rgba(140, 100, 40, .2);
}
.d-tag--plain { background: transparent; color: #6A4A22; }
.d-tag--warn { background: rgba(176, 74, 52, .12); color: #8E3A2A; border-color: rgba(176, 74, 52, .25); }
.detail-head h1 {
  font-family: var(--serif); font-size: 29px; letter-spacing: .04em; color: #33240F;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.detail-head p { font-size: 11.5px; color: #6F5227; margin-top: 4px; }
.detail-stats {
  position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 13px; padding-top: 11px;
  border-top: 1px solid rgba(120, 85, 35, .18);
}
.detail-stats div { text-align: center; }
.detail-stats b { display: block; font-family: var(--serif); font-size: 15px; color: #3A2A16; }
.detail-stats span { font-size: 8.5px; color: #84653A; letter-spacing: .04em; }
.detail-body {
  position: relative; z-index: 4; margin-top: -14px;
  padding: 0 14px; background: linear-gradient(180deg, var(--paper) 40%, var(--paper));
}
.detail-actions { display: flex; gap: 8px; padding-top: 4px; }
.action-primary {
  flex: 1; height: 46px; border-radius: 14px;
  background: linear-gradient(160deg, #CE4635, var(--red-2));
  color: #FFF6EA; font-size: 13.5px; font-weight: 600; letter-spacing: .06em;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  box-shadow: 0 6px 16px rgba(158, 43, 30, .3);
}
.action-primary svg { width: 17px; height: 17px; }
.action-ghost {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center; padding: 12px;
  box-shadow: var(--shadow-sm);
}
.action-primary:active, .action-ghost:active { transform: scale(.97); }
.schedule-main { display: flex; align-items: center; gap: 13px; }
.day-seal {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid rgba(192, 58, 43, .75);
  color: var(--red-2); font-family: var(--serif); font-size: 12px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.12; text-align: center; transform: rotate(-5deg);
  box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 4px rgba(192, 58, 43, .28);
}
.day-seal--daily { font-size: 11px; transform: rotate(4deg); color: var(--green); border-color: rgba(79, 122, 95, .7); }
.schedule-main b { font-family: var(--serif); font-size: 16px; letter-spacing: .04em; }
.schedule-main p { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.next-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.next-day {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 7px 4px; border-radius: 10px; background: #F7EFE1;
  font-size: 11.5px; color: var(--ink-2); border: 1px solid transparent;
}
.next-day b { font-size: 8.5px; color: var(--ink-3); font-weight: 500; letter-spacing: .04em; }
.next-day .nd-date { font-size: 13px; font-weight: 700; color: var(--ink); font-family: var(--serif); }
.next-day small { font-size: 8.5px; color: var(--ink-3); }
.next-day.is-next { background: var(--gold-soft); border-color: #EBD5A9; }
.next-day.is-next b { color: #8A6420; }
.crowd-now { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.crowd-level { font-family: var(--serif); font-size: 27px; font-weight: 700; line-height: 1.05; }
.crowd-level small { display: block; font-family: var(--sans); font-size: 9.5px; color: var(--ink-3); margin-top: 4px; font-weight: 400; }
.crowd-meter { flex: 0 0 108px; display: flex; gap: 3px; padding-bottom: 4px; }
.crowd-meter i { flex: 1; height: 26px; border-radius: 4px; opacity: .9; }
.curve { display: flex; align-items: flex-end; gap: 2px; height: 54px; margin-top: 12px; }
.curve-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.curve-col i { width: 100%; max-width: 12px; border-radius: 3px 3px 1px 1px; background: #DFCDB2; min-height: 4px; }
.curve-col.is-now i { background: var(--red); }
.curve-col span { font-size: 7px; color: var(--ink-3); }
.curve-axis { display: flex; justify-content: space-between; font-size: 8.5px; color: var(--ink-3); margin-top: 3px; }
.closed-tip { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: #F7EFE1; }
.closed-tip svg { width: 20px; height: 20px; color: var(--ink-3); flex: 0 0 auto; margin-top: 2px; }
.closed-tip b { font-size: 13px; }
.closed-tip p { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.5; }
.report-bar {
  display: flex; align-items: center; gap: 6px; margin-top: 11px; padding-top: 10px;
  border-top: 1px dashed #EFE6D7;
}
.report-bar > span { font-size: 10px; color: var(--ink-3); margin-right: auto; }
.report-btn {
  height: 25px; padding: 0 10px; border-radius: 999px; font-size: 10.5px;
  border: 1px solid var(--line); background: #FBF5E9; color: var(--ink-2);
}
.report-btn:active { background: var(--gold-soft); }
.report-note { font-size: 9.5px; color: var(--green); margin-top: 7px; }
.cat-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent 100%); }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px;
  height: 28px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line); background: #FBF5E9; font-size: 10.5px; color: var(--ink-2);
}
.cat-tab.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, #FFFDF7); color: var(--c); font-weight: 600; }
.price-list { margin-top: 8px; }
.price-row {
  display: grid; grid-template-columns: 1fr auto auto 34px 24px;
  align-items: center; gap: 6px; padding: 7px 0;
  border-bottom: 1px dashed #EFE6D7;
}
.price-row:last-child { border-bottom: 0; }
.pr-name { font-size: 12px; display: flex; flex-direction: column; gap: 1px; }
.pr-name small { font-size: 8.5px; color: var(--ink-3); }
.pr-name em { font-style: normal; font-size: 8px; color: var(--green); }
.pr-price { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--red-2); }
.pr-price small { font-family: var(--sans); font-size: 8.5px; color: var(--ink-3); font-weight: 400; }
.pr-cmp { font-size: 8.5px; color: var(--ink-3); }
.pr-trend { font-size: 9px; text-align: right; }
.pr-trend.up { color: #B04A34; }
.pr-trend.down { color: #3F7A5C; }
.pr-trend.flat { color: var(--ink-3); }
.pr-report {
  width: 22px; height: 22px; border-radius: 7px; font-size: 9.5px;
  border: 1px solid var(--line); color: var(--ink-3); background: #FBF5E9;
}
.price-note { font-size: 9px; color: var(--ink-3); margin-top: 8px; line-height: 1.6; }
.desc { font-size: 11.5px; line-height: 1.85; color: var(--ink-2); }
.spec-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.spec {
  font-size: 10px; padding: 3px 9px; border-radius: 999px;
  background: var(--gold-soft); color: #7E5B24;
}
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px; margin-top: 12px; padding-top: 11px; border-top: 1px dashed #EFE6D7; }
.info-grid div { display: flex; flex-direction: column; gap: 2px; }
.info-grid span { font-size: 8.5px; color: var(--ink-3); letter-spacing: .04em; }
.info-grid b { font-size: 10.5px; font-weight: 500; color: var(--ink); line-height: 1.5; }
.info-grid div:nth-child(1) { grid-column: span 2; }
.fac-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.fac { font-size: 9.5px; padding: 3px 8px; border-radius: 6px; background: #F3EADB; color: #7B6244; }
.tips { margin: 0; padding: 0; list-style: none; counter-reset: tip; }
.tips li {
  position: relative; padding: 6px 0 6px 24px; font-size: 11px; line-height: 1.7;
  color: var(--ink-2); counter-increment: tip;
}
.tips li::before {
  content: counter(tip); position: absolute; left: 0; top: 8px;
  width: 15px; height: 15px; border-radius: 50%; background: #F3EADB;
  color: #8A6A3C; font-size: 8.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.tips li + li { border-top: 1px dashed #F1E9DB; }

/* ---------- 关于 ---------- */
.about-head { display: flex; align-items: center; gap: 10px; padding: 6px 0 12px; }
.about-head h2 { font-family: var(--serif); font-size: 20px; letter-spacing: .06em; }
.page-about .panel h3 { font-family: var(--serif); font-size: 15px; margin-bottom: 8px; }
.src-list { margin: 0; padding-left: 18px; font-size: 11.5px; line-height: 2; color: var(--ink-2); }
.src-list a { text-decoration: none; border-bottom: 1px dotted var(--line-2); }

/* ---------- 弹层 / Toast ---------- */
.sheet-root {
  position: fixed; inset: 0; margin: 0 auto; width: 100%; max-width: 480px;
  z-index: 100; pointer-events: none;
}
.sheet-root.show { pointer-events: auto; }
.sheet-backdrop {
  position: absolute; inset: 0; background: rgba(38, 26, 14, .34);
  opacity: 0; transition: opacity .24s ease;
  backdrop-filter: blur(2px);
}
.sheet-root.show .sheet-backdrop { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--paper-2);
  border-radius: 24px 24px 0 0;
  padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(102%);
  transition: transform .28s cubic-bezier(.2, .8, .25, 1);
  box-shadow: 0 -10px 34px rgba(50, 30, 10, .2);
  max-height: 86%;
  overflow-y: auto;
}
.sheet-root.show .sheet { transform: none; }
.sheet-grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 2px auto 14px; }
.sheet h3 { font-family: var(--serif); font-size: 17px; margin-bottom: 4px; }
.sheet-sub { font-size: 10.5px; color: var(--ink-3); margin-bottom: 12px; }
.nav-opt {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left;
  color: var(--ink); text-decoration: none;
}
.nav-opt:last-of-type { border-bottom: 0; }
.nav-opt-ic {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  background: #F3EADB;
}
.nav-opt b { display: block; font-size: 13px; font-weight: 600; }
.nav-opt small { font-size: 9.5px; color: var(--ink-3); }
.nav-opt .chev { width: 14px; height: 14px; margin-left: auto; color: var(--ink-3); }
.sheet-close { width: 100%; height: 42px; margin-top: 12px; border-radius: 12px; background: #F1E7D6; color: var(--ink-2); font-size: 12.5px; }
.form-row { margin-top: 12px; }
.form-row label { font-size: 10.5px; color: var(--ink-3); display: block; margin-bottom: 5px; }
.form-row input {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--line); background: #FFFDF7; font-size: 15px; outline: none;
}
.form-row input:focus { border-color: var(--gold); }
.sheet-actions { display: flex; gap: 8px; margin-top: 16px; }
.sheet-actions .btn { flex: 1; height: 42px; }
.btn-primary { background: var(--ink); color: #FBF3E6; }
.btn-muted { background: #F1E7D6; color: var(--ink-2); }
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 12px);
  background: rgba(42, 33, 27, .94); color: #FBF3E6;
  padding: 9px 16px; border-radius: 999px; font-size: 11.5px;
  opacity: 0; pointer-events: none; transition: all .26s ease; z-index: 200;
  max-width: 80%; text-align: center;
  box-shadow: 0 8px 22px rgba(30, 20, 10, .3);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.no-scroll { overflow: hidden; }

/* ---------- 小屏微调 ---------- */
@media (max-width: 360px) {
  .hero-title { font-size: 19px; }
  .hero-title em { font-size: 30px; }
  .mcard { grid-template-columns: 58px 1fr; }
  .mcard-emoji { font-size: 26px; }
  .crowd-inline { display: none; }
  .price-row { grid-template-columns: 1fr auto 30px 24px; }
  .pr-cmp { display: none; }
  .crowd-meter { flex: 0 0 86px; }
}

/* ---------- 地图加载失败提示 ---------- */
.map-offline {
  position: absolute; left: 12px; right: 60px; top: 52px; z-index: 500;
  padding: 7px 11px; border-radius: 10px;
  background: rgba(42, 33, 27, .86); color: #FBF3E6; font-size: 10px; line-height: 1.5;
  display: none; box-shadow: var(--shadow-md);
}
.map-offline.show { display: block; }
.map-canvas.mapless { background: #E8DECD repeating-linear-gradient(0deg, rgba(160, 128, 88, .12) 0 1px, transparent 1px 44px), repeating-linear-gradient(90deg, rgba(160, 128, 88, .12) 0 1px, transparent 1px 44px); }
.map-canvas.mapless .leaflet-tile-pane { opacity: 0; }

#app[data-route="detail"] .tabbar,
#app[data-route="about"] .tabbar { display: none; }
#app[data-route="detail"] .view,
#app[data-route="about"] .view { padding-bottom: 0; }

@media (hover: hover) {
  .mcard:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
  .chip:hover { border-color: var(--line-2); }
  .map-card:hover { border-color: var(--line-2); }
  .nav-opt:hover b { color: var(--red-2); }
  .tab:hover { color: var(--red-2); }
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid rgba(192, 58, 43, .55); outline-offset: 2px;
}


/* ---------- 合规：法律页 ---------- */
.page-legal, .page-feedback, .page-download { padding-top: 16px; }
.legal-meta { font-size: 9.5px; color: var(--ink-3); letter-spacing: .04em; margin: 0 2px 10px; }
.legal-intro {
  font-size: 11px; line-height: 1.9; color: var(--ink-2);
  padding: 11px 12px; border-radius: 12px; margin-bottom: 10px;
  background: rgba(255, 253, 247, .6); border: 1px dashed var(--line-2);
}
.legal-panel { padding: 16px 14px; }
.legal-panel h3 { font-family: var(--serif); font-size: 14px; margin: 15px 0 6px; letter-spacing: .02em; }
.legal-panel h3:first-child { margin-top: 0; }
.legal-panel p { font-size: 11.5px; line-height: 1.9; color: var(--ink-2); margin: 4px 0; }
.legal-panel ul { margin: 6px 0; padding-left: 17px; color: var(--ink-2); font-size: 11.5px; line-height: 1.85; }
.legal-panel li { margin: 2px 0; }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 9.5px; }
.legal-table th {
  text-align: left; background: #F3EADB; color: #6A4A22; font-weight: 600;
  padding: 6px 7px; border: 1px solid #EADCC6;
}
.legal-table td { padding: 6px 7px; border: 1px solid #EFE6D7; color: var(--ink-2); line-height: 1.6; vertical-align: top; }

/* ---------- 地图同意门禁 ---------- */
.map-page--gate {
  display: flex; align-items: center; justify-content: center;
  padding: 24px; background:
    radial-gradient(circle at 30% 20%, rgba(255, 250, 238, .9), transparent 60%),
    repeating-linear-gradient(45deg, rgba(160, 128, 88, .05) 0 1px, transparent 1px 10px),
    #EDE3D2;
}
.map-gate {
  width: 100%; max-width: 300px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 24px 20px; box-shadow: var(--shadow-md);
}
.map-gate-icon { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--green); }
.map-gate h3 { font-family: var(--serif); font-size: 18px; margin-bottom: 8px; }
.map-gate p { font-size: 11.5px; line-height: 1.8; color: var(--ink-2); margin-bottom: 16px; }
.map-gate .btn { width: 100%; margin-top: 8px; }

/* ---------- 隐私同意 ---------- */
.consent { padding: 2px 2px 0; }
.consent-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; color: var(--green); background: var(--green-soft);
  padding: 4px 9px; border-radius: 999px;
}
.consent-badge svg { width: 13px; height: 13px; }
.consent h3 { font-family: var(--serif); font-size: 20px; margin: 12px 0 7px; }
.consent-lead { font-size: 11.5px; color: var(--ink-2); line-height: 1.7; }
.consent-list { margin: 10px 0; padding-left: 0; list-style: none; }
.consent-list li { position: relative; padding-left: 16px; font-size: 11.5px; line-height: 1.7; color: var(--ink-2); margin: 6px 0; }
.consent-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.consent-links { font-size: 11px; color: var(--ink-3); margin: 10px 0 16px; line-height: 1.7; }
.consent-links a { color: var(--red-2); text-decoration: underline; }
.consent-actions { display: flex; flex-direction: column; gap: 8px; }
.consent-actions .btn { height: 44px; width: 100%; }
.consent-foot { font-size: 9.5px; color: var(--ink-3); text-align: center; margin-top: 12px; }
.privacy-status { display: flex; gap: 10px; padding: 11px; border-radius: 12px; background: #F7EFE1; }
.privacy-status > span { width: 18px; height: 18px; color: var(--green); flex: 0 0 auto; margin-top: 1px; }
.privacy-status b { font-size: 11.5px; }
.privacy-status p { font-size: 10px; color: var(--ink-3); line-height: 1.6; margin-top: 2px; }

/* ---------- 意见反馈 ---------- */
.fb-lead { font-size: 11.5px; line-height: 1.8; color: var(--ink-2); margin: 0 2px 12px; }
.fb-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 13px; box-shadow: var(--shadow-sm); }
.fb-types { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.fb-type {
  height: 28px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--line); background: #FBF5E9; font-size: 11px; color: var(--ink-2);
}
.fb-type.is-on { background: var(--ink); color: #FBF3E6; border-color: var(--ink); font-weight: 600; }
#fb-text {
  width: 100%; min-height: 118px; resize: vertical; outline: none;
  border: 1px solid var(--line); border-radius: 12px; background: #FFFDF7;
  padding: 10px 12px; font-family: inherit; font-size: 12px; line-height: 1.7; color: var(--ink);
}
#fb-text:focus { border-color: var(--gold); }
.fb-count { text-align: right; font-size: 9px; color: var(--ink-3); margin: 4px 2px 8px; }
#fb-contact {
  width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 12px;
  background: #FFFDF7; padding: 0 12px; font-size: 12px; outline: none; margin-bottom: 10px;
}
#fb-contact:focus { border-color: var(--gold); }
.fb-submit { width: 100%; height: 42px; }
.fb-privacy { font-size: 9px; color: var(--ink-3); line-height: 1.7; margin-top: 9px; }
.fb-privacy a { color: var(--red-2); }
.fb-list { display: flex; flex-direction: column; }
.fb-row { display: flex; gap: 8px; padding: 9px 0; border-bottom: 1px dashed #EFE6D7; }
.fb-row:last-child { border-bottom: 0; }
.fb-row-type { flex: 0 0 auto; font-size: 9px; height: 18px; line-height: 18px; padding: 0 6px; border-radius: 5px; background: var(--gold-soft); color: #7E5B24; }
.fb-row-main p { font-size: 11px; line-height: 1.6; color: var(--ink); }
.fb-row-main small { font-size: 8.5px; color: var(--ink-3); }
.fb-clear { margin-top: 10px; font-size: 10px; color: #A24A3B; }
.fb-done { text-align: center; padding: 8px 0 2px; }
.fb-done-ic {
  width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--green-soft); color: var(--green); font-size: 24px;
  display: flex; align-items: center; justify-content: center;
}
.fb-done-text {
  font-size: 11px; line-height: 1.7; color: var(--ink-2); background: #F7EFE1;
  padding: 10px; border-radius: 10px; margin: 10px 0; max-height: 120px;
  overflow: auto; text-align: left;
}
.fb-done .sheet-actions { gap: 8px; }
.fb-done .sheet-actions .btn { width: 100%; text-decoration: none; }

/* ---------- 安装 / 下载 ---------- */
.dl-hero {
  display: flex; gap: 14px; align-items: center;
  background: linear-gradient(150deg, #F5E4C6, #ECD2A9);
  border: 1px solid rgba(201, 138, 46, .22); border-radius: 18px;
  padding: 14px; margin-bottom: 12px;
}
.dl-qr {
  flex: 0 0 92px; width: 92px; height: 92px; background: #FFFDF7;
  border-radius: 10px; padding: 5px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(80, 50, 20, .1);
}
.dl-qr svg { width: 100%; height: 100%; }
.dl-qr-ph { font-size: 9px; color: var(--ink-3); text-align: center; padding: 4px; word-break: break-all; line-height: 1.5; }
.dl-hero-text b { font-family: var(--serif); font-size: 15px; letter-spacing: .02em; }
.dl-hero-text p { font-size: 10px; color: #7A5A2E; line-height: 1.6; margin-top: 4px; }
.dl-install { width: 100%; height: 44px; margin-bottom: 12px; }
.dl-platforms { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.dl-platform {
  display: flex; gap: 10px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 11px; box-shadow: var(--shadow-sm);
}
.dl-pf-ic { font-size: 20px; }
.dl-platform b { font-size: 12px; }
.dl-platform p { font-size: 10px; color: var(--ink-3); line-height: 1.65; margin-top: 2px; }
.store-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.store-card {
  display: flex; align-items: center; gap: 7px; padding: 9px;
  border: 1px solid var(--line); border-radius: 11px; background: #FBF5E9;
  text-decoration: none; color: var(--ink); min-width: 0;
}
.store-card.is-soon { opacity: .68; }
.store-ic {
  width: 24px; height: 24px; border-radius: 7px; background: #F0E3CC;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #8A6A3C; flex: 0 0 auto;
}
.store-main { min-width: 0; display: flex; flex-direction: column; }
.store-main b { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-main small { font-size: 8px; color: var(--ink-3); }
.store-state { margin-left: auto; font-size: 8.5px; color: var(--ink-3); white-space: nowrap; }
.store-card.is-ready .store-state { color: var(--red-2); font-weight: 600; }
.dl-note { font-size: 9px; color: var(--ink-3); line-height: 1.7; margin-top: 9px; }
.dl-feedback {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  padding: 12px; border: 1px dashed var(--line-2); border-radius: 14px;
}
.dl-feedback > span { width: 16px; height: 16px; color: var(--ink-3); flex: 0 0 auto; }
.dl-feedback b { font-size: 11.5px; }
.dl-feedback p { font-size: 9.5px; color: var(--ink-3); }
.dl-feedback .btn { margin-left: auto; height: 30px; font-size: 11px; }

/* ---------- 安装横幅 ---------- */
.install-banner {
  display: flex; align-items: center; gap: 9px; margin-top: 12px; padding: 10px 12px;
  border-radius: 14px; background: linear-gradient(140deg, #F3E6CC, #F7EEDD);
  border: 1px solid #EBD5A9;
}
.ib-icon {
  width: 30px; height: 30px; border-radius: 9px; background: #FFFDF7;
  display: flex; align-items: center; justify-content: center; color: var(--red-2); padding: 6px; flex: 0 0 auto;
}
.ib-icon svg { width: 16px; height: 16px; }
.install-banner b { font-size: 11.5px; }
.install-banner p { font-size: 9.5px; color: #8A6A3C; }
.ib-go {
  margin-left: auto; height: 26px; padding: 0 12px; border-radius: 999px;
  background: var(--ink); color: #FBF3E6; font-size: 10.5px; flex: 0 0 auto;
}
.ib-close { width: 18px; height: 18px; color: var(--ink-3); padding: 4px; flex: 0 0 auto; }

/* ---------- 关于页补充 ---------- */
.about-meta {
  margin-top: 10px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 2px 14px;
}
.about-meta div {
  display: flex; justify-content: space-between; gap: 12px; padding: 9px 0;
  border-bottom: 1px dashed #EFE6D7; font-size: 10.5px;
}
.about-meta div:last-child { border-bottom: 0; }
.about-meta span { color: var(--ink-3); flex: 0 0 auto; }
.about-meta b { font-weight: 500; text-align: right; line-height: 1.5; }

#app[data-route="legal"] .topbar,
#app[data-route="legal"] .tabbar,
#app[data-route="feedback"] .topbar,
#app[data-route="feedback"] .tabbar,
#app[data-route="download"] .topbar,
#app[data-route="download"] .tabbar { display: none; }

/* ---------- Plus 会员 ---------- */
.member-pill svg { color: #C98A2E; }
.member-pill.is-ok { border-color: #E4C892; background: #FBF1DC; color: #7C5A2E; }
.page-member, .page-compare { padding-top: 16px; }
.member-hero {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(150deg, #2E241B 0%, #453321 58%, #6B4A22 100%);
  border-radius: 22px; padding: 22px 18px 20px; color: #F7E9CF;
  box-shadow: 0 10px 26px rgba(46, 36, 27, .28);
}
.member-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(232, 180, 92, .06) 0 1px, transparent 1px 11px);
}
.member-crown { position: relative; width: 46px; height: 46px; margin: 0 auto 8px; color: #E8B45C; }
.member-hero h3 { position: relative; font-family: var(--serif); font-size: 24px; letter-spacing: .14em; color: #F9EFD9; }
.member-hero p { position: relative; font-size: 10.5px; color: rgba(247, 233, 207, .72); margin-top: 4px; }
.member-badges { position: relative; display: flex; gap: 6px; justify-content: center; margin-top: 11px; }
.member-badges span {
  font-size: 9px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid rgba(232, 180, 92, .38); color: #E8C88E;
}
.plus-chip {
  display: inline-flex; align-items: center; height: 16px; padding: 0 6px;
  border-radius: 4px; background: linear-gradient(140deg, #E8B45C, #C98A2E);
  color: #3A2A16; font-size: 8.5px; font-weight: 700; letter-spacing: .08em;
}
.member-status {
  margin-top: 12px; padding: 14px; border-radius: 16px;
  background: linear-gradient(140deg, #F7E7C8, #EFD9B2);
  border: 1px solid #E4C892; box-shadow: var(--shadow-sm);
}
.ms-top { display: flex; align-items: center; gap: 7px; }
.ms-top b { font-size: 14px; font-family: var(--serif); }
.ms-top em { margin-left: auto; font-size: 10px; font-style: normal; color: #7C5A2E; }
.member-status p { font-size: 10.5px; color: #7C5A2E; margin-top: 5px; }
.ms-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ms-actions button {
  height: 30px; padding: 0 12px; border-radius: 999px; font-size: 10.5px;
  border: 1px solid rgba(140, 100, 40, .3); background: rgba(255, 252, 244, .62); color: #6A4A22;
}
.ms-off { font-size: 10px; color: #7C5A2E; align-self: center; }
.plan-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.plan-opt {
  position: relative; text-align: left; padding: 13px 14px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.plan-opt b { display: block; font-size: 13px; }
.plan-opt span { font-size: 11px; color: var(--ink-2); }
.plan-opt.is-on { border-color: #C98A2E; box-shadow: 0 0 0 2px rgba(201, 138, 46, .16); }
.plan-opt em {
  position: absolute; top: -8px; right: 9px; font-style: normal;
  font-size: 8.5px; padding: 2px 6px; border-radius: 999px;
  background: var(--red); color: #FFF6EA;
}
.plan-box {
  margin-top: 10px; padding: 16px; border-radius: 16px; text-align: center;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.plan-price { font-family: var(--serif); font-size: 38px; font-weight: 700; color: var(--red-2); line-height: 1.1; }
.plan-price small { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--ink-3); }
.plan-eq { font-size: 10.5px; color: var(--ink-3); margin: 3px 0 12px; }
.member-cta { width: 100%; height: 44px; }
.plan-fine { font-size: 8.5px; color: var(--ink-3); margin-top: 9px; line-height: 1.6; }
.demo-note {
  margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  background: #FBF1DC; border: 1px dashed #E4C892;
  font-size: 9px; color: #7C5A2E; line-height: 1.7;
}
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #EFE6D7; }
.feature-list li:last-child { border-bottom: 0; }
.feature-list li > span { font-size: 17px; flex: 0 0 auto; }
.feature-list b { font-size: 11.5px; }
.feature-list p { font-size: 9.5px; color: var(--ink-3); line-height: 1.6; margin-top: 2px; }
.cmp-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 1fr 44px 44px; gap: 4px; padding: 8px 10px; font-size: 10.5px; border-bottom: 1px solid #F1E7D6; }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row span:nth-child(2), .cmp-row span:nth-child(3) { text-align: center; color: var(--ink-3); }
.cmp-row.cmp-head { background: #F3EADB; color: #6A4A22; font-weight: 600; }
.cmp-row.cmp-head span:nth-child(2), .cmp-row.cmp-head span:nth-child(3) { color: #6A4A22; }
.sub-info p { font-size: 10px; color: var(--ink-2); line-height: 1.85; }
.sub-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 9px; }
.sub-links button { font-size: 10px; color: var(--red-2); text-decoration: underline; }
.member-entry {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px;
  padding: 12px 14px; border-radius: 16px; text-align: left;
  border: 1px solid #E4C892; background: linear-gradient(140deg, #F7E7C8, #EFD9B2);
  box-shadow: var(--shadow-sm);
}
.me-crown {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  background: #3A2A16; color: #E8B45C; display: flex; align-items: center; justify-content: center; padding: 8px;
}
.member-entry b { font-size: 12.5px; }
.member-entry p { font-size: 9.5px; color: #7C5A2E; margin-top: 2px; }
.member-entry-go { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 10px; color: #7C5A2E; white-space: nowrap; }
.member-entry-go svg { width: 12px; height: 12px; }

/* ---------- 7 天预测 ---------- */
.panel-forecast { position: relative; }
.forecast { display: flex; gap: 5px; height: 104px; margin-top: 8px; }
.fc-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; height: 100%; min-width: 0; }
.fc-bar { width: 100%; flex: 1; display: flex; align-items: flex-end; justify-content: center; background: #F4EBDD; border-radius: 6px; overflow: hidden; }
.fc-bar i { width: 68%; border-radius: 4px 4px 0 0; min-height: 4px; }
.fc-col b { font-size: 9px; color: var(--ink-2); font-weight: 600; }
.fc-col small { font-size: 7.5px; color: var(--ink-3); }
.fc-col em { font-size: 8px; color: var(--ink-3); font-style: normal; white-space: nowrap; }
.fc-col.is-today b { color: var(--red-2); }
.forecast.is-locked { filter: blur(3px); opacity: .55; pointer-events: none; user-select: none; }
.plus-veil {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  width: 84%; z-index: 2; text-align: center;
  background: rgba(255, 251, 242, .95); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.plus-veil b { font-size: 12.5px; }
.plus-veil p { font-size: 9.5px; color: var(--ink-3); line-height: 1.5; }
.plus-veil .btn { height: 28px; font-size: 10.5px; padding: 0 14px; margin-top: 4px; }
.fc-note { font-size: 9px; color: var(--ink-3); margin-top: 7px; line-height: 1.6; }
.export-days {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 10px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px dashed var(--line-2); background: #FBF5E9;
  font-size: 10.5px; color: var(--ink-2);
}
.export-days svg { width: 13px; height: 13px; }

/* ---------- 比价 ---------- */
.compare-lead { font-size: 11.5px; color: var(--ink-2); line-height: 1.8; margin: 0 2px 10px; }
.basket { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.basket span { font-size: 9px; padding: 3px 7px; border-radius: 999px; background: #F3EADB; color: #7B6244; }
.cmp-list { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.cmp-market { display: flex; align-items: center; gap: 9px; width: 100%; padding: 11px 12px; border-bottom: 1px solid #F1E7D6; text-align: left; }
.cmp-market:last-child { border-bottom: 0; }
.cmp-rank { width: 20px; height: 20px; border-radius: 6px; flex: 0 0 auto; background: #F3EADB; color: #8A6A3C; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cmp-market:first-child .cmp-rank { background: var(--red); color: #FFF6EA; }
.cmp-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cmp-main b { font-size: 12px; }
.cmp-main small { font-size: 9px; color: var(--ink-3); }
.cmp-total { margin-left: auto; text-align: right; font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--red-2); }
.cmp-total small { display: block; font-family: var(--sans); font-size: 8px; color: var(--ink-3); font-weight: 400; }
.cmp-arrow { width: 13px; height: 13px; color: var(--ink-3); flex: 0 0 auto; }
.compare-lock { margin-top: 10px; text-align: center; background: var(--card); border: 1px dashed var(--line-2); border-radius: 16px; padding: 16px; }
.compare-lock b { display: block; font-size: 13px; margin: 7px 0 3px; }
.compare-lock p { font-size: 10px; color: var(--ink-3); margin-bottom: 10px; line-height: 1.6; }
.compare-lock .btn { height: 36px; font-size: 11.5px; }
.cmp-note { font-size: 10px; color: var(--green); margin-top: 10px; text-align: center; }
.link-banner {
  display: flex; align-items: center; gap: 9px; width: 100%; margin-bottom: 10px;
  padding: 11px 12px; border-radius: 14px; text-align: left;
  border: 1px solid #E4C892; background: linear-gradient(140deg, #F7E7C8, #F3E3C6);
}
.link-banner svg { width: 16px; height: 16px; color: #8A6A3C; flex: 0 0 auto; }
.link-banner b { display: block; font-size: 11.5px; }
.link-banner small { font-size: 9px; color: #8A6A3C; }
.link-banner > svg:last-child { width: 13px; height: 13px; margin-left: auto; }

/* ---------- 桌面端首页侧栏 ---------- */
.home-grid { display: block; }
.home-aside { display: none; }
.aside-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 13px; box-shadow: var(--shadow-sm); }
.aside-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.aside-head h3 { font-family: var(--serif); font-size: 14px; }
.aside-head span { font-size: 9.5px; color: var(--ink-3); }
.aside-list { list-style: none; margin: 0; padding: 0; }
.aside-list li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed #EFE6D7; cursor: pointer; }
.aside-list li:last-child { border-bottom: 0; }
.aside-emoji { font-size: 16px; }
.aside-main { min-width: 0; display: flex; flex-direction: column; }
.aside-main b { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aside-main small { font-size: 8.5px; color: var(--ink-3); }
.aside-state { margin-left: auto; font-size: 8.5px; color: var(--green); white-space: nowrap; }
.aside-link { display: flex; align-items: center; gap: 4px; margin-top: 9px; font-size: 10px; color: var(--red-2); }
.aside-link svg { width: 12px; height: 12px; }
.aside-plus { background: linear-gradient(150deg, #2E241B, #4A3624); border-color: #4A3624; color: #F7E9CF; }
.aside-plus b { display: block; font-size: 12.5px; margin-top: 8px; }
.aside-plus p { font-size: 9.5px; color: rgba(247, 233, 207, .7); margin: 4px 0 10px; line-height: 1.6; }
.aside-plus-btn { height: 30px; padding: 0 14px; border-radius: 999px; background: #E8B45C; color: #3A2A16; font-size: 10.5px; font-weight: 600; }

/* ---------- 桌面端布局 ---------- */
@media (min-width: 1000px) {
  body { display: block !important; align-items: initial !important; justify-content: initial !important; padding: 0 !important; overflow: hidden; }
  #app {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: 66px minmax(0, 1fr);
    grid-template-areas: "nav head" "nav main";
    max-width: none; height: 100dvh; border-radius: 0; border: 0; box-shadow: none;
  }
  .topbar, #app[data-route] .topbar { display: flex !important; grid-area: head; padding: 0 30px; background: rgba(250, 245, 235, .92); }
  .view { grid-area: main; }
  .tabbar, #app[data-route] .tabbar {
    display: flex !important; grid-area: nav; flex-direction: column; justify-content: flex-start;
    gap: 4px; padding: 18px 10px; border-top: 0; border-right: 1px solid rgba(217, 201, 178, .7);
    background: rgba(250, 245, 235, .92);
  }
  .tab { flex-direction: column; gap: 3px; padding: 10px 0; border-radius: 12px; }
  .tab-ic { width: 46px; height: 30px; }
  .tab span:last-child { font-size: 10px; }
  .page { max-width: 1120px; margin: 0 auto; padding: 22px 30px 44px; }
  .page-detail { padding: 0 0 34px; }
  .detail-body { max-width: 920px; margin-left: auto; margin-right: auto; }
  .page-home .list { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
  .page-home .home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
  .home-aside { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; }
  .page-calendar { max-width: 880px; }
  .calendar .cal-grid, .cal-grid { gap: 6px; }
  .price-grid { grid-template-columns: repeat(4, 1fr); }
  .page-prices, .page-compare, .page-legal, .page-member, .page-about, .page-feedback, .page-download { max-width: 860px; }
  .page-compare .cmp-list { max-width: 720px; }
  .map-cards .map-card { width: 280px; }
  .map-sheet { padding-bottom: 16px; }
  .member-pill span { display: inline; }
}
@media (max-width: 380px) {
  .member-pill span { display: none; }
  .member-pill { padding: 0 9px; }
}
#app[data-route="member"] .topbar,
#app[data-route="member"] .tabbar,
#app[data-route="compare"] .topbar,
#app[data-route="compare"] .tabbar { display: none; }

/* ---------- 登录 / 账号 ---------- */
.page-login, .page-account { padding-top: 16px; }
.login-hero { text-align: center; padding: 8px 0 18px; }
.login-seal { margin: 0 auto 12px; width: 52px; height: 52px; font-size: 30px; }
.login-hero h3 { font-family: var(--serif); font-size: 22px; letter-spacing: .06em; }
.login-hero p { font-size: 10.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.7; }
.login-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; box-shadow: var(--shadow-sm);
}
.login-label { font-size: 10px; color: var(--ink-3); display: block; margin-bottom: 5px; }
.phone-input {
  display: flex; align-items: center; gap: 8px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px; background: #FFFDF7;
  padding: 0 12px; margin-bottom: 8px;
}
.phone-input span { font-size: 12px; color: var(--ink-3); border-right: 1px solid var(--line); padding-right: 8px; }
.phone-input input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; color: var(--ink); }
.code-input { display: flex; gap: 8px; margin-bottom: 12px; }
.code-input input {
  flex: 1; min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: #FFFDF7; padding: 0 12px; font-size: 14px; outline: none;
}
.send-code {
  width: 104px; flex: 0 0 auto; border-radius: 12px; border: 1px solid var(--line);
  background: #F7EFE1; font-size: 11px; color: var(--ink-2);
}
.send-code:disabled { opacity: .6; }
.login-submit { width: 100%; height: 44px; }
.login-hint { font-size: 9px; color: var(--ink-3); text-align: center; margin-top: 8px; }
.login-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; color: var(--ink-3); font-size: 9.5px; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
.social-btn {
  height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #FBF5E9;
  display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; color: var(--ink);
}
.social-apple { background: #111; color: #fff; border-color: #111; }
.social-btn svg { width: 14px; height: 14px; }
.social-btn i {
  width: 16px; height: 16px; border-radius: 50%; font-style: normal; font-size: 9px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.social-wechat i { background: #1AAD19; }
.social-alipay i { background: #1677FF; }
.login-agree { display: flex; gap: 7px; align-items: flex-start; margin-top: 14px; font-size: 10px; color: var(--ink-2); line-height: 1.7; }
.login-agree input { margin-top: 3px; accent-color: var(--red); }
.login-agree button { color: var(--red-2); text-decoration: underline; font-size: 10px; }
.login-note { font-size: 9px; color: var(--ink-3); line-height: 1.7; margin-top: 10px; text-align: center; }
.account-card {
  display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px;
  background: linear-gradient(140deg, #F7E7C8, #EFD9B2); border: 1px solid #E4C892;
}
.account-avatar {
  width: 48px; height: 48px; border-radius: 14px; flex: 0 0 auto;
  background: #3A2A16; color: #E8B45C; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 22px;
}
.account-card b { font-size: 16px; }
.account-card p { font-size: 10px; color: #7C5A2E; margin-top: 3px; }
.account-card .plus-chip { margin-left: auto; }
.account-actions { display: flex; gap: 8px; margin-top: 12px; }
.account-actions .btn { flex: 1; height: 42px; }
.btn-danger { background: #F8E7E0; color: #A63D32; border: 1px solid #EBCFC5; }
.me-login {
  margin-left: auto; height: 30px; padding: 0 14px; border-radius: 999px;
  background: var(--ink); color: #FBF3E6; font-size: 10.5px; flex: 0 0 auto;
}
.me-avatar--guest { background: radial-gradient(circle at 30% 25%, #FFF9EC, #F3E3C6); color: var(--red-2); }
#app[data-route="login"] .topbar, #app[data-route="login"] .tabbar,
#app[data-route="account"] .topbar, #app[data-route="account"] .tabbar { display: none; }
