/* ============================================================
   京园漫游 · 样式
   宣纸米白 + 墨绿 + 朱砂红，全部手写，无外链资源。
   ============================================================ */

:root {
  --paper: #f6f1e5;
  --paper-2: #fbf8f0;
  --paper-3: #efe6d4;
  --ink: #26251f;
  --ink-soft: #4f4c42;
  --ink-mute: #7c7568;
  --ink-faint: #a59b8a;
  --line: #e2d7c1;
  --line-strong: #cbbfa6;
  --moss: #26463a;
  --moss-2: #35594a;
  --moss-3: #6f8b7a;
  --moss-soft: #dbe4d7;
  --cinnabar: #b23a2b;
  --cinnabar-2: #c94f3a;
  --cinnabar-soft: #f3ded6;
  --gold: #b3915a;
  --shadow-sm: 0 1px 2px rgba(38, 37, 31, .05), 0 6px 16px -10px rgba(38, 37, 31, .28);
  --shadow-md: 0 2px 6px rgba(38, 37, 31, .06), 0 22px 40px -24px rgba(38, 37, 31, .38);
  --shadow-lg: 0 40px 90px -32px rgba(20, 30, 25, .55);
  --radius: 20px;
  --serif: "Songti SC", "STSong", "STZhongsong", "SimSun", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 720px at 8% -12%, rgba(255, 252, 244, .92), transparent 62%),
    radial-gradient(900px 620px at 102% 0%, rgba(214, 228, 211, .5), transparent 58%),
    radial-gradient(760px 520px at 50% 118%, rgba(226, 212, 185, .6), transparent 62%),
    repeating-linear-gradient(94deg, rgba(120, 101, 72, .028) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(2deg, rgba(120, 101, 72, .02) 0 1px, transparent 1px 4px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.modal-open { overflow: hidden; }

[hidden] { display: none !important; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: 2px; }
::selection { background: rgba(178, 58, 43, .18); }

.page { flex: 1 0 auto; position: relative; overflow-x: clip; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 18px;
  top: -60px;
  z-index: 500;
  background: var(--moss);
  color: #f8f3e6;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---------------- 按钮与通用件 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

.btn-primary {
  background: linear-gradient(158deg, var(--moss-2), var(--moss) 58%, #1b352a);
  color: #f9f4e6;
  box-shadow: 0 8px 20px -10px rgba(28, 56, 44, .65), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -10px rgba(28, 56, 44, .6), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-ghost {
  background: rgba(251, 248, 240, .86);
  border-color: var(--line);
  color: var(--ink-soft);
}
.btn-ghost:hover {
  border-color: var(--moss-3);
  color: var(--moss);
  background: #fffdf7;
  transform: translateY(-1px);
}
.btn-cinnabar {
  background: linear-gradient(158deg, var(--cinnabar-2), var(--cinnabar) 60%, #942c20);
  color: #fdf5e8;
  box-shadow: 0 8px 20px -10px rgba(148, 44, 32, .6);
}
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 13px 27px; font-size: 15.5px; }

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--cinnabar);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: #8d291d; }

.icon-btn {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  transition: background .18s, color .18s;
}
.icon-btn:hover { background: rgba(38, 70, 58, .08); color: var(--moss); }
.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.paper-panel {
  background: linear-gradient(180deg, rgba(255, 252, 245, .94), rgba(249, 244, 233, .94));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--moss-2);
  background: rgba(111, 139, 122, .12);
  border: 1px solid rgba(111, 139, 122, .18);
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(111, 139, 122, .11);
  color: var(--moss-2);
  border: 1px solid rgba(111, 139, 122, .16);
  white-space: nowrap;
}

.form-error {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--cinnabar);
  background: rgba(178, 58, 43, .07);
  border: 1px solid rgba(178, 58, 43, .18);
  border-radius: 10px;
  padding: 7px 11px;
}
.form-error:not([hidden]) { display: block; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.field > span { letter-spacing: .07em; color: var(--ink-soft); }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, .9);
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--moss-3);
  box-shadow: 0 0 0 3px rgba(38, 70, 58, .09);
  background: #fffdf7;
}

/* ---------------- 顶部导航 ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 242, 230, .86);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  border-bottom: 1px solid rgba(203, 191, 166, .55);
}

.topbar-inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 26px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand { display: flex; align-items: center; gap: 11px; flex: none; }

.brand-seal {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(150deg, #c14a36, #9a2f22 72%);
  color: #fbf3e3;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(154, 47, 34, .28), inset 0 0 0 1px rgba(255, 240, 220, .35);
  transform: rotate(-2deg);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.04; }
.brand-text strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--ink);
}
.brand-text small {
  margin-top: 4px;
  font-size: 8.5px;
  letter-spacing: .34em;
  color: var(--ink-faint);
}

.main-nav { display: flex; align-items: center; gap: 3px; flex: none; }

.nav-link {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: background .18s, color .18s;
}
.nav-link:hover { color: var(--moss); background: rgba(38, 70, 58, .06); }
.nav-link.is-active { color: var(--moss); background: rgba(38, 70, 58, .09); font-weight: 500; }

.nav-search {
  flex: 1 1 auto;
  max-width: 360px;
  min-width: 150px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 248, 240, .9);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.nav-search:focus-within {
  border-color: var(--moss-3);
  background: #fffdf7;
  box-shadow: 0 0 0 3px rgba(38, 70, 58, .08);
}
.nav-search-icon {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: var(--ink-mute);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.nav-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13.5px;
}
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

.topbar-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.nav-cta { display: inline-flex; }

.auth-area { display: flex; align-items: center; }

.user-menu { position: relative; }
.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(251, 248, 240, .88);
  color: var(--ink-soft);
  transition: border-color .18s, background .18s;
}
.user-btn:hover { border-color: var(--moss-3); background: #fffdf7; }
.user-avatar {
  width: 27px;
  height: 27px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--moss-2), var(--moss));
  color: #f5efdf;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1;
}
.user-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
}
.user-caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--ink-mute);
  transform: translateY(1px);
}
.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 172px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  z-index: 70;
}
.user-dropdown button {
  border: 0;
  background: none;
  padding: 9px 12px;
  border-radius: 9px;
  text-align: left;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.user-dropdown button:hover { background: rgba(38, 70, 58, .08); color: var(--moss); }

.mobile-search-btn, .drawer-toggle { display: none; }

.mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 65;
  padding: 14px 18px 18px;
  flex-direction: column;
  gap: 12px;
  background: rgba(250, 246, 237, .98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 44px -26px rgba(30, 40, 33, .5);
  backdrop-filter: blur(20px);
}
.drawer-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.drawer-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(203, 191, 166, .38);
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.drawer-nav a:last-child { border-bottom: 0; }
.drawer-nav a:hover { background: rgba(38, 70, 58, .06); color: var(--moss); }
.drawer-auth { display: flex; gap: 8px; }
.drawer-auth .btn { flex: 1; }
.drawer-user { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--moss); width: 100%; }
.drawer-user span { margin-right: auto; }

/* ---------------- 首屏 Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7.5vw, 90px) 0 clamp(120px, 15vw, 178px);
  isolation: isolate;
}

.hero-scene {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: min(46vh, 360px);
  min-height: 250px;
  z-index: -1;
  pointer-events: none;
  opacity: .96;
}
.hero-scene svg { width: 100%; height: 100%; }
.hero-season-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}
.hero-season-bg.is-missing { display: none; }
.hero-scene-fallback { position: absolute; inset: 0; }
.hero-scene-fallback[hidden] { display: none; }
.hero-scene-fallback svg { width: 100%; height: 100%; display: block; }
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(246, 241, 229, .8) 0%, rgba(246, 241, 229, .32) 42%, rgba(246, 241, 229, 0) 78%);
}

.hero-inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 26px;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12.5px;
  letter-spacing: .26em;
  color: var(--moss-3);
}
.hero-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--cinnabar);
  opacity: .72;
}
.season-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
  padding: 3px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 247, .76);
  color: var(--moss);
  font-size: 11.5px;
  letter-spacing: .08em;
  line-height: 1.4;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}
.hero[data-season="autumn"] .season-chip { color: #9a5a22; border-color: rgba(154, 90, 34, .35); }
.hero[data-season="spring"] .season-chip { color: #4f7343; border-color: rgba(79, 115, 67, .32); }
.hero[data-season="summer"] .season-chip { color: #2f6a58; border-color: rgba(47, 106, 88, .32); }
.hero[data-season="winter"] .season-chip { color: #52616b; border-color: rgba(82, 97, 107, .32); }

.hero-title {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(52px, 8.2vw, 94px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: .13em;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}
.hero-art-title {
  margin-bottom: 26px;
  line-height: 0;
  max-width: 980px;
}
.hero-art-title img {
  display: block;
  width: min(100%, 980px);
  height: auto;
  filter: drop-shadow(0 10px 16px rgba(31, 61, 51, .10));
}
@media (max-width: 700px) {
  .hero-art-title { margin-bottom: 18px; }
  .hero-art-title img { width: 100%; }
}

.hero-lead {
  max-width: 570px;
  margin: 0 0 30px;
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.95;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 320px;
  max-width: 440px;
  min-width: 0;
  padding: 5px 5px 5px 16px;
  background: rgba(251, 248, 240, .93);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero-search svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--ink-mute);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14.5px;
}
.hero-search .btn { flex: none; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  max-width: 620px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(203, 191, 166, .6);
}
.hero-stats:empty { display: none; }
.stat {
  padding: 0 clamp(16px, 2.4vw, 28px);
  border-left: 1px solid rgba(203, 191, 166, .6);
}
.stat:first-child { padding-left: 0; border-left: 0; }
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--moss);
}
.stat span { font-size: 12px; letter-spacing: .12em; color: var(--ink-mute); }

.boot-screen {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--ink-mute);
}
.boot-screen p { margin: 0; font-size: 13px; letter-spacing: .16em; }
.boot-seal {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(150deg, #c14a36, #952d21);
  color: #fbf3e3;
  font-family: var(--serif);
  font-size: 26px;
  animation: boot-pulse 1.9s ease-in-out infinite;
}
@keyframes boot-pulse {
  0%, 100% { opacity: .72; transform: rotate(-2deg) scale(.97); }
  50% { opacity: 1; transform: rotate(-2deg) scale(1.04); }
}

/* ---------------- 公园库 ---------------- */

.library {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 26px 100px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-bottom: 18px;
}
.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-sub { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-mute); }
.section-aside {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-faint);
  padding-bottom: 6px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px 12px;
  background: rgba(251, 248, 240, .68);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(6px);
}
.toolbar .spacer { flex: 1; }

.select-wrap { position: relative; display: inline-flex; align-items: center; min-width: 0; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 116px;
  max-width: 100%;
  padding: 8px 31px 8px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 247, .92);
  font-size: 13.5px;
  color: var(--ink-soft);
  outline: none;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}
.select-wrap select:hover { border-color: var(--line-strong); }
.select-wrap select:focus { border-color: var(--moss-3); box-shadow: 0 0 0 3px rgba(38, 70, 58, .08); }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 1.6px solid var(--ink-mute);
  border-bottom: 1.6px solid var(--ink-mute);
  transform: rotate(45deg);
  pointer-events: none;
}

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(239, 230, 212, .72);
}
.seg button {
  border: 0;
  padding: 6px 13px;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  color: var(--ink-mute);
  transition: background .18s, color .18s, box-shadow .18s;
}
.seg button:hover { color: var(--moss); }
.seg button.is-active {
  background: var(--paper-2);
  color: var(--moss);
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(38, 37, 31, .12);
}
.sort-label { font-size: 12.5px; color: var(--ink-faint); }

.btn-reset {
  border: 0;
  background: none;
  padding: 4px 2px;
  font-size: 12.5px;
  color: var(--ink-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-reset:hover { color: var(--cinnabar); }

.results-count {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: var(--ink-mute);
  letter-spacing: .02em;
}
.results-count strong { font-family: var(--serif); font-size: 16px; color: var(--moss); font-weight: 500; }

.park-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  text-align: center;
}
.load-more-note {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: .07em;
  color: var(--ink-faint);
}

/* ---------------- 公园卡片 ---------------- */

.park-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, #fdfaf3, #f8f3e8);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .28s cubic-bezier(.2, .7, .3, 1), box-shadow .28s, border-color .28s;
}
.park-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

/* 配图（本地 SVG 插画）固定 16:9，避免加载抖动；404 时由 JS 注入内联 SVG 兜底。 */
.park-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex: none;
  overflow: hidden;
  background: linear-gradient(160deg, #e9efe3, #f2ecd9);
}
.park-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.park-photo.is-missing { display: none; }
.park-art-fallback { position: absolute; inset: 0; overflow: hidden; }
.park-art-fallback[hidden] { display: none; }
.card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(28, 40, 32, .14), rgba(255, 255, 255, 0) 44%, rgba(28, 40, 32, .06));
}

.card-scene-wrap {
  position: relative;
  height: 150px;
  flex: none;
  overflow: hidden;
  background: linear-gradient(160deg, #e9efe3, #f2ecd9);
}
.card-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.card-scene-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 40, 32, .16), rgba(255, 255, 255, 0) 44%, rgba(28, 40, 32, .07));
  pointer-events: none;
}

.card-overlay-top {
  position: absolute;
  top: 11px;
  left: 11px;
  right: 11px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.badge-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--moss);
  background: rgba(250, 247, 239, .9);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 2px 8px rgba(31, 59, 50, .13);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.mark-group { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

.mark-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(38, 70, 58, .28);
  background: rgba(250, 247, 239, .88);
  color: var(--moss);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(31, 59, 50, .1);
  backdrop-filter: blur(4px);
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.mark-btn svg {
  width: 11px;
  height: 11px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .72;
}
.mark-btn:hover { border-color: var(--moss); background: #fffdf6; transform: translateY(-1px); }
.mark-btn.is-on { color: #fdf6e9; border-color: transparent; }
.mark-btn.is-on svg { opacity: 1; }
.mark-btn.is-on[data-mark="visited"] {
  background: linear-gradient(150deg, #c04a36, #a23325);
  box-shadow: 0 4px 12px -4px rgba(162, 51, 37, .6);
}
.mark-btn.is-on[data-mark="wantAgain"] {
  background: linear-gradient(150deg, #35594a, #244437);
  box-shadow: 0 4px 12px -4px rgba(36, 68, 55, .55);
}
.mark-btn.is-busy { opacity: .55; pointer-events: none; }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 15px 17px 16px;
  min-width: 0;
}

.card-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.card-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .04em;
  color: var(--ink);
  min-width: 0;
}
.card-district {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--ink-mute);
  white-space: nowrap;
}
.card-district svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 2px;
}
.stars { display: inline-flex; align-items: center; gap: 1px; }
.star {
  border: 0;
  background: none;
  padding: 0 1px;
  font-size: 20px;
  line-height: 1;
  color: #d8cbb4;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
  transition: color .14s, transform .14s;
}
.star:hover { transform: scale(1.16); }
.star.is-on,
.star.is-preview { color: var(--cinnabar); }
.rating-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 4px;
  font-size: 12px;
  color: var(--ink-mute);
}
.rating-meta .avg-num {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  color: var(--moss);
}
.rating-meta .my-rating {
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(178, 58, 43, .09);
  color: var(--cinnabar);
  font-size: 10.5px;
  font-style: normal;
  white-space: nowrap;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px dashed rgba(203, 191, 166, .7);
}
.card-open { font-size: 11px; color: var(--ink-faint); letter-spacing: .02em; }

/* ---------------- 骨架屏 / 空态 / 错误态 ---------------- */

.sk {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(90deg, #ebe2d1 25%, #f8f2e5 37%, #ebe2d1 63%);
  background-size: 400% 100%;
  animation: sk-shimmer 1.5s ease infinite;
}
@keyframes sk-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.skeleton-card { pointer-events: none; }
.skeleton-card:hover { transform: none; box-shadow: var(--shadow-sm); }
.sk-scene { height: 150px; border-radius: 0; aspect-ratio: 16 / 9; height: auto; min-height: 120px; }
.sk-line { height: 12px; border-radius: 6px; }
.sk-line.w80 { width: 80%; }
.sk-line.w60 { width: 60%; }
.sk-line.w40 { width: 40%; }
.sk-line.w30 { width: 30%; }
.sk-chip-row { display: flex; gap: 6px; }
.sk-chip { width: 52px; height: 20px; border-radius: 999px; }

.state-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 60px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 22px;
  background: rgba(251, 248, 240, .5);
  color: var(--ink-mute);
}
.state-icon {
  width: 76px;
  height: 76px;
  fill: none;
  stroke: var(--moss-3);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .8;
}
.state-panel h3 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink);
}
.state-panel p { margin: 0; max-width: 420px; font-size: 13.5px; line-height: 1.8; }
.state-panel .btn { margin-top: 14px; }
.state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.state-actions .btn { margin-top: 0; }
.state-panel.is-error .state-icon { stroke: var(--cinnabar); opacity: .75; }
.state-panel.is-error h3 { color: var(--cinnabar); }

/* ---------------- 详情弹窗 ---------------- */

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-layer[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 36, 29, .54);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity .2s ease;
}
.modal-layer.is-open .modal-backdrop { opacity: 1; }

.modal {
  position: relative;
  z-index: 1;
  max-width: 100%;
  background: var(--paper-2);
  border-radius: 22px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .35);
  opacity: 0;
  transform: translateY(16px) scale(.985);
  transition: transform .24s cubic-bezier(.2, .8, .3, 1), opacity .24s ease;
}
.modal-layer.is-open .modal { opacity: 1; transform: none; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(28, 40, 33, .38);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  backdrop-filter: blur(4px);
  transition: background .18s, transform .18s;
}
.modal-close:hover { background: rgba(28, 40, 33, .66); transform: rotate(90deg); }

.detail-modal {
  width: min(940px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
}
.detail-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.detail-hero {
  position: relative;
  flex: none;
  height: clamp(210px, 30vw, 300px);
  overflow: hidden;
  background: linear-gradient(160deg, #e8efe3, #f1ebd8);
}
.detail-hero .card-scene-wrap { height: 100%; }
.park-visual.detail-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.detail-hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 28px 20px;
  background: linear-gradient(0deg, rgba(20, 32, 26, .66), rgba(20, 32, 26, .04));
  color: #fbf6e9;
}
.detail-hero-overlay .badge-category {
  align-self: flex-start;
  color: var(--moss);
  background: rgba(250, 247, 239, .92);
}
.detail-hero-overlay h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .09em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
.detail-hero-overlay p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 12.5px;
  color: rgba(251, 246, 233, .86);
  word-break: break-word;
}

.detail-scroll {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 28px 34px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.detail-actions .mark-btn { font-size: 13px; padding: 8px 15px; gap: 6px; }
.detail-actions .mark-btn svg { width: 14px; height: 14px; }
.detail-open { font-size: 12.5px; color: var(--ink-mute); }

.detail-rating-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
}
.rating-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; flex: none; }
.rating-big strong {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 500;
  line-height: 1;
  color: var(--moss);
}
.rating-big .rating-big-label { font-size: 11.5px; letter-spacing: .06em; color: var(--ink-mute); }

.distribution { flex: 1; min-width: 210px; display: flex; flex-direction: column; gap: 5px; }
.distribution:empty { display: none; }
.dist-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-mute); }
.dist-star { flex: none; width: 24px; white-space: nowrap; }
.dist-bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(203, 191, 166, .38); overflow: hidden; }
.dist-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cinnabar-2), var(--cinnabar)); transition: width .3s; }
.dist-count { flex: none; width: 20px; text-align: right; }

.detail-my-rating {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.detail-my-rating .my-rating { font-size: 11px; }
.rating-hint { font-size: 11.5px; color: var(--ink-faint); letter-spacing: .02em; }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.meta-cell {
  min-width: 0;
  padding: 11px 13px;
  background: rgba(239, 230, 212, .4);
  border: 1px solid rgba(203, 191, 166, .5);
  border-radius: 13px;
}
.meta-cell span {
  display: block;
  margin-bottom: 3px;
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--ink-faint);
}
.meta-cell strong {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  word-break: break-word;
}
.meta-cell.wide { grid-column: 1 / -1; }

.detail-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-soft);
  text-align: justify;
}

.detail-block h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink);
}
.detail-block h3::before {
  content: "";
  width: 14px;
  height: 1.5px;
  background: var(--cinnabar);
  opacity: .72;
}
.highlight-list,
.facility-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.highlight-list li {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(38, 70, 58, .12);
  background: rgba(38, 70, 58, .07);
  font-size: 13px;
  color: var(--moss-2);
}
.facility-list li {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(111, 139, 122, .2);
  background: rgba(111, 139, 122, .1);
  font-size: 12.5px;
  color: var(--moss-2);
}

.reviews-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
}
.reviews-head h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .08em;
}
.reviews-head .hint { font-size: 11.5px; color: var(--ink-faint); }
.count-badge {
  padding: 1px 9px;
  border-radius: 999px;
  background: rgba(111, 139, 122, .14);
  color: var(--moss-2);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .02em;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 15px;
  background: rgba(255, 253, 247, .72);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.review-form textarea {
  width: 100%;
  min-height: 86px;
  max-height: 280px;
  resize: vertical;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}
.review-form textarea::placeholder { color: var(--ink-faint); }
.review-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  min-height: 32px;
}
.review-count { margin-right: auto; font-size: 11.5px; color: var(--ink-faint); letter-spacing: .02em; }
.review-form-foot .form-error { flex: 1 1 220px; }

.review-login-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: rgba(239, 230, 212, .45);
  font-size: 13px;
  color: var(--ink-mute);
}

.review-list { display: flex; flex-direction: column; }
.review-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 2px;
  border-bottom: 1px dashed rgba(203, 191, 166, .62);
}
.review-item:last-child { border-bottom: 0; }
.review-item.is-mine {
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(178, 58, 43, .05), transparent 70%);
}
.review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  font-size: 12px;
  color: var(--ink-mute);
}
.review-avatar {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--moss-soft);
  color: var(--moss);
  font-family: var(--serif);
  font-size: 11px;
}
.review-author { font-size: 13px; font-weight: 500; color: var(--ink); }
.badge-mine {
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(178, 58, 43, .3);
  background: rgba(178, 58, 43, .07);
  color: var(--cinnabar);
  font-size: 10px;
}
.review-time { margin-left: auto; font-size: 11px; color: var(--ink-faint); }
.review-content {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
}
.review-empty { margin: 0; padding: 22px 4px; text-align: center; font-size: 13px; color: var(--ink-faint); }

/* ---------------- 登录 / 注册 ---------------- */

.auth-modal {
  width: min(432px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 32px 34px 26px;
  border-radius: 24px;
}
.auth-head { margin-bottom: 16px; text-align: center; }
.auth-seal {
  width: 46px;
  height: 46px;
  margin: 0 auto 11px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(150deg, #c14a36, #952d21);
  color: #fbf3e3;
  font-family: var(--serif);
  font-size: 24px;
  box-shadow: 0 6px 16px -6px rgba(148, 44, 32, .55);
  transform: rotate(-3deg);
}
.auth-head h2 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .14em;
}
.auth-head p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-mute); }

.auth-message {
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(111, 139, 122, .1);
  border: 1px solid rgba(111, 139, 122, .18);
  color: var(--moss-2);
  font-size: 12.5px;
  line-height: 1.6;
}

.auth-tabs {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(239, 230, 212, .62);
}
.auth-tab {
  flex: 1;
  padding: 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 14px;
  color: var(--ink-mute);
  transition: background .18s, color .18s, box-shadow .18s;
}
.auth-tab.is-active {
  background: var(--paper-2);
  color: var(--moss);
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(38, 37, 31, .12);
}

#auth-form { display: flex; flex-direction: column; gap: 13px; }
.auth-switch { margin: 16px 0 0; text-align: center; font-size: 12.5px; color: var(--ink-mute); }
.auth-fineprint { margin: 10px 0 0; text-align: center; font-size: 10.5px; line-height: 1.7; color: var(--ink-faint); }

/* ---------------- 页面标题 ---------------- */

.page-head {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 26px 24px;
}
.page-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 11.5px;
  letter-spacing: .3em;
  color: var(--moss-3);
}
.page-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--cinnabar);
  opacity: .7;
}
.page-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .13em;
  color: var(--ink);
}
.page-lead {
  max-width: 640px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-soft);
}

/* ---------------- 推荐表单 ---------------- */

.recommend-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 26px 100px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.recommend-form { padding: 26px 28px; }
.form-head h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .09em;
}
.form-head p { margin: 0 0 22px; font-size: 13px; color: var(--ink-mute); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 22px;
}
.field-wide { grid-column: 1 / -1; }
.field-note { margin: 2px 0 0; font-size: 11.5px; color: var(--ink-faint); }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}
.choice { position: relative; display: block; min-width: 0; }
.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 46px;
  padding: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, .82);
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.choice small { font-size: 10.5px; color: var(--ink-faint); letter-spacing: .01em; }
.choice input:checked + span {
  background: linear-gradient(150deg, var(--moss-2), var(--moss));
  border-color: var(--moss);
  color: #f8f3e6;
  box-shadow: 0 5px 16px -8px rgba(38, 70, 58, .65);
}
.choice input:checked + span small { color: rgba(248, 243, 230, .72); }
.choice input:focus-visible + span { outline: 2px solid var(--cinnabar); outline-offset: 2px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, .82);
  font-size: 13px;
  color: var(--ink-soft);
  transition: background .18s, border-color .18s, color .18s;
}
.chip span::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  opacity: .32;
  transform: translateY(-1px);
}
.chip small { font-size: 10.5px; color: var(--ink-faint); }
.chip input:checked + span {
  background: rgba(178, 58, 43, .09);
  border-color: rgba(178, 58, 43, .5);
  color: var(--cinnabar);
  font-weight: 500;
}
.chip input:checked + span::before { opacity: 1; }
.chip input:checked + span small { color: rgba(178, 58, 43, .65); }
.chip input:focus-visible + span { outline: 2px solid var(--cinnabar); outline-offset: 2px; }

.location-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.location-row .select-wrap { flex: 1 1 150px; }
.location-row .select-wrap select { width: 100%; }
.geo-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 6px 0 0;
  font-size: 11.5px;
  color: var(--moss-3);
}

.stepper {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, .82);
}
.stepper button {
  width: 38px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--moss);
  font-size: 18px;
  line-height: 1;
  transition: background .15s;
}
.stepper button:hover { background: rgba(38, 70, 58, .08); }
.stepper input {
  width: 54px;
  height: 40px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: center;
  font-size: 14px;
  outline: none;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.form-foot .form-error { margin-right: auto; flex: 1 1 260px; }

/* ---------------- 推荐结果 ---------------- */

.result-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  padding: 20px 24px;
  border-left: 3px solid var(--cinnabar);
}
.summary-text { flex: 1 1 300px; min-width: 0; }
.summary-kicker {
  display: block;
  margin-bottom: 4px;
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--ink-faint);
}
.summary-line {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .02em;
  color: var(--ink);
  word-break: break-word;
}
.summary-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.rank-list { display: flex; flex-direction: column; gap: 24px; }

.rank-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.rank-col { text-align: center; padding-top: 4px; }
.rank-no {
  display: block;
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
  color: rgba(203, 191, 166, .92);
}
.rank-label {
  display: block;
  margin-top: 7px;
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--ink-faint);
}
.rank-item.is-top1 .rank-no { color: var(--cinnabar); }
.rank-item.is-top2 .rank-no { color: var(--gold); }
.rank-item.is-top3 .rank-no { color: var(--moss-3); }

.rank-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rank-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
}
.reason-chips { display: flex; flex-wrap: wrap; gap: 7px; flex: 1 1 260px; min-width: 0; }
.reason-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid rgba(111, 139, 122, .2);
  border-radius: 999px;
  background: rgba(111, 139, 122, .12);
  font-size: 12px;
  line-height: 1.5;
  color: var(--moss-2);
}
.reason-chip::before { content: "✦"; font-size: 9px; color: var(--cinnabar); opacity: .85; }

/* 推荐结果里的“已游览过”徽标：只做明确提示，不参与分数计算 */
.visited-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 5px 11px;
  border: 1px solid rgba(184, 70, 51, .28);
  border-radius: 999px;
  background: rgba(184, 70, 51, .12);
  color: var(--cinnabar);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .04em;
}
.visited-badge::before { content: "✓"; font-size: 11px; }

.score-ring {
  --score: 60;
  position: relative;
  flex: none;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--cinnabar) calc(var(--score) * 1%), rgba(203, 191, 166, .35) 0);
}
.score-ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--paper-2);
}
.score-inner { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.score-inner strong { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--moss); }
.score-inner small { margin-top: 3px; font-size: 9px; letter-spacing: .06em; color: var(--ink-faint); }

.recommend-skeleton .rank-body { gap: 14px; }

/* 推荐结果里的卡片改为左图右文，避免 16:9 大图把单条推荐撑满整屏 */
@media (min-width: 900px) {
  .rank-item .park-card {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    align-items: stretch;
  }
  .rank-item .park-card .park-visual {
    aspect-ratio: auto;
    height: 100%;
    min-height: 238px;
  }
  .rank-item .park-card .card-body { justify-content: center; }
}

/* ---------------- 我的足迹 ---------------- */

.mine-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 26px 100px;
}

.mine-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-bottom: 36px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(251, 248, 240, .62);
}
.mine-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--moss);
}
.mine-stat span { font-size: 12px; letter-spacing: .06em; color: var(--ink-mute); }
.mine-refresh { margin-left: auto; }

.mine-section { margin-bottom: 48px; }
.mine-section:last-child { margin-bottom: 0; }

.my-review-list { display: flex; flex-direction: column; gap: 12px; }
.my-review {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 252, 245, .86);
  box-shadow: var(--shadow-sm);
}
.my-review header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; }
.my-review-park {
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
  transition: color .18s;
}
.my-review-park:hover { color: var(--cinnabar); }
.review-district { font-size: 11.5px; color: var(--ink-mute); }
.my-review time { margin-left: auto; font-size: 11px; color: var(--ink-faint); }
.my-review p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
}
.my-review footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }

.gate {
  max-width: 580px;
  margin: 64px auto 30px;
  padding: 46px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.gate-seal {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(150deg, #c14a36, #952d21);
  color: #fbf3e3;
  font-family: var(--serif);
  font-size: 26px;
  box-shadow: 0 8px 20px -8px rgba(148, 44, 32, .55);
  transform: rotate(-3deg);
}
.gate h2 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .12em;
}
.gate p { margin: 0; max-width: 420px; font-size: 13.5px; line-height: 1.9; color: var(--ink-mute); }
.gate .btn { margin-top: 10px; }

/* ---------------- 页脚 / Toast ---------------- */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(239, 230, 212, .35);
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .13em;
  color: var(--ink);
}
.brand-seal-sm {
  width: 26px;
  height: 26px;
  font-size: 15px;
  border-radius: 6px;
}
.footer-inner p { margin: 0; font-size: 12.5px; color: var(--ink-mute); }
.footer-meta { font-size: 11px !important; letter-spacing: .02em; color: var(--ink-faint) !important; }

.toast-root {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 300;
  width: calc(100% - 32px);
  max-width: 520px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(30, 44, 36, .95);
  color: #f8f3e5;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 14px 32px -12px rgba(20, 30, 25, .65);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease;
}
.toast.is-show { opacity: 1; transform: none; }
.toast::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--moss-3);
}
.toast-error { background: rgba(122, 36, 26, .96); }
.toast-error::before { background: #f0b39c; }
.toast-info::before { background: #d8c9a4; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 1099px) {
  .park-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .topbar-inner { gap: 12px; padding: 10px 18px; }
  .main-nav { display: none; }
  .nav-search { display: none; }
  .nav-cta { display: none; }
  .mobile-search-btn { display: grid; }
  .drawer-toggle { display: grid; }
  .mobile-drawer:not([hidden]) { display: flex; }
  .topbar-actions { margin-left: auto; }
  .hero { padding-top: 48px; }
  .hero-stats { margin-top: 32px; }
  .library { padding: 0 18px 80px; }
  .page-head { padding: 42px 18px 20px; }
  .recommend-wrap { padding: 0 18px 80px; }
  .mine-wrap { padding: 0 18px 80px; }
  .footer-inner { padding: 30px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
}

@media (max-width: 860px) {
  .auth-area { display: none; }
}

@media (max-width: 699px) {
  .park-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-bottom: 116px; }
  .hero-scene { height: 210px; min-height: 190px; }
  .hero-title { letter-spacing: .1em; }
  .hero-actions .btn-lg { width: 100%; }
  .hero-search { flex-basis: 100%; max-width: none; }
  .hero-stats { gap: 14px 0; }
  .stat { padding: 0 14px; }
  .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rank-item { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; }
  .rank-no { font-size: 36px; }
  .rank-label { font-size: 9px; letter-spacing: .1em; }
  .score-ring { width: 58px; height: 58px; }
  .score-inner strong { font-size: 18px; }
  .rank-head { gap: 10px; }
  .result-summary { padding: 16px 18px; }
  .recommend-form { padding: 20px 18px; }
  .mine-summary { gap: 14px 20px; padding: 14px 16px; }
  .mine-stat strong { font-size: 23px; }
  .detail-actions { gap: 10px; }
  .detail-open { flex-basis: 100%; }
  .modal-layer { padding: 10px; }
  .detail-modal { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 18px; }
  .detail-hero { height: 200px; }
  .detail-hero-overlay { padding: 18px 18px 15px; }
  .detail-scroll { padding: 18px 18px 28px; gap: 18px; }
  .auth-modal { padding: 28px 20px 22px; border-radius: 20px; }
  .section-aside { display: none; }
  .toolbar { gap: 8px; }
  .select-wrap { flex: 1 1 130px; }
  .select-wrap select { width: 100%; }
  .seg { flex: 1 1 auto; justify-content: space-between; }
  .toolbar .spacer { display: none; }
  .btn-reset { margin-left: auto; }
  .toast-root { bottom: 18px; }
}

@media (max-width: 430px) {
  .brand-text small { display: none; }
  .brand-text strong { font-size: 18px; letter-spacing: .1em; }
  .brand-seal { width: 34px; height: 34px; font-size: 20px; }
  .topbar-inner { gap: 8px; padding: 9px 14px; }
  .card-overlay-top { top: 9px; left: 9px; right: 9px; }
  .mark-btn { padding: 4px 7px; font-size: 10px; }
  .card-body { padding: 14px 15px; }
  .card-title { font-size: 19px; }
  .detail-hero-overlay h2 { font-size: 24px; }
  .meta-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .meta-cell { padding: 9px 11px; }
  .meta-cell strong { font-size: 14px; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 0 10px; }
  .stat:first-child { padding-left: 0; }
  .stat strong { font-size: 22px; }
  .stat span { font-size: 10.5px; letter-spacing: .06em; }
  .review-time { margin-left: 0; flex-basis: 100%; }
  .my-review time { margin-left: 0; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
