/* ==========================================================
   行疆筑梦 · 成果展示平台
   ========================================================== */
:root {
  --navy: #1e3a5f;
  --navy-deep: #14283f;
  --red: #c8392b;
  --gold: #d9a441;
  --sand: #f6f1e7;
  --ink: #2c2a26;
  --muted: #7a746a;
  --card: #ffffff;
  --line: #e6ddcd;
  --radius: 16px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "STZhongsong", SimSun, serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============ 顶部导航 ============ */
#topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 28px;
  background: rgba(20, 40, 63, 0);
  transition: background .3s, box-shadow .3s;
}
#topnav.solid {
  background: rgba(20, 40, 63, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
}
.nav-brand { display: flex; align-items: center; gap: 8px; color: #fff; }
.nav-flag { font-size: 20px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.nav-title { font-family: var(--serif); font-size: 18px; letter-spacing: 2px; font-weight: 700; }
.nav-title i { font-style: normal; color: var(--gold); margin: 0 2px; }
.nav-links { display: flex; gap: 4px; overflow-x: auto; max-width: 62vw; }
.nav-links a {
  color: rgba(255,255,255,.82); font-size: 13.5px; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; transition: .25s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.14); }
.nav-links a.on { color: #14283f; background: #f6f1e7; font-weight: 600; }
@media (max-width: 860px) {
  .nav-title { display: none; }
  .nav-links { max-width: 86vw; }
}

/* ============ HERO ============ */
#hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; overflow: hidden; color: #fff; padding: 120px 24px 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../img/P1063008.jpg') center 38% / cover no-repeat;
  transform: scale(1.06);
  animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,32,52,.55) 0%, rgba(16,32,52,.18) 40%, rgba(16,32,52,.72) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 980px; }
.hero-kicker {
  font-size: 14px; letter-spacing: 4px; color: #ffe9bd;
  border: 1px solid rgba(255,233,189,.45); display: inline-block;
  padding: 6px 18px; border-radius: 999px; margin-bottom: 26px;
  background: rgba(20,40,63,.25); backdrop-filter: blur(3px);
}
.hero-title {
  font-family: var(--serif); font-size: clamp(56px, 9vw, 108px);
  letter-spacing: 18px; text-indent: 18px; font-weight: 900;
  text-shadow: 0 6px 40px rgba(0,0,0,.45);
}
.hero-sub {
  font-family: var(--serif); font-size: clamp(20px, 3vw, 30px);
  letter-spacing: 10px; margin-top: 10px; color: #f8e8c8;
}
.hero-sub b { color: var(--gold); }
.hero-line { margin-top: 26px; font-size: 15.5px; color: rgba(255,255,255,.88); }
.hero-stats {
  margin: 36px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0;
}
.hstat {
  min-width: 128px; padding: 10px 18px;
  border-left: 1px solid rgba(255,255,255,.22);
}
.hstat:first-child { border-left: none; }
.hstat b { display: block; font-size: 30px; font-family: var(--serif); color: #ffd98a; }
.hstat span { font-size: 12.5px; color: rgba(255,255,255,.75); letter-spacing: 2px; }
.hero-cta { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  font-size: 15px; letter-spacing: 2px; transition: .25s; border: none;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 26px rgba(200,57,43,.42); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(200,57,43,.5); }
.btn-ghost { border: 1px solid rgba(255,255,255,.6); color: #fff; background: rgba(255,255,255,.08); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.hero-scrollhint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.75); animation: bounce 1.8s infinite; font-size: 18px; z-index: 2;
}
@keyframes bounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ============ 通用 section ============ */
section { position: relative; }
.sec-head { text-align: center; padding: 84px 24px 30px; }
.sec-kicker { font-size: 12px; letter-spacing: 6px; color: var(--red); font-weight: 700; }
.sec-head h2 {
  font-family: var(--serif); font-size: clamp(30px, 4.4vw, 44px);
  color: var(--navy-deep); margin: 8px 0 14px; letter-spacing: 6px;
}
.sec-desc { color: var(--muted); font-size: 15px; max-width: 780px; margin: 0 auto; }

/* ==========================================================
   足迹 · 行走地图
   ========================================================== */
#journey {
  position: relative; height: max(78vh, 580px); margin: 30px 0 0;
  overflow: hidden; border-top: 3px solid var(--navy-deep); border-bottom: 3px solid var(--navy-deep);
  background: #bfe0f2; user-select: none;
}
.jy-sky { position: absolute; inset: 0; transition: none; }
.jy-sun {
  position: absolute; top: 56px; right: 12%; width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle, #fff7d6 0%, #ffdf8e 55%, rgba(255,223,142,0) 72%);
  filter: blur(1px); pointer-events: none;
}
.jy-cloud {
  position: absolute; width: 150px; height: 42px; border-radius: 999px;
  background: rgba(255,255,255,.85); filter: blur(2px); opacity: .8; pointer-events: none;
}
.jy-cloud::before, .jy-cloud::after {
  content: ''; position: absolute; background: inherit; border-radius: 50%;
}
.jy-cloud::before { width: 60px; height: 60px; top: -26px; left: 24px; }
.jy-cloud::after { width: 42px; height: 42px; top: -16px; right: 28px; }
.jy-cloud.c1 { top: 12%; animation: drift 90s linear infinite; }
.jy-cloud.c2 { top: 26%; transform: scale(.7); animation: drift 130s linear infinite reverse; opacity: .6; }
.jy-cloud.c3 { top: 7%; transform: scale(1.25); animation: drift 160s linear infinite; opacity: .5; }
@keyframes drift { from { left: -200px; } to { left: 110%; } }

.jy-layer { position: absolute; left: 0; bottom: 0; width: 100%; pointer-events: none; }
.jy-layer svg { display: block; }
.jy-far   { height: 72%; will-change: transform; }
.jy-mid   { height: 46%; will-change: transform; }
.jy-ground{ height: 26%; will-change: transform; }
.jy-stops { pointer-events: none; will-change: transform; }

/* ---- 小人 ---- */
.jy-hero {
  position: absolute; bottom: calc(23.4% - 13px); left: 0; width: 74px; height: 110px;
  margin-left: -37px; will-change: transform; z-index: 40; pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(40,30,10,.35));
}
.jy-hero .walker { width: 100%; height: 100%; }
.jy-hero .bob { animation: bob .42s ease-in-out infinite alternate; }
.jy-hero.idle .bob { animation: breathe 2.6s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-4px); } }
@keyframes breathe { from { transform: translateY(0); } to { transform: translateY(-2px); } }
.leg-a, .leg-b, .arm-a, .arm-b { transform-box: fill-box; }
.jy-hero.walk .leg-a { animation: legA .34s linear infinite alternate; }
.jy-hero.walk .leg-b { animation: legB .34s linear infinite alternate; }
.jy-hero.walk .arm-a { animation: legB .34s linear infinite alternate; }
.jy-hero.walk .arm-b { animation: legA .34s linear infinite alternate; }
@keyframes legA { from { transform: rotate(24deg); } to { transform: rotate(-24deg); } }
@keyframes legB { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }

/* ---- 路牌 / 站点 ---- */
.jy-stop {
  position: absolute; bottom: calc(23.4% - 6px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  pointer-events: auto; cursor: pointer; z-index: 30;
}
.jy-stop .pin {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; background: #fff;
  border: 3px solid var(--navy);
  box-shadow: 0 4px 14px rgba(20,40,63,.3);
  transition: transform .25s, box-shadow .25s;
}
.jy-stop .pole {
  width: 4px; height: 66px; background: linear-gradient(#5d4a33, #3e3223); border-radius: 2px;
}
.jy-stop .flaglet {
  position: absolute; top: -12px; left: 24px;
  font-size: 10px; font-weight: 700; color: #fff; background: var(--red);
  border-radius: 4px; padding: 1px 6px; letter-spacing: 1px; white-space: nowrap;
}
.jy-stop .sname {
  margin-top: 6px; font-size: 12px; color: #14283f; background: rgba(255,255,255,.88);
  padding: 2px 10px; border-radius: 999px; white-space: nowrap; font-weight: 600;
  box-shadow: 0 2px 8px rgba(20,40,63,.18);
}
.jy-stop:hover .pin { transform: scale(1.18) rotate(-6deg); box-shadow: 0 8px 22px rgba(20,40,63,.4); }
.jy-stop.reached .pin { background: #2e7d4f; border-color: #1d5b37; }
.jy-stop.reached .pin::after {
  content: '✓'; position: absolute; font-size: 14px; color: #fff; font-weight: 900;
  transform: translate(14px, -16px);
  background: var(--gold); width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.jy-stop.here .pin { animation: pinPulse 1.2s ease-in-out infinite; }
@keyframes pinPulse {
  0%,100% { box-shadow: 0 4px 14px rgba(20,40,63,.3), 0 0 0 0 rgba(200,57,43,.5); }
  50% { box-shadow: 0 4px 14px rgba(20,40,63,.3), 0 0 0 14px rgba(200,57,43,0); }
}

/* ---- HUD ---- */
.jy-hud {
  position: absolute; top: 68px; left: 18px; right: 18px; z-index: 50;
  display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none;
}
.hud-progress {
  background: rgba(20,40,63,.82); color: #fff; border-radius: 14px;
  padding: 10px 16px; width: min(420px, 62vw); backdrop-filter: blur(6px);
}
.hud-row1 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; }
.hud-km { font-family: var(--serif); font-size: 20px; color: #ffd98a; font-weight: 700; }
.hud-dest { color: rgba(255,255,255,.75); }
.hud-stamp { color: #ffd98a; font-weight: 600; white-space: nowrap; }
.hud-bar { height: 6px; background: rgba(255,255,255,.18); border-radius: 999px; margin-top: 7px; overflow: hidden; }
.hud-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #d9a441, #c8392b); border-radius: 999px; transition: width .2s; }

/* ---- 控制按钮 ---- */
.jy-controls {
  position: absolute; right: 18px; bottom: 18px; z-index: 50;
  display: flex; gap: 8px;
}
.jy-controls button {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7);
  background: rgba(20,40,63,.85); color: #fff; font-size: 19px;
  transition: .2s; backdrop-filter: blur(4px);
}
.jy-controls button:hover { background: var(--red); transform: translateY(-2px); }
.jy-controls button:active { transform: scale(.94); }
#ctlAuto { width: auto; border-radius: 999px; padding: 0 18px; font-size: 14px; letter-spacing: 1px; }

/* ---- 提示条 ---- */
.jy-tip {
  position: absolute; top: 68px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.92); color: #14283f; font-size: 13.5px;
  padding: 8px 40px 8px 18px; border-radius: 999px; z-index: 45;
  box-shadow: 0 4px 18px rgba(20,40,63,.25); transition: opacity .4s;
}
.jy-tip b { color: var(--red); }
.jy-tip.gone { opacity: 0; pointer-events: none; }
.tip-x { position: absolute; right: 12px; cursor: pointer; color: #999; }

/* ---- 站点卡片 ---- */
.jy-card {
  position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 30px);
  width: min(680px, calc(100vw - 32px));
  background: rgba(255,255,255,.96); border-radius: 18px; z-index: 55;
  box-shadow: 0 18px 50px rgba(20,40,63,.35);
  opacity: 0; pointer-events: none; transition: .35s cubic-bezier(.2,.8,.25,1);
  border-top: 4px solid var(--red);
}
.jy-card.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.jyc-close {
  position: absolute; right: 10px; top: 10px; border: none; background: none;
  font-size: 16px; color: #998; z-index: 2;
}
.jyc-body { padding: 18px 22px 16px; }
.jyc-top { display: flex; align-items: center; gap: 12px; }
.jyc-emoji {
  width: 52px; height: 52px; border-radius: 14px; background: #fdf3de;
  display: flex; align-items: center; justify-content: center; font-size: 27px;
  border: 1px solid #f0e2c4;
}
.jyc-name { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--navy-deep); }
.jyc-date { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.jyc-km { margin-left: auto; text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; }
.jyc-km b { display: block; font-size: 18px; color: var(--red); font-family: var(--serif); }
.jyc-short { margin: 10px 0 8px; font-size: 14px; color: #4a453d; }
.jyc-thumbs { display: flex; gap: 8px; overflow: hidden; }
.jyc-thumbs img {
  width: 118px; height: 80px; object-fit: cover; border-radius: 10px; cursor: pointer;
  transition: .25s; border: 1px solid var(--line);
}
.jyc-thumbs img:hover { transform: scale(1.05); }
.jyc-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.jyc-btn {
  border: none; border-radius: 999px; padding: 8px 18px; font-size: 13.5px; letter-spacing: 1px;
  background: var(--navy); color: #fff; transition: .2s;
}
.jyc-btn:hover { background: var(--red); }
.jyc-btn.alt { background: #efe8da; color: #5c554a; }
.jyc-btn.alt:hover { background: var(--gold); color: #fff; }

/* ==========================================================
   人物 · 口述史
   ========================================================== */
#people { background: linear-gradient(180deg, var(--sand) 0%, #f1e8d8 100%); padding-bottom: 90px; }
.iv-filter { margin-top: 18px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.iv-filter button {
  border: 1px solid var(--line); background: #fff; color: #6b6459;
  border-radius: 999px; padding: 6px 16px; font-size: 13px; transition: .2s;
}
.iv-filter button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.iv-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px; padding: 30px clamp(20px, 5vw, 70px) 10px;
}
.iv-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 6px 24px rgba(44,42,38,.08); display: flex; flex-direction: column;
  transition: .3s; border: 1px solid var(--line); position: relative;
}
.iv-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(44,42,38,.16); }
.iv-photo { position: relative; height: 190px; overflow: hidden; background: linear-gradient(135deg, #274b77, #14283f); }
.iv-photo img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.iv-card:hover .iv-photo img { transform: scale(1.06); }
.iv-tag {
  position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff;
  font-size: 12px; padding: 3px 12px; border-radius: 999px; letter-spacing: 2px;
}
.iv-dur {
  position: absolute; bottom: 10px; right: 12px; background: rgba(20,40,63,.75); color: #fff;
  font-size: 11.5px; padding: 2px 10px; border-radius: 999px;
}
.iv-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.iv-name { font-family: var(--serif); font-size: 17.5px; font-weight: 700; color: var(--navy-deep); line-height: 1.5; }
.iv-who { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.iv-quote {
  margin-top: 12px; font-size: 13.5px; color: #4a453d; line-height: 1.8;
  border-left: 3px solid var(--gold); padding-left: 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.iv-audio { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.iv-audio audio { width: 100%; height: 36px; }
.iv-nosound {
  font-size: 12px; color: #8a7f6d; background: #f4edde; border: 1px dashed #d8cba9;
  padding: 6px 12px; border-radius: 8px; width: 100%; text-align: center;
}
.iv-more {
  margin-top: 12px; border: none; align-self: flex-start;
  background: none; color: var(--red); font-size: 13.5px; font-weight: 600; letter-spacing: 1px;
}
.iv-more:hover { text-decoration: underline; }

/* 访谈全文阅读器 */
.reader { padding: 34px 34px 30px; }
.reader-kicker { font-size: 12px; letter-spacing: 3px; color: var(--red); font-weight: 700; }
.reader h3 { font-family: var(--serif); font-size: 25px; color: var(--navy-deep); margin: 8px 0 4px; line-height: 1.5; }
.reader-meta { font-size: 13px; color: var(--muted); margin-bottom: 18px; line-height: 2; }
.reader-audio { margin-bottom: 20px; }
.reader-sec h4 {
  font-family: var(--serif); font-size: 17px; color: var(--navy); margin: 22px 0 8px;
  padding-left: 10px; border-left: 4px solid var(--gold);
}
.dlg { display: flex; flex-direction: column; gap: 8px; }
.dlg-line { font-size: 14.5px; line-height: 1.9; }
.dlg-line b { color: var(--navy); margin-right: 8px; white-space: nowrap; }
.dlg-line.ans b { color: var(--red); }
.dlg-line.narr { color: #6b6459; font-size: 13.5px; }

/* ==========================================================
   课堂 · 科普站
   ========================================================== */
#classroom { background: #14283f; padding-bottom: 90px; }
#classroom .sec-kicker { color: var(--gold); }
#classroom .sec-head h2 { color: #f6f1e7; }
#classroom .sec-desc { color: rgba(246,241,231,.65); }
.kp-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 18px; padding: 26px clamp(20px, 5vw, 70px) 8px;
}
.kp-card { perspective: 1100px; height: 252px; cursor: pointer; }
.kp-inner { position: relative; width: 100%; height: 100%; transition: transform .65s cubic-bezier(.3,.9,.3,1); transform-style: preserve-3d; }
.kp-card.flip .kp-inner { transform: rotateY(180deg); }
.kp-face {
  position: absolute; inset: 0; backface-visibility: hidden; border-radius: 16px;
  padding: 20px; display: flex; flex-direction: column;
}
.kp-front {
  background: linear-gradient(150deg, #fdf6e6, #f4e6c8); color: #3c3629;
  border: 1px solid #eadfc2; align-items: center; justify-content: center; text-align: center; gap: 10px;
}
.kp-front .kp-icon { font-size: 44px; }
.kp-front .kp-q { font-size: 16.5px; font-weight: 700; font-family: var(--serif); line-height: 1.6; }
.kp-front .kp-hint { font-size: 11.5px; color: #a2937a; letter-spacing: 2px; }
.kp-back {
  background: linear-gradient(160deg, #20456e, #14283f); color: #eee;
  transform: rotateY(180deg); overflow-y: auto; border: 1px solid #2c537f;
}
.kp-back .kp-a { font-size: 13px; line-height: 1.85; color: rgba(255,255,255,.92); }
.kp-back .kp-from { margin-top: 10px; font-size: 11px; color: var(--gold); letter-spacing: 1px; }
.fd-wrap { padding: 46px clamp(20px, 5vw, 70px) 0; }
.fd-title { color: #f6f1e7; font-family: var(--serif); font-size: 22px; text-align: center; letter-spacing: 2px; }
.fd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 22px; }
.fd-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 18px; transition: .25s;
}
.fd-card:hover { background: rgba(255,255,255,.11); transform: translateY(-4px); }
.fd-card b { color: var(--gold); font-family: var(--serif); font-size: 24px; }
.fd-card h5 { color: #fff; font-size: 15.5px; margin: 8px 0 6px; }
.fd-card p { color: rgba(255,255,255,.66); font-size: 12.8px; }

/* ==========================================================
   影像册
   ========================================================== */
#gallery { background: var(--sand); padding-bottom: 60px; }
.gl-tabs { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.gl-tabs button {
  border: 1px solid var(--line); background: #fff; color: #6b6459;
  border-radius: 999px; padding: 6px 14px; font-size: 13px; transition: .2s;
}
.gl-tabs button.on { background: var(--red); border-color: var(--red); color: #fff; }
.gl-masonry { columns: 4 240px; column-gap: 14px; padding: 26px clamp(16px, 4vw, 60px); }
.gl-item {
  break-inside: avoid; margin-bottom: 14px; border-radius: 12px; overflow: hidden;
  cursor: zoom-in; position: relative; background: #ddd;
}
.gl-item img { width: 100%; transition: transform .5s; }
.gl-item:hover img { transform: scale(1.05); }
.gl-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 12px 8px; font-size: 12px; color: #fff;
  background: linear-gradient(transparent, rgba(16,26,38,.82));
  opacity: 0; transition: .3s;
}
.gl-item:hover figcaption { opacity: 1; }
.gl-end { text-align: center; color: #a89f8d; font-size: 13px; letter-spacing: 3px; padding-bottom: 30px; }

/* 灯箱 */
.lightbox { position: fixed; inset: 0; z-index: 400; display: none; }
.lightbox.open { display: block; }
.lb-mask { position: absolute; inset: 0; background: rgba(10,16,24,.94); }
.lb-stage {
  position: absolute; inset: 4vh 6vw; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; z-index: 2;
}
.lb-stage img { max-width: 100%; max-height: 82vh; border-radius: 8px; box-shadow: 0 20px 80px rgba(0,0,0,.6); }
.lb-stage figcaption { color: rgba(255,255,255,.85); font-size: 14px; text-align: center; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; z-index: 3; border: none; background: rgba(255,255,255,.12);
  color: #fff; border-radius: 50%; transition: .2s;
}
.lb-close { top: 20px; right: 24px; width: 44px; height: 44px; font-size: 17px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 26px; }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 26px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--red); }

/* ==========================================================
   成果墙
   ========================================================== */
#results { background: linear-gradient(180deg, var(--sand) 0%, #efe6d3 100%); padding-bottom: 80px; }
.rs-block { padding: 30px clamp(20px, 5vw, 70px) 8px; }
.rs-title { font-family: var(--serif); font-size: 24px; color: var(--navy-deep); display: flex; align-items: center; gap: 12px; }
.rs-badge {
  font-family: var(--sans); font-size: 12px; font-weight: 600; color: #fff;
  background: var(--red); padding: 3px 12px; border-radius: 999px; letter-spacing: 1px;
}
.rs-note { color: var(--muted); font-size: 13.5px; margin: 8px 0 18px; }
.md-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.md-card {
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 15px 17px; cursor: pointer; transition: .25s; display: flex; gap: 12px; align-items: flex-start;
}
.md-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(44,42,38,.13); border-color: #d9c9a8; }
.md-outlet {
  flex-shrink: 0; font-size: 11px; color: #14416b; background: #e3eef8;
  border-radius: 6px; padding: 3px 8px; margin-top: 2px; white-space: nowrap; font-weight: 600;
}
.md-t { font-size: 13.8px; line-height: 1.65; color: #3c3629; font-weight: 600; }
.dc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.dc-card {
  background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px;
  display: flex; gap: 14px; align-items: center; transition: .25s;
}
.dc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(44,42,38,.13); }
.dc-icon { font-size: 30px; }
.dc-t { font-size: 14.5px; font-weight: 700; color: var(--navy-deep); }
.dc-d { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.dc-btn {
  margin-left: auto; flex-shrink: 0; border: 1px solid var(--navy); color: var(--navy);
  background: none; border-radius: 999px; padding: 6px 16px; font-size: 12.5px; transition: .2s;
}
.dc-btn:hover { background: var(--navy); color: #fff; }
.dc-btn.none { opacity: .45; pointer-events: none; }
.wc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.wc-card {
  background: #fff; border: 1px solid var(--line); border-radius: 15px; overflow: hidden;
  transition: .3s; text-align: center;
}
.wc-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 16px 36px rgba(44,42,38,.15); }
.wc-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.wc-name { font-weight: 700; font-size: 15px; color: var(--navy-deep); margin-top: 10px; }
.wc-desc { font-size: 12px; color: var(--muted); padding: 2px 12px 14px; }

/* ==========================================================
   关于
   ========================================================== */
#about { background: var(--navy-deep); color: rgba(255,255,255,.85); text-align: center; padding: 80px 24px 46px; }
#about h2 { font-family: var(--serif); font-size: 30px; letter-spacing: 8px; color: #fff; }
.ab-line { margin-top: 14px; font-size: 15px; }
.ab-theme { font-family: var(--serif); color: var(--gold); font-size: 20px; letter-spacing: 6px; margin-top: 6px; }
.ab-team { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.ab-team span {
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 5px 18px; font-size: 13.5px;
}
.ab-team span.lead { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.ab-thanks { margin-top: 30px; font-size: 13px; color: rgba(255,255,255,.55); }
.ab-todo {
  margin: 30px auto 0; max-width: 700px; border: 1px dashed rgba(255,255,255,.3);
  border-radius: 12px; padding: 16px 22px; font-size: 12.8px; color: rgba(255,255,255,.66);
}
.ab-todo h4 { color: var(--gold); font-size: 14px; margin-bottom: 6px; letter-spacing: 1px; }
.ab-copy { margin-top: 34px; font-size: 12px; color: rgba(255,255,255,.4); }

/* ==========================================================
   弹层
   ========================================================== */
.modal { position: fixed; inset: 0; z-index: 300; display: none; }
.modal.open { display: block; }
.modal-mask { position: absolute; inset: 0; background: rgba(12,18,26,.72); backdrop-filter: blur(4px); }
.modal-box {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(860px, calc(100vw - 28px)); max-height: 88vh;
  background: #fdfaf3; border-radius: 20px; overflow: hidden auto;
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
}
.modal-close {
  position: sticky; top: 10px; margin-left: calc(100% - 44px); z-index: 5;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(20,40,63,.1); color: #555; font-size: 14px; float: right;
  margin-bottom: -34px;
}
.modal-close:hover { background: var(--red); color: #fff; }

/* 站点详情弹层 */
.st-detail { padding: 10px 34px 34px; }
.st-head { width: 100%; display: flex; align-items: center; gap: 16px; border-bottom: 2px solid #eadfc8; padding-bottom: 18px; }
.st-emoji { width: 64px; height: 64px; border-radius: 16px; background: #fdf3de; border: 1px solid #f0e2c4; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.st-head h3 { font-family: var(--serif); font-size: 26px; color: var(--navy-deep); }
.st-head .st-date { font-size: 13px; color: var(--muted); margin-top: 4px; }
.st-body { margin-top: 18px; }
.st-body p { font-size: 14.8px; line-height: 2; color: #443f36; margin-bottom: 12px; text-align: justify; }
.st-kpu {
  margin: 18px 0; background: #f4ead2; border-radius: 12px; padding: 14px 18px;
  border-left: 4px solid var(--gold); font-size: 13.5px; line-height: 1.9;
}
.st-kpu b { color: #8a6d1f; }
.st-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.st-photos img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 10px; cursor: zoom-in; transition: .25s; }
.st-photos img:hover { transform: scale(1.04); }
.st-ivs { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.st-iv-btn {
  border: 1px solid var(--navy); color: var(--navy); background: none; border-radius: 999px;
  padding: 6px 16px; font-size: 13px; transition: .2s;
}
.st-iv-btn:hover { background: var(--navy); color: #fff; }
.st-media-slot {
  margin-top: 16px; border: 1.5px dashed #c9b98d; border-radius: 12px; padding: 18px;
  text-align: center; color: #8a7a52; font-size: 13.5px; background: #faf4e4;
}
.st-media-slot .slot-icon { font-size: 26px; display: block; margin-bottom: 6px; }
.st-wenchan { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 14px; }
.st-wenchan img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }

/* 响应式 */
@media (max-width: 700px) {
  .hero-title { letter-spacing: 8px; text-indent: 8px; }
  .hstat { min-width: 96px; padding: 8px 10px; }
  .hstat b { font-size: 22px; }
  .jy-controls button { width: 46px; height: 46px; }
  .jy-card { bottom: 10px; }
  .jyc-thumbs img { width: 96px; height: 66px; }
  .st-detail, .reader { padding-left: 20px; padding-right: 20px; }
  .modal-close { margin-right: 10px; }
  .jy-tip { display: none; }
  .hud-progress { width: calc(100vw - 96px); padding: 8px 12px; }
  .hud-km { font-size: 15px; }
  .hud-row1 { font-size: 10.5px; }
  .hud-stamp { font-size: 10px; }
  .hud-dest { display: none; }
  .jy-controls { right: 10px; bottom: 12px; gap: 6px; }
  #ctlAuto { padding: 0 12px; font-size: 12px; }
}



/* ==========================================================
   足迹 · 开放世界 v2（真实地图 + Leaflet）
   ========================================================== */
#game {
  position: relative; height: max(88vh, 620px);
  overflow: hidden; background: #cfd8c2;
  border-top: 3px solid var(--navy-deep); border-bottom: 3px solid var(--navy-deep);
  user-select: none;
}
.g-viewport { position: absolute; inset: 0; z-index: 1; background: #cfd8c2; cursor: crosshair; }
.g-viewport.leaflet-container { font: inherit; }

/* ---- 站点图钉 ---- */
.g-pin { display: flex; flex-direction: column; align-items: center; width: 130px; margin-left: -65px; cursor: pointer; }
.g-pin-ic {
  width: 44px; height: 44px; border-radius: 50% 50% 50% 4px; transform: rotate(45deg);
  background: linear-gradient(150deg, #f6d98a, #d9a441); border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(80,60,20,.45); transition: .25s;
}
.g-pin-ic > * { transform: rotate(-45deg); font-size: 19px; }
.g-pin:hover .g-pin-ic { transform: rotate(45deg) scale(1.16); }
.g-pin.seen .g-pin-ic { background: linear-gradient(150deg, #9fc5e8, #4a7fb5); }
.g-pin-name {
  margin-top: 5px; font-size: 12.5px; font-weight: 700; color: #5c4a20;
  background: rgba(255,252,240,.94); border: 1px solid #e0d0a0;
  padding: 2px 10px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(80,60,20,.28);
}

/* ---- 传送锚点 ---- */
.g-anchor { display: flex; flex-direction: column; align-items: center; width: 130px; margin-left: -65px; cursor: pointer; position: relative; }
.g-anchor-stone {
  width: 38px; height: 56px; border-radius: 50% 50% 42% 42%;
  background: linear-gradient(160deg, #9fd8f0, #3f7fae 55%, #2c5f8a);
  border: 3px solid #e8f4fb; position: relative;
  box-shadow: 0 0 24px rgba(80,170,230,.8), 0 4px 12px rgba(30,60,90,.4);
}
.g-anchor-stone::after {
  content: '⚓'; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 19px;
}
.g-anchor-glow {
  position: absolute; top: -12px; width: 66px; height: 86px; border-radius: 50%;
  background: radial-gradient(circle, rgba(120,200,255,.55), transparent 70%);
  animation: anchorPulse 2.4s ease-in-out infinite;
}
@keyframes anchorPulse { 0%,100% { opacity: .5; transform: scale(1);} 50% { opacity: 1; transform: scale(1.18);} }

/* ---- NPC ---- */
.g-npc { display: flex; flex-direction: column; align-items: center; width: 150px; margin-left: -75px; cursor: pointer; position: relative; }
.g-npc-sprite { filter: drop-shadow(0 5px 6px rgba(40,30,10,.4)); animation: npcBob 2.6s ease-in-out infinite; }
@keyframes npcBob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-5px);} }
.g-npc-name {
  margin-top: 3px; font-size: 12.5px; font-weight: 700; color: #fff;
  background: rgba(20,40,63,.82); padding: 2px 12px; border-radius: 999px; white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.g-npc .g-mark {
  position: absolute; top: -24px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%; z-index: 2;
  background: var(--red); color: #fff; font-weight: 900; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; animation: markJump 1.1s ease-in-out infinite;
}
@keyframes markJump { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,-9px);} }
.g-npc.met .g-mark { display: none; }
.g-npc.met .g-npc-name { background: rgba(46,125,79,.88); }

/* ---- 玩家 ---- */
.g-player { position: relative; width: 78px; filter: drop-shadow(0 6px 7px rgba(40,30,10,.45)); }
.g-player .chibi { display: block; margin: 0 auto; }
.g-player.moving .chibi .bob { animation: bob .36s ease-in-out infinite alternate; }
.g-player:not(.moving) .chibi .bob { animation: breathe 2.4s ease-in-out infinite alternate; }
.g-player:not(.moving) .leg-a, .g-player:not(.moving) .leg-b { transform: none !important; }
.g-player .chibi .bob { transform-box: view-box; }
.chibi .leg-a, .chibi .leg-b { transform-box: fill-box; }
.g-player.moving .leg-a { animation: legA .32s linear infinite alternate; }
.g-player.moving .leg-b { animation: legB .32s linear infinite alternate; }
@keyframes legA { from { transform: rotate(22deg);} to { transform: rotate(-22deg);} }
@keyframes legB { from { transform: rotate(-22deg);} to { transform: rotate(22deg);} }

/* ---- HUD ---- */
.g-hud-tl { position: absolute; top: 68px; left: 16px; z-index: 650; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.g-hud-tl > * { pointer-events: auto; }
.g-minimap {
  width: 200px; height: 140px; border-radius: 12px; overflow: hidden;
  border: 2px solid rgba(255,255,255,.8); box-shadow: 0 6px 20px rgba(20,40,63,.35);
  background: #cfd8c2; pointer-events: none;
}
.g-minimap .leaflet-control-attribution { display: none; }
.g-kmchip {
  width: fit-content; background: rgba(20,40,63,.85); color: #ffd98a;
  border-radius: 999px; padding: 5px 14px; font-size: 12.5px; font-weight: 700; letter-spacing: 1px;
  backdrop-filter: blur(6px);
}
.g-quest {
  width: 216px; background: rgba(20,40,63,.85); color: #eee; border-radius: 12px;
  padding: 10px 14px; font-size: 13px; line-height: 1.65; backdrop-filter: blur(6px);
  border-left: 3px solid var(--gold);
}
.g-quest em { display: block; font-style: normal; color: var(--gold); font-size: 11.5px; letter-spacing: 2px; margin-bottom: 3px; }
.g-quest b { color: #ffd98a; font-size: 15px; }
.g-quest i { font-style: normal; font-size: 11.5px; color: rgba(255,255,255,.6); }

.g-hud-tr { position: absolute; top: 68px; right: 16px; z-index: 650; display: flex; gap: 8px; }
.g-hud-tr button {
  border: 2px solid rgba(255,255,255,.75); background: rgba(20,40,63,.85); color: #fff;
  border-radius: 12px; padding: 8px 14px; font-size: 15px; cursor: pointer; transition: .2s;
  display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.2;
}
.g-hud-tr button i { font-style: normal; font-size: 10px; color: rgba(255,255,255,.65); letter-spacing: 1px; }
.g-hud-tr button:hover { background: var(--red); transform: translateY(-2px); }

/* Leaflet 控件融入风格 */
#game .leaflet-control-layers {
  border: 2px solid rgba(255,255,255,.75); border-radius: 12px; overflow: hidden;
  font-family: var(--sans); font-size: 13px; color: #14283f;
}
#game .leaflet-control-attribution {
  background: rgba(255,255,255,.75); color: #555; font-size: 10px; border-radius: 6px 0 0 0;
}
#game .leaflet-control-scale-line {
  background: rgba(255,255,255,.75); border-color: #666; font-size: 10.5px;
}

/* 交互提示 */
.g-prompt {
  position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%) translateY(8px);
  background: rgba(20,40,63,.88); color: #fff; border-radius: 999px; z-index: 655;
  padding: 9px 20px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s;
  backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.25);
}
.g-prompt.show { opacity: 1; transform: translateX(-50%); }
.g-prompt b { color: #ffd98a; margin-right: 10px; }
.g-prompt span { background: rgba(255,255,255,.16); padding: 2px 10px; border-radius: 999px; font-size: 12.5px; }
.g-intbtn {
  position: absolute; right: 22px; bottom: 96px; z-index: 655;
  background: var(--red); color: #fff; border-radius: 999px; padding: 12px 22px;
  font-size: 15px; font-weight: 700; cursor: pointer; display: none;
  box-shadow: 0 8px 22px rgba(200,57,43,.5); border: 2px solid rgba(255,255,255,.8);
}
.g-intbtn.show { display: block; animation: intPulse 1.4s ease-in-out infinite; }
@keyframes intPulse { 0%,100% { transform: scale(1);} 50% { transform: scale(1.07);} }

/* 摇杆 */
.g-joy {
  position: absolute; left: 22px; bottom: 22px; z-index: 655;
  width: 108px; height: 108px; border-radius: 50%;
  background: rgba(20,40,63,.28); border: 2px solid rgba(255,255,255,.5);
  display: none; touch-action: none;
}
.g-joy-knob {
  position: absolute; left: 50%; top: 50%; margin: -24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.85); box-shadow: 0 3px 10px rgba(20,40,63,.4);
  transition: transform .08s;
}
@media (pointer: coarse) { .g-joy { display: block; } }

/* 发现横幅（原神式） */
.g-banner {
  position: absolute; top: 17%; left: 50%; transform: translateX(-50%) scale(.92);
  z-index: 660; opacity: 0; pointer-events: none; transition: .45s cubic-bezier(.2,.8,.25,1);
  padding: 14px 46px; text-align: center;
}
.g-banner::before, .g-banner::after {
  content: ''; position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, #fff 50%, var(--gold) 80%, transparent);
}
.g-banner::before { top: 0; }
.g-banner::after { bottom: 0; }
.g-banner span {
  font-family: var(--serif); font-size: clamp(19px, 2.6vw, 27px); letter-spacing: 5px;
  color: #fff; text-shadow: 0 2px 12px rgba(20,40,63,.85), 0 0 24px rgba(217,164,65,.5);
  background: linear-gradient(180deg, rgba(16,30,48,.55), rgba(16,30,48,.75));
  padding: 6px 34px; border-radius: 8px;
}
.g-banner.show { opacity: 1; transform: translateX(-50%) scale(1); }

/* ---- 对话框（原神式） ---- */
.g-dialog {
  position: absolute; left: 50%; bottom: 26px; transform: translate(-50%, 24px);
  width: min(880px, calc(100% - 26px)); z-index: 680;
  background: linear-gradient(180deg, rgba(16,30,48,.94), rgba(16,30,48,.97));
  border: 1.5px solid rgba(217,164,65,.55); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(10,20,35,.55); color: #eee;
  opacity: 0; pointer-events: none; transition: .3s cubic-bezier(.2,.8,.25,1);
  padding: 18px 22px 14px;
}
.g-dialog::before, .g-dialog::after {
  content: '❮'; position: absolute; color: rgba(217,164,65,.8); font-size: 15px;
}
.g-dialog::before { left: 12px; top: 10px; }
.g-dialog::after { right: 12px; top: 10px; content: '❯'; }
.g-dialog.open { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.gd-main { display: flex; gap: 18px; align-items: flex-start; }
.gd-port {
  flex: 0 0 118px; width: 118px; height: 118px; border-radius: 14px;
  border: 3px solid var(--gold); overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #3a648f, #14283f);
}
.gd-body { flex: 1; min-height: 118px; }
.gd-namebar { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.gd-namebar b { font-family: var(--serif); font-size: 20px; color: var(--gold); letter-spacing: 2px; }
.gd-namebar i { font-style: normal; font-size: 12px; color: rgba(255,255,255,.55); }
.gd-text { font-size: 16px; line-height: 1.95; min-height: 88px; color: rgba(255,255,255,.94); }
.gd-hint { text-align: right; font-size: 11.5px; color: rgba(255,255,255,.45); margin-top: 4px; animation: bounce 1.6s infinite; }
.gd-actions { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.gd-actions button {
  border: 1px solid rgba(217,164,65,.6); background: rgba(217,164,65,.12); color: #ffd98a;
  border-radius: 999px; padding: 4px 14px; font-size: 12.5px; cursor: pointer; transition: .2s;
}
.gd-actions button:hover { background: var(--gold); color: #14283f; }
.gd-skip {
  position: absolute; right: 16px; bottom: -16px;
  border: 1px solid rgba(255,255,255,.35); background: rgba(16,30,48,.9); color: rgba(255,255,255,.75);
  border-radius: 999px; padding: 4px 16px; font-size: 12px; cursor: pointer;
}
.gd-skip:hover { color: #fff; border-color: var(--gold); }

/* ---- 全图 / 图鉴 overlay ---- */
.g-overlay {
  position: absolute; inset: 0; z-index: 700; display: none;
  background: rgba(12,18,26,.82); backdrop-filter: blur(6px);
  overflow-y: auto; padding: 36px 16px;
}
.g-overlay.open { display: block; }
.gmp-panel {
  position: relative; max-width: 1000px; margin: 0 auto;
  background: #fdfaf3; border-radius: 18px; padding: 22px 26px 26px;
  box-shadow: 0 30px 90px rgba(0,0,0,.5); border-top: 4px solid var(--gold);
}
.gmp-panel h3 { font-family: var(--serif); color: var(--navy-deep); font-size: 24px; letter-spacing: 3px; }
.gmp-hint { font-size: 13px; color: var(--muted); margin: 4px 0 14px; }
.g-ov-close {
  position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; z-index: 5;
  border-radius: 50%; border: none; background: rgba(20,40,63,.1); font-size: 15px; cursor: pointer;
}
.g-ov-close:hover { background: var(--red); color: #fff; }
.gmp-world { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); height: min(62vh, 560px); }
.gmp-pin, .gmp-anchor {
  display: flex; flex-direction: column; align-items: center; cursor: pointer;
  transform: translate(-50%, -130%); white-space: nowrap;
}
.gmp-pin span, .gmp-anchor span {
  font-size: 15px; background: #fff; border: 2px solid var(--gold);
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(80,60,20,.35);
}
.gmp-pin i, .gmp-anchor i {
  font-style: normal; font-size: 10.5px; font-weight: 700; color: #5c4a20;
  background: rgba(255,252,240,.95); border-radius: 999px; padding: 0 8px; margin-top: 2px;
}
.gmp-pin:hover span, .gmp-anchor:hover span { transform: scale(1.18); }
.gmp-pin.unknown span { border-color: #bbb; filter: grayscale(1); opacity: .75; }
.gmp-anchor span { border-color: #3f7fae; }
.gbook-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.gcard {
  background: linear-gradient(160deg, #f8f3e6, #efe6d0); border: 1px solid #e0d0a0;
  border-radius: 14px; padding: 14px; text-align: center; cursor: pointer; transition: .25s;
}
.gcard:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(44,42,38,.16); }
.gcard-face {
  width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 50%;
  border: 3px solid var(--gold); overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #3a648f, #14283f);
  display: flex; align-items: center; justify-content: center; font-size: 34px;
}
.gcard b { display: block; font-family: var(--serif); color: var(--navy-deep); font-size: 16px; }
.gcard span { display: block; font-size: 11.5px; color: #8a7f6d; margin: 3px 0 6px; }
.gcard em { font-style: normal; font-size: 11px; color: #2e7d4f; }
.gcard.locked { opacity: .62; cursor: default; }
.gcard.locked:hover { transform: none; box-shadow: none; }
.gcard.locked em { color: #a2937a; }

/* toast + 发现横幅提示条 */
.g-toast {
  position: fixed; top: 84px; left: 50%; transform: translateX(-50%) translateY(-12px);
  background: rgba(20,40,63,.92); color: #ffd98a; border: 1px solid rgba(217,164,65,.5);
  padding: 9px 26px; border-radius: 999px; z-index: 500; font-size: 14.5px; letter-spacing: 1px;
  opacity: 0; pointer-events: none; transition: .35s;
}
.g-toast.show { opacity: 1; transform: translateX(-50%); }

/* 路线提示 */
.g-route-tip { font-size: 12.5px; }

@media (max-width: 700px) {
  #game { height: 82vh; }
  .g-hud-tl { top: 60px; left: 10px; }
  .g-minimap { width: 128px; height: 90px; }
  .g-kmchip { font-size: 11px; padding: 4px 10px; }
  .g-quest { width: 150px; font-size: 11.5px; padding: 8px 10px; }
  .g-quest b { font-size: 13px; }
  .g-hud-tr { top: 60px; right: 10px; }
  .g-hud-tr button { padding: 6px 9px; font-size: 13px; }
  .gd-port { flex-basis: 84px; width: 84px; height: 84px; }
  .gd-text { font-size: 14px; min-height: 70px; }
  .g-dialog { bottom: 14px; padding: 14px 14px 12px; }
  .g-prompt { bottom: 150px; }
}

/* ---- v3 真实照片融入 ---- */
.iv-photo img { width: 100%; height: 100%; object-fit: cover; }
.iv-met {
  position: absolute; left: 10px; bottom: 10px; background: rgba(46,125,79,.92);
  color: #fff; font-size: 11px; padding: 2px 10px; border-radius: 999px;
}
.kp-photo {
  width: 100%; height: 108px; border-radius: 10px; margin-bottom: 10px;
  background-size: cover; background-position: center; border: 1px solid #e0d0a0;
}
.kp-face.kp-front .kp-photo + .kp-q { margin-top: 2px; }
.kp-face.kp-front { justify-content: flex-start; padding-top: 14px; }
.st-banner {
  height: 200px; border-radius: 14px; margin-bottom: 16px;
  background-size: cover; background-position: center;
  border: 1px solid var(--line); box-shadow: inset 0 -30px 40px rgba(16,26,38,.25);
}
.gcard-go {
  margin-top: 8px; border: 1px solid var(--navy); background: none; color: var(--navy);
  border-radius: 999px; padding: 4px 14px; font-size: 12px; cursor: pointer; transition: .2s;
}
.gcard-go:hover { background: var(--navy); color: #fff; }

/* ---- v3.1 ---- */
.g-nearchip { color: #cfe3ff; font-weight: 500; }
.st-mapbtn { margin-top: 14px; }
.st-mapbtn button {
  border: none; background: var(--navy); color: #fff; border-radius: 999px;
  padding: 9px 20px; font-size: 13.5px; cursor: pointer; transition: .2s; letter-spacing: 1px;
}
.st-mapbtn button:hover { background: var(--red); }
.g-pin.flash .g-pin-ic { animation: pinFlash 0.6s ease-in-out 4; }
@keyframes pinFlash { 0%,100% { box-shadow: 0 4px 14px rgba(80,60,20,.45);} 50% { box-shadow: 0 0 0 14px rgba(217,164,65,.35), 0 4px 14px rgba(80,60,20,.45);} }

/* ---- v3.2 标题页按钮 ---- */
.gtitle-btn {
  border: none; background: var(--red); color: #fff; border-radius: 999px;
  padding: 11px 26px; font-size: 14.5px; font-weight: 700; letter-spacing: 1px;
  cursor: pointer; transition: .2s; box-shadow: 0 8px 22px rgba(200,57,43,.4);
}
.gtitle-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(200,57,43,.5); }
.gtitle-btn.alt { background: var(--navy); box-shadow: 0 8px 22px rgba(20,40,63,.35); }
.gtitle-btn.alt:hover { background: #2e5f96; }

/* ---- v3.3 对话导航 ---- */
.gd-navrow { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.gd-prev {
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: rgba(255,255,255,.8);
  border-radius: 999px; padding: 3px 12px; font-size: 11.5px; cursor: pointer; transition: .2s;
}
.gd-prev:hover { background: rgba(217,164,65,.3); color: #fff; }
.gd-page { font-size: 11px; color: rgba(255,255,255,.5); }
.gd-navrow .gd-hint { margin-top: 0; }

/* ---- v3.4 图鉴进度 + 减少动效 ---- */
.gb-prog { margin: 4px 0 14px; }
.gb-bar { height: 8px; border-radius: 999px; background: #e8dfc8; overflow: hidden; }
.gb-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--red)); border-radius: 999px; transition: width .4s; }
.gb-prog span { font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .chibi .bob, .g-npc-sprite, .g-anchor-glow, .g-mark, .g-player .chibi .bob, .hero-bg, .hero-scrollhint, .gd-hint, .jy-cloud { animation: none !important; }
  html { scroll-behavior: auto; }
}

.gd-next-ch {
  border: 1px solid rgba(217,164,65,.5); background: rgba(217,164,65,.1); color: #ffd98a;
  border-radius: 999px; padding: 3px 12px; font-size: 11.5px; cursor: pointer; transition: .2s;
}
.gd-next-ch:hover { background: var(--gold); color: #14283f; }

/* ---- v3.5 庆祝彩纸 ---- */
.confetti { position: relative; height: 120px; overflow: hidden; margin: 10px 0 4px; }
.confetti i {
  position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px;
  animation: confFall 2.6s linear infinite;
}
@keyframes confFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(130px) rotate(320deg); opacity: 0; }
}
