:root {
  --bg: #070a12;
  --panel: rgba(17, 23, 35, 0.78);
  --card: rgba(255, 255, 255, 0.025);
  --line: rgba(148, 170, 204, 0.14);
  --line-strong: rgba(148, 170, 204, 0.26);
  --ink: #e8f0ff;
  --muted: #8b9ab3;
  --dim: #63718a;
  --accent: #67e8f9;
  --accent-soft: rgba(103, 232, 249, 0.14);
  --accent2: #a78bfa;
  --green: #34d399;
  --blue: #60a5fa;
  --black: #cbd5e1;
  --db: #c084fc;
  --warn: #fbbf24;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: rgba(148, 170, 204, 0.3) transparent;
}

body { min-height: 100vh; }

button { font-family: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(148, 170, 204, 0.22); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* 背景光晕与网格 */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 620px at 10% -12%, rgba(56, 189, 248, 0.20), transparent 62%),
    radial-gradient(820px 520px at 92% -6%, rgba(139, 92, 246, 0.20), transparent 58%),
    radial-gradient(760px 640px at 62% 112%, rgba(45, 212, 191, 0.10), transparent 62%),
    var(--bg);
}

.bg-aurora::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 50% 8%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 8%, #000 0%, transparent 72%);
}

/* 布局 */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 顶部栏 + 雪场下拉 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px max(24px, calc((100% - 1640px) / 2 + 28px));
  background: rgba(9, 13, 22, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.topbar-me { min-width: 0; }

.topbar .brand { padding: 0; flex: none; }

.resort-picker {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 520px;
}

.picker-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.picker-btn:hover {
  border-color: rgba(103, 232, 249, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.picker-btn[aria-expanded="true"] {
  border-color: rgba(103, 232, 249, 0.6);
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.14);
}

.picker-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.picker-main i {
  font-size: 10px;
  font-style: normal;
  letter-spacing: 1.2px;
  color: var(--dim);
}

.picker-main b {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.picker-sub {
  margin-left: auto;
  max-width: 38%;
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.picker-chev {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.picker-btn[aria-expanded="true"] .picker-chev { transform: rotate(180deg); }

.picker-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  max-height: min(72vh, 640px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(11, 16, 27, 0.96);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(24px);
}

.picker-panel[hidden] { display: none; }

.picker-panel .resort-list { flex: none; max-height: 44vh; }
.picker-panel .rail-foot { margin-top: 2px; padding: 10px 0 0; }
.picker-panel .rail-foot p { margin: 0; }

.topbar-me {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: none;
}

.topbar-me .me-account {
  width: auto;
  max-width: 200px;
  margin: 0;
  padding: 7px 12px;
  white-space: nowrap;
  overflow: hidden;
}

.me-account-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  vertical-align: middle;
}

.me-account-inner > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-me .me-pills { margin: 0; gap: 6px; }
.topbar-me .me-pills span { flex: none; padding: 5px 9px; }

.me-reward {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(103, 232, 249, 0.3);
  border-radius: 10px;
  background: rgba(103, 232, 249, 0.1);
  color: var(--accent);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.me-reward:hover {
  background: rgba(103, 232, 249, 0.18);
  border-color: rgba(103, 232, 249, 0.5);
}

.me-reward-short { display: none; }

/* 只有手机地图模式把账户 / 打赏收成图标，桌面仍显示文字 */
.me-account-ico,
.me-reward-ico { display: none; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand:hover { opacity: 0.82; }

.brand-mark {
  display: block;
  width: 58px;
  height: 34px;
  object-fit: contain;
  flex: none;
}

.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-text b { font-size: 17px; letter-spacing: 2.4px; font-weight: 700; }
.brand-text span { font-size: 11px; letter-spacing: 0.6px; color: var(--dim); }

/* 搜索 */
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.search:focus-within {
  border-color: rgba(103, 232, 249, 0.5);
  background: rgba(103, 232, 249, 0.06);
}

.search-icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
}

.search input::placeholder { color: #5d6a82; }
.search input::-webkit-search-cancel-button { filter: invert(0.6); }

.search kbd {
  flex: none;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--dim);
  font-size: 10px;
  font-family: inherit;
}

/* 出发地 */
.origin {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.origin-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.origin-row label { font-size: 12px; color: var(--muted); }

.geo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 11px;
}

.geo-btn:hover { border-color: rgba(103, 232, 249, 0.4); }
.geo-btn.is-busy .geo-dot { background: var(--warn); animation: blink 0.9s ease infinite; }
.geo-btn.is-error .geo-dot { background: #fb7185; }

.geo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
}

@keyframes blink { 50% { opacity: 0.25; } }

.origin-select {
  width: 100%;
  margin-top: 9px;
  padding: 8px 26px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(9, 14, 24, 0.8)
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238b9ab3' stroke-width='1.5'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.origin-select option { background: #101725; color: var(--ink); }

/* 行政区筛选：国家整行，地区 / 城市并排下一行 */
.region-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.region-filter .origin-select { flex: 1; min-width: 0; margin-top: 0; }
.region-filter #countryFilter { flex: 1 1 100%; }

.origin-hint { margin-top: 8px; font-size: 11px; color: var(--dim); line-height: 1.5; }

/* 雪场列表 */
.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--dim);
}

.resort-list {
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 2px;
}

.resort-card {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.resort-card:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line);
  transform: translateX(2px);
}

.resort-card.is-on {
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.17), rgba(139, 92, 246, 0.14));
  border-color: rgba(103, 232, 249, 0.42);
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.resort-rank {
  flex: none;
  width: 22px;
  color: #4c5b73;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

.resort-card.is-on .resort-rank { color: var(--accent); }

.resort-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }

.resort-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.near-tag {
  flex: none;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 500;
}

.resort-sub {
  font-size: 10.5px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resort-dist {
  flex: none;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.resort-card.is-on .resort-dist { color: var(--accent); }

.rail-foot {
  padding: 12px 12px 10px;
  border-top: 1px solid var(--line);
}

.me-pills { display: flex; gap: 8px; margin-bottom: 8px; }

.me-pills span {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--dim);
  font-size: 11px;
  text-align: center;
}

.me-pills b { color: var(--ink); font-size: 13px; margin-left: 2px; }
.rail-foot p { font-size: 10.5px; line-height: 1.65; color: #56627a; }

/* 主舞台 */
.stage {
  width: 100%;
  max-width: 1640px;
  margin: 0 auto;
  padding: 24px 28px 40px;
}

/* 首屏 */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(760px 320px at 86% -30%, rgba(56, 189, 248, 0.32), transparent 70%),
    radial-gradient(560px 300px at 6% 130%, rgba(139, 92, 246, 0.24), transparent 72%),
    linear-gradient(135deg, #0c1424, #090f1b 62%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-lines {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  width: 100%;
  height: 78%;
  fill: none;
  stroke: rgba(148, 210, 255, 0.14);
  stroke-width: 1.2;
  pointer-events: none;
}

.hero-body { position: relative; min-width: 0; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(103, 232, 249, 0.6);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(103, 232, 249, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(103, 232, 249, 0); }
  100% { box-shadow: 0 0 0 0 rgba(103, 232, 249, 0); }
}

.hero h1 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.12;
  background: linear-gradient(120deg, #ffffff 20%, #9fe9ff 70%, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 8px;
  max-width: 560px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* 日场 / 夜场营业时间 */
.hero-hours {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hours-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  height: 26px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hours-pill[hidden] { display: none; }

button.hours-pill {
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

.hours-pill:hover { border-color: rgba(103, 232, 249, 0.45); }

.hours-pill.is-active {
  border-color: rgba(103, 232, 249, 0.6);
  background: rgba(103, 232, 249, 0.12);
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.16);
}

.hours-pill.is-active i { color: #a5f3fc; }

.session-note {
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--muted);
}

.session-note[hidden] { display: none; }

.session-note b { color: var(--ink); font-weight: 600; }

.hours-pill.is-unknown b { color: var(--muted); font-weight: 500; }

.hours-pill i {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--dim);
}

.hours-pill b { font-weight: 600; color: var(--ink); letter-spacing: 0.4px; }

.hours-pill em { font-style: normal; font-size: 10px; color: var(--dim); }

.hours-pill em.is-on { color: #4ade80; }

.hours-pill.is-on {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.1);
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.18);
}

.hours-pill.is-on i { color: #86efac; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 22px;
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat b {
  font-size: 22px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.4px;
}

.stat span { font-size: 10.5px; letter-spacing: 0.6px; color: var(--dim); }

/* 可点击的统计项：问答、累计评价 */
.stat-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  align-items: flex-start;
  transition: opacity 0.16s ease;
}

.stat-link:hover b { color: var(--accent); }
.stat-link:hover span { color: var(--muted); }
.stat-link:focus-visible { outline: 1px solid rgba(103, 232, 249, 0.6); outline-offset: 4px; border-radius: 6px; }

/* 救援电话：与日场 / 夜场、评分同款胶囊样式，紧跟在评分后面 */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.hero-badges .hero-rating { margin-top: 0; }

.hero-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  height: 26px;
  padding: 0 11px;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hero-call:hover { border-color: rgba(103, 232, 249, 0.45); }

.hero-call i {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--dim);
}

.hero-call b { font-weight: 600; color: var(--ink); letter-spacing: 0.4px; }

.hero-call.is-empty { color: var(--muted); }

.hero-meta {
  margin-top: 16px;
  font-size: 10.5px;
  color: #5d6a82;
  font-variant-numeric: tabular-nums;
}

/* 右侧：分享入口 + 开放覆盖圆环 */
.hero-side {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(103, 232, 249, 0.35);
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.1);
  color: #a5f3fc;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-share svg { width: 14px; height: 14px; }
.hero-share:hover { background: rgba(103, 232, 249, 0.2); border-color: rgba(103, 232, 249, 0.6); }
.hero-share[disabled] { opacity: 0.55; cursor: default; }

/* 战绩入口：与雪场海报并列，暖金色区分「我的」和「雪场的」 */
.hero-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-share.is-record {
  border-color: rgba(252, 211, 77, 0.4);
  background: rgba(252, 211, 77, 0.1);
  color: #fcd34d;
}

.hero-share.is-record:hover {
  background: rgba(252, 211, 77, 0.2);
  border-color: rgba(252, 211, 77, 0.65);
}

/* 圆环 */
.ring-wrap {
  position: relative;
  flex: none;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
}

.coverage-ring { position: absolute; inset: 0; width: 100%; height: 100%; }

.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 9;
}

.ring-value {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 364.42;
  stroke-dashoffset: 364.42;
  filter: drop-shadow(0 0 8px rgba(103, 232, 249, 0.45));
  transition: stroke-dashoffset 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ring-center { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ring-center b { font-size: 26px; font-variant-numeric: tabular-nums; }
.ring-center span { font-size: 10px; letter-spacing: 1px; color: var(--dim); }

/* 内容区 */
.content {
  display: grid;
  grid-template-columns: minmax(0, 580px) minmax(420px, 1fr);
  gap: 18px;
  margin-top: 20px;
  align-items: start;
}

.col-main { min-width: 0; }

/* 移动端地图工作台专用部件，桌面不显示 */
.sheet-grab,
.sheet-seg,
.sheet-search,
.sheet-stats,
.sheet-mask { display: none; }

#sheetPanel .sheet-pane .section-head:first-child { margin-top: 0; }

.col-side {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 10px;
}

.col-main .section-head:first-child { margin-top: 0; }

.section-head h2 { flex: none; font-size: 14px; font-weight: 600; letter-spacing: 0.4px; white-space: nowrap; }
.hint { font-size: 11px; color: var(--dim); }

/* 缆车 / 雪道 / 设施三个列表可分别收起：只留下标题行 */
.head-title { display: flex; align-items: center; gap: 5px; min-width: 0; }

/* 列表数量紧跟在标题后，箭头是天蓝色 */
.pane-count { font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }

.pane-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  transition: color 0.15s ease, background 0.15s ease;
}

.pane-toggle:hover { color: var(--accent); background: rgba(103, 232, 249, 0.12); }
.pane-toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.18s ease; }
.sheet-pane.is-collapsed .pane-toggle svg { transform: rotate(180deg); }

.sheet-pane.is-collapsed .sheet-search,
.sheet-pane.is-collapsed .chips,
.sheet-pane.is-collapsed .lift-grid,
.sheet-pane.is-collapsed .trail-list,
.sheet-pane.is-collapsed .poi-list { display: none; }

/* 缆车 */
.lift-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.lift {
  position: relative;
  padding: 13px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.lift::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--lift-bar, var(--accent));
}

.lift[data-lift-type="gondola"] { --lift-bar: #fb923c; }
.lift[data-lift-type="chair"] { --lift-bar: #60a5fa; }
.lift[data-lift-type="magic-carpet"] { --lift-bar: #34d399; }
.lift[data-lift-type="t-bar"] { --lift-bar: #a78bfa; }

.lift:hover { border-color: var(--line-strong); transform: translateY(-1px); }

.lift-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lift-name { flex: 1; min-width: 0; overflow: hidden; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

.lift-type {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #a9b8cf;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lift-meta { margin-top: 5px; font-size: 11px; color: var(--dim); }
.lift-meta.is-stale { color: var(--warn); }

.queue-pill {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
}

.q-clear { background: rgba(52, 211, 153, 0.14); color: #6ee7b7; }
.q-lt5 { background: rgba(96, 165, 250, 0.14); color: #93c5fd; }
.q-5to15 { background: rgba(251, 191, 36, 0.14); color: #fcd34d; }
.q-gt15 { background: rgba(251, 113, 133, 0.16); color: #fda4af; }
.q-closed { background: rgba(148, 170, 204, 0.12); color: var(--muted); }

.queue-options {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 1px;
}

.queue-options::-webkit-scrollbar { display: none; }

.qbtn {
  flex: none;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #97a6bd;
  font-size: 10.5px;
  transition: all 0.15s ease;
}

.qbtn:hover { border-color: rgba(103, 232, 249, 0.35); color: var(--ink); }

.qbtn.is-on {
  border-color: rgba(103, 232, 249, 0.45);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.qbtn:disabled { opacity: 0.6; cursor: default; }

/* 难度筛选 */
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #97a6bd;
  font-size: 11.5px;
  transition: all 0.15s ease;
}

.chip:hover { border-color: rgba(103, 232, 249, 0.35); color: var(--ink); }

.chip.is-on {
  border-color: rgba(103, 232, 249, 0.5);
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.18));
  color: var(--ink);
  font-weight: 600;
}

/* 雪道卡片 */
.trail-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.trail {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.trail:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.trail.is-selected {
  border-color: rgba(103, 232, 249, 0.55);
  background: linear-gradient(140deg, rgba(56, 189, 248, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.2), 0 14px 34px rgba(14, 165, 233, 0.16);
}

.lift { cursor: pointer; }

.lift.is-selected {
  border-color: rgba(103, 232, 249, 0.55);
  background: linear-gradient(140deg, rgba(56, 189, 248, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.2), 0 14px 34px rgba(14, 165, 233, 0.16);
}

.trail-main { display: flex; flex: 1; min-width: 0; padding: 13px 13px 11px 0; }

.level-bar {
  flex: none;
  width: 4px;
  margin-right: 12px;
  border-radius: 0 4px 4px 0;
}

.level-green { background: var(--green); }
.level-blue { background: var(--blue); }
.level-black { background: var(--black); }
.level-double-black { background: var(--db); }

.trail-info { flex: 1; min-width: 0; }

.trail-title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.trail-name { font-size: 13.5px; font-weight: 600; }

.trail-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(148, 170, 204, 0.12);
  color: #a3b1c7;
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.badge { padding: 1px 7px; border-radius: 999px; font-size: 9.5px; font-weight: 500; }
.badge.open { background: rgba(52, 211, 153, 0.14); color: #6ee7b7; }
.badge.grooming { background: rgba(96, 165, 250, 0.14); color: #93c5fd; }
.badge.closed { background: rgba(148, 170, 204, 0.12); color: var(--muted); }
.badge.stale { background: rgba(251, 191, 36, 0.14); color: #fcd34d; }

.trail-meta {
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #93a2b8;
  font-size: 10.5px;
  transition: all 0.15s ease;
}

.tag:hover { border-color: rgba(103, 232, 249, 0.35); color: var(--ink); }
.tag b { font-weight: 600; color: #6f7f97; }

.tag.is-on {
  border-color: rgba(103, 232, 249, 0.45);
  background: var(--accent-soft);
  color: var(--accent);
}

.tag.is-on b { color: var(--accent); }
.tag.is-pending { border-style: dashed; color: #7e8ca3; }

.trail-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.lift-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; }

.ghost {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 10.5px;
  transition: all 0.15s ease;
}

.ghost:hover { border-color: var(--line-strong); color: var(--ink); }

.ghost.is-on {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
}

/* 设施卡片：结构与雪道卡片一致，圆点颜色区分设施类型 */
.poi-list { display: grid; grid-template-columns: 1fr; gap: 10px; }

.poi-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.poi-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.poi-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.poi-main { display: flex; flex: 1; flex-direction: column; gap: 5px; min-width: 0; }
.poi-title { display: flex; align-items: center; gap: 7px; min-width: 0; }
.poi-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poi-type { flex: none; font-size: 10.5px; opacity: 0.85; }

.poi-score { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.poi-score b { font-size: 11px; font-weight: 600; color: var(--muted); }
.poi-score b.has-score { color: var(--accent); }

.poi-foot { display: flex; flex: none; align-items: center; gap: 8px; margin-left: auto; }

/* 地图卡片 */
.map-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.map-card.is-pulse {
  border-color: rgba(103, 232, 249, 0.55);
  box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.2), 0 18px 48px rgba(14, 165, 233, 0.22);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card-head h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.4px; }
.card-head p { margin-top: 3px; font-size: 10.5px; color: var(--dim); }

.chip-ghost { background: rgba(255, 255, 255, 0.03); }

/* 3D 手势提示：桌面左上、手机顶部，进入 3D 时由 map.js 显示 */
.map-tip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 7;
  display: flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(148, 170, 204, 0.22);
  border-radius: 999px;
  background: rgba(6, 11, 19, 0.72);
  color: #b6c4d8;
  font-size: 11.5px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.26s ease;
}

.map-tip.is-fading { opacity: 0; }

.map-tip-mobile { display: none; }

/* 地图左下角控件列：自下而上 = 视图切换 → 定位 → 复位，隐藏的项自动收拢 */
.map-controls {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 9;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 8px;
}

/* 全屏 / 手机地图顶部：场次在左、求助在右，与公开地图页同一套视觉 */
.map-quick {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 9;
  display: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.map-card.is-pagefull .map-quick {
  display: flex;
  justify-content: flex-end;
}

/* 网页全屏：场次已移进筛选卡，右上角只保留求助 */
.map-card.is-pagefull .map-quick .map-sessions { display: none; }

.map-sessions {
  display: flex;
  gap: 6px;
  pointer-events: auto;
}

.map-session {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 8px;
  background: rgba(10, 26, 36, 0.72);
  color: #8ea0b4;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.map-session em {
  font-style: normal;
  font-weight: 400;
  opacity: 0.82;
}

.map-session.is-on {
  border-color: rgba(103, 232, 249, 0.72);
  background: rgba(34, 211, 238, 0.18);
  color: #d9fbff;
}

.map-session:disabled {
  opacity: 0.45;
  cursor: default;
}

.map-help {
  flex: none;
  height: 28px;
  padding: 0 12px;
  pointer-events: auto;
  border: 1px solid rgba(248, 113, 113, 0.42);
  border-radius: 8px;
  background: rgba(60, 14, 18, 0.82);
  color: #fecaca;
  font-size: 11px;
  font-weight: 700;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 3D 地图定位：浮在左下角，避开右下角的雪道详情浮层 */
.map-locate {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(148, 170, 204, 0.3);
  border-radius: 11px;
  background: rgba(7, 11, 18, 0.84);
  color: #b6c4d8;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 视图切换：实景 / 俯视 / 图示，纵向与定位、归位等按钮排成一列 */
.map-views {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-views button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(148, 170, 204, 0.3);
  border-radius: 11px;
  background: rgba(7, 11, 18, 0.84);
  color: #b6c4d8;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.map-views button:hover {
  border-color: rgba(103, 232, 249, 0.45);
  color: #e8eef7;
}

.map-views button.is-on {
  border-color: rgba(103, 232, 249, 0.55);
  background: rgba(9, 20, 30, 0.9);
  color: var(--accent);
}

.map-views[aria-busy="true"] button {
  opacity: 0.55;
  pointer-events: none;
}

.map-views[aria-busy="true"] [data-view="3d"],
.map-views[aria-busy="true"] [data-view="top"] {
  color: var(--accent);
  animation: blink 0.9s ease infinite;
}

/* 流光关闭：按钮降为灰态，和开启（强调色）区分 */
.map-flow[aria-pressed="false"] { color: #5d6a82; }

.map-locate svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

/* 全屏按钮：展开 / 收起两个图标按状态切换 */
.map-full .ico-compress { display: none; }
.map-full.is-fs .ico-expand { display: none; }
.map-full.is-fs .ico-compress { display: inline; }

.map-locate:hover,
.map-locate[aria-pressed="true"] {
  border-color: rgba(103, 232, 249, 0.55);
  background: rgba(9, 20, 30, 0.9);
  color: var(--accent);
}

.map-locate.is-busy {
  color: var(--accent);
  animation: blink 1s ease-in-out infinite;
}

/* 归位按钮：由 .map-controls 的竖排顺序定位，无需单独偏移 */

/* 全屏时顶部筛选栏出现，提示下移让开 */
/* 网页全屏只保留地图操作，隐藏操作提示条，避免和场次/筛选三层叠字 */
.map-card.is-pagefull .map-tip { display: none; }

/* 网页全屏详情面板避开 2D 右下的缩放控件 */
.map-card.is-pagefull .trail-panel { bottom: 64px; }

.map-wrap {
  position: relative;
  aspect-ratio: 1000 / 860;
  overflow: hidden;
  border-radius: 13px;
  background: #eef3f8;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#schematic { display: block; width: 100%; height: 100%; }

#schematic .trail-shape {
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
  cursor: pointer;
  transition: opacity 0.15s ease, stroke-width 0.15s ease;
}

#schematic .trail-shape:hover { opacity: 0.82; }

#schematic.has-active .trail-shape { opacity: 0.22; }

#schematic .trail-shape.is-active {
  opacity: 1;
  stroke: #ffffff;
  stroke-width: 5;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

#schematic.has-active .trail-label { opacity: 0.3; }

#schematic .trail-label.is-active { opacity: 1; font-size: 15px; stroke-width: 3px; }

#schematic .trail-label {
  font-size: 12px;
  fill: #ffffff;
  font-weight: 700;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(4, 10, 20, 0.55);
  stroke-width: 2.5px;
}

#schematic .ridge,
#schematic .base-road,
#schematic .map-note,
#schematic .lift-line,
#schematic .lift-station,
#schematic .lift-label,
#schematic .poi,
#schematic .poi-label {
  pointer-events: none;
}

#schematic .ridge { fill: #dfe8f3; opacity: 0.85; }
#schematic .base-road { stroke: #c3ccd9; stroke-width: 10; stroke-linecap: round; }
#schematic .map-note { font-size: 13px; fill: #8b95a5; font-weight: 500; }
#schematic .lift-station { fill: #ffffff; stroke: #6b7686; stroke-width: 2; }

#schematic .lift-line {
  stroke: #93a1b4;
  stroke-width: 3;
  stroke-dasharray: 9 7;
  fill: none;
}

#schematic g[data-kind="lift"] { cursor: pointer; }

#schematic .lift-hit {
  stroke: transparent;
  stroke-width: 18;
  fill: none;
  pointer-events: stroke;
}

#schematic.has-lift .lift-line,
#schematic.has-lift .lift-label { opacity: 0.32; }

#schematic g[data-kind="lift"].is-selected .lift-line {
  opacity: 1;
  stroke: #0ea5e9;
  stroke-width: 6;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.6));
}

#schematic g[data-kind="lift"].is-selected .lift-station {
  fill: #67e8f9;
  stroke: #0ea5e9;
  stroke-width: 3;
}

#schematic g[data-kind="lift"].is-selected .lift-label {
  opacity: 1;
  fill: #0b1626;
  font-weight: 700;
}

#schematic .lift-label {
  font-size: 11px;
  fill: #39424f;
  font-weight: 600;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 2.5px;
}

#schematic .poi { fill: #ffffff; stroke: #5b6472; stroke-width: 1.5; }

#schematic .poi-label {
  font-size: 10px;
  fill: #414b59;
  font-weight: 600;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 2.5px;
}

/* 2D 示意图缩放控件：右下角的 − / + / 复位视图 */
#schematic .schematic-ctl { pointer-events: none; }
#schematic .zoom-ctl { pointer-events: all; cursor: pointer; }
#schematic .zoom-ctl rect { fill: rgba(255, 255, 255, 0.94); stroke: #cbd5e3; stroke-width: 1.5; }
#schematic .zoom-ctl:hover rect { fill: #ffffff; stroke: #8fa2bd; }
#schematic .zoom-ctl.is-disabled { opacity: 0.45; cursor: default; }
#schematic .zoom-ctl text { font-size: 15px; font-weight: 600; fill: #44536a; pointer-events: none; }
#schematic.is-zoomed { cursor: grab; }
#schematic.is-panning, #schematic.is-panning * { cursor: grabbing; }

#cesiumContainer { position: absolute; inset: 0; background: #0b1118; }
#cesiumContainer .cesium-widget canvas { width: 100%; height: 100%; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 11px;
  font-size: 10.5px;
  color: var(--dim);
}

.legend span { display: inline-flex; align-items: center; gap: 5px; }

.sw { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.sw.green { background: var(--green); }
.sw.blue { background: var(--blue); }
.sw.black { background: var(--black); }
.sw.db { background: var(--db); }
.sw.dashed { background: repeating-linear-gradient(90deg, #93a1b4 0 3px, transparent 3px 6px); }

/* 地图卡片工具 */
.card-tools { display: flex; gap: 6px; flex: none; }

/* 网页全屏示意图：卡片铺满可视区域，地图区撑满剩余高度 */
.map-card.is-pagefull {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #070b12;
  box-shadow: none;
}

/* 网页全屏时锁住页面滚动，退出后恢复 */
body.is-map-full { overflow: hidden; }

/* 侧栏 sticky 会形成层叠上下文，把全屏卡片压到顶栏下面；全屏时解除 */
body.is-map-full .col-side { position: static; }

/* 全屏是纯地图：卡片标题让位给左上角场次按钮 */
.map-card.is-pagefull .card-head { display: none; }

.map-card.is-pagefull .map-wrap {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: #080d16;
}

/* 全屏内的搜索与筛选 */
.map-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 8;
  display: none;
  pointer-events: none;
}

.map-card.is-pagefull .map-overlay {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* 场次已收进筛选卡，筛选卡直接贴左上角，求助留在右上角 */
  top: 10px;
}

/* 全屏筛选卡：与侧边栏 section-head 同构（标题 + 数量 + chips） */
.map-filters {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(700px, calc(100% - 16px));
  padding: 7px 8px;
  border: 1px solid rgba(148, 170, 204, 0.3);
  border-radius: 12px;
  /* 与地图左下按钮同一套底：实色深底，不用毛玻璃 */
  background: rgba(7, 11, 18, 0.9);
  pointer-events: auto;
}

.fs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 搜索候选：输入后浮在筛选卡下方，点选才应用 */
.fs-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 12;
  width: min(320px, 100%);
  max-height: 264px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid rgba(148, 170, 204, 0.3);
  border-radius: 10px;
  background: #0b1220;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.fs-results[hidden] { display: none; }

/* 输入候选期间只展示结果列表，底下的大列表先藏起来 */
.map-overlay.is-search-open .fs-trails { visibility: hidden; }

.fs-result-empty {
  padding: 8px;
  font-size: 12px;
  color: var(--dim);
}

.fs-result {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.fs-result:hover { background: rgba(103, 232, 249, 0.1); }

.fs-result-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-result-sub { flex: none; font-size: 11px; color: var(--dim); }

.fs-result-tag {
  flex: none;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 10px;
}

/* 分类切换：侧边栏 seg 同款胶囊，只切分组，不改地图显隐 */
.fs-seg {
  display: flex;
  gap: 2px;
  margin-left: auto;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.fs-seg-btn {
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.fs-seg-btn:hover { color: var(--ink); }

.fs-seg-btn.is-on {
  border-color: rgba(103, 232, 249, 0.32);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

/* 第二行：标题 + 数量 + chips，右侧是「全部雪道」下拉 */
.fs-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fs-title {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.fs-count {
  flex: none;
  color: var(--dim);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.fs-search {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  width: 178px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(148, 170, 204, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
}

/* 场次按钮移进筛选卡：去掉浮层玻璃底，与卡内其它控件一致 */
#fsSessions { flex: none; }

#fsSessions .map-session {
  height: 30px;
  border-color: rgba(148, 170, 204, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #97a6bd;
  border-radius: 9px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#fsSessions .map-session.is-on {
  border-color: rgba(103, 232, 249, 0.6);
  background: rgba(34, 211, 238, 0.16);
  color: #d9fbff;
}

.fs-search:focus-within { border-color: rgba(103, 232, 249, 0.55); }

.fs-search svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.fs-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-family: inherit;
}

.fs-search input::placeholder { color: #5d6a82; }
.fs-search input::-webkit-search-cancel-button { filter: invert(0.6); }

/* 与侧边栏分组同一套 chips：标题在左、药丸靠右 */
.fs-chips {
  display: flex;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
}

.fs-chips .chips[hidden] { display: none; }

.fs-chips .chips { gap: 6px; }

/* 全屏雪道列表：与左侧栏同一套卡片，直接铺在筛选卡下方 */
.fs-trails {
  width: min(600px, calc(100% - 16px));
  max-height: calc(100vh - 150px);
  margin-top: 8px;
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(148, 170, 204, 0.3);
  border-radius: 12px;
  /* 实色深底，不做毛玻璃 */
  background: #0b1220;
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.fs-trails[hidden] { display: none; }

/* 去掉 Cesium 右下角的 logo 与版权条 */
.cesium-widget-credits { display: none !important; }

/* ---------- 新手引导 ---------- */
.tour {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.tour[hidden] { display: none; }

/* 透明遮罩：引导期间拦截地图操作 */
.tour-block { position: absolute; inset: 0; }

/* 聚光框：巨大的外阴影把框外压暗，框内保持原样 */
.tour-spot {
  position: absolute;
  border-radius: 14px;
  box-shadow:
    0 0 0 9999px rgba(3, 7, 14, 0.72),
    0 0 0 2px rgba(103, 232, 249, 0.75),
    0 0 24px rgba(103, 232, 249, 0.35);
  transition: top 0.22s ease, left 0.22s ease, width 0.22s ease, height 0.22s ease;
  pointer-events: none;
}

.tour-card {
  position: absolute;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(12, 19, 31, 0.98);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.tour-step { margin: 0 0 4px; font-size: 11px; letter-spacing: 0.04em; color: var(--accent); }
.tour-card h3 { margin: 0 0 6px; font-size: 15px; }
.tour-text { margin: 0 0 12px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.tour-actions { display: flex; justify-content: flex-end; gap: 8px; }

.tour-skip,
.tour-next {
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
}

.tour-skip { background: transparent; color: var(--muted); }
.tour-skip:hover { color: var(--ink); }

.tour-next {
  border-color: rgba(103, 232, 249, 0.5);
  background: rgba(103, 232, 249, 0.16);
  color: var(--accent);
}

.tour-next:hover { background: rgba(103, 232, 249, 0.24); }

/* 手机端：卡片和按钮放大到适合手指点按的尺寸 */
@media (max-width: 1023px) {
  .tour-card { padding: 16px 18px; border-radius: 14px; }
  .tour-card h3 { font-size: 16px; }
  .tour-text { font-size: 13px; }
  .tour-actions { gap: 10px; }
  .tour-skip,
  .tour-next { min-height: 40px; padding: 9px 16px; font-size: 13px; }
}

/* 加载提示：只在页面中央浮一个小药丸，不遮住页面内容 */
.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: transparent;
}
.boot-loader[hidden] { display: none; }

.loader-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  background: rgba(12, 19, 31, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.loader-ring {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: #67e8f9;
  border-right-color: rgba(251, 191, 36, 0.85);
  animation: loaderSpin 0.9s linear infinite;
}

.loader-text {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

@keyframes loaderSpin { to { transform: rotate(360deg); } }

/* 地图区域内的小药丸：切换雪场 / 3D 瓦片加载 / 筛选重绘 */
.map-loader {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.map-loader[hidden] { display: none; }
.map-loader .loader-card {
  border-color: rgba(47, 111, 235, 0.16);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(23, 42, 68, 0.18);
}
.map-loader .loader-ring {
  border-color: rgba(28, 48, 74, 0.14);
  border-top-color: #2f6feb;
  border-right-color: #67e8f9;
}
.map-loader .loader-text { color: #2a3646; }


/* 示意图按难度/类型/关键词变淡 */
#schematic .is-dimmed { opacity: 0.16; }
#schematic .is-hidden { display: none; }
#schematic .trail-label.is-dimmed,
#schematic .lift-label.is-dimmed,
#schematic .poi-label.is-dimmed { opacity: 0.2; }

/* 2D 示意图标签避让：放不下的标签先隐藏，选中对应雪道/缆车时再单独显示 */
#schematic .trail-label.is-crowded,
#schematic .lift-label.is-crowded,
#schematic .poi-label.is-crowded { opacity: 0; }
#schematic .trail-label.is-crowded.is-active { opacity: 1; }
#schematic g[data-kind="lift"].is-selected .lift-label.is-crowded { opacity: 1; }

/* 雪道详情浮层 */
.trail-panel {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 9;
  width: min(300px, calc(100% - 24px));
  padding: 14px 16px;
  border: 1px solid rgba(103, 232, 249, 0.3);
  border-radius: 15px;
  background: rgba(8, 13, 22, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  animation: panelIn 0.2s ease;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.trail-panel-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
}

.trail-panel-close:hover { color: var(--ink); border-color: var(--line-strong); }

.tp-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-right: 24px;
  font-size: 11px;
  color: var(--muted);
}

.trail-panel h3 { margin-top: 6px; font-size: 16px; font-weight: 600; }
.tp-meta { margin-top: 4px; font-size: 11px; line-height: 1.55; color: var(--dim); }

.tp-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }

.tp-tag {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #93a2b8;
  font-size: 10.5px;
}

.tp-tag b { margin-left: 3px; color: var(--accent); font-weight: 600; }
.tp-tag.is-empty { border-style: dashed; color: #5d6a82; }

.tp-stats { display: flex; gap: 16px; margin-top: 10px; font-size: 11px; color: var(--dim); }
.tp-stats b { margin-left: 2px; color: var(--ink); }

.tp-actions { display: flex; gap: 8px; margin-top: 11px; }
.tp-actions .ghost:disabled { opacity: 0.5; cursor: default; }

/* 雪场导航面板：与雪道详情浮层同一套材质，宽度略大以容纳分段列表 */
.nav-panel {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 11;
  display: flex;
  flex-direction: column;
  width: min(330px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 14px 16px 12px;
  border: 1px solid rgba(103, 232, 249, 0.3);
  border-radius: 15px;
  background: rgba(8, 13, 22, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  animation: panelIn 0.2s ease;
}

/* 侧面收起：面板缩成右下角一颗圆钮，不挡地图；再点一次展开 */
.nav-collapse {
  position: absolute;
  top: 8px;
  right: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.nav-collapse:hover { color: var(--ink); border-color: var(--line-strong); }

.nav-collapse svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-panel.is-collapsed {
  /* 收起到右侧中部贴边，像一张侧边标签，尽量不挡地图 */
  top: 50%;
  right: 0;
  bottom: auto;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 15px 0 0 15px;
  transform: translateY(-50%);
  overflow: hidden;
  animation: none;
}

.nav-panel.is-collapsed > :not(.nav-collapse) {
  display: none;
}

.nav-panel.is-collapsed .nav-collapse {
  position: static;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 15px 0 0 15px;
  background: transparent;
}

.nav-panel.is-collapsed .nav-collapse svg {
  width: 18px;
  height: 18px;
  transform: rotate(180deg);
}

.nav-kicker {
  display: flex;
  align-items: baseline;
  gap: 7px;
  /* 右上角并排两个按钮：收起 + 关闭 */
  padding-right: 58px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.nav-kicker em {
  font-size: 10.5px;
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
}

.nav-fields { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }

.nav-field { display: flex; align-items: center; gap: 8px; }

.nav-field > span { flex: none; width: 26px; font-size: 10.5px; color: var(--dim); }

.nav-value {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 12.5px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-value:hover { border-color: var(--line-strong); }
.nav-value.is-empty { border-style: dashed; color: var(--muted); }

.nav-result { margin-top: 10px; overflow-y: auto; min-height: 0; }

.nav-empty { padding: 4px 0; font-size: 11.5px; line-height: 1.6; color: var(--dim); }
.nav-empty.is-error { color: #fca5a5; }

.nav-summary { display: flex; align-items: baseline; gap: 8px; }
.nav-summary b { font-size: 20px; font-weight: 700; color: var(--accent); }
.nav-summary span { font-size: 11px; color: var(--muted); }

.nav-steps {
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-steps li { display: flex; gap: 8px; align-items: flex-start; }

.nav-dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.nav-dot.walk { background: #94a3b8; }
.nav-dot.lift { background: var(--warn); }
.nav-dot.trail { background: var(--accent); }

.nav-steps b { display: block; font-size: 12.5px; font-weight: 600; }
.nav-steps span { display: block; margin-top: 1px; font-size: 10.5px; line-height: 1.5; color: var(--dim); }

.nav-actions { display: flex; gap: 8px; margin-top: 11px; }

.nav-actions .ghost {
  flex: 1;
  height: 32px;
  border-radius: 10px;
  font-size: 12px;
}

.nav-hint { margin-top: 8px; font-size: 10.5px; line-height: 1.5; color: var(--dim); }

.map-card.is-pagefull .nav-panel { bottom: 64px; }

/* 导航选点：在面板内盖一层可滚动列表，避免和地图点击互相干扰 */
.nav-picker {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 10px;
  border-radius: 15px;
  background: rgba(6, 11, 19, 0.98);
}

.nav-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 8px;
  font-size: 12px;
  color: var(--ink);
}

.nav-picker-head button {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 11.5px;
}

.nav-pick-list { flex: 1; overflow-y: auto; min-height: 0; }

.nav-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  text-align: left;
}
.nav-pick:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--line); }
.nav-pick span { font-size: 10.5px; color: var(--dim); }
.nav-pick.is-origin b { color: var(--accent); }
.nav-pick.is-map { border-color: rgba(103, 232, 249, 0.32); background: rgba(103, 232, 249, 0.08); }
.nav-pick.is-map b { color: var(--accent); }
.nav-pick.is-map:hover { background: rgba(103, 232, 249, 0.14); border-color: rgba(103, 232, 249, 0.5); }

/* 3D 打点提示条：浮在地图下方，避开导航面板 */
.nav-pickbar {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(560px, calc(100vw - 32px));
  padding: 10px 12px;
  border: 1px solid rgba(103, 232, 249, 0.34);
  border-radius: 14px;
  background: rgba(9, 14, 24, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.nav-pickbar p {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
}

.nav-pickbar-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(103, 232, 249, 0.8);
  animation: blink 1.4s ease infinite;
}

.nav-pickbar-btn {
  flex: none;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 12px;
}

.nav-pickbar-btn.is-primary {
  border-color: rgba(103, 232, 249, 0.5);
  background: rgba(103, 232, 249, 0.16);
  color: var(--accent);
}

.nav-pickbar-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* 2D 示意图上的导航高亮与起终点标记 */
#schematic .trail-shape.is-route { stroke: #67e8f9; stroke-width: 3; stroke-opacity: 0.9; }
#schematic .trail-label.is-route { fill: #06121a; font-weight: 700; }
#schematic g[data-kind="lift"].is-route .lift-line { stroke: #67e8f9; stroke-width: 5; }
#schematic g[data-kind="lift"].is-route .lift-station { fill: #67e8f9; stroke: #06121a; }

#schematic .route-mark circle:first-child { fill-opacity: 0.25; stroke-width: 2; }
#schematic .route-mark.start circle { fill: #34d399; stroke: #34d399; }
#schematic .route-mark.end circle { fill: #67e8f9; stroke: #67e8f9; }

.stage-foot {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #56627a;
  font-size: 10.5px;
  line-height: 1.8;
}

.stage-foot p + p { margin-top: 4px; }

.stage-foot a, .mp-foot a { color: #7dd3fc; text-decoration: none; }
.stage-foot a:hover, .mp-foot a:hover { text-decoration: underline; }

/* 空态 */
.empty {
  grid-column: 1 / -1;
  padding: 34px 0;
  text-align: center;
  font-size: 12px;
  color: var(--dim);
}

.empty-hint { margin-top: 6px; font-size: 11px; color: #4c5a71; }

/* 评论抽屉 */
.drawer { position: fixed; inset: 0; z-index: 40; display: flex; justify-content: flex-end; }

.drawer-mask { position: absolute; inset: 0; background: rgba(4, 7, 13, 0.6); backdrop-filter: blur(2px); }

.drawer-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0d1422;
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
  animation: slideIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideIn {
  from { transform: translateX(30px); opacity: 0.5; }
  to { transform: none; opacity: 1; }
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h3 { font-size: 14px; font-weight: 600; }

.drawer-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.drawer-close:hover { color: var(--ink); border-color: var(--line-strong); }

.drawer-body { flex: 1; overflow-y: auto; padding: 6px 20px; }

/* 评分 */
.stars { display: inline-flex; gap: 1px; font-style: normal; }
.stars i { font-style: normal; font-size: 13px; line-height: 1; color: rgba(148, 170, 204, 0.35); }
.stars i.on { color: #fcd34d; }
.stars i.half { color: #fcd34d; opacity: 0.55; }
.stars.small i { font-size: 10.5px; }

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  height: 26px;
  margin-top: 12px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease;
}

.hero-rating:hover { border-color: rgba(103, 232, 249, 0.4); }
.hero-rating b { font-size: 11px; color: #fcd34d; font-variant-numeric: tabular-nums; }
.hero-rating .stars i { font-size: 10px; }
.hero-rating em { font-style: normal; font-size: 10px; color: var(--dim); }

.resort-score { font-style: normal; color: #fcd34d; cursor: pointer; }

.resort-score:hover { text-decoration: underline; }

.lift-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--dim);
  font-size: 10.5px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.lift-score:hover { border-color: rgba(103, 232, 249, 0.4); color: var(--ink); }
.lift-score b { color: #fcd34d; font-weight: 600; }

.trail-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.trail-score:hover { border-color: rgba(103, 232, 249, 0.4); }
.trail-score b { color: #fcd34d; font-size: 10.5px; font-weight: 600; }

.tp-rating { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; color: var(--dim); }
.tp-rating b { color: #fcd34d; font-size: 12px; }
.tp-rating em { font-style: normal; color: var(--dim); }
.rate-empty { font-size: 11px; color: var(--dim); }

.rate-summary { padding: 16px 0 4px; }
.rate-head { display: flex; align-items: center; gap: 14px; }
.rate-big { font-size: 34px; font-weight: 700; line-height: 1; color: #fcd34d; font-variant-numeric: tabular-nums; }
.rate-head-main { display: flex; flex-direction: column; gap: 5px; }
.rate-head-main em { font-style: normal; font-size: 10.5px; color: var(--dim); }

.rate-dist { display: flex; flex-direction: column; gap: 5px; margin-top: 14px; }
.dist-row { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--dim); }
.dist-row > span { flex: none; width: 30px; }
.dist-row i { flex: 1; height: 5px; border-radius: 999px; background: rgba(148, 170, 204, 0.14); overflow: hidden; }
.dist-row i b { display: block; height: 100%; background: linear-gradient(90deg, #fcd34d, #f59e0b); }
.dist-row em { flex: none; width: 20px; text-align: right; font-style: normal; color: var(--muted); }

.rate-dims { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.rate-line { display: flex; align-items: center; gap: 10px; }
.rate-label { flex: none; width: 44px; font-size: 11px; color: var(--dim); }
.rate-stars { display: flex; gap: 2px; }
.rate-value { flex: none; min-width: 40px; font-size: 11px; font-weight: 600; color: var(--muted); text-align: right; }

.star-btn {
  padding: 0 1px;
  border: 0;
  background: none;
  color: rgba(148, 170, 204, 0.35);
  font-size: 17px;
  line-height: 1;
  transition: color 0.12s ease, transform 0.12s ease;
}

.star-btn:hover { transform: scale(1.12); }
.star-btn.is-on { color: #fcd34d; }

.rate-group {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  font-size: 10.5px;
  color: var(--dim);
}

.rate-group b { margin-left: 3px; color: var(--ink); }
/* ---------- 游客卡片：注册引导 ---------- */
.guest-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: min(250px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(12, 19, 31, 0.98);
  box-shadow: var(--shadow);
}

.guest-pop[hidden] { display: none; }

/* 已登录账号菜单：两行纯文字菜单，尽量简洁 */
.account-pop {
  width: min(146px, calc(100vw - 28px));
  padding: 5px;
}

.account-item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.2;
  text-align: left;
}

.account-item:hover { background: rgba(103, 232, 249, 0.12); color: var(--accent); }

.guest-pop-title { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--ink); }
.guest-pop-sub { margin: 0 0 10px; font-size: 11px; line-height: 1.6; color: var(--muted); }

.guest-pop-primary,
.guest-pop-ghost {
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 12px;
  cursor: pointer;
}

.guest-pop-primary {
  border: 1px solid rgba(103, 232, 249, 0.5);
  background: rgba(103, 232, 249, 0.16);
  color: var(--accent);
}

.guest-pop-primary:hover { background: rgba(103, 232, 249, 0.24); }

.guest-pop-ghost {
  margin-top: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}

.guest-pop-ghost:hover { color: var(--ink); }

/* 雪道面板里的游客提示 */
.tp-guest-hint { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
.tp-guest-hint[hidden] { display: none; }

/* 评价区的注册按钮 */
.rate-locked {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--dim);
}

.rate-locked button {
  padding: 5px 11px;
  border: 1px solid rgba(103, 232, 249, 0.4);
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.1);
  color: var(--accent);
  font-size: 11px;
  cursor: pointer;
}

.rate-locked button:hover { background: rgba(103, 232, 249, 0.18); }

/* 评价区登录提示 */
.rate-gate {
  padding: 18px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  text-align: center;
}
.rate-gate b { display: block; font-size: 13px; color: var(--ink); }
.rate-gate p { margin: 6px 0 12px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.rate-gate-actions { display: flex; justify-content: center; gap: 10px; }
.rate-gate-actions button {
  padding: 7px 14px;
  border: 1px solid rgba(103, 232, 249, 0.45);
  border-radius: 9px;
  background: rgba(103, 232, 249, 0.14);
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
}
.rate-gate-actions button.ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--muted);
}
.rate-gate-actions button:hover { filter: brightness(1.15); }

@media (max-width: 820px) {
  .guest-pop { right: -4px; }
}


.rate-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

.rate-form textarea {
  width: 100%;
  min-height: 80px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  outline: none;
}

.rate-form textarea::placeholder { color: #5d6a82; }
.rate-form textarea:focus { border-color: rgba(103, 232, 249, 0.5); }

.rate-hint { margin-top: 6px; font-size: 10.5px; color: var(--dim); }
.rate-actions { display: flex; justify-content: flex-end; margin-top: 10px; }

.rate-actions button {
  padding: 8px 20px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, #22d3ee, #8b5cf6);
  color: #061019;
  font-size: 13px;
  font-weight: 600;
}

.rate-actions button:disabled { opacity: 0.6; }

.rate-list { padding-bottom: 20px; }

.rate-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 170, 204, 0.14);
}

.rate-list-head b { font-size: 13px; font-weight: 600; }
.rate-list-head span { font-size: 10.5px; color: var(--dim); }
.rate-item { padding: 12px 0; border-bottom: 1px solid rgba(148, 170, 204, 0.1); }
.rate-item:last-child { border-bottom: 0; }
.rate-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rate-item p { margin-top: 7px; font-size: 13px; line-height: 1.6; word-break: break-word; }
.rate-item time { font-size: 10px; color: var(--dim); }

/* 提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 50;
  max-width: 80vw;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 20, 34, 0.94);
  color: var(--ink);
  font-size: 12px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

/* 评价配图、点赞与回复 */
.rate-media { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.media-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.media-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.media-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.media-thumb button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgba(6, 16, 25, 0.75);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
}

.media-thumb.is-uploading { display: flex; align-items: center; justify-content: center; }
.media-thumb.is-uploading .loader-ring { width: 18px; height: 18px; }

.media-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--dim);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.media-add:hover { border-color: rgba(103, 232, 249, 0.4); color: var(--ink); }
.media-hint { margin-top: 6px; }

.rate-photo { display: block; width: 72px; height: 72px; overflow: hidden; border-radius: 8px; background: rgba(255, 255, 255, 0.05); }
.rate-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.rate-item-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; }

.rate-like,
.rate-reply-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--dim);
  font-size: 11px;
  cursor: pointer;
}

.rate-like span { font-size: 13px; color: #94a3b8; transition: color 0.15s ease; }
.rate-like:hover span { color: #f87171; }
.rate-like.is-on span { color: #f87171; }
.rate-like b,
.rate-reply-toggle b { font-weight: 600; color: var(--muted); }

.rate-replies {
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 2px solid rgba(148, 170, 204, 0.18);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.02);
}

.reply-item { display: flex; gap: 8px; padding: 4px 0; }
.reply-item p { font-size: 12px; line-height: 1.55; color: var(--ink); }
.reply-item time { display: block; margin-top: 2px; font-size: 10px; color: var(--dim); }

/* 评价/回复作者：头像 + 昵称 + 等级，点击进入对方主页 */
.rate-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
}

.rate-author b {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.rate-author:hover b { color: #67e8f9; }
.rate-author .avatar { flex: none; }

.rate-level {
  flex: none;
  padding: 0 5px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 6px;
  color: #67e8f9;
  font-size: 9px;
  font-style: normal;
  line-height: 15px;
}

/* 等级段位颜色：青铜 → 荣耀王者 */
#pfLevel span.lv-tier-1, .rate-level.lv-tier-1 { color: #c08a5a; }
#pfLevel span.lv-tier-2, .rate-level.lv-tier-2 { color: #cbd5e1; }
#pfLevel span.lv-tier-3, .rate-level.lv-tier-3 { color: #f6c945; }
#pfLevel span.lv-tier-4, .rate-level.lv-tier-4 { color: #4fd1b5; }
#pfLevel span.lv-tier-5, .rate-level.lv-tier-5 { color: #7aa2ff; }
#pfLevel span.lv-tier-6, .rate-level.lv-tier-6 { color: #b388ff; }
#pfLevel span.lv-tier-7, .rate-level.lv-tier-7 { color: #ff8a4c; }
#pfLevel span.lv-tier-8, .rate-level.lv-tier-8 { color: #ff4d6d; }

.rate-head-right { display: inline-flex; align-items: center; gap: 8px; flex: none; }

/* 别人的主页不允许换头像 */
.profile-avatar.is-readonly { cursor: default; }
.profile-avatar.is-readonly:hover { filter: none; }

/* 雪场问答 */
.sheet-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.sheet-tabs button {
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.sheet-tabs button.is-on {
  color: #67e8f9;
  border-color: rgba(103, 232, 249, 0.45);
  background: rgba(103, 232, 249, 0.1);
}

.qa-ask textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 62px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 13px;
  resize: vertical;
}
.qa-ask-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 4px; }
.qa-hint { font-size: 11px; color: var(--dim); }
.qa-ask-actions button {
  padding: 5px 14px;
  border: 1px solid rgba(103, 232, 249, 0.35);
  border-radius: 8px;
  background: rgba(103, 232, 249, 0.12);
  color: #67e8f9;
  font-size: 12px;
  cursor: pointer;
}

.qa-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.qa-item:last-child { border-bottom: 0; }
.qa-question { margin: 8px 0; font-size: 13px; font-weight: 600; line-height: 1.6; color: var(--ink); }
.qa-count { font-size: 11px; color: var(--dim); }
.qa-answers { margin-top: 8px; padding-left: 10px; border-left: 2px solid rgba(255, 255, 255, 0.06); }
.qa-answer { padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.05); }
.qa-answer:last-of-type { border-bottom: 0; }
.qa-answer p { margin: 6px 0; font-size: 12px; line-height: 1.6; color: var(--ink); }
.qa-quoted { color: var(--dim); font-size: 11px; }

.reply-form { display: flex; gap: 6px; margin-top: 8px; }

.reply-form input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 12px;
  font-family: inherit;
  outline: none;
}

.reply-form input:focus { border-color: rgba(103, 232, 249, 0.5); }

.reply-form button {
  flex: none;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: rgba(103, 232, 249, 0.16);
  color: #67e8f9;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.reply-form button:hover { background: rgba(103, 232, 249, 0.24); }

/* 适配 */
@media (max-width: 1240px) {
  .trail-list { grid-template-columns: 1fr; }
  .lift-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1020px) {
  .content { grid-template-columns: 1fr; }
  .col-side { position: static; }
  .stage { padding: 20px; }
}

@media (max-width: 860px) {
  .topbar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
  }
  .resort-picker {
    order: 3;
    flex: none;
    width: 100%;
    max-width: none;
  }
  .topbar-me { order: 1; gap: 8px; }
  .topbar-me .me-pills { display: none; }
  .picker-sub { display: none; }
  .picker-panel { max-height: 64vh; }
  .hero { flex-direction: column; align-items: flex-start; padding: 22px; }
  .hero-side { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .hero-btns { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .ring-wrap { align-self: flex-start; width: 120px; height: 120px; }
  .lift-grid { grid-template-columns: 1fr; }
  .stage { padding: 16px; }
}

/* ---------- 账号：注册 / 登录 ---------- */
.me-account {
  width: 100%;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 9px;
  background: rgba(103, 232, 249, 0.08);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.me-account:hover { background: rgba(103, 232, 249, 0.14); }

.me-account.is-on {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-modal[hidden] { display: none; }

.auth-mask {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.62);
  backdrop-filter: blur(6px);
}

.auth-card {
  position: relative;
  width: min(360px, 100%);
  padding: 20px 22px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(12, 19, 31, 0.96);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.auth-head { display: flex; align-items: center; justify-content: space-between; }
.auth-head h3 { font-size: 16px; }
.auth-sub { margin: -2px 0 4px; font-size: 12px; line-height: 1.6; color: var(--muted); }

.auth-field { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }

.auth-field input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-size: 13px;
  outline: none;
}

.auth-field input:focus { border-color: rgba(103, 232, 249, 0.5); }
.auth-error { margin: 0; font-size: 12px; color: #fb7185; }

.reward-card { justify-items: center; text-align: center; }
.reward-card .auth-head { width: 100%; }
.reward-card .auth-sub { margin: 0; text-align: center; }

.reward-qr {
  width: 206px;
  height: 206px;
  margin: 4px auto 0;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
}

.reward-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }
.reward-note { font-size: 11px; color: var(--muted); }

.auth-submit {
  margin-top: 4px;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #67e8f9, #a78bfa);
  color: #0a1220;
  font-size: 13px;
  font-weight: 600;
}

.auth-submit:disabled { opacity: 0.6; cursor: default; }
.auth-switch { margin: 0; text-align: center; }

.auth-switch button {
  border: 0;
  background: none;
  padding: 2px;
  color: var(--accent);
  font-size: 12px;
}

/* ---------- 个人主页（独立页面） ---------- */
.profile-page {
  position: fixed;
  inset: 0;
  z-index: 880;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(56, 189, 248, 0.16), transparent 62%),
    radial-gradient(760px 460px at 92% 0%, rgba(139, 92, 246, 0.16), transparent 58%),
    var(--bg);
}

.profile-page[hidden] { display: none; }

.profile-topbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 22, 0.76);
  backdrop-filter: blur(18px);
}

.profile-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 13px;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.profile-back svg { width: 16px; height: 16px; }

.profile-back:hover {
  border-color: rgba(103, 232, 249, 0.45);
  background: rgba(103, 232, 249, 0.08);
  color: var(--accent);
}

.profile-topbar-title {
  font-size: 12px;
  letter-spacing: 1.4px;
  color: var(--dim);
}

.profile-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* 知乎式主页头图：封面图 + 叠在封面上方的头像与资料 */
.profile-hero { position: relative; }

.profile-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 260px at 82% -30%, rgba(56, 189, 248, 0.32), transparent 70%),
    linear-gradient(120deg, rgba(56, 189, 248, 0.22), rgba(139, 92, 246, 0.24));
}

.profile-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 200px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 32px 22px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  /* 让上方封面区域的按钮可以点击，内容区再单独放开指针事件 */
  pointer-events: none;
}

.profile-hero-inner > * { pointer-events: auto; }

.profile-info h2,
.profile-sign,
.profile-extra { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5); }

/* 个人主页封面图：只覆盖顶部头图区域，可拖动调整位置 */
.profile-banner {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: #0f1726;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.profile-banner[hidden] { display: none; }

.profile-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.02) 0%, rgba(7, 10, 18, 0.35) 100%);
}

/* 知乎式两栏内容：左侧动态流，右侧资料卡 */
.profile-main {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 32px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.profile-feed { display: grid; gap: 12px; min-width: 0; }

.profile-side {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 12px;
}

.side-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  display: grid;
  gap: 14px;
}

.side-title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--dim);
}

@media (max-width: 960px) {
  .profile-main { grid-template-columns: minmax(0, 1fr); }
  .profile-side { position: static; }
}

.profile-avatar {
  flex: none;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #0b1220;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  line-height: 0;
}

.profile-avatar .avatar-lg { width: 100px; height: 100px; font-size: 44px; }

.profile-avatar:hover { filter: brightness(1.08); }

/* 头像：预置头像用渐变色 + emoji，自定义头像是上传的图片 */
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--a, #67e8f9), var(--b, #a78bfa));
  color: #0a1220;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar em { font-style: normal; line-height: 1; }
.avatar-lg { width: 54px; height: 54px; font-size: 26px; }
.avatar-xs { width: 20px; height: 20px; font-size: 11px; }

.avatar-picker {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.avatar-picker[hidden] { display: none; }

.avatar-preset-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.avatar-preset {
  padding: 6px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.avatar-preset:hover { border-color: rgba(103, 232, 249, 0.45); }
.avatar-preset.is-on { border-color: rgba(103, 232, 249, 0.75); background: rgba(103, 232, 249, 0.1); }

.avatar-upload-row { display: flex; align-items: center; gap: 10px; }

.avatar-upload-btn {
  padding: 7px 12px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 9px;
  background: rgba(103, 232, 249, 0.08);
  color: var(--accent);
  font-size: 12px;
}

.avatar-upload-btn:hover { background: rgba(103, 232, 249, 0.16); }
.avatar-upload-tip { font-size: 11px; color: var(--muted); }

.me-account-inner { display: flex; align-items: center; gap: 8px; justify-content: center; }

.profile-info { flex: 1; min-width: 0; display: grid; gap: 8px; }
.profile-info h2 { margin: 0; font-size: 24px; letter-spacing: 0.5px; }

/* 补充资料：雪龄、板型、滑行风格 */
.profile-extra-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.profile-extra { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.profile-extra-empty { font-size: 12px; color: var(--dim); font-style: italic; }

.extra-chip {
  padding: 1px 8px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 99px;
  background: var(--accent-soft);
  font-size: 11px;
  color: var(--accent);
}

.profile-extra-editor {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
}

.profile-extra-editor[hidden] { display: none; }

.pe-field { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.pe-field > span { flex: none; width: 32px; }

.pe-select {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 12px;
}

.pe-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.pe-chip {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.pe-chip.is-on {
  border-color: rgba(103, 232, 249, 0.5);
  background: var(--accent-soft);
  color: var(--accent);
}

.pe-actions { display: flex; justify-content: flex-end; gap: 8px; }

.pe-actions button {
  padding: 4px 14px;
  border: 1px solid rgba(103, 232, 249, 0.4);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
}

.pe-actions .ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}

/* 个人签名：自己可编辑，别人的主页只读 */
.profile-sign { display: flex; align-items: center; gap: 8px; }
.profile-sign span { min-width: 0; line-height: 1.5; word-break: break-word; }
.profile-sign span.is-empty { color: var(--dim); font-style: italic; }
.sign-edit {
  flex: none;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}
.sign-edit:hover { color: var(--ink); border-color: rgba(103, 232, 249, 0.4); }
.sign-edit[hidden] { display: none; }

.profile-sign-edit { display: flex; gap: 6px; }
.profile-sign-edit[hidden] { display: none; }
.profile-sign-edit input {
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 12px;
}
.profile-sign-edit button {
  flex: none;
  padding: 5px 10px;
  border: 1px solid rgba(103, 232, 249, 0.35);
  border-radius: 8px;
  background: rgba(103, 232, 249, 0.12);
  color: #67e8f9;
  font-size: 12px;
  cursor: pointer;
}

.profile-level {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(103, 232, 249, 0.06);
}

.profile-level-top { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 12px; }
.profile-level-top b { font-size: 13px; color: var(--accent); }
.profile-level-top span { color: var(--muted); }

.profile-level-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.profile-level-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #67e8f9, #a78bfa);
  transition: width 0.35s ease;
}

.profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.profile-stat {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.profile-stat b { display: block; font-size: 17px; line-height: 1.3; }
.profile-stat span { font-size: 11px; color: var(--muted); }

/* 评价 / 提问 / 回答：知乎主页式标签页 */
.profile-tabbar {
  display: flex;
  gap: 22px;
  padding: 0 6px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(9, 13, 22, 0.9);
  backdrop-filter: blur(12px);
}

.profile-tab {
  padding: 10px 0 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.profile-tab b { margin-left: 5px; font-size: 11px; font-weight: 400; color: var(--dim); }
.profile-tab:hover { color: var(--ink); }
.profile-tab.is-on { color: var(--ink); border-bottom-color: var(--accent); }
.profile-tab.is-on b { color: var(--accent); }

/* 动态条目：知乎式卡片 */
.zf-list { display: grid; gap: 12px; }

.zf-item {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.zf-item:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }

.zf-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.zf-tag {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  color: var(--muted);
}

.zf-tag-resort {
  border-color: rgba(103, 232, 249, 0.35);
  background: var(--accent-soft);
  color: var(--accent);
}

.zf-title { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.55; color: var(--ink); }
.zf-title-q { color: #8fb3ff; }
.zf-body { margin: 0; font-size: 12.5px; line-height: 1.7; color: #c6d0e2; white-space: pre-wrap; }
/* 知乎式底部互动栏：赞同 / 评论 / 时间 */
.zf-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

.zf-act {
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

button.zf-act {
  font: inherit;
  cursor: pointer;
}

button.zf-act:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

button.zf-act:disabled {
  cursor: default;
  opacity: 0.6;
}

button.zf-act.is-on {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.1);
}

.rate-item.is-flash,
.qa-item.is-flash,
.qa-answer.is-flash {
  animation: deep-link-flash 1.6s ease;
}

@keyframes deep-link-flash {
  0%, 100% { box-shadow: none; }
  30% { box-shadow: 0 0 0 2px var(--line-strong); }
}

.zf-stars { margin-right: auto; color: #fbbf24; letter-spacing: 1px; }
.zf-time { margin-left: auto; font-size: 11px; color: var(--dim); }

.footprint-list { display: flex; flex-wrap: wrap; gap: 8px; }

.footprint-chip {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
}

.footprint-chip b { margin-left: 4px; color: var(--accent); }

.profile-empty { padding: 6px 2px; font-size: 12px; color: var(--muted); }

@media (max-width: 720px) {
  .profile-topbar { padding: 10px 14px; }
  .profile-hero-inner { min-height: 150px; padding: 20px 14px 16px; gap: 12px; }
  .profile-avatar .avatar-lg { width: 84px; height: 84px; font-size: 36px; }
  .profile-info h2 { font-size: 20px; }
  .profile-main { padding: 14px 14px 44px; gap: 18px; }
}

/* ================= 手机端雪场选择页（桌面隐藏） ================= */
.m-picker,
.m-resort-sheet,
.map-back { display: none; }

/* ================= 移动端 / 平板：全屏地图工作台 ================= */
@media (max-width: 1023px) {
  :root { --sheet-peek: 78px; }

  html, body { height: 100%; }
  body {
    min-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
  }
  /* 工作台按 visualViewport 的可见区域框定，避开浏览器地址栏与底部导航 */
  .app {
    position: fixed;
    top: var(--app-vt, 0px);
    left: 0;
    right: 0;
    height: 100vh;
    height: var(--app-vh, 100dvh);
    min-height: 0;
    overflow: hidden;
  }

  /* 顶部浮动入口：雪场胶囊（左）+ 账户（右） */
  .topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: calc(8px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) 10px calc(12px + env(safe-area-inset-left));
    border-bottom: 0;
    background: linear-gradient(180deg, rgba(7, 10, 18, 0.92) 0%, rgba(7, 10, 18, 0.6) 62%, rgba(7, 10, 18, 0) 100%);
    backdrop-filter: none;
    pointer-events: none;
  }
  .topbar > * { pointer-events: auto; }
  .topbar .brand { display: none; }
  .resort-picker {
    order: 1;
    flex: 1;
    width: auto;
    max-width: none;
    min-width: 0;
  }
  .picker-btn {
    padding: 6px 10px;
    background: rgba(9, 14, 24, 0.82);
    backdrop-filter: blur(14px);
  }
  .picker-main i { font-size: 9px; letter-spacing: 1px; }
  .picker-main b { font-size: 13px; }
  .picker-sub { display: none; }
  .picker-panel { max-height: calc(var(--app-vh, 100vh) * 0.62); }
  .topbar-me { order: 2; margin-left: 0; gap: 0; }
  .topbar-me .me-pills { display: none; }
  .topbar-me .me-account {
    width: auto;
    max-width: 118px;
    min-height: 40px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(9, 14, 24, 0.82);
    backdrop-filter: blur(14px);
    font-size: 12px;
  }

  .topbar-me .me-reward {
    margin-left: 8px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(9, 14, 24, 0.82);
    backdrop-filter: blur(14px);
    font-size: 11px;
  }

  .me-reward-full { display: none; }
  .me-reward-short { display: inline; }

  /* 舞台让位给全屏地图 */
  .stage { max-width: none; height: 100%; margin: 0; padding: 0; }
  .hero, .stage-foot { display: none; }
  .content { position: absolute; inset: 0; display: block; margin: 0; }

  .col-side { position: static; display: block; }
  .map-card {
    position: absolute;
    inset: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #eef3f8;
    box-shadow: none;
    backdrop-filter: none;
  }
  .map-card.is-pulse { box-shadow: none; }
  .map-wrap { position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0; }

  /* 手机端地图全屏：提示放顶部栏下方，避免被底部抽屉挡住 */
  .map-tip {
    left: 50%;
    top: calc(96px + env(safe-area-inset-top));
    transform: translateX(-50%);
    max-width: calc(100% - 24px);
    padding: 6px 11px;
    font-size: 11px;
  }
  .map-tip-desk { display: none; }
  .map-tip-mobile { display: inline; }
  .legend { display: none; }

  /* 控件列整体跟在抽屉上方，详情浮层出现时由 --map-tools-lift 抬起 */
  .map-controls {
    left: calc(12px + env(safe-area-inset-left));
    bottom: calc(var(--sheet-peek) + env(safe-area-inset-bottom) + 12px + var(--map-tools-lift, 0px));
    gap: 8px;
  }
  .map-locate { width: 38px; height: 38px; }
  .map-views { gap: 8px; }
  .map-views button { width: 38px; height: 38px; padding: 0; font-size: 11px; }

  /* 手机端卡片头只剩全屏按钮，且已隐藏，无需再浮在右下角 */
  .card-head {
    position: static;
    margin: 0;
    padding: 0;
    pointer-events: none;
  }
  .card-head > div:first-child { display: none; }
  .card-tools { pointer-events: auto; }
  #mapFull { display: none; }

  /* 地图上的筛选条收进抽屉 */
  .map-overlay { display: none !important; }

  /* 手机地图常驻全屏：场次在左、求助在右，让开顶部雪场/账户栏 */
  .map-quick {
    display: flex;
    top: calc(60px + env(safe-area-inset-top));
    left: calc(10px + env(safe-area-inset-left));
    right: calc(10px + env(safe-area-inset-right));
    justify-content: space-between;
  }

  /* 公开分享页没有顶部栏，场次回到最上方 */
  body.is-guest-mode .map-quick {
    top: max(8px, env(safe-area-inset-top));
  }

  /* ---------- 手机地图模式：顶部三个入口收到右下，与左下工具同一套图标按钮 ---------- */
  body:has(#mapBack:not([hidden])) .topbar {
    padding: 0;
    background: none;
  }
  /* 顶部栏腾空后，场次回到最上方 */
  body:has(#mapBack:not([hidden])) .map-quick {
    top: max(8px, env(safe-area-inset-top));
  }
  body:has(#mapBack:not([hidden])) .map-back {
    position: fixed;
    right: calc(12px + env(safe-area-inset-right));
    bottom: calc(var(--sheet-peek) + env(safe-area-inset-bottom) + 12px + var(--map-tools-lift, 0px));
    z-index: 12;
    width: 38px;
    height: 38px;
    min-height: 0;
    padding: 0;
    gap: 0;
    justify-content: center;
    border-color: rgba(148, 170, 204, 0.3);
    border-radius: 11px;
    background: rgba(7, 11, 18, 0.84);
    color: #b6c4d8;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  body:has(#mapBack:not([hidden])) .map-back span { display: none; }
  body:has(#mapBack:not([hidden])) .map-back svg { width: 18px; height: 18px; }
  body:has(#mapBack:not([hidden])) .topbar-me {
    position: fixed;
    right: calc(12px + env(safe-area-inset-right));
    bottom: calc(var(--sheet-peek) + env(safe-area-inset-bottom) + 12px + var(--map-tools-lift, 0px) + 46px);
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin: 0;
  }
  body:has(#mapBack:not([hidden])) .topbar-me .me-account,
  body:has(#mapBack:not([hidden])) .topbar-me .me-reward {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    border: 1px solid rgba(148, 170, 204, 0.3);
    border-radius: 11px;
    background: rgba(7, 11, 18, 0.84);
    color: #b6c4d8;
    font-size: 11px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  body:has(#mapBack:not([hidden])) .me-account-name,
  body:has(#mapBack:not([hidden])) .me-reward-full,
  body:has(#mapBack:not([hidden])) .me-reward-short { display: none; }
  body:has(#mapBack:not([hidden])) .me-account-ico,
  body:has(#mapBack:not([hidden])) .me-reward-ico {
    display: block;
    width: 18px;
    height: 18px;
  }
  body:has(#mapBack:not([hidden])) .me-account-inner { gap: 0; }
  /* 菜单从图标列上方展开，避免贴底溢出 */
  body:has(#mapBack:not([hidden])) .guest-pop {
    top: auto;
    bottom: calc(100% + 8px);
    right: 0;
  }

  /* 抽屉头部的开放统计：只在手机端显示 */
  .sheet-stats {
    display: block;
    margin: 0;
    padding: 6px 18px 0;
    color: var(--dim);
    font-size: 11px;
  }

  /* 底部抽屉：peek / half / full 三档 */
  .col-main {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 0;
    z-index: 30;
    width: min(640px, 100%);
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0 0 env(safe-area-inset-bottom);
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    background: rgba(10, 15, 25, 0.97);
    box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .col-main.is-peek { height: calc(var(--sheet-peek) + env(safe-area-inset-bottom)); }
  .col-main.is-half { height: calc(54% + env(safe-area-inset-bottom)); }
  .col-main.is-full { height: calc(90% + env(safe-area-inset-bottom)); }
  .col-main.is-dragging { transition: none; }

  .sheet-mask {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 26;
    background: rgba(4, 7, 13, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }
  .sheet-mask.is-on { opacity: 1; pointer-events: auto; }

  .sheet-grab {
    flex: none;
    display: flex;
    justify-content: center;
    padding: 9px 0 3px;
    cursor: grab;
    touch-action: none;
  }
  .sheet-grab span {
    width: 42px;
    height: 4px;
    border-radius: 99px;
    background: rgba(148, 170, 204, 0.4);
  }

  .sheet-seg {
    flex: none;
    display: flex;
    gap: 4px;
    padding: 2px 14px 10px;
    border-bottom: 1px solid var(--line);
  }
  .sheet-seg button {
    flex: 1;
    padding: 7px 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
  }
  .sheet-seg button.is-on {
    border-color: rgba(103, 232, 249, 0.32);
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
  }

  /* 只作用于地图底部列表，避免误伤评价抽屉里的同名 .sheet-pane */
  #sheetPanel .sheet-pane {
    display: none;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 14px calc(18px + env(safe-area-inset-bottom));
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  #sheetPanel .sheet-pane.is-on { display: block; }
  #sheetPanel .sheet-pane .section-head { margin: 12px 0 10px; }

  .sheet-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    margin-top: 12px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
  }
  .sheet-search svg {
    width: 15px;
    height: 15px;
    flex: none;
    fill: none;
    stroke: var(--dim);
    stroke-width: 1.8;
    stroke-linecap: round;
  }
  .sheet-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
  }
  .sheet-search input::placeholder { color: #5d6a82; }

  .trail-list { grid-template-columns: 1fr; }
  .lift-grid { grid-template-columns: 1fr; }

  /* 设施列表 */
  .sheet-pane[data-seg-pane="poi"] .section-head { margin-top: 14px; }
  .poi-list { display: flex; flex-direction: column; gap: 8px; padding-bottom: 10px; }
  .poi-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--card);
    color: var(--ink);
    text-align: left;
  }
  .poi-card:hover { border-color: var(--line-strong); }
  .poi-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
  .poi-main { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
  .poi-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .poi-type { font-size: 10.5px; color: var(--dim); }

  /* 雪道详情浮层让开抽屉 */
  .trail-panel {
    left: 12px;
    right: 12px;
    bottom: calc(var(--sheet-peek) + env(safe-area-inset-bottom) + 10px);
    width: auto;
    max-height: calc(var(--app-vh, 100vh) * 0.38);
    overflow-y: auto;
  }

  /* ---------- 手机端导航：底部通栏卡片，浮在抽屉之上 ---------- */
  .nav-panel {
    left: 12px;
    right: 12px;
    bottom: calc(var(--sheet-peek) + env(safe-area-inset-bottom) + 10px);
    width: auto;
    max-height: clamp(240px, calc(var(--app-vh, 100vh) - 240px), 420px);
    padding: 12px 14px;
    border-radius: 16px;
    z-index: 20;
  }

  .nav-kicker { padding-right: 64px; font-size: 13px; }
  .nav-kicker em { font-size: 11px; }

  /* 收起钮和关闭钮都放大到可点区域 */
  .nav-collapse,
  .nav-panel .trail-panel-close {
    width: 32px;
    height: 32px;
    top: 6px;
    bottom: auto;
    border-radius: 9px;
    font-size: 17px;
  }
  .nav-collapse { right: 42px; }
  .nav-panel .trail-panel-close { right: 8px; left: auto; }
  .nav-collapse svg { width: 16px; height: 16px; }

  /* 收起到右侧中部，只留一条窄标签 */
  .nav-panel.is-collapsed {
    left: auto;
    right: 0;
    top: 50%;
    bottom: auto;
    width: 46px;
    height: 54px;
    padding: 0;
  }
  .nav-panel.is-collapsed .nav-collapse { width: 100%; height: 100%; }

  /* 起终点做成一张卡里的两行，整行可点 */
  .nav-fields {
    gap: 2px;
    margin-top: 10px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.03);
  }
  .nav-field { gap: 4px; padding-left: 8px; }
  .nav-field + .nav-field { border-top: 1px solid var(--line); }
  .nav-field > span { width: 30px; font-size: 11px; }
  .nav-value {
    min-height: 44px;
    padding: 4px 8px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font-size: 13.5px;
  }
  .nav-value:hover { background: rgba(255, 255, 255, 0.04); }
  .nav-value.is-empty {
    border: 0;
    padding-right: 24px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12'%3E%3Cpath d='M1.5 1l4.5 5-4.5 5' fill='none' stroke='%2363718a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
  }

  .nav-result {
    margin-top: 12px;
  }
  /* 分段列表可滚动：底部做淡出，提示下面还有内容 */
  .nav-result:has(.nav-steps) {
    mask-image: linear-gradient(180deg, #000 calc(100% - 20px), transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 20px), transparent 100%);
  }
  .nav-summary b { font-size: 23px; }
  .nav-summary span { font-size: 11.5px; }
  .nav-steps { gap: 10px; margin-top: 11px; padding-bottom: 20px; }
  .nav-steps b { font-size: 13.5px; }
  .nav-steps span { font-size: 11px; }
  .nav-dot { width: 9px; height: 9px; margin-top: 5px; }
  .nav-empty { font-size: 12.5px; }

  .nav-actions { margin-top: 13px; }
  .nav-actions .ghost { height: 42px; border-radius: 11px; font-size: 13px; }

  .nav-hint { margin-top: 9px; font-size: 10.5px; }
  /* 已经有路线时不再占一行讲规则，把高度留给分段列表 */
  .nav-panel:has(.nav-actions:not([hidden])) > .nav-hint { display: none; }

  /* 选点时不盖整块面板：收起其他内容，面板缩成一张紧凑选择卡 */
  .nav-panel:has(.nav-picker:not([hidden])) > .nav-kicker,
  .nav-panel:has(.nav-picker:not([hidden])) > .nav-collapse,
  .nav-panel:has(.nav-picker:not([hidden])) > .trail-panel-close,
  .nav-panel:has(.nav-picker:not([hidden])) > .nav-fields,
  .nav-panel:has(.nav-picker:not([hidden])) > .nav-result,
  .nav-panel:has(.nav-picker:not([hidden])) > .nav-actions,
  .nav-panel:has(.nav-picker:not([hidden])) > .nav-hint { display: none; }

  .nav-picker {
    position: static;
    inset: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }
  .nav-picker-head { padding: 0 2px 6px; font-size: 13px; }
  .nav-picker-head button { padding: 8px 4px 8px 14px; font-size: 12.5px; }
  .nav-pick-list { overflow: visible; }
  .nav-pick {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    min-height: 56px;
    padding: 10px 12px;
    font-size: 13.5px;
    border-color: var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
  }
  .nav-pick + .nav-pick { margin-top: 8px; }
  .nav-pick span { font-size: 11px; }
  body:has(#navPicker:not([hidden])) .map-controls {
    opacity: 0;
    pointer-events: none;
  }

  /* 打点提示条：通栏贴在抽屉上方；同时让左下工具列让位 */
  .nav-pickbar {
    left: 12px;
    right: 12px;
    bottom: calc(var(--sheet-peek) + env(safe-area-inset-bottom) + 10px);
    max-width: none;
    padding: 10px 12px;
    border-radius: 14px;
    transform: none;
  }
  .nav-pickbar p { font-size: 11.5px; }
  .nav-pickbar-btn { min-height: 38px; padding: 0 14px; font-size: 12.5px; }
  body:has(#navPickBar:not([hidden])) .map-controls {
    opacity: 0;
    pointer-events: none;
  }

  /* 2D 手势 */
  #schematic { touch-action: none; }

  /* 评论抽屉改底部弹出，同样限制在浏览器可见区域内 */
  .drawer {
    top: var(--app-vt, 0px);
    bottom: auto;
    height: var(--app-vh, 100dvh);
    align-items: flex-end;
  }
  .drawer-panel {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 90%;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
    animation: sheetUp 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .drawer-head { padding-top: 16px; }
  .drawer-body { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }

  /* 个人主页 / 登录 */
  .profile-page {
    top: var(--app-vt, 0px);
    bottom: auto;
    height: var(--app-vh, 100dvh);
  }
  .profile-topbar { padding-top: calc(10px + env(safe-area-inset-top)); }
  .profile-main { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
  .auth-modal {
    top: var(--app-vt, 0px);
    bottom: auto;
    height: var(--app-vh, 100dvh);
    padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  }
  .auth-card { width: 100%; max-height: 100%; max-height: calc(100dvh - 32px); overflow-y: auto; }

  .toast { bottom: calc(var(--app-vb, 0px) + var(--sheet-peek) + env(safe-area-inset-bottom) + 14px); max-width: calc(100vw - 32px); }

  /* ---------- 手机端：雪场选择页 ---------- */
  .m-picker {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 120;
    flex-direction: column;
    padding: calc(16px + env(safe-area-inset-top)) calc(18px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left));
    background:
      radial-gradient(680px 460px at 84% -8%, rgba(139, 92, 246, 0.22), transparent 62%),
      radial-gradient(560px 420px at 4% 2%, rgba(56, 189, 248, 0.16), transparent 60%),
      var(--bg);
    overflow: hidden;
  }

  .mp-head { flex: none; }
  .mp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .mp-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
  /* logo 本身是横向长图，压成 30×30 方块 + cover 会把两侧切掉，改成按高度等比缩放 */
  .mp-brand img { width: auto; height: 26px; max-width: 46px; object-fit: contain; }
  .mp-brand b { font-size: 14px; letter-spacing: 2px; white-space: nowrap; }
  .mp-count { font-size: 11px; color: var(--dim); white-space: nowrap; }
  .mp-title { margin: 20px 0 0; font-size: 27px; line-height: 1.2; font-weight: 700; letter-spacing: 0.5px; }
  .mp-sub { margin-top: 7px; font-size: 12px; color: var(--muted); }
  .mp-search {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    padding: 0 13px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--muted);
  }
  .mp-search:focus-within { border-color: rgba(103, 232, 249, 0.55); background: rgba(255, 255, 255, 0.06); }
  .mp-search svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .mp-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 16px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
  }
  .mp-search input::placeholder { color: var(--dim); }
  /* 国家 / 地区 / 城市筛选：国家整行，地区与城市各占一半，选项在深色底上也能看清 */
  .mp-region {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }
  .mp-region select {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 30px 0 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.045)
      url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238b9ab3' stroke-width='1.5'/%3E%3C/svg%3E")
      no-repeat right 11px center;
    color: var(--ink);
    font-size: 14px;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
  }
  .mp-region select:focus { border-color: rgba(103, 232, 249, 0.55); }
  .mp-region select option { background: #101725; color: var(--ink); }
  .mp-region #mpCountry { flex: 1 1 100%; }
  .mp-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .mp-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--ink);
    text-align: left;
    transition: border-color 0.16s ease, background 0.16s ease;
  }
  .mp-card:active { background: rgba(103, 232, 249, 0.08); }
  .mp-card.is-on { border-color: rgba(103, 232, 249, 0.45); box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.18); }
  .mp-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
  .mp-card-name { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mp-card-meta { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mp-card-score { flex: none; font-size: 12px; color: var(--warn); }
  .mp-card-arrow { flex: none; color: var(--dim); font-size: 20px; line-height: 1; }
  .mp-empty { padding: 40px 8px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.9; }
  .mp-foot { flex: none; margin: 10px 0 0; font-size: 10px; color: var(--dim); text-align: center; }

  /* ---------- 手机端：雪场统计卡片 ---------- */
  .m-resort-sheet {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 130;
    align-items: flex-end;
    justify-content: center;
  }
  .mrs-mask { position: absolute; inset: 0; background: rgba(3, 6, 12, 0.62); }
  .mrs-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 86%;
    overflow-y: auto;
    padding: 6px calc(18px + env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left));
    border-top: 1px solid var(--line-strong);
    border-radius: 24px 24px 0 0;
    background: #0b1019;
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.55);
    animation: mrsUp 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  }
  @keyframes mrsUp {
    from { transform: translateY(18px); opacity: 0.5; }
    to { transform: none; opacity: 1; }
  }
  .mrs-grab { display: flex; justify-content: center; padding: 3px 0 7px; }
  .mrs-grab span { width: 42px; height: 4px; border-radius: 99px; background: rgba(148, 170, 204, 0.4); }
  .mrs-close {
    position: absolute;
    top: 14px;
    right: calc(14px + env(safe-area-inset-right));
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
  }
  .mrs-kicker { margin: 6px 0 0; font-size: 10px; letter-spacing: 2px; color: var(--dim); }
  .mrs-card h2 { margin: 8px 0 0; padding-right: 34px; font-size: 22px; line-height: 1.25; }
  .mrs-sub { margin-top: 6px; font-size: 12px; color: var(--muted); }
  /* 评分 / 救援电话：两个同款胶囊并排，手机窄屏也尽量不换行 */
  .mrs-badges { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 10px; }
  .mrs-badges .mrs-score { min-width: 0; padding: 6px 10px; gap: 6px; }
  .mrs-badges .mrs-score b { font-size: 13px; }
  .mrs-badges .mrs-score span { font-size: 10px; overflow: hidden; text-overflow: ellipsis; }
  .mrs-badges .mrs-score em { font-size: 10px; white-space: nowrap; }
  .mrs-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    text-align: left;
  }
  .mrs-score b { font-size: 15px; color: var(--warn); }
  .mrs-score span { font-size: 11px; color: var(--muted); }
  .mrs-score em { font-style: normal; font-size: 11px; color: var(--accent); }
  .mrs-score:active { opacity: 0.8; }
  .mrs-call { text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .mrs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
  .mrs-stat {
    padding: 12px 8px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
  }
  .mrs-stat b { display: block; font-size: 17px; font-weight: 650; color: var(--ink); }
  .mrs-stat span { display: block; margin-top: 5px; font-size: 10px; color: var(--muted); }
  .mrs-stat.mrs-call { color: var(--accent); text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .mrs-stat.mrs-call:active { opacity: 0.75; }
  .mrs-stat.mrs-call b { color: var(--accent); font-size: 15px; }
  .mrs-loading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 26px 0; color: var(--muted); font-size: 12px; }
  .mrs-enter {
    width: 100%;
    margin-top: 20px;
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(120deg, #67e8f9, #a78bfa);
    color: #08121c;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
  }
  .mrs-enter:active { opacity: 0.86; }

  /* ---------- 手机端：地图返回按钮 ---------- */
  .topbar .resort-picker { display: none; }
  .topbar-me { margin-left: auto; }
  .map-back {
    display: inline-flex;
    order: 1;
    flex: none;
    align-items: center;
    gap: 5px;
    min-height: 40px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(9, 14, 24, 0.82);
    color: var(--ink);
    font-size: 12px;
    backdrop-filter: blur(14px);
  }
  .map-back svg { width: 16px; height: 16px; }

  /* iOS 聚焦字号小于 16px 的输入框会自动放大整页：统一抬到 16px，
     避免打开雪场下拉、聚焦搜索框时页面突然放大 */
  .search input,
  .sheet-search input,
  .fs-search input,
  .rate-form textarea,
  .qa-ask textarea,
  #authName,
  #authPass,
  #authPass2,
  #pfSignInput,
  .reply-form input {
    font-size: 16px;
  }
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: none; }
}

/* ---------- 雪场分享海报 ---------- */
.poster-modal {
  position: fixed;
  inset: 0;
  z-index: 960;
  display: grid;
  place-items: center;
  padding: 24px;
}

.poster-modal[hidden] { display: none; }

.poster-mask {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 14, 0.76);
  backdrop-filter: blur(8px);
}

.poster-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(430px, 100%);
  max-height: calc(100vh - 48px);
  padding: 16px 16px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #0b1220;
  box-shadow: var(--shadow);
}

.poster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.poster-head h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.poster-close {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}

.poster-close:hover { color: var(--ink); border-color: var(--line-strong); }

.poster-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 200px;
  border-radius: 14px;
  overflow: hidden;
  background: #050a12;
}

.poster-stage img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 250px);
  object-fit: contain;
}

.poster-stage img[hidden] { display: none; }

.poster-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(6, 12, 22, 0.92);
  color: var(--muted);
  font-size: 12px;
}

.poster-loading[hidden] { display: none; }

.poster-loading span {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(103, 232, 249, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: posterSpin 0.8s linear infinite;
}

@keyframes posterSpin { to { transform: rotate(360deg); } }

.poster-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.poster-btn {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 13px;
}

.poster-btn.is-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  color: #04121d;
  font-weight: 600;
}

.poster-btn:disabled { opacity: 0.5; }

.poster-hint {
  text-align: center;
  font-size: 10.5px;
  color: var(--dim);
}

/* 公开分享页（?guest=1）：页面只对应一个雪场，不提供雪场切换入口 */
body.is-guest-mode .resort-picker,
body.is-guest-mode .map-back {
  display: none !important;
}

/* 公开分享页（?guest=1）：进入即 3D，保留雪道/缆车/设施列表 */
body.is-guest-mode .topbar,
body.is-guest-mode .hero,
body.is-guest-mode .map-card .card-head {
  display: none !important;
}

/* 桌面端收掉页头留白：左侧列表 + 右侧 3D 地图 */
@media (min-width: 1024px) {
  body.is-guest-mode .stage { max-width: none; padding: 0; }
  body.is-guest-mode .content { margin-top: 0; padding: 12px 16px 16px; }
  body.is-guest-mode .map-card { border: 0; border-radius: 0; box-shadow: none; }
  body.is-guest-mode .map-wrap { border-radius: 0; }
}


/* ---------- 公开分享页 HUD ---------- */

body.is-guest-mode .map-tip { display: none !important; }

.guest-hud {
  position: absolute;
  left: 12px;
  right: 12px;
  /* 顶部第一行让给场次与求助 */
  top: 50px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  pointer-events: none;
}

.map-card.is-pagefull .guest-hud {
  /* 筛选卡贴左上角，公告接在筛选卡下面 */
  top: 96px;
}

.guest-hud > * { pointer-events: auto; }

.guest-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 560px;
  padding: 8px 10px 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.36);
  background: rgba(41, 29, 6, 0.88);
  backdrop-filter: blur(10px);
  color: #fde68a;
  font-size: 12px;
  line-height: 1.55;
}

.guest-notice-tag {
  flex: none;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(251, 191, 36, 0.2);
  font-size: 11px;
  font-weight: 700;
}

.guest-notice p {
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.guest-notice-close,
.guest-guide-close {
  flex: none;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  font-size: 13px;
  line-height: 18px;
  cursor: pointer;
}

.guest-overview {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  padding: 7px 8px 7px 12px;
  border-radius: 12px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  background: rgba(8, 13, 21, 0.84);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
}

.guest-overview-text { min-width: 0; }

.guest-stats {
  margin: 0;
  color: #eef4fb;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.guest-sub {
  margin: 2px 0 0;
  color: #8ea0b4;
  font-size: 11px;
}

.guest-refresh {
  flex: none;
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(103, 232, 249, 0.36);
  border-radius: 8px;
  background: rgba(10, 26, 36, 0.9);
  color: #a5f3fc;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.guest-refresh:disabled { opacity: 0.6; cursor: default; }

.guest-guide {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.4);
  background: rgba(8, 13, 21, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  color: #e6eef8;
  font-size: 12px;
  white-space: nowrap;
}

.guest-guide > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guest-help {
  position: fixed;
  right: 12px;
  bottom: 16px;
  z-index: 46;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.guest-help-btn {
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(248, 113, 113, 0.5);
  border-radius: 999px;
  background: rgba(69, 10, 10, 0.82);
  backdrop-filter: blur(8px);
  color: #fecaca;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.guest-help-panel {
  width: 224px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 13, 21, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.guest-help-title {
  margin: 0 0 4px;
  color: #8ea0b4;
  font-size: 11px;
}

.guest-help-row {
  display: block;
  padding: 7px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #e6eef8;
  font-size: 12px;
  text-decoration: none;
}

.guest-help-row:first-of-type { border-top: 0; }

.guest-help-empty {
  margin: 4px 0 0;
  color: #8ea0b4;
  font-size: 11px;
}

@media (max-width: 1023px) {
  .guest-hud { left: 10px; right: 10px; }
  .guest-notice,
  .guest-overview { max-width: 100%; }
  .guest-stats { font-size: 12px; }
  .guest-guide {
    font-size: 11px;
  }
  .guest-help { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); right: 10px; }
  .guest-help-btn { height: 32px; padding: 0 12px; }
  .guest-help-panel { width: 210px; }
}
