/* footspa H5 —— 暖调静谧的休闲风，移动优先 */
:root {
  --bg: #f4f1ec;            /* 暖米白 */
  --surface: #fffdf9;
  --ink: #23201c;
  --muted: #8a8178;
  --line: #e7e0d6;
  --accent: #0f7d6e;        /* 静谧青绿 */
  --accent-ink: #0a5a4f;
  --warm: #c8702d;          /* 评分/价格暖橙 */
  --shadow: 0 6px 22px rgba(40, 32, 20, .08);
  --radius: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font: 16px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg); color: var(--ink);
  padding-bottom: env(safe-area-inset-bottom);
}

/* 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: linear-gradient(180deg, var(--surface), #fffdf9f0);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
  padding: calc(env(safe-area-inset-top) + 12px) 16px 12px;
}
.brand { font-weight: 800; font-size: 22px; letter-spacing: -.5px; display: flex; align-items: baseline; gap: 8px; }
.brand small { font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: 2px; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #0f7d6e22; }
.search { display: flex; gap: 8px; margin-top: 12px; }
.search input {
  flex: 1; border: 1px solid var(--line); background: var(--surface);
  border-radius: 12px; padding: 11px 14px; font-size: 15px; color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #0f7d6e22; }
.search button {
  border: none; background: var(--accent); color: #fff; font-weight: 600;
  border-radius: 12px; padding: 0 16px; font-size: 14px;
}
.search button:active { background: var(--accent-ink); }
.status { margin-top: 8px; font-size: 12.5px; color: var(--muted); }

/* 列表 */
main { padding: 14px 16px 40px; max-width: 720px; margin: 0 auto; }
.listhead { font-size: 13px; color: var(--muted); margin: 4px 2px 12px; font-weight: 600; }
.hint { color: var(--muted); padding: 36px 8px; text-align: center; }
.hint.err { color: #b3402f; }

.card {
  display: flex; gap: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; margin-bottom: 12px; box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease; cursor: pointer;
}
.card:active { transform: scale(.985); box-shadow: 0 3px 12px rgba(40,32,20,.1); }
.thumb {
  width: 92px; height: 92px; flex: none; border-radius: 12px;
  background: #ece6dc center/cover no-repeat;
}
.thumb.noimg { background: repeating-linear-gradient(135deg, #efe9df, #efe9df 8px, #ece6dc 8px, #ece6dc 16px); }
.meta { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.row1 { display: flex; align-items: baseline; gap: 8px; }
.name { font-size: 16.5px; font-weight: 700; margin: 2px 0 0; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dist { font-size: 12.5px; color: var(--accent-ink); font-weight: 700; flex: none; }
.row2 { display: flex; gap: 10px; align-items: center; margin: 6px 0 2px; }
.rating { color: var(--warm); font-weight: 700; font-size: 13.5px; }
.cat { font-size: 12px; color: var(--muted); background: #f0ebe2; padding: 2px 8px; border-radius: 999px; }
/* 营业状态角标：疑似停业=暖橙警示，已停业=红 */
.st { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; flex: none; }
.st.warn { color: #9a4a12; background: #f6c98a55; }
.st.closed { color: #a32a1c; background: #e0867833; }
.card.dim { opacity: .62; }
.card.dim .thumb { filter: grayscale(.6); }
.addr { font-size: 12.5px; color: var(--muted); margin-top: auto;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 详情 */
.back { background: none; border: none; color: var(--accent-ink); font-size: 15px; padding: 6px 2px; font-weight: 600; }
.detail h2 { font-size: 24px; letter-spacing: -.5px; margin: 4px 0 10px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.badges span { font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.badges .rt { color: var(--warm); background: #c8702d18; font-weight: 700; }
.badges .ct { color: var(--muted); background: #f0ebe2; }
.badges .ds { color: var(--accent-ink); background: #0f7d6e18; font-weight: 700; }
/* 详情页营业状态横幅 + 探店备注 */
.stbanner { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-weight: 800; font-size: 15px; }
.stbanner small { display: block; margin-top: 6px; font-weight: 500; font-size: 12.5px; line-height: 1.5; opacity: .9; }
.stbanner.warn { color: #8a3f0c; background: #f6c98a33; border: 1px solid #e7a85e66; }
.stbanner.closed { color: #92271a; background: #e0867822; border: 1px solid #cf6c5e66; }
.photos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }.photos .ph { width: 150px; height: 110px; flex: none; border-radius: 12px; background: #ece6dc center/cover; }
.noimg-box { background: var(--surface); border: 1px dashed var(--line); border-radius: 12px;
  padding: 22px; text-align: center; color: var(--muted); margin-bottom: 14px; }
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: none; }
.kv span { color: var(--muted); font-size: 14px; flex: none; }
.kv b { font-weight: 600; text-align: right; }
.kv a { color: var(--accent-ink); }
.navbtns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.navbtns a {
  color: #fff; background: var(--accent); text-decoration: none; font-weight: 600;
  padding: 9px 16px; border-radius: 12px;
}
.navbtns a:active { background: var(--accent-ink); }
.soon { text-align: center; color: var(--muted); font-size: 13px; padding: 16px;
  border: 1px dashed var(--line); border-radius: 12px; }
