: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 {
  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; }

.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; gap: 8px; margin: 10px 0 2px; }
.region-filter .origin-select { flex: 1; min-width: 0; margin-top: 0; }

.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); }

/* 救援电话：与日场 / 夜场、评分同款胶囊样式，紧跟在评分后面 */
.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;
}

/* 圆环 */
.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-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);
}

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

/* 3D 地图定位：浮在左下角，避开右下角的雪道详情浮层 */
.map-locate {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 9;
  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-locate svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.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-reset { bottom: 60px; }

/* 全屏时顶部筛选栏出现，提示下移让开 */
.map-card:fullscreen .map-tip,
.map-card:-webkit-full-screen .map-tip { top: 58px; }

.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: 16px; stroke-width: 3.5px; }

#schematic .trail-label {
  font-size: 12px;
  fill: #ffffff;
  font-weight: 600;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.28);
  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: 16px; 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: #67707f;
  font-weight: 500;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2.5px;
}

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

#schematic .poi-label {
  font-size: 10px;
  fill: #5f6979;
  font-weight: 500;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.9);
  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:fullscreen,
.map-card:-webkit-full-screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 16px 20px 18px;
  border: 0;
  border-radius: 0;
  background: #070b12;
  box-shadow: none;
}

.map-card:fullscreen .map-wrap,
.map-card:-webkit-full-screen .map-wrap {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
  background: #080d16;
}

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

.map-card:fullscreen .map-overlay,
.map-card:-webkit-full-screen .map-overlay { display: flex; }

.map-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.fs-search {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 250px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(148, 170, 204, 0.3);
  border-radius: 9px;
  background: rgba(7, 11, 18, 0.84);
  backdrop-filter: blur(8px);
}

.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); }

.fs-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(148, 170, 204, 0.3);
  border-radius: 9px;
  background: rgba(7, 11, 18, 0.84);
  backdrop-filter: blur(8px);
}

.fs-tab {
  padding: 5px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

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

.fs-tab.is-on {
  background: var(--accent-soft);
  color: var(--accent);
}

.fs-select {
  padding: 7px 26px 7px 11px;
  border: 1px solid rgba(148, 170, 204, 0.3);
  border-radius: 9px;
  background: rgba(7, 11, 18, 0.84)
    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 9px center;
  color: var(--ink);
  font-size: 12px;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  backdrop-filter: blur(8px);
}

.fs-select:focus { border-color: rgba(103, 232, 249, 0.55); }
.fs-select:disabled { opacity: 0.42; cursor: not-allowed; }
.fs-select option { background: #101725; color: var(--ink); }

/* 雪道名较长，限制宽度避免把筛选栏撑满一行 */
#fsTrailSelect { max-width: 180px; }

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

/* 加载提示：只在页面中央浮一个小药丸，不遮住页面内容 */
.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; }

.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; }

/* 空态 */
.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); }
.rate-locked { margin-top: 12px; font-size: 11px; color: var(--dim); }

.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; }
  .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;
}

.auth-tip { margin: 0; font-size: 11px; line-height: 1.6; color: #56627a; }

/* ---------- 个人主页（独立页面） ---------- */
.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(env(safe-area-inset-top) + 68px);
    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; }

  /* 定位按钮与 3D 切换按钮同一高度，改放左下角避开右侧浮层 */
  .map-locate {
    left: calc(12px + env(safe-area-inset-left));
    bottom: calc(var(--sheet-peek) + env(safe-area-inset-bottom) + 12px + var(--map-tools-lift, 0px));
    width: 38px;
    height: 38px;
  }
  .map-reset {
    bottom: calc(var(--sheet-peek) + env(safe-area-inset-bottom) + 12px + var(--map-tools-lift, 0px) + 46px);
  }

  /* 3D/2D 切换浮在地图右下、抽屉上方；雪道详情浮层出现时由 --map-tools-lift 抬高 */
  .card-head {
    position: absolute;
    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: 22;
    margin: 0;
    padding: 0;
    pointer-events: none;
  }
  .card-head > div:first-child { display: none; }
  .card-tools { pointer-events: auto; }
  #mapFull { display: none; }
  #mode3d {
    padding: 8px 14px;
    border-color: rgba(148, 170, 204, 0.3);
    background: rgba(9, 14, 24, 0.88);
    font-size: 12px;
    backdrop-filter: blur(14px);
  }

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

  /* 底部抽屉：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;
  }

  /* 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; }
  .mp-brand img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
  .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-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-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    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-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; }
}
