:root {
  --bg: #f7f8fa;
  --bg-elev: #ffffff;
  --bg-soft: #eef1f4;
  --line: rgba(15, 23, 32, 0.08);
  --text: #1a1f26;
  --muted: #7a8490;
  --brand: #ff7a1a;
  --brand-soft: #ffe8d4;
  --brand-2: #1fa97a;
  --ink: #111827;
  --danger: #e85d5d;
  --radius: 16px;
  --tab-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", system-ui, sans-serif;
  --shadow: 0 10px 28px rgba(20, 28, 40, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #e8ebf0;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  justify-content: center;
}

button,
input {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

#phone {
  width: min(100vw, 430px);
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

#app {
  min-height: 100dvh;
  padding-bottom: calc(var(--tab-h) + var(--safe-b));
}

.view {
  display: none;
  min-height: calc(100dvh - var(--tab-h));
  animation: rise 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.view.active {
  display: block;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* —— Splash（略保留氛围，整体偏亮） —— */
#view-splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 122, 26, 0.18), transparent 42%),
    radial-gradient(circle at 70% 70%, rgba(31, 169, 122, 0.12), transparent 45%),
    #fff;
  padding: 32px;
  text-align: center;
}

#view-splash.hidden {
  display: none;
}

.orb {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--brand), #ffd19a, var(--brand-2), var(--brand));
  position: relative;
  margin-bottom: 24px;
  animation: spin 12s linear infinite;
  box-shadow: 0 12px 40px rgba(255, 122, 26, 0.25);
}

.orb::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
}

.orb i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  font-size: 34px;
  color: var(--brand);
  animation: spin 12s linear infinite reverse;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.splash-brand {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ink);
}

.splash-brand .pai,
.logo-earthpai .pai {
  color: var(--brand);
  font-weight: 900;
  font-size: 1.22em;
  margin-left: 1px;
}

.logo-earthpai {
  flex: 0 1 auto;
  overflow: visible;
  text-overflow: unset;
}

.brand-line {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
  line-height: 1.2;
}

.logo-earthpai .brand-sep {
  margin: 0 0.42em;
  font-weight: 500;
  font-size: 0.78em;
  color: rgba(122, 132, 144, 0.55);
  transform: translateY(-0.06em);
}

.logo-earthpai .brand-tagline {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.splash-sub {
  color: var(--muted);
  margin: 0 0 32px;
  font-size: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a2b, var(--brand));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 122, 26, 0.35);
  transition: transform 0.2s;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-ghost {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

/* —— Top bar —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.topbar.scrolled {
  border-bottom-color: var(--line);
}

.brand-mini {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

.brand-mini span {
  color: var(--brand);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.brand-row img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  max-width: 28%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  flex-shrink: 0;
}

.loc i {
  color: var(--brand);
  font-size: 11px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, color 0.2s;
  flex-shrink: 0;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: var(--bg-soft);
  color: var(--brand);
}

.icon-btn:active {
  transform: scale(0.94);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: auto;
}

.search-shell {
  display: flex;
  align-items: center;
  min-width: 0;
  justify-content: flex-end;
}

/* 展开时占满顶栏，品牌与旁侧按钮让出 */
.topbar.search-open .brand-row,
.topbar.search-open .brand-mini,
.topbar.search-open .logo-earthpai,
.topbar.search-open .loc,
.topbar.search-open > .icon-btn[data-go],
.topbar.search-open .topbar-actions > .icon-btn[data-go] {
  display: none;
}

.topbar.search-open .topbar-actions {
  flex: 1;
  min-width: 0;
}

.topbar.search-open .search-shell {
  flex: 1;
  width: 100%;
}

.search-shell.expanded .search-panel {
  display: flex;
}

.search-shell.expanded .search-trigger {
  display: none;
}

.search-panel {
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  padding: 0 6px 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(255, 122, 26, 0.35);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.1);
  animation: searchIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-panel-ico {
  color: var(--muted);
  font-size: 13px;
  flex-shrink: 0;
}

@keyframes searchIn {
  from {
    opacity: 0;
    transform: scaleX(0.92);
    transform-origin: right center;
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.search-panel input {
  flex: 1;
  min-width: 0;
  height: 100%;
  outline: none;
  background: transparent;
  border: none;
  padding: 0;
}

.search-panel input::placeholder {
  color: #b0b8c2;
}

.search-cancel {
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.home-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.home-tabs {
  display: flex;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.home-tabs::-webkit-scrollbar {
  display: none;
}

.home-tabs-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: auto;
}

.home-tabs-actions .loc {
  margin-left: 0;
  max-width: 88px;
  padding: 5px 8px;
}

.home-tabs-bar.search-open .home-tabs,
.home-tabs-bar.search-open .loc {
  display: none;
}

.home-tabs-bar.search-open .home-tabs-actions {
  flex: 1;
  min-width: 0;
  margin-left: 0;
}

.home-tabs-bar.search-open .search-shell {
  flex: 1;
  width: 100%;
}

.home-tabs button {
  position: relative;
  padding: 8px 0;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  flex-shrink: 0;
}

.home-tabs button.active {
  color: var(--ink);
  font-weight: 700;
}

.home-tabs button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand);
  transform: translateX(-50%);
}

.topbar-brand-only {
  padding-bottom: 6px;
}

/* 首页 Hero（从暗色第一版迁入 · 亮色皮肤） */
.hero {
  margin: 4px 14px 14px;
  padding: 24px 18px 20px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  min-height: 168px;
  border: 1px solid rgba(255, 122, 26, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 138, 43, 0.32) 0%, rgba(255, 122, 26, 0.12) 42%, transparent 68%),
    linear-gradient(325deg, rgba(31, 169, 122, 0.22) 0%, rgba(31, 169, 122, 0.06) 40%, transparent 65%),
    linear-gradient(180deg, #fff8f0 0%, #fff 55%);
  box-shadow:
    0 12px 32px rgba(255, 122, 26, 0.14),
    0 4px 12px rgba(20, 28, 40, 0.06);
}

.hero::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -32px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 150, 60, 0.35), transparent 68%);
  pointer-events: none;
}

.hero h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 8px;
  line-height: 1.15;
  color: var(--ink);
}

.hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 88%;
  line-height: 1.5;
}

.hero-cta {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-cta .chip {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(20, 28, 40, 0.06);
  font-weight: 600;
  color: var(--ink);
}

.hero-cta .chip i {
  color: var(--brand);
}

/* 河南运营层（挂在全国骨架上） */
.hn-region {
  margin: 2px 0 10px;
  padding-top: 4px;
}

.hn-region-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 8px;
}

.hn-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #ff8a2b, var(--brand));
}

.hn-hint {
  font-size: 12px;
  color: var(--muted);
}

/* 应龙智游外链入口（矮卡） */
.yl-banner {
  margin: 0 14px 12px;
  border-radius: 14px;
  background: linear-gradient(105deg, #fff9ef 0%, #fff 45%, #fff4e8 100%);
  border: 1px solid rgba(255, 122, 26, 0.18);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 6px;
  box-shadow: 0 6px 16px rgba(255, 122, 26, 0.08);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.yl-banner::before {
  content: "";
  position: absolute;
  right: -20px;
  top: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 122, 26, 0.08);
}

.yl-banner img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(255, 160, 40, 0.25));
}

.yl-banner .copy {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.yl-banner .copy .tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #c45a00;
  font-weight: 700;
  margin-bottom: 2px;
}

.yl-banner .copy h3 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.yl-banner .copy p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.yl-banner .arrow {
  color: var(--brand);
  position: relative;
  z-index: 1;
  font-size: 13px;
}

/* 城市选择 */
.city-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 14px 10px;
  scrollbar-width: none;
}

.city-row::-webkit-scrollbar {
  display: none;
}

.city-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 0;
  white-space: nowrap;
}

.city-chip.active {
  color: var(--ink);
  font-weight: 800;
}

.city-chip.active i {
  color: var(--brand);
}

/* 分类 */
.cat-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 14px 12px;
  scrollbar-width: none;
}

.cat-row::-webkit-scrollbar {
  display: none;
}

.cat-item {
  flex: 0 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.cat-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--brand);
  box-shadow: 0 4px 12px rgba(20, 28, 40, 0.04);
}

.cat-item span {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
}

.filter-row {
  display: flex;
  gap: 8px;
  padding: 0 14px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}

/* 首页筛选：主 tab + 展开面板 */
.home-filter {
  margin: 0 14px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(20, 28, 40, 0.04);
  overflow: hidden;
}

.filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  border-bottom: 1px solid transparent;
}

.filter-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 6px 4px;
  border-radius: 0;
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.filter-tabs button:last-child {
  border-right: none;
}

.filter-tabs .hf-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-tabs button i {
  font-size: 9px;
  color: #b0b8c2;
  transition: transform 0.2s;
}

.filter-tabs button.is-open {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--brand);
}

.filter-tabs button.is-open i {
  transform: rotate(180deg);
  color: var(--brand);
}

.filter-tabs button.has-value {
  color: var(--brand);
  font-weight: 700;
}

.filter-tabs button.has-value i {
  color: var(--brand);
}

.filter-panel {
  display: none;
  padding: 0 12px 12px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.filter-panel.is-open {
  display: block;
  animation: hfIn 0.22s ease;
}

@keyframes hfIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hf-hint {
  margin: 10px 2px 8px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.hf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
}

.hf-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.hf-chip i {
  font-size: 11px;
  color: var(--brand);
}

.hf-chip:active {
  transform: scale(0.97);
}

.hf-chip.is-on {
  background: linear-gradient(135deg, #ff8a2b, var(--brand));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px rgba(255, 122, 26, 0.28);
}

.hf-chip.is-on i {
  color: #fff;
}

/* 通用 section */
.section {
  padding: 0 14px 18px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 16px;
  font-family: var(--font-display);
}

.section-head a,
.section-head button.link {
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.theme-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.theme-item:active {
  transform: scale(0.96);
}

.theme-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: color-mix(in srgb, var(--tone) 16%, #fff);
  color: var(--tone);
}

.theme-item span {
  font-size: 11px;
  color: var(--muted);
}

.hint-net {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff8ee;
  border: 1px solid rgba(255, 122, 26, 0.2);
  color: #a65b10;
  font-size: 11px;
  line-height: 1.4;
}

.reel-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.reel-row::-webkit-scrollbar {
  display: none;
}

.reel-card {
  flex: 0 0 148px;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 4;
  background: #111;
  cursor: pointer;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.reel-card video,
.reel-card img.poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-card .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 42%, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.reel-card .meta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  color: #fff;
}

.reel-card .meta strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.reel-card .meta small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
}

.play-fab {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.25s;
}

.play-fab i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  color: #fff;
  backdrop-filter: blur(4px);
}

.reel-card.is-previewing .play-fab {
  opacity: 0;
}

.badge-time {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  border: none;
}

/* 筛选下方：主视频信息流 */
.home-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 14px 8px;
}

.feed-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.feed-card .media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #111;
  overflow: hidden;
}

.feed-card .media video,
.feed-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-card .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(31, 169, 122, 0.92);
  color: #fff;
  font-weight: 600;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-card .body {
  padding: 10px 12px 12px;
}

.feed-card .body h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.feed-card .body .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 12px;
}

.feed-card .loc-tag {
  background: rgba(37, 99, 235, 0.92);
}

.feed-card-rich .body {
  padding: 12px 14px 14px;
}

.feed-card-rich .host-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.feed-card-rich .host-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #ffb36b, var(--brand));
  flex-shrink: 0;
}

.feed-card .play-fab i {
  width: 52px;
  height: 52px;
  font-size: 18px;
  color: #fff;
}

.feed-card-rich .host-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.badge-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.badge-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(31, 169, 122, 0.12);
  color: #1fa97a;
}

.feed-card-rich .meta-line {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.feed-card-rich .meta-line i {
  margin-right: 4px;
}

.join-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.joiner-avs {
  display: flex;
  align-items: center;
}

.joiner-avs img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -6px;
  object-fit: cover;
  background: #ddd;
}

.joiner-avs img:first-child {
  margin-left: 0;
}

.addr-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.addr-row i {
  color: var(--brand);
  margin-right: 4px;
}

.addr-row em {
  flex-shrink: 0;
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

.feed-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.feed-foot-loc {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.feed-foot-loc i {
  color: var(--brand);
  margin-right: 4px;
}

.feed-foot-loc em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  font-size: 12px;
}

.feed-cta {
  flex-shrink: 0;
  align-self: center;
  min-width: 96px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5c542, #e8a317);
  color: #3a2a00;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(232, 163, 23, 0.25);
  white-space: nowrap;
}

.feed-card.is-previewing .play-fab {
  opacity: 0;
}

/* —— 相聚 · 抖音式竖滑 —— */
#view-meet {
  display: none;
  flex-direction: column;
  min-height: calc(100dvh - var(--tab-h));
  padding-bottom: 0;
  background: #0b0d10;
}

#view-meet.active {
  display: flex;
}

#view-meet .meet-head {
  flex-shrink: 0;
  z-index: 5;
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#view-meet .xhs-cats button {
  color: rgba(255, 255, 255, 0.55);
}

#view-meet .xhs-cats button.active {
  color: #fff;
}

#view-meet .meet-head-actions .icon-btn {
  color: #fff;
}

.dy-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  background: #0b0d10;
}

.dy-card {
  position: relative;
  height: calc(100dvh - var(--tab-h) - 56px);
  min-height: 520px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  color: #fff;
  background: #111;
}

.dy-video,
.dy-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dy-card.is-previewing .dy-poster {
  opacity: 0;
}

.dy-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 22%, transparent 48%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}

.dy-rail {
  position: absolute;
  right: 10px;
  bottom: 120px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.dy-av {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 0;
  border: 2px solid #fff;
  overflow: hidden;
  cursor: pointer;
  background: #333;
}

.dy-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dy-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.dy-act i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.28);
  font-size: 20px;
}

.dy-join {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 58px;
  padding: 10px 4px;
  border-radius: 16px;
  background: linear-gradient(160deg, #ff9a3d, var(--brand));
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255, 122, 26, 0.4);
}

.dy-join i {
  font-size: 16px;
}

.dy-join em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.92;
  max-width: 54px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dy-info {
  position: absolute;
  left: 14px;
  right: 78px;
  bottom: 18px;
  z-index: 3;
}

.dy-spot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.88);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.dy-info h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.dy-host {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.dy-host img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.dy-host .badge-pill {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.dy-meta,
.dy-joiners,
.dy-addr {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 6px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.dy-joiners {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dy-addr {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  line-height: 1.4;
}

.dy-addr em {
  flex-shrink: 0;
  font-style: normal;
  font-weight: 800;
}

.dy-detail {
  margin-top: 6px;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}


.bottom-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bottom-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
}

.bottom-link > i:first-child {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}

.bottom-link span {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.bottom-link .chev {
  color: var(--muted);
  font-size: 12px;
}

.home-bottom-more {
  padding-bottom: 28px;
}

.ver-links {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 16px 28px;
  margin: 0;
}

.ver-links a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ver-links span {
  margin: 0 6px;
}

/* —— Map —— */
.map-layer-bar {
  padding: 0 12px 8px;
}

.map-layers {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.map-layers::-webkit-scrollbar {
  display: none;
}

.map-layers button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  white-space: nowrap;
}

.map-layers button i {
  font-size: 13px;
  color: var(--tone, var(--muted));
}

.map-layers button.active {
  color: #fff;
  font-weight: 700;
  background: var(--tone, var(--brand));
  border-color: transparent;
}

.map-layers button.active i {
  color: #fff;
}

.map-layers button .expand-ico {
  font-size: 10px;
  opacity: 0.85;
  margin-left: -2px;
}

/* 小类固定两行 + 横向滑动（对齐粗门） */
.map-sub-layers {
  display: grid;
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  margin-top: 8px;
  padding: 2px 0 4px;
  max-height: 84px;
  animation: searchIn 0.22s ease;
}

.map-sub-layers.hidden {
  display: none;
}

.map-sub-layers::-webkit-scrollbar {
  display: none;
}

.map-sub-layers button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.map-sub-layers button.active {
  color: var(--brand-2);
  font-weight: 700;
  background: #e8f7f0;
  border-color: rgba(31, 169, 122, 0.35);
}

.map-stage {
  margin: 4px 14px 8px;
  height: calc(100dvh - 220px);
  min-height: 400px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 40% 35%, rgba(31, 169, 122, 0.12), transparent 35%),
    linear-gradient(180deg, #e8f5f0, #f3f7f5 60%, #eef2f0);
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 169, 122, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 169, 122, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 75%);
  animation: drift 20s linear infinite;
}

@keyframes drift {
  to {
    background-position: 36px 36px;
  }
}

.map-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(31, 169, 122, 0.25);
}

.pin {
  position: absolute;
  transform: translate(-50%, -100%);
  cursor: pointer;
  z-index: 2;
}

.pin i {
  font-size: 22px;
  color: var(--pin, var(--brand));
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.pin[data-layer="sport"] {
  --pin: #22c55e;
}
.pin[data-layer="culture"] {
  --pin: #8b5cf6;
}
.pin[data-layer="agri"] {
  --pin: #1fa97a;
}
.pin[data-layer="gov"] {
  --pin: #0ea5e9;
}

.map-empty {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  z-index: 2;
}

.pin .label {
  position: absolute;
  left: 50%;
  top: -28px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.map-legend {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.map-legend .chip {
  background: rgba(255, 255, 255, 0.95);
  flex-shrink: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  cursor: pointer;
}

/* —— Meet · 无标题，分类 + 搜索/筛选顶栏 —— */
.meet-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 0 6px 0 12px;
  background: rgba(247, 248, 250, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.meet-head .xhs-cats {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: none;
  margin: 0;
  padding: 0;
}

.meet-head .xhs-cats::-webkit-scrollbar {
  display: none;
}

.meet-head .xhs-cats button {
  position: relative;
  flex: 0 0 auto;
  padding: 12px 0 14px;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
  background: transparent;
  border: 0;
}

.meet-head .xhs-cats button.active {
  color: var(--ink);
  font-weight: 700;
}

.meet-head .xhs-cats button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand);
  transform: translateX(-50%);
}

.meet-head-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
  padding: 4px 0;
}

.meet-head.search-open .xhs-cats,
.meet-head.search-open #btn-filter {
  display: none;
}

.meet-head.search-open .meet-head-actions {
  flex: 1;
  min-width: 0;
  padding: 8px 6px 8px 0;
}

.meet-head.search-open .search-shell {
  flex: 1;
  width: 100%;
}

.meet-filters {
  padding-top: 12px;
}

.video-masonry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px 24px;
}

.v-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow);
}

.v-card .media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #111;
  overflow: hidden;
}

.v-card video,
.v-card .poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v-card .body {
  padding: 10px;
}

.v-card .body h3 {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v-card .body .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.v-card .body .row + .row {
  margin-top: 4px;
}

.v-card .body .fee {
  color: var(--brand);
  font-weight: 700;
}

.v-card .body .host {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.tag-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

/* —— Detail —— */
#view-meet-detail.active {
  background: var(--bg);
}

.detail-page {
  padding-bottom: calc(72px + var(--tab-h) + var(--safe-b));
}

.detail-hero {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 42dvh;
  background: #111;
  overflow: hidden;
}

.detail-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #111;
}

.detail-spot {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.92);
  color: #fff;
}

.back-fab {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.detail-sheet {
  position: relative;
  margin-top: -18px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 18px 16px 8px;
  box-shadow: 0 -8px 24px rgba(20, 28, 40, 0.06);
}

.detail-sheet h1 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 12px;
  color: var(--ink);
}

.detail-sheet .host-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.detail-sheet .host-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.detail-sheet .host-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.detail-sheet .host-copy strong {
  font-size: 14px;
  color: var(--ink);
}

.detail-sheet .host-copy span {
  font-size: 12px;
  color: var(--muted);
}

.detail-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.detail-facts > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.45;
}

.detail-facts > div > i {
  width: 16px;
  margin-top: 2px;
  color: var(--brand);
  flex-shrink: 0;
}

.detail-join {
  margin: 0;
}

.detail-facts .addr-row {
  margin: 0;
  width: 100%;
}

.detail-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.meta-list span {
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.detail-actions {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, 430px);
  bottom: calc(var(--tab-h) + var(--safe-b));
  padding: 10px 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  z-index: 15;
}

.detail-actions .btn-primary {
  flex: 1;
  justify-content: center;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.detail-actions .btn-chat {
  flex: 0 0 auto;
  min-width: 88px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.detail-actions .btn-chat:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-soft {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.enroll-tabs {
  display: flex;
  gap: 8px;
  padding: 4px 14px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.enroll-tabs button {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
}

.enroll-tabs button.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  font-weight: 700;
}

.enroll-list {
  padding: 0 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.enroll-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.enroll-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.enroll-card .enroll-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.45;
}

.enroll-card .enroll-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 8px;
}

.enroll-card .enroll-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.enroll-card .enroll-actions button {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
}

.enroll-card .enroll-actions .primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.enroll-empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 40px 16px;
}

/* —— Shop / msg / me —— */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px 24px;
}

.product {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.product img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
}

.product .info {
  padding: 10px;
}

.product .info h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
}

.product .price {
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
}

.msg-list {
  padding: 0 14px;
}

.msg-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.msg-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  color: var(--brand);
  flex-shrink: 0;
}

.msg-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.msg-item p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.msg-item .msg-body {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  margin-left: auto;
  align-self: center;
}

/* —— 我的 · 探索护照 —— */
.passport-page {
  min-height: calc(100dvh - var(--tab-h));
  background:
    radial-gradient(800px 280px at 50% -40px, rgba(120, 190, 230, 0.28), transparent 60%),
    linear-gradient(180deg, #f3f8fc 0%, #f7f8fa 42%, #eef6f8 100%);
  padding-bottom: 28px;
}

.passport-top {
  padding: 14px 16px 8px;
}

.passport-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.passport-name {
  display: inline-flex;
  align-items: baseline;
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  white-space: nowrap;
}

.passport-set {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--muted);
}

.passport-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.passport-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(40, 80, 120, 0.12);
  flex-shrink: 0;
}

.passport-avatar.is-icon {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ff9a45, #ff7a1a 55%, #e85d3a);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(255, 122, 26, 0.35);
}

.passport-avatar.is-icon i {
  font-size: 28px;
}

.passport-user h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
}

.passport-user p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.passport-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin: 4px 0 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(20, 28, 40, 0.08);
}

.passport-stats > div {
  min-width: 0;
  text-align: center;
}

.me-block {
  margin: 0 16px 14px;
}

.me-block-medals {
  margin-top: 4px;
}

.me-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.me-block-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.me-city-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.me-city-chip {
  flex: 0 0 auto;
  min-width: 108px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.me-city-chip strong {
  font-size: 15px;
  color: var(--ink);
}

.me-city-chip span {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
}

.me-city-chip em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}

.me-medal-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.me-medal {
  flex: 0 0 auto;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.me-medal-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(20, 28, 40, 0.06);
}

.me-medal.is-locked {
  opacity: 0.45;
}

.me-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.me-feed-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.me-feed-tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
}

.me-feed-item strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.me-feed-item p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.menu-count,
.menu-tag {
  margin-left: auto;
  margin-right: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
}

.menu-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(31, 169, 122, 0.12);
  color: var(--brand-2);
}

.passport-stats .num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.passport-stats .num small {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}

.passport-stats .label {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.me-guest-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px 16px;
  padding: 14px 14px 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(20, 28, 40, 0.05);
}

.me-guest-banner.is-hidden {
  display: none;
}

.me-guest-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.me-guest-copy strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.me-guest-copy span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.me-guest-cta {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a2b, var(--brand));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(255, 122, 26, 0.28);
}

.passport-page.is-guest .passport-stats {
  opacity: 0.45;
}

.passport-page.is-guest #me-user-name {
  font-size: 20px;
}

.auth-page {
  padding-bottom: 28px;
}

.auth-top {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px 4px;
}

.auth-brand {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  white-space: nowrap;
  min-width: 0;
}

.auth-map-card {
  margin-top: 8px;
}

.passport-map-card {
  margin: 0 16px 16px;
  border-radius: 18px;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #c8e7f5 0%, #a8d8ef 45%, #8ec8e6 100%);
  box-shadow: 0 12px 28px rgba(60, 120, 160, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.7;
}

.world-sil {
  position: absolute;
  width: 92%;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 4px 8px rgba(40, 100, 70, 0.15));
}

.map-cta {
  position: relative;
  z-index: 2;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(46, 160, 110, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(30, 100, 70, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.map-city-count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 40, 80, 0.25);
}

.passport-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 10px;
}

.btn-reg,
.btn-login {
  height: 46px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.btn-reg {
  background: #2ec27a;
  color: #fff;
}

.btn-login {
  background: #3b82f6;
  color: #fff;
}

.passport-hint {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin: 0 16px 14px;
}

.passport-apps {
  padding: 0 16px 14px;
}

.passport-apps-title {
  text-align: center;
  font-size: 12px;
  color: #9aa3ad;
  margin-bottom: 12px;
}

.passport-apps-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.passport-apps-row button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
}

.passport-apps-row button i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: #3b82f6;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(40, 80, 120, 0.06);
}

.passport-apps-row button.app-shop {
  color: var(--brand);
  font-weight: 600;
}

.passport-apps-row button.app-shop i {
  color: #fff;
  background: linear-gradient(145deg, #4d8dff, #2b6cff);
  border-color: transparent;
  box-shadow: 0 8px 16px rgba(43, 108, 255, 0.28);
}

.menu-list {
  margin: 0 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.passport-menu {
  margin-top: 4px;
}

.menu-list button,
.menu-list .menu-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

.menu-list button:last-child,
.menu-list .menu-link:last-child {
  border-bottom: none;
}

.menu-list i {
  width: 22px;
  color: var(--brand);
}

.menu-list .chev {
  margin-left: 0;
  color: var(--muted);
  font-size: 12px;
}

.menu-list button > i:first-child,
.menu-list .menu-link > i:first-child {
  flex-shrink: 0;
}

/* —— Tab bar（中间凸起发布） —— */
.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, 430px);
  bottom: 0;
  height: calc(var(--tab-h) + var(--safe-b));
  padding: 6px 4px calc(6px + var(--safe-b));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  z-index: 30;
  overflow: visible;
}

.tabbar.hidden {
  display: none;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
  min-height: 48px;
  padding-bottom: 2px;
  background: transparent;
}

.tab i {
  font-size: 18px;
}

.tab.active {
  color: var(--brand);
  font-weight: 700;
}

.tab-publish {
  position: relative;
  z-index: 2;
  color: var(--brand);
  justify-content: center;
  gap: 0;
}

.tab-publish-circle {
  width: 54px;
  height: 54px;
  margin-top: -18px;
  margin-bottom: 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(160deg, #ff9a3d 0%, var(--brand) 55%, #e86500 100%);
  box-shadow:
    0 0 0 5px #fff,
    0 10px 22px rgba(255, 122, 26, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease;
}

.tab-publish-circle i {
  font-size: 22px;
  font-weight: 700;
}

.tab-publish:active .tab-publish-circle {
  transform: scale(0.96);
}

/* —— 发布半屏面板 —— */
.publish-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.publish-sheet.open {
  pointer-events: auto;
  opacity: 1;
}

.publish-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 32, 0.45);
  border: 0;
  cursor: pointer;
}

.publish-panel {
  position: relative;
  width: min(100vw, 430px);
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 10px 16px calc(16px + var(--safe-b));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.14);
  transform: translateY(24px);
  transition: transform 0.24s ease;
}

.publish-sheet.open .publish-panel {
  transform: translateY(0);
}

.publish-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #d8dee6;
  margin: 2px auto 14px;
}

.publish-panel h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.publish-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.publish-actions button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  background: #f5f7fa;
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}

.publish-actions button i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #4d8dff, #2b6cff);
  font-size: 16px;
  flex-shrink: 0;
}

.publish-actions button:nth-child(2) i {
  background: linear-gradient(145deg, #46c79a, #1f9f72);
}

.publish-actions button:nth-child(3) i {
  background: linear-gradient(145deg, #ff8f6b, #ef5d3a);
}

.publish-actions strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.publish-actions small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.publish-cancel {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

/* —— Player —— */
#player-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #000;
  display: none;
  flex-direction: column;
}

#player-layer.open {
  display: flex;
}

#player-layer video {
  flex: 1;
  width: 100%;
  object-fit: contain;
  background: #000;
}

.player-ui {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(rgba(0, 0, 0, 0.55), transparent);
  color: #fff;
}

.player-ui .icon-btn {
  color: #fff;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + 24px);
  transform: translateX(-50%) translateY(20px);
  background: rgba(30, 36, 44, 0.92);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 90;
  max-width: 80%;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
