:root {
  --bg: #F7F6F3;
  --card: #FFFFFF;
  --line: #ECEAE6;
  --line-soft: #F1EFEB;
  --ink: #1C1917;
  --ink-2: #57534E;
  --muted: #78716C;
  --faint: #A8A29E;
  --green: #2F7D46;
  --green-bg: #E9F5EC;
  --blue: #1D4ED8;
  --blue-bg: #EAF0FD;
  --amber: #9A5B2A;
  --warn: #9A3412;
  --warn-bg: #FFF1E6;
  --radius: 18px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
a { color: inherit; }
a:hover { color: var(--green); }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); }

/* 顶部 */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(247, 246, 243, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 14px; }
.topbar-row.sub { padding-top: 4px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { border-radius: 12px; display: block; }
.brand span { display: flex; flex-direction: column; }
.brand b { font-size: 20px; font-weight: 900; letter-spacing: 1px; }
.brand small { font-size: 12px; color: var(--muted); }
.search { flex: 0 1 380px; display: flex; align-items: center; gap: 10px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 14px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.search:focus-within { border-color: var(--ink-2); }
kbd { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.tabs { display: flex; gap: 4px 24px; flex-wrap: wrap; }
.tabs a { padding: 12px 0; text-decoration: none; font-size: 15px; color: var(--ink-2); border-bottom: 2px solid transparent; }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.meta { display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; padding: 8px 0; }
.meta b { font-family: var(--mono); color: var(--ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 6px; }

main { padding-top: 36px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 44px; min-height: 60vh; }
.loading, .empty { color: var(--muted); padding: 40px 0; }
.notice { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 12px 16px; font-size: 14px; }

/* 首屏 */
.hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--amber); }
.hero h1 { margin: 0; font-size: 52px; line-height: 1.2; font-weight: 900; letter-spacing: -0.5px; }
.hero p { margin: 0; font-size: 16px; line-height: 1.8; color: var(--ink-2); max-width: 520px; }
.checks { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 20px; display: flex; flex-wrap: wrap; gap: 0 28px; max-width: 560px; }
.checks span { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-size: 14px; }
.tick { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hot { flex: 1 1 420px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.hot-title { padding: 18px 22px 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.hot a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; border-top: 1px solid var(--line-soft); text-decoration: none; }
.hot-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.hot-name b { font-size: 15px; }
.sub-line { font-size: 12px; color: var(--muted); }
.sub-line .ok { color: var(--green); font-weight: 700; }
.bar { height: 4px; border-radius: 2px; background: #EEF0EC; max-width: 220px; margin-top: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 2px; }
.price { display: flex; align-items: baseline; gap: 4px; flex: none; }
.price b { font-family: var(--mono); font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.price small { font-size: 12px; color: var(--muted); }
.price.lg b { font-size: 28px; }

/* 分区与卡片 */
.section { display: flex; flex-direction: column; gap: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-title { display: flex; align-items: center; gap: 14px; }
.section-title h2 { margin: 0; font-size: 24px; font-weight: 900; }
.section-title small { font-size: 13px; color: var(--muted); display: block; }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.link-more { font-size: 14px; color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: border-color .15s; }
a.card:hover { border-color: #CFCBC4; color: inherit; }
.card-name { font-size: 17px; font-weight: 700; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12px; border-radius: 6px; padding: 2px 8px; background: #F3F2EF; color: var(--ink-2); }
.chip.ok { background: var(--green-bg); color: var(--green); font-weight: 700; }
.chip.new { background: var(--blue-bg); color: var(--blue); font-weight: 700; }
.chip.warn { background: var(--warn-bg); color: var(--warn); font-weight: 700; }
.card-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 14px; }
.card-foot .who { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); }
.na { font-size: 14px; color: var(--muted); }

/* 攻略、行情 */
.section-label { display: flex; flex-direction: column; gap: 6px; }
.section-label h2 { margin: 0; font-size: 30px; font-weight: 900; }
.guide { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.guide summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary b { font-size: 18px; font-weight: 900; }
.guide summary span { font-size: 14px; color: var(--ink-2); }
.guide div { margin-top: 14px; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.guide div p { margin: 0 0 8px; }
.two-col { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.two-col > * { flex: 1 1 480px; min-width: 0; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list > a, .list > div { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.list > :last-child { border-bottom: 0; }
.grow { flex: 1; min-width: 0; }
.about-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.about-card b { font-size: 15px; }
.about-card span { font-size: 13px; line-height: 1.7; color: var(--ink-2); }

/* 详情页 */
.back { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: flex-end; }
.detail-head h1 { margin: 6px 0 8px; font-size: 36px; font-weight: 900; }
.offers { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.offer { display: grid; grid-template-columns: 200px minmax(0, 1fr) 150px 96px; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.offer .price { justify-content: flex-end; }
.offer:last-child { border-bottom: 0; }
.offer.dim { opacity: 0.55; }
.offer .shop { font-weight: 700; }
.offer .t { font-size: 13px; color: var(--ink-2); }
.go { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.go:hover { color: #fff; background: #000; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg a { text-decoration: none; font-size: 14px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.seg a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.table-wrap { overflow-x: auto; }
table.shops { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); }
table.shops th, table.shops td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; }
table.shops th { font-size: 12px; color: var(--muted); font-weight: 500; }

/* 页脚 */
.footer { margin-top: 64px; border-top: 1px solid var(--line); }
.footer-row { padding-top: 40px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-about { flex: 1 1 320px; max-width: 460px; display: flex; flex-direction: column; gap: 10px; }
.footer-about b { font-size: 20px; font-weight: 900; }
.footer-about p { margin: 0; font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.footer-about small { color: var(--muted); }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-links div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }

/* 手机 */
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .search { flex: 1 1 100%; order: 3; }
  .search kbd { display: none; }
  .tabs { gap: 4px 18px; overflow-x: auto; flex-wrap: nowrap; width: 100%; }
  .tabs a { white-space: nowrap; }
  .meta { gap: 6px 14px; padding-top: 0; }
  main { padding-top: 20px; gap: 32px; }
  .hero h1 { font-size: 34px; line-height: 1.25; }
  .hero p { font-size: 15px; }
  .checks { flex-direction: column; padding: 4px 18px; }
  .checks span { border-bottom: 1px solid var(--line-soft); }
  .checks span:last-child { border-bottom: 0; }
  .section-title h2 { font-size: 21px; }
  .icon-tile { width: 40px; height: 40px; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .section-label h2 { font-size: 26px; }
  .detail-head h1 { font-size: 28px; }
  .offer { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .offer .t { grid-column: 1 / -1; order: 3; }
  .offer .go { grid-column: 1 / -1; order: 4; }
}
