/* 林然2034 · 临时页 v0
   颜色、字体、尺寸都集中在 :root 里；夜景（深圳时间 19:00–6:00）在 html.night 里覆盖。 */

@font-face {
  font-family: "LXGW WenKai Web";
  src: url("../fonts/lran2034-wenkai.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #f4ede0;
  --paper-2: #ece2cf;
  --card: rgba(255, 251, 242, .62);
  --ink: #26241f;
  --ink-2: #57524a;
  --ink-3: #8a8374;
  --line: rgba(60, 50, 35, .16);
  --seal: #b33a2c;
  --seal-ink: #fbf3e2;
  --wood: #e3cfa6;
  --wood-2: #cdb183;
  --wood-ink: #2f2a22;
  --pole: #6e5038;

  /* 五块大陆（从地图取色） */
  --qing: #4f8a6e;   /* 青简林 青绿 */
  --chi: #b5573b;    /* 赤影峰 赭红 */
  --dan: #c89a2c;    /* 丹青台 金黄 */
  --zhu: #7c5ac6;    /* 铸码城 紫 */
  --neon: #3fd8e6;   /* 铸码城 霓虹青 */
  --lan: #7c9ab8;    /* 听澜湖 银蓝 */

  --f-title: "LXGW WenKai Web", "LXGW WenKai", "Kaiti SC", STKaiti, KaiTi, serif;
  --f-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --f-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --stage-w: 180vw;   /* 手机：地图比屏幕宽，自动左右平移 */
  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 900px) {
  :root { --stage-w: min(1160px, 90vw); --gutter: 32px; }
}

html.night {
  --paper: #13151c;
  --paper-2: #1a1d27;
  --card: rgba(30, 33, 44, .72);
  --ink: #ece4d2;
  --ink-2: #bdb4a2;
  --ink-3: #8c8576;
  --line: rgba(236, 228, 210, .14);
  --seal: #c8483a;
  --wood: #3a2f24;
  --wood-2: #2b231b;
  --wood-ink: #efe5cf;
  --pole: #4a3828;
  --qing: #6fc29a;
  --chi: #e07a55;
  --dan: #e8bb4a;
  --zhu: #a585f0;
  --lan: #9fc0e2;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 252, 244, .55), transparent 60%),
    url("../img/lran2034-paper.webp");
  color: var(--ink);
  font: 15px/1.7 var(--f-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color .6s ease, color .6s ease;
}
html.night body {
  background-image:
    radial-gradient(120% 80% at 50% 0%, rgba(70, 80, 130, .22), transparent 60%),
    url("../img/lran2034-paper.webp");
}
img { max-width: 100%; }
a { color: inherit; }
.mono { font-family: var(--f-mono); letter-spacing: 0; }
h1, h2, h3, .display { font-family: var(--f-title); font-weight: 500; }

/* ---------------- 顶部细栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 46px;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 18px/1 var(--f-title); }
.brand img { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.status { font-size: 12px; color: var(--ink-3); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--qing); box-shadow: 0 0 0 0 var(--qing); animation: beacon 2.4s ease-out infinite; }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--qing) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 7px transparent; } }
@media (max-width: 380px) { .status .mono { display: none; } }

/* ---------------- 首屏地图 ---------------- */
.hero { padding: 28px 0 8px; }
@media (min-width: 900px) { .hero { padding-top: 48px; } }

.map-window {
  position: relative;
  width: 100%;
  overflow: hidden;            /* 手机：只露出一屏宽，靠平移看全图 */
}
@media (min-width: 900px) {
  .map-window { width: var(--stage-w); margin: 0 auto; overflow: visible; }
}
.map-pan { width: calc(var(--stage-w) * 1.05); will-change: transform; }
@media (min-width: 900px) { .map-pan { width: var(--stage-w); will-change: auto; } }
.map-stage { position: relative; width: var(--stage-w); aspect-ratio: 1250 / 500; }
.map-view {
  position: absolute; inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: #d9d3bf url("../img/lran2034-map.webp") center / 100% 100% no-repeat;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 22px 40px -24px rgba(70, 50, 20, .45), 0 0 0 1px rgba(90, 70, 40, .12);
}
@media (min-width: 900px) { .map-view { border-radius: 4px; } }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (min-width: 900px) and (hover: hover) { .layer, .overlay-wrap { will-change: transform; } }

.overlay-wrap { position: absolute; inset: 0; pointer-events: none; }
.m-overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* 五块大陆“未点亮”：去色 + 薄纸。JS 依次加 .lit-1 … .lit-5 */
.tints { position: absolute; inset: 0; pointer-events: none; }
.tint, .wash {
  position: absolute; top: 0; bottom: 0;
  opacity: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  transition: opacity 1s ease;
}
.tint { background: #808080; mix-blend-mode: saturation; }
.wash { background: var(--paper); }
.js .tint { opacity: 1; }
.js .wash { opacity: .26; }
.t1 { left: -4%; width: 27%; }
.t2 { left: 17%; width: 28%; }
.t3 { left: 37%; width: 28%; }
.t4 { left: 57%; width: 27%; }
.t5 { left: 76%; width: 28%; }
.lit-1 .t1, .lit-2 .t2, .lit-3 .t3, .lit-4 .t4, .lit-5 .t5 { opacity: 0; }

/* 路线：JS 画线；没有 JS 时直接显示 */
.m-route .route-band { transition: opacity 1.2s ease; }
.js .m-route .route-band { opacity: 0; }
.js .route-done .m-route .route-band { opacity: 1; }

/* 招牌：先暗着，闪两下后常亮 */
.m-sign { transition: opacity .3s; }
.js .m-sign { opacity: .4; }
.m-halo { opacity: 0; }
.sign-flicker .m-sign { animation: flicker 1.25s linear forwards; }
.sign-flicker .m-halo { animation: flicker-halo 1.25s linear forwards; }
.sign-on .m-sign { opacity: 1; filter: url(#m-neon); }
.sign-on .m-halo { opacity: .7; animation: hum 5s ease-in-out infinite; }
@keyframes flicker {
  0% { opacity: .4; } 8% { opacity: 1; } 16% { opacity: .35; } 30% { opacity: .4; }
  38% { opacity: 1; } 46% { opacity: .5; } 56% { opacity: 1; } 100% { opacity: 1; }
}
@keyframes flicker-halo {
  0% { opacity: 0; } 8% { opacity: .8; } 16% { opacity: 0; } 30% { opacity: 0; }
  38% { opacity: .9; } 46% { opacity: .2; } 56% { opacity: .8; } 100% { opacity: .7; }
}
@keyframes hum { 0%, 100% { opacity: .62; } 50% { opacity: .82; } }

/* 夜景：天色压暗，大陆与招牌发光 */
.night-veil, .glows { display: none; }
html.night .night-veil {
  display: block; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 28, 70, .78) 0%, rgba(40, 44, 90, .55) 45%, rgba(18, 20, 40, .62) 100%);
  mix-blend-mode: multiply;
}
html.night .glows { display: block; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }
.glows i {
  position: absolute; top: 18%; width: 26%; height: 70%;
  border-radius: 50%; opacity: 0;
  transition: opacity 1.4s ease;
}
.glows .g1 { left: -2%; background: radial-gradient(closest-side, color-mix(in srgb, var(--qing) 55%, transparent), transparent); }
.glows .g2 { left: 18%; background: radial-gradient(closest-side, color-mix(in srgb, var(--chi) 60%, transparent), transparent); }
.glows .g3 { left: 38%; background: radial-gradient(closest-side, color-mix(in srgb, var(--dan) 50%, transparent), transparent); }
.glows .g4 { left: 57%; background: radial-gradient(closest-side, color-mix(in srgb, var(--zhu) 70%, transparent), transparent); }
.glows .g5 { left: 76%; background: radial-gradient(closest-side, color-mix(in srgb, var(--lan) 55%, transparent), transparent); }
.lit-1 .g1, .lit-2 .g2, .lit-3 .g3, .lit-4 .g4, .lit-5 .g5 { opacity: .75; animation: breathe 6s ease-in-out infinite; }
.lit-2 .g2 { animation-delay: -1.2s; } .lit-3 .g3 { animation-delay: -2.4s; } .lit-4 .g4 { animation-delay: -3.6s; } .lit-5 .g5 { animation-delay: -4.8s; }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }
html.night .sign-on .m-halo { opacity: 1; }
html.night .map-view { box-shadow: 0 0 0 1px rgba(160, 170, 255, .12), 0 30px 60px -30px rgba(0, 0, 0, .8); }

/* 卷轴杆（开场展开用） */
.rod {
  position: absolute; top: -10px; bottom: -10px; left: 50%;
  width: 14px; margin-left: -7px;
  border-radius: 7px;
  background: linear-gradient(90deg, #3b2a1c, #8a6545 42%, #4b3524);
  box-shadow: 0 6px 12px rgba(40, 25, 10, .35);
  opacity: 0; pointer-events: none; z-index: 3;
}
.rod::before, .rod::after {
  content: ""; position: absolute; left: -3px; right: -3px; height: 9px; border-radius: 4px;
  background: linear-gradient(90deg, #2b1e14, #b08655 45%, #3a2a1c);
}
.rod::before { top: -6px; } .rod::after { bottom: -6px; }

/* 首屏文字 */
.hero-text { text-align: center; padding: 26px var(--gutter) 0; }
.display {
  margin: 0;
  font-size: clamp(50px, 15vw, 104px);
  line-height: 1.05;
  letter-spacing: .04em;
}
.tagline { margin: 10px 0 0; font: 17px/1.6 var(--f-title); color: var(--ink-2); }
.tagline .bar { color: var(--seal); margin: 0 .15em; }
@media (min-width: 900px) { .tagline { font-size: 21px; } }
.cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; padding: 9px 20px;
  border: 1px solid color-mix(in srgb, var(--ink) 55%, transparent);
  border-radius: 999px;
  font: 15px/1 var(--f-title); text-decoration: none;
  transition: background .25s, color .25s;
}
.cta:hover, .cta:focus-visible { background: var(--ink); color: var(--paper); }
.cta span { display: inline-block; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* ---------------- 通用段落标题 ---------------- */
section.lands, section.find { padding: 64px var(--gutter) 24px; max-width: 1180px; margin: 0 auto; }
.sec-head { text-align: center; margin-bottom: 26px; }
.sec-no {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border: 1.5px solid var(--seal); border-radius: 50%;
  color: var(--seal); font: 15px/1 var(--f-title);
}
.sec-head h2 { margin: 8px 0 2px; font-size: clamp(28px, 7.5vw, 40px); line-height: 1.2; letter-spacing: .06em; }
.sec-head p { margin: 0; color: var(--ink-2); font-size: 14px; }
.sec-head b { font-family: var(--f-title); font-weight: 500; color: var(--ink); font-size: 16px; }

/* ---------------- 五块大陆卡片 ---------------- */
.land-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.land {
  position: relative; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--c);
  border-radius: 6px;
}
.land:last-child { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) {
  .land-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .land:last-child { grid-column: auto; display: block; }
}
.thumb {
  position: relative; overflow: hidden;
  aspect-ratio: 260 / 190;
  background: #d9d3bf url("../img/lran2034-map.webp") no-repeat;
  background-size: 480.8% auto;
  filter: grayscale(.75) sepia(.18) contrast(.95);
  transition: filter .6s ease, transform .6s ease;
}
html.night .thumb { filter: grayscale(.7) brightness(.62) contrast(1.05); }
[data-land="1"] .thumb { background-position: 0% 48%; }
[data-land="2"] .thumb { background-position: 23.2% 29%; }
[data-land="3"] .thumb { background-position: 50.5% 45%; }
[data-land="4"] .thumb { background-position: 76.8% 32%; }
[data-land="5"] .thumb { background-position: 100% 48%; }
@media (hover: hover) { .land:hover .thumb { filter: grayscale(.25) sepia(.05); } }
.land-body { padding: 12px 14px 14px; }
.land h3 { margin: 0; font-size: 24px; line-height: 1.2; color: var(--c); letter-spacing: .06em; }
.dir { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.dir::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--c); vertical-align: 2px; }
.soon {
  position: relative; overflow: hidden;
  margin: 10px 0 0; padding: 4px 0;
  font: 14px/1.5 var(--f-title); color: var(--ink-2); letter-spacing: .08em;
  border-top: 1px dashed var(--line);
}
[data-land="4"] h3 { text-shadow: 0 0 14px color-mix(in srgb, var(--neon) 35%, transparent); }

/* 迷雾：雾气贴图横向缓慢流动（只动 transform） */
.fog { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.fog::before, .fog::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 200%;
  background: url("../img/lran2034-fog.webp") repeat-x 0 50% / 50% 100%;
  animation: drift 46s linear infinite;
  will-change: transform;
}
.fog::after { opacity: .7; animation-duration: 29s; animation-direction: reverse; top: 20%; }
.thumb .fog { opacity: .95; }
.soon .fog { opacity: .85; }
html.night .fog { opacity: .35; }
html.night .soon .fog { opacity: .16; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- 13 块路标 ---------------- */
.signpost { position: relative; max-width: 660px; margin: 0 auto; padding: 18px 0 40px; perspective: 900px; }
.pole {
  position: absolute; left: 50%; top: 0; bottom: 26px; width: 12px; margin-left: -6px;
  border-radius: 6px 6px 2px 2px;
  background:
    repeating-linear-gradient(180deg, transparent 0 22px, rgba(0, 0, 0, .12) 22px 23px),
    linear-gradient(90deg, #3e2c1f, color-mix(in srgb, var(--pole) 70%, #c19a6b) 45%, #4c3725);
}
.pole::before {  /* 杆顶 */
  content: ""; position: absolute; top: -12px; left: 50%; width: 20px; height: 14px; margin-left: -10px;
  border-radius: 10px 10px 3px 3px; background: linear-gradient(90deg, #3a2a1c, #9a7450, #3a2a1c);
}
.pole-base {
  position: absolute; left: 50%; bottom: 14px; width: 120px; height: 24px; margin-left: -60px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(80, 60, 35, .35), transparent);
}
.sign-heads {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px;
  margin: 0 0 10px;
  font: 15px/1 var(--f-title); color: var(--ink-2); letter-spacing: .3em;
}
.sign-heads span:first-child { justify-self: end; padding-right: 14px; }
.sign-heads span:last-child { justify-self: start; padding-left: 18px; }
.sign-heads span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--seal); vertical-align: 3px; }
.signs {
  position: relative; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px;
  grid-auto-rows: 33px;
}
.sign { position: relative; grid-row: span 2; }
/* 国内在左（.l），海外在右（.r）；行号由 HTML/JS 写在 style 里，左右错开半块 */
.sign.l { grid-column: 1; justify-self: end; }
.sign.r { grid-column: 2; justify-self: start; }
.sign.done { filter: drop-shadow(0 3px 3px rgba(60, 40, 15, .28)); }
html.night .sign.done { filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); }
.board {
  --tip: 16px;
  position: relative;
  display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center;
  width: min(44vw, 290px); min-height: 60px;
  padding: 8px calc(var(--tip) + 10px) 8px 10px;
  text-decoration: none; color: var(--wood-ink);
  background:
    repeating-linear-gradient(176deg, transparent 0 7px, rgba(90, 60, 25, .07) 7px 8px),
    linear-gradient(180deg, var(--wood), var(--wood-2));
  clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%);
  transform-origin: left center;
  -webkit-tap-highlight-color: transparent;
}
.sign.l .board {   /* 左侧路标：尖头朝左，钉在杆的右边 */
  padding: 8px 10px 8px calc(var(--tip) + 10px);
  clip-path: polygon(var(--tip) 0, 100% 0, 100% 100%, var(--tip) 100%, 0 50%);
  transform-origin: right center;
}
.board::after { /* 钉子 */
  content: ""; position: absolute; top: 50%; right: 8px; width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%; background: rgba(60, 40, 20, .55); box-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.sign.r .board::after { right: auto; left: 6px; }
.sign.l .board::after { right: 6px; }
.seal {
  grid-row: span 2;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 4px;
  background: var(--seal); color: var(--seal-ink);
  font: 19px/1 var(--f-title);
  box-shadow: inset 0 0 0 2px rgba(255, 240, 220, .35);
  transform: rotate(-4deg);
}
.sign.r .seal { margin-left: 4px; }
.seal.small { font-size: 13px; letter-spacing: .02em; }
.name { font: 18px/1.15 var(--f-title); white-space: nowrap; }
.act { font-size: 12px; line-height: 1.4; color: color-mix(in srgb, var(--wood-ink) 70%, transparent); white-space: nowrap; }
.sign[data-mode="link"] .act { color: var(--seal); font-weight: 600; }
.sign[data-mode="qr"] .act { color: var(--qing); font-weight: 600; }
@media (hover: hover) {
  .board { transition: transform .35s cubic-bezier(.2, .8, .2, 1.3); }
  .sign.in .board:hover { transform: translateX(4px) rotate(-1deg); }
  .sign.l.in .board:hover { transform: translateX(-4px) rotate(1deg); }
}
.board:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }
@media (min-width: 900px) {
  .signs { grid-auto-rows: 36px; column-gap: 16px; }
  .board { min-height: 66px; }
  .name { font-size: 20px; }
  .act { font-size: 13px; }
}

/* 翻出动画：路标绕着杆子转出来 */
.js .sign .board { opacity: 0; transform: rotateY(100deg); transition: transform .8s cubic-bezier(.2, .9, .25, 1.15), opacity .35s ease; }
.js .sign.l .board { transform: rotateY(-100deg); }
.js .sign.in .board { opacity: 1; transform: none; }

/* ---------------- 页脚 ---------------- */
.foot { position: relative; overflow: hidden; text-align: center; padding: 36px var(--gutter) calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot::before {
  content: ""; position: absolute; left: 0; right: -100%; top: -10px; height: 120px;
  background: url("../img/lran2034-fog.webp") repeat-x 0 0 / 50% 100%;
  opacity: .55; animation: drift 60s linear infinite; pointer-events: none;
}
html.night .foot::before { opacity: .12; }
.days { position: relative; margin: 0; font: 19px/1.6 var(--f-title); }
.days .sep { color: var(--seal); margin: 0 .3em; }
.days b { color: var(--seal); font-size: 1.15em; padding: 0 .1em; }
.foot .small { position: relative; margin: 4px 0 0; font-size: 12px; color: var(--ink-3); }

/* ---------------- 二维码弹窗 / 提示 ---------------- */
.qr-dialog {
  border: 0; border-radius: 10px; padding: 22px 22px 18px; width: min(300px, 86vw);
  background: var(--paper); color: var(--ink); text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
}
.qr-dialog::backdrop { background: rgba(20, 18, 14, .5); }
.qr-title { margin: 0 0 12px; font: 20px/1.3 var(--f-title); }
.qr-img { width: 220px; height: 220px; object-fit: contain; background: #fff; border-radius: 6px; }
.qr-tip { margin: 10px 0 14px; font-size: 13px; color: var(--ink-2); }
.qr-close { font: 15px/1 var(--f-title); padding: 9px 26px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 70;
  max-width: calc(100vw - 32px);
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: 14px;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 光标灯笼光晕（只在有鼠标的电脑上） ---------------- */
.lantern {
  position: fixed; left: 0; top: 0; z-index: 40;
  width: 240px; height: 240px; margin: -120px 0 0 -120px;
  pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 190, 105, .30), rgba(255, 160, 70, .12) 45%, transparent);
  mix-blend-mode: multiply;
  transition: opacity .5s ease;
  will-change: transform;
}
.lantern i {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: 1px solid rgba(214, 140, 60, .45);
  box-shadow: 0 0 14px rgba(255, 170, 80, .55), inset 0 0 8px rgba(255, 190, 110, .45);
}
.lantern.on { opacity: 1; }
html.night .lantern { mix-blend-mode: screen; background: radial-gradient(closest-side, rgba(255, 180, 90, .26), rgba(255, 150, 60, .1) 45%, transparent); }

/* ---------------- 开场：墨滴晕开 → 卷轴展开 ---------------- */
.opening, .skip { display: none; }
html.intro .opening {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 50;
  background-color: var(--paper);
  background-image: url("../img/lran2034-paper.webp");
  animation: intro-out .55s ease .9s forwards;
}
html.intro .intro-ink {
  grid-area: 1 / 1; width: min(62vw, 360px); height: auto;
  opacity: .92; transform: scale(.04);
  animation: ink-spread 1.3s cubic-bezier(.15, .75, .25, 1) .05s forwards;
}
html.night.intro .intro-ink { filter: invert(.92) sepia(.3); opacity: .5; }
html.intro .intro-ring {
  grid-area: 1 / 1; width: min(62vw, 360px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(40, 36, 30, .25); transform: scale(.1); opacity: 0;
  animation: ring 1.2s ease-out .25s forwards;
}
@keyframes ink-spread { 0% { transform: scale(.04); } 70% { opacity: .92; } 100% { transform: scale(1.25); opacity: .0; } }
@keyframes ring { 0% { transform: scale(.1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

html.intro .skip {
  display: block; position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom));
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent);
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  color: var(--ink); font: 14px/1 var(--f-title); cursor: pointer;
  animation: fade-in .3s ease .15s both;
}
html.intro .map-window { animation: unroll 1.5s cubic-bezier(.65, 0, .3, 1) 1s both; }
html.intro .rod { animation: rod-show .2s ease .95s forwards, rod-fade .45s ease 2.45s forwards; }
html.intro .rod-l { animation-name: rod-show, rod-fade, rod-l; animation-duration: .2s, .45s, 1.5s; animation-delay: .95s, 2.45s, 1s; animation-timing-function: ease, ease, cubic-bezier(.65, 0, .3, 1); animation-fill-mode: forwards, forwards, both; }
html.intro .rod-r { animation-name: rod-show, rod-fade, rod-r; animation-duration: .2s, .45s, 1.5s; animation-delay: .95s, 2.45s, 1s; animation-timing-function: ease, ease, cubic-bezier(.65, 0, .3, 1); animation-fill-mode: forwards, forwards, both; }
@keyframes unroll {
  from { clip-path: inset(-12% 50% -12% 50%); }
  to { clip-path: inset(-12% -6% -12% -6%); }
}
@keyframes rod-l { from { left: 50%; } to { left: 0%; } }
@keyframes rod-r { from { left: 50%; } to { left: 100%; } }
@keyframes rod-show { to { opacity: 1; } }
@keyframes rod-fade { from { opacity: 1; } to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.js .hero-text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-text > :nth-child(1) { animation-delay: .25s; }
.js .hero-text > :nth-child(2) { animation-delay: .4s; }
.js .hero-text > :nth-child(3) { animation-delay: .55s; }
html.intro .hero-text > :nth-child(1) { animation-delay: 2.15s; }
html.intro .hero-text > :nth-child(2) { animation-delay: 2.35s; }
html.intro .hero-text > :nth-child(3) { animation-delay: 2.55s; }
html.no-intro .map-window { animation: fade-in .7s ease both; }
/* 跳过：所有开场动画立刻结束 */
html.skipped .opening, html.skipped .skip { display: none; }
html.skipped .map-window, html.skipped .rod, html.skipped .hero-text > * { animation: none !important; opacity: 1; }
html.skipped .rod { opacity: 0; }

/* ---------------- 减少动态效果：只保留淡入 ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .5s !important; }
  .js .hero-text > *, html.no-intro .map-window { animation: fade-in .6s ease both !important; }
  .fog::before, .fog::after, .foot::before, .status .dot, .cta span { animation: none !important; }
  .js .sign .board, .js .sign.l .board { transform: none; }
  .map-window { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .map-pan { will-change: auto; }
  .lantern { display: none; }
}
