/* ============================================================
   朝圣 · Pilgrimage — 样式
   主题：日照金山 · 暖金 · 藏地
   ============================================================ */

:root {
  --bg-deep: #180e08;
  --bg-ink: #201208;
  --bg-alt: #28160a;
  --panel: rgba(46, 28, 14, 0.62);
  --panel-solid: #201309;
  --border: rgba(224, 165, 58, 0.2);

  --gold: #e0a53a;
  --gold-soft: #f2c469;
  --gold-deep: #a86f24;
  --sunset: #d97a2e;
  --snow: #fdf6ec;
  --muted: #cbb9a2;
  --muted-dim: #93806a;

  --flag-blue: #3f7ecb;
  --flag-red: #c94b4b;
  --flag-green: #3f9b6e;
  --flag-yellow: #e0b13f;

  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --calligraphy: "Ma Shan Zheng", "Noto Serif SC", "STKaiti", "KaiTi", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Segoe UI", Roboto, sans-serif;

  --radius: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

/* 全局兜底：确保带 hidden 属性的元素一定隐藏。
   否则 display:flex/grid 等作者样式会覆盖 UA 的 [hidden]{display:none}，
   导致「正在合成」「登录区」「社交证明」等 hidden 切换失效（表现为一直显示）。 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--snow);
  background: var(--bg-deep);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #1a1204; }

a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.nav.scrolled {
  background: rgba(24, 14, 8, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  padding: 8px 0;
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 1px;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  color: #1a1204;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  border-radius: 50%;
  font-size: 17px;
  box-shadow: 0 0 18px rgba(224, 165, 58, 0.5);
}
.brand-text { font-size: 17px; }

.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-size: 14.5px;
  color: var(--muted);
  position: relative;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--snow); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.25s;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  color: var(--gold-soft) !important;
  border: 1px solid rgba(224, 165, 58, 0.5);
  padding: 6px 16px;
  border-radius: 999px;
  transition: background 0.25s !important;
}
.nav-cta:hover { background: rgba(224, 165, 58, 0.12); }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--snow);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 32%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(24, 14, 8, 0.42) 0%, rgba(24, 14, 8, 0.18) 45%, transparent 72%),
    linear-gradient(to bottom, rgba(24, 14, 8, 0.5) 0%, rgba(24, 14, 8, 0.18) 40%, rgba(24, 14, 8, 0.55) 92%, var(--bg-deep) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 820px;
  animation: fadeUp 1.2s ease both;
}
.hero-kicker {
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--gold-soft);
  text-transform: uppercase;
  margin: 0 0 12px;
}
.hero-title {
  font-family: var(--calligraphy);
  font-size: clamp(64px, 15vw, 150px);
  font-weight: 400;
  margin: 0;
  line-height: 1;
  color: var(--snow);
  text-shadow: 0 0 60px rgba(224, 165, 58, 0.4);
  letter-spacing: 8px;
}
.hero-title-gap { display: inline-block; width: 0.35em; }
.hero-subtitle {
  font-family: var(--serif);
  font-size: clamp(17px, 3vw, 24px);
  letter-spacing: 3px;
  color: var(--gold-soft);
  margin: 16px 0 18px;
}
.hero-desc {
  max-width: 560px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 15.5px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* 社交证明 */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 38px;
  animation: fadeUp 0.9s ease both;
}
.sp-item { text-align: center; }
.sp-num {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold-soft);
  line-height: 1;
  text-shadow: 0 0 18px rgba(224, 165, 58, 0.35);
}
.sp-label { display: block; margin-top: 6px; font-size: 12.5px; letter-spacing: 2px; color: var(--muted); }
.sp-divider { width: 1px; height: 30px; background: rgba(224, 165, 58, 0.3); }

.scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 2px;
}
.scroll-hint i {
  display: block;
  width: 1px; height: 34px;
  margin: 8px auto 0;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.3s, background 0.3s;
}
.btn-primary {
  color: #1a1204;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 10px 30px rgba(224, 165, 58, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(224, 165, 58, 0.5);
}
.btn-ghost {
  color: var(--snow);
  background: transparent;
  border: 1px solid rgba(253, 246, 236, 0.35);
}
.btn-ghost:hover { background: rgba(253, 246, 236, 0.08); transform: translateY(-2px); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- 区块 ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--snow);
}
.section-lead { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------- 介绍 ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.intro-text p { color: var(--muted); font-size: 16.5px; margin: 0 0 18px; }
.intro-text strong { color: var(--gold-soft); font-weight: 600; }

.intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(224, 165, 58, 0.5); }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--gold-soft);
  line-height: 1;
}
.stat-unit { font-size: 15px; color: var(--muted); margin-left: 3px; }
.stat-label { display: block; margin-top: 10px; color: var(--muted); font-size: 13.5px; }

.intro-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.feature {
  padding: 30px 26px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature h3 { margin: 0 0 12px; font-size: 18px; color: var(--snow); }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- 为何朝圣 ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.why-card {
  padding: 34px 26px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s, border-color 0.3s;
}
.why-card:hover { transform: translateY(-6px); border-color: rgba(224, 165, 58, 0.5); }
.why-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.why-icon { font-size: 28px; line-height: 1; }
.why-card h3 { margin: 0; font-size: 19px; color: var(--gold-soft); }
.why-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.quote {
  margin: 64px auto 0;
  max-width: 640px;
  text-align: center;
}
.quote p {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--snow);
  margin: 0 0 12px;
  line-height: 1.6;
}
.quote cite { color: var(--muted-dim); font-style: normal; font-size: 14px; }

/* ---------- 转山线路 ---------- */
.route-chart {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px 8px;
  margin-bottom: 48px;
}
.route-chart svg { width: 100%; height: auto; display: block; }
.grid-lines line {
  stroke: rgba(203, 185, 162, 0.14);
  stroke-dasharray: 4 5;
}
.elev-labels text, .elev-point-labels text {
  fill: var(--muted);
  font-size: 11px;
  font-family: var(--sans);
}
.elev-point-labels text { text-anchor: middle; }
.elev-point-labels .peak-label { fill: var(--gold-soft); font-weight: 700; }
.elev-fill { fill: url(#elevFill); }
.elev-line { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linejoin: round; }
.elev-points circle { fill: var(--bg-ink); stroke: var(--gold); stroke-width: 2; }
.elev-points circle.peak { fill: var(--gold); stroke: #fff7e0; stroke-width: 2.5; }

.route-timeline { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 30px; }
.route-timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--border), var(--gold), var(--border));
}
.route-step { position: relative; padding: 0 0 36px 24px; }
.route-step:last-child { padding-bottom: 0; }
.route-dot {
  position: absolute;
  left: -26px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-ink);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(224, 165, 58, 0.15);
}
.route-dot.dot-gold { background: var(--gold); box-shadow: 0 0 14px rgba(224, 165, 58, 0.7); }
.route-info h3 { margin: 0 0 8px; font-size: 18px; color: var(--snow); }
.route-info p { margin: 0; color: var(--muted); font-size: 15px; }
.route-info strong { color: var(--gold-soft); }

.route-tips {
  margin-top: 44px;
  padding: 18px 22px;
  background: rgba(224, 165, 58, 0.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14.5px;
}
.route-tips strong { color: var(--gold-soft); }

/* ---------- 祈福 ---------- */
.blessing-card {
  position: relative;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 46px 44px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.blessing-lamps {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  display: flex;
  gap: 4px;
  padding: 0 20px;
}
.blessing-lamps span {
  flex: 1;
  height: 100%;
  border-radius: 0 0 4px 4px;
  opacity: 0.85;
}
.blessing-form { position: relative; }
.field { display: block; margin-bottom: 22px; }
.field span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 1px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(24, 14, 8, 0.6);
  border: 1px solid rgba(203, 185, 162, 0.25);
  border-radius: 10px;
  color: var(--snow);
  font-size: 15.5px;
  font-family: var(--sans);
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field select option, .field select optgroup {
  background: #1d1108;
  color: var(--snow);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(224, 165, 58, 0.18);
}

.blessing-result { text-align: center; animation: fadeUp 0.6s ease both; }
.blessing-result h3 { font-family: var(--serif); font-size: 26px; margin: 16px 0 10px; color: var(--gold-soft); }

/* 酥油灯排 */
.lamps {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 6px 0 10px;
}
.lamp {
  position: relative;
  width: 46px;
  height: 58px;
}
.lamp .bowl {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 38px; height: 22px;
  background: linear-gradient(180deg, #e8c96a, #a86f24);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.3);
}
.lamp .bowl::before {
  content: "";
  position: absolute;
  top: -5px; left: -3px; right: -3px;
  height: 7px;
  background: linear-gradient(180deg, #f7d98c, #e0a53a);
  border-radius: 50%;
}
.lamp .flame {
  position: absolute;
  bottom: 21px; left: 50%;
  width: 13px; height: 21px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 78%, #fff6d6 0%, #ffcf5e 45%, #ff8c2e 100%);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  transform-origin: 50% 100%;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(255, 170, 60, 0.95));
  transition: opacity 0.4s ease;
}
.lamp .flame::after {
  content: "";
  position: absolute;
  bottom: 1px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 9px;
  background: #fff9e8;
  border-radius: 50%;
}
.lamp.lit .flame {
  opacity: 1;
  animation: flicker 1.5s ease-in-out infinite;
}
.lamp.lit .bowl::after {
  content: "";
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 46px;
  background: radial-gradient(circle, rgba(255, 180, 80, 0.5) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes flicker {
  0%, 100% { transform: translateX(-50%) rotate(-2deg) scaleY(1); }
  25% { transform: translateX(-48%) rotate(1deg) scaleY(1.1); }
  50% { transform: translateX(-52%) rotate(2deg) scaleY(0.92); }
  75% { transform: translateX(-50%) rotate(-1deg) scaleY(1.06); }
}
@keyframes glowPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.65; }
  50% { transform: translateX(-50%) scale(1.45); opacity: 1; }
}
.result-name { font-size: 18px; color: var(--snow); margin: 0 0 6px; }
.result-wish {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 20px;
  padding: 16px;
  background: rgba(224, 165, 58, 0.06);
  border-radius: 12px;
  border: 1px dashed var(--border);
}
.result-note { color: var(--muted-dim); font-size: 14px; margin-bottom: 24px; }
.result-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 纪念品 ---------- */
.souvenir-box {
  text-align: center;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 52px 44px;
  box-shadow: var(--shadow);
}
.souvenir-art {
  font-size: 72px;
  animation: giftBob 3s ease-in-out infinite;
  filter: drop-shadow(0 0 22px rgba(224, 165, 58, 0.5));
}
.souvenir-box h3 { font-family: var(--serif); font-size: 26px; margin: 18px 0 12px; }
.souvenir-desc { color: var(--muted); max-width: 480px; margin: 0 auto 26px; font-size: 15.5px; }
.price { color: var(--gold-soft); font-family: var(--serif); font-size: 1.15em; }
.souvenir-points { list-style: none; padding: 0; margin: 0 auto 32px; max-width: 400px; text-align: left; }
.souvenir-points li { padding: 8px 0; color: var(--muted); font-size: 15px; border-bottom: 1px solid rgba(203, 185, 162, 0.1); }
.souvenir-social { margin: -6px 0 26px; color: var(--muted); font-size: 14px; }
.souvenir-social strong { color: var(--gold-soft); font-family: var(--serif); font-size: 1.2em; }
.souvenir-note { margin-top: 18px; color: var(--muted-dim); font-size: 12.5px; }

/* ---------- 页脚 ---------- */
.footer {
  padding: 64px 0 48px;
  text-align: center;
  background: var(--bg-deep);
  border-top: 1px solid rgba(203, 185, 162, 0.08);
}
.footer-title { font-family: var(--serif); font-size: 20px; margin: 0 0 10px; color: var(--snow); }
.footer-line { color: var(--gold-soft); font-size: 14px; letter-spacing: 3px; margin: 0 0 14px; }
.footer-note { color: var(--muted-dim); font-size: 12.5px; margin: 0; }
.footer-admin {
  display: inline-block; margin-top: 14px;
  color: rgba(203, 185, 162, 0.4); font-size: 11.5px; letter-spacing: 2px;
  text-decoration: none; padding: 4px 12px;
  border: 1px solid rgba(203, 185, 162, 0.15); border-radius: 999px;
  transition: color 0.25s, border-color 0.25s;
}
.footer-admin:hover { color: var(--gold-soft); border-color: rgba(224, 165, 58, 0.5); }

/* ---------- 弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-mask {
  position: absolute; inset: 0;
  background: rgba(10, 6, 3, 0.78);
  backdrop-filter: blur(6px);
}
.modal-dialog {
  position: relative;
  z-index: 1;
  width: 92%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 38px 32px;
  text-align: center;
  animation: popIn 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
  box-shadow: var(--shadow);
}
.modal-dialog-lg { max-width: 460px; }
.modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none; border: none;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: var(--snow); }
.modal-dialog h3 { font-family: var(--serif); margin: 0 0 6px; font-size: 22px; }
.modal-sub { color: var(--muted); margin: 0 0 22px; font-size: 15px; }

.order-form .field { text-align: left; }

.qr-box {
  width: 180px; height: 180px;
  margin: 0 auto 14px;
  background: #fff;
  border-radius: 14px;
  display: grid;
  place-items: center;
  padding: 10px;
}
.qr-placeholder {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  color: #999;
  font-size: 13px;
  line-height: 1.8;
  background: #fff;
  border-radius: 6px;
  border: 2px dashed #ddd;
}
.modal-tip { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.modal-status {
  margin: 0 auto 16px;
  padding: 10px 14px;
  max-width: 320px;
  background: rgba(224, 165, 58, 0.12);
  border: 1px solid rgba(224, 165, 58, 0.35);
  border-radius: 10px;
  color: var(--gold-soft);
  font-size: 13.5px;
  text-align: center;
}
.modal-note { margin-top: 16px; color: var(--muted-dim); font-size: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1a1204;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 12px 34px rgba(224, 165, 58, 0.5);
  animation: popIn 0.4s ease both;
}

/* ---------- 分享图加载中 ---------- */
.share-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(13, 13, 13, 0.88);
  border-radius: 8px;
  color: var(--gold-soft);
  font-size: 14px;
  z-index: 2;
  backdrop-filter: blur(8px);
}
.share-loading p { margin: 0; letter-spacing: 1px; }
.share-loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(224, 165, 58, 0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: shareSpin 0.9s linear infinite;
}
@keyframes shareSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed;
  right: 28px; bottom: 30px;
  z-index: 150;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(224, 165, 58, 0.45);
  background: rgba(24, 14, 8, 0.85);
  color: var(--gold-soft);
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s, background 0.25s, opacity 0.3s;
}
.back-top:hover {
  transform: translateY(-3px);
  background: rgba(224, 165, 58, 0.16);
}
.back-top[hidden] { display: none; }

/* ---------- 动画 ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}
@keyframes giftBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

/* 滚动进入动画 */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 祈福墙 ---------- */
.wall {
  overflow: hidden;
  padding: 8px 0 48px;
}
.wall-row {
  display: flex;
  gap: 18px;
  width: max-content;
  margin-bottom: 20px;
  padding: 4px 0;
  animation: wallScroll 55s linear infinite;
}
.wall-row:nth-child(2) { animation-direction: reverse; animation-duration: 70s; }
.wall-row:nth-child(3) { animation-duration: 62s; }
.wall:hover .wall-row { animation-play-state: paused; }
.wall-item {
  position: relative;
  flex-shrink: 0;
  width: 150px;
  height: 212px;
  padding: 22px 14px 20px;
  border-radius: 10px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  color: #fff;
  overflow: hidden;
  transition: transform 0.3s;
}
.wall-item:hover { transform: translateY(-6px); }
.wall-item::after {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 15px solid rgba(0, 0, 0, 0.22);
}
.wall-item .w-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.wall-item .w-wish {
  font-size: 13px;
  margin-top: 8px;
  opacity: 0.96;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  word-break: break-all;
}
.w-c0 { background: linear-gradient(180deg, #4a8fd4, #2f6cb0); }
.w-c1 { background: linear-gradient(180deg, #f4f7fb, #d7e0ec); color: #3a3a3a; }
.w-c1 .w-name, .w-c1 .w-wish { text-shadow: none; }
.w-c2 { background: linear-gradient(180deg, #d96a6a, #b03c3c); }
.w-c3 { background: linear-gradient(180deg, #52a878, #2f7a52); }
.w-c4 { background: linear-gradient(180deg, #e7b851, #c98f22); }
.wall-empty {
  text-align: center;
  color: var(--muted-dim);
  padding: 40px 0;
  font-size: 15px;
}

@keyframes wallScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 尊重用户的减弱动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-features { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-bg { object-position: center 42%; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(280px, 78vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 40px 32px;
    background: rgba(24, 14, 8, 0.97);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 18px; }
  .nav-toggle { display: flex; z-index: 110; }
  .why-grid { grid-template-columns: 1fr; }
  .blessing-card, .souvenir-box { padding: 34px 22px; }
  .hero-title { letter-spacing: 4px; }
  .hero-bg { object-position: center 40%; }
  .nav-auth { margin-left: auto; }
  .nav-nick { display: none; }
}

/* ============================================================
   新增：登录 / 弹幕 / 组队 / 助力 / 榜单
   ============================================================ */

/* ---------- 导航登录区 ---------- */
.nav-inner { justify-content: flex-start; }
.nav-links { margin-left: auto; }
.nav-inner-centered .nav-links { margin-left: auto; margin-right: auto; }
.nav-auth { margin-left: 26px; display: flex; align-items: center; gap: 10px; }
.nav-login {
  border: 1px solid rgba(45, 190, 90, 0.55);
  background: rgba(45, 190, 90, 0.14);
  color: #7fe0a0;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.25s;
}
.nav-login:hover { background: rgba(45, 190, 90, 0.26); }
.nav-user { display: flex; align-items: center; gap: 8px; }
.nav-avatar {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  font-size: 15px;
}
.nav-nick { color: var(--snow); font-size: 14px; font-weight: 600; }
.nav-logout {
  background: none; border: none;
  color: var(--muted-dim);
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
}
.nav-logout:hover { color: var(--snow); }

/* ---------- 组队按钮 ---------- */
.btn-team {
  color: #fff;
  background: linear-gradient(135deg, #e0553c, #c94b4b);
  box-shadow: 0 10px 30px rgba(201, 75, 75, 0.35);
}
.btn-team:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(201, 75, 75, 0.5);
}

/* ---------- 心愿弹幕（Hero 内飘屏） ---------- */
.danmaku-section { background: linear-gradient(180deg, var(--bg-deep), #1d1108); }
.danmaku-stage {
  position: relative;
  height: 344px;
  overflow: hidden;
  margin: 0 auto;
  max-width: 100%;
}
/* 首页 Hero 内的弹幕（"朝圣"标题下方） */
.hero-danmaku { height: 328px; margin: 30px auto 4px; }
.hero-danmaku-hint { padding: 0; margin: 0 auto 32px; font-size: 12.5px; }
.danmaku-item {
  position: absolute;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(46, 28, 14, 0.8);
  border: 1px solid var(--border);
  color: var(--snow);
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  animation: danmakuMove linear infinite;
  will-change: transform;
  /* 移动端 300ms tap 延迟修复 */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.danmaku-item:hover {
  background: rgba(224, 165, 58, 0.2);
  border-color: var(--gold);
  animation-play-state: paused;
}
.danmaku-item.hot { border-color: var(--gold); background: rgba(224, 165, 58, 0.16); }
.danmaku-item .d-name { font-weight: 600; color: var(--gold-soft); }
.danmaku-item .d-wish { color: var(--snow); max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.danmaku-item .d-boost { color: #ff9c9c; font-weight: 600; }
.danmaku-empty { text-align: center; color: var(--muted-dim); padding: 120px 0; font-size: 15px; }
.danmaku-hint { text-align: center; color: var(--muted-dim); font-size: 13px; margin: 0; padding: 0 20px 40px; }
@keyframes danmakuMove {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ---------- 祈福登录门槛 ---------- */
.blessing-gate { text-align: center; padding: 20px 0; }
.gate-icon { font-size: 56px; margin-bottom: 12px; animation: giftBob 3s ease-in-out infinite; }
.blessing-gate h3 { font-family: var(--serif); font-size: 24px; color: var(--gold-soft); margin: 0 0 8px; }
.blessing-gate p { color: var(--muted); font-size: 15px; margin: 0 auto 22px; max-width: 400px; }
.blessing-gate .btn { max-width: 320px; margin: 0 auto; }

/* ---------- 朝圣组队 ---------- */
.team-toolbar { display: flex; justify-content: center; margin-bottom: 40px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.team-card:hover { transform: translateY(-6px); border-color: rgba(224, 165, 58, 0.5); }
.team-poster { width: 100%; aspect-ratio: 16 / 7; }
.team-poster svg { width: 100%; height: 100%; display: block; }
/* 简洁摘要行：默认只展示方式 + 搭子数 + 展开按钮 */
.team-brief {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
}
.team-brief .tag-mode { flex-shrink: 0; }
.tb-info { color: var(--muted); font-size: 14px; }
.tb-info strong { color: var(--gold-soft); }
.tb-toggle {
  margin-left: auto;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 1px;
  flex-shrink: 0;
  transition: color 0.2s;
}
.team-card:hover .tb-toggle { color: var(--gold-soft); }
/* 详情区：默认收起，点击卡片展开 */
.team-body {
  display: none;
  padding: 18px 22px 22px;
  border-top: 1px dashed var(--border);
  animation: teamExpand 0.3s ease;
}
.team-card.expanded .team-body { display: block; }
.team-card { cursor: pointer; }
@keyframes teamExpand {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.team-wechat {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}
.team-wechat strong {
  color: var(--gold-soft);
  font-size: 14.5px;
  letter-spacing: 0.5px;
  word-break: break-all;
}
.team-route { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.tr-city { color: var(--snow); }
.tr-arrow { color: var(--gold); }
.tr-kailash { color: var(--gold-soft); }
.team-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tag { font-size: 12.5px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.tag-mode { color: var(--gold-soft); border-color: rgba(224, 165, 58, 0.4); }
.team-people { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.team-people strong { color: var(--gold-soft); }
.team-desc { color: var(--muted-dim); font-size: 13px; margin-bottom: 10px; line-height: 1.6; }
.team-owner { color: var(--muted-dim); font-size: 12px; }
.team-empty { grid-column: 1 / -1; text-align: center; color: var(--muted-dim); padding: 60px 0; font-size: 15px; }
/* 组队分页 */
.team-pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 30px; }
.pager-btn {
  padding: 10px 22px;
  background: transparent;
  border: 1px solid rgba(224, 165, 58, 0.45);
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: 14px;
  font-family: var(--sans);
  letter-spacing: 1px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.pager-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); background: rgba(224, 165, 58, 0.08); }
.pager-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.pager-info { color: var(--muted); font-size: 14px; letter-spacing: 1px; }

/* 组队弹窗 */
.team-form .field { text-align: left; }
.mode-select { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mode-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 8px;
  background: rgba(24, 14, 8, 0.6);
  border: 1px solid rgba(203, 185, 162, 0.25);
  border-radius: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: 0.2s;
  font-size: 14px;
}
.mode-card .mode-emoji { font-size: 26px; }
.mode-card:hover { border-color: var(--gold); }
.mode-card.active { border-color: var(--gold); background: rgba(224, 165, 58, 0.14); color: var(--gold-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- 月度祈福榜 ---------- */
.gold { color: var(--gold-soft); }
.rank-board {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.rank-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-bottom: 1px solid rgba(203, 185, 162, 0.08); }
.rank-row:last-child { border-bottom: none; }
.rank-medal { font-size: 24px; }
.rank-num {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(224, 165, 58, 0.14);
  color: var(--gold-soft);
  font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.rank-main { flex: 1; min-width: 0; }
.rank-name { color: var(--snow); font-weight: 600; font-size: 15px; }
.rank-wish { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-boost { color: #ff9c9c; font-weight: 700; font-size: 15px; white-space: nowrap; }
.rank-empty { text-align: center; color: var(--muted-dim); padding: 40px 0; font-size: 14px; }

/* ---------- 登录弹窗 ---------- */
.login-logo { font-size: 52px; margin-bottom: 8px; }
.btn-wechat {
  color: #fff;
  background: linear-gradient(135deg, #2bbf5b, #1da851);
  box-shadow: 0 10px 30px rgba(29, 168, 81, 0.35);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-wechat:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(29, 168, 81, 0.5); }
.mock-login { margin-top: 18px; }
.mock-divider { display: flex; align-items: center; gap: 12px; color: var(--muted-dim); font-size: 12px; margin-bottom: 14px; }
.mock-divider::before, .mock-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.mock-login input {
  width: 100%; padding: 12px 14px;
  background: rgba(24, 14, 8, 0.6);
  border: 1px solid rgba(203, 185, 162, 0.25);
  border-radius: 10px;
  color: var(--snow); font-size: 15px;
  margin-bottom: 12px;
}
.mock-login input:focus { outline: none; border-color: var(--gold); }

/* ---------- 祈福详情弹窗 ---------- */
.detail-lamp { font-size: 52px; margin-bottom: 8px; }
/* 助力头像墙（祈福灯下方） */
.detail-boosters { text-align: center; margin: 0 0 14px; }
.db-title { font-size: 13px; color: var(--muted); margin: 0 0 10px; letter-spacing: 1px; }
.db-title strong { color: var(--gold-soft); font-size: 15px; }
.db-avatars { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.db-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(224, 165, 58, 0.65);
  background: #2a1a0e; color: #f2c469;
  font-family: var(--serif); font-size: 17px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: default;
  transition: transform 0.2s, border-color 0.2s;
}
.db-avatar:hover { transform: translateY(-3px) scale(1.06); border-color: #e0a53a; }
.db-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-name { font-family: var(--serif); font-size: 22px; color: var(--gold-soft); margin: 0 0 10px; }
.detail-wish {
  font-family: var(--serif); font-size: 17px; color: var(--muted);
  margin: 0 0 18px; padding: 16px;
  background: rgba(224, 165, 58, 0.06);
  border-radius: 12px; border: 1px dashed var(--border);
  line-height: 1.7;
}
.detail-meta { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.detail-meta-item { color: var(--muted); font-size: 14px; }
.detail-meta-item strong { color: var(--gold-soft); font-size: 16px; }
.detail-gift { color: var(--gold-soft); }

/* ---------- 响应式补充 ---------- */
@media (max-width: 960px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .danmaku-stage { height: 320px; }
}

/* 减弱动效偏好下，弹幕改为静态列表，避免消失 */
@media (prefers-reduced-motion: reduce) {
  .danmaku-stage { height: auto; overflow: visible; padding: 8px 20px 0; }
  .danmaku-item { position: static; display: inline-flex; margin: 6px; animation: none !important; transform: none !important; }
}
