/* ============================================================
   云间线 · 全站共享样式
   纸张 + 墨线 + 淡蓝；章节标题统一用"站名牌"
   ============================================================ */

@property --sky-1 { syntax: '<color>'; inherits: true; initial-value: #8fbbe8; }
@property --sky-2 { syntax: '<color>'; inherits: true; initial-value: #c4ddf3; }
@property --sky-3 { syntax: '<color>'; inherits: true; initial-value: #eef5fb; }

:root {
  --paper: #fbf8f2;
  --paper-2: #f3eee4;
  --card: #fffdf9;
  --ink: #3a4158;
  --ink-2: #646b82;
  --ink-3: #9aa0b3;
  --rule: rgba(58, 65, 88, .14);
  --blue: #7fa6d6;
  --blue-2: #cfe0f3;
  --blue-3: #eef4fb;
  --pink: #f0b4b4;
  --pink-2: #fbe5e2;
  --amber: #e99a57;
  --amber-2: #fcebd8;
  --rose: #dc6a70;
  --green: #79b88f;
  --green-2: #e1f1e5;
  --violet: #c58bd6;
  --cloud-fill: #ffffff;
  --cloud-line: rgba(58, 65, 88, .55);
  --fog: #e9e3d7;
  --fog-line: rgba(58, 65, 88, .16);
  --shadow: 0 1px 0 rgba(58,65,88,.05), 0 14px 34px -18px rgba(58,65,88,.35);
  --sky-1: #8fbbe8; --sky-2: #c4ddf3; --sky-3: #eef5fb;

  --f-cn: "LXGW WenKai Screen", "LXGW WenKai", "Kaiti SC", "STKaiti", "KaiTi", "PingFang SC", "Microsoft YaHei", serif;
  --f-en: "Quicksand", "Nunito", "Varela Round", system-ui, sans-serif;
  --f-hand: "Caveat", "Segoe Print", cursive;
  --f-script: "Pinyon Script", "Snell Roundhand", "Segoe Script", cursive;
  --f-jp: "Zen Old Mincho", "Yu Mincho", "Hiragino Mincho ProN", "MS Mincho", serif;
  --f-art-en: "Cinzel", "Trajan Pro", "Times New Roman", serif;

  --wrap: min(1160px, 100% - 48px);
  transition: --sky-1 1.4s ease, --sky-2 1.4s ease, --sky-3 1.4s ease;
  color-scheme: light;
}
html[data-time="morning"] { --sky-1: #c9dcf3; --sky-2: #f3dde2; --sky-3: #fdf0e4; }
html[data-time="day"]     { --sky-1: #8fbbe8; --sky-2: #c4ddf3; --sky-3: #eef5fb; }
html[data-time="dusk"]    { --sky-1: #8e93c8; --sky-2: #e7a9a6; --sky-3: #f8d1a9; --cloud-fill: #fff1ec; }
html[data-time="night"] {
  --sky-1: #0d1226; --sky-2: #1b2346; --sky-3: #2c3159;
  --paper: #161b2c; --paper-2: #1d2337; --card: #21283e;
  --ink: #e8eaf4; --ink-2: #b7bccd; --ink-3: #7c839a;
  --rule: rgba(232, 234, 244, .13);
  --blue: #93b6e6; --blue-2: #2f3b5e; --blue-3: #232b45;
  --pink: #e7a3a8; --pink-2: #3a2a39;
  --amber: #f0b06e; --amber-2: #3a3024;
  --rose: #ef8489; --green: #8cc9a1; --green-2: #20342a;
  --cloud-fill: #2a3254; --cloud-line: rgba(232, 234, 244, .35);
  --fog: #262d45; --fog-line: rgba(232, 234, 244, .1);
  --shadow: 0 1px 0 rgba(0,0,0,.2), 0 18px 40px -18px rgba(0,0,0,.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-cn); font-size: 17px; line-height: 1.75; color: var(--ink);
  background: var(--paper); transition: background-color .6s ease, color .6s ease; overflow-x: hidden;
}
/* 纸张纹理 */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .23 0 0 0 0 .25 0 0 0 0 .35 0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, footer { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue-2); color: var(--ink); }
:focus-visible { outline: 2.5px dashed var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.en { font-family: var(--f-en); letter-spacing: .02em; }
.hand { font-family: var(--f-hand); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }

/* ---------- 顶栏 + 缆车 ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 60px; transition: background-color .4s ease; }
.topbar.solid {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
}
.topbar .inner { height: 60px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand svg { width: 38px; height: 22px; }
.brand b { font-size: 20px; letter-spacing: .08em; }
.brand small { font-family: var(--f-en); font-size: 11px; color: var(--ink-2); letter-spacing: .14em; padding-top: 3px; }
.nav { display: flex; gap: 2px; }
.nav a { text-decoration: none; font-size: 15px; padding: 6px 11px; border-radius: 999px; color: var(--ink-2); transition: color .2s, background-color .2s; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--blue-2) 60%, transparent); }
.nav a.on { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ink); }
.time-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap;
  border: 1.5px solid var(--ink); background: var(--card); border-radius: 999px; padding: 4px 12px 4px 6px; font-size: 14px;
  box-shadow: 0 2px 0 var(--ink); transition: transform .15s;
}
.time-btn:active { transform: translateY(2px); box-shadow: none; }
.time-btn .ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-3); }
.time-btn .ico svg { width: 16px; height: 16px; }
.time-btn .clock { font-family: var(--f-en); font-weight: 600; font-size: 13px; color: var(--ink-2); }
.menu-btn { display: none; border: 1.5px solid var(--ink); background: var(--card); border-radius: 12px; width: 40px; height: 36px; cursor: pointer; }
.menu-btn span { display: block; width: 16px; height: 2px; background: var(--ink); margin: 3px auto; border-radius: 2px; }

.ropeway { position: absolute; left: 0; right: 0; top: 60px; height: 34px; pointer-events: none; }
.ropeway svg { width: 100%; height: 34px; display: block; overflow: visible; }
.ropeway path { fill: none; stroke: var(--ink-3); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.gondola {
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin-left: -23px; transform-origin: 23px 0;
  pointer-events: auto; cursor: pointer; border: 0; background: none; padding: 0; will-change: transform;
}
.gondola .hanger { position: absolute; left: 22px; top: 0; width: 1.5px; height: 14px; background: var(--ink-2); }
.gondola .hanger::before { content: ""; position: absolute; left: -4px; top: -3px; width: 9px; height: 6px; border: 1.5px solid var(--ink-2); border-radius: 4px; background: var(--paper); }
.gondola svg { position: absolute; left: 0; top: 12px; width: 46px; height: 26px; animation: sway 3.2s ease-in-out infinite; transform-origin: 23px 0; }
.gondola .say {
  position: absolute; top: 44px; left: 50%; transform: translateX(-50%) scale(.6); opacity: 0; white-space: nowrap;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px; padding: 2px 10px; font-size: 13px;
  transition: opacity .25s, transform .25s; pointer-events: none;
}
.gondola.talk .say { opacity: 1; transform: translateX(-50%) scale(1); }
@keyframes sway { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* ---------- 天空（首页 hero 与子页页头共用） ---------- */
.sky { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 58%, var(--sky-3)); }
.sun { position: absolute; border-radius: 50%; transition: all 1.4s ease; }
html[data-time="morning"] .sun { left: 12%; top: 58%; background: radial-gradient(#fff6e8, #ffd9c4 60%, transparent 72%); width: 200px; height: 200px; }
html[data-time="day"] .sun { left: 58%; top: 10%; background: radial-gradient(#fffef8, #fff3d6 45%, transparent 70%); width: 220px; height: 220px; }
html[data-time="dusk"] .sun { left: 74%; top: 52%; background: radial-gradient(#fff2d8, #f7b68a 50%, transparent 72%); width: 260px; height: 260px; }
html[data-time="night"] .sun { left: 57%; top: 10%; width: 64px; height: 64px; background: transparent; box-shadow: inset -14px 8px 0 0 #f5ecd2, 0 0 40px rgba(245,236,210,.25); }
.stars { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
html[data-time="night"] .stars { opacity: 1; }
.stars i, .starfield i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
.cloud { position: absolute; animation: drift linear infinite; }
.cloud use { fill: var(--cloud-fill); stroke: var(--cloud-line); stroke-width: 1.6; vector-effect: non-scaling-stroke; transition: fill 1.4s; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
.c1 { top: 16%; width: 210px; animation-duration: 110s; animation-delay: -30s; }
.c2 { top: 34%; width: 140px; animation-duration: 140s; animation-delay: -95s; opacity: .85; }
.c3 { top: 8%;  width: 300px; animation-duration: 170s; animation-delay: -120s; }
.c4 { top: 62%; width: 180px; animation-duration: 125s; animation-delay: -10s; opacity: .9; }
.c5 { top: 48%; width: 90px; animation-duration: 90s; animation-delay: -60s; opacity: .7; }
.cloud-edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 80px; }
.cloud-edge path { fill: var(--paper); transition: fill .6s; }

/* 子页页头：一段短天空 + 站名牌 */
.page-head { position: relative; isolation: isolate; overflow: hidden; padding: 128px 0 110px; }
.page-head .cloud-edge { height: 56px; }
.page-head .sign { margin-bottom: 0; }
.crumb { font-size: 14px; color: var(--ink-2); margin: 0 0 14px; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-lede { max-width: 38em; margin: 22px 0 0; color: var(--ink-2); font-size: 17px; }
.page-body { padding: 30px 0 90px; }

/* ---------- 章节通用 ---------- */
section.chap { padding: 110px 0 40px; position: relative; }
.sign {
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 18px;
  width: min(100%, 660px); margin: 0 0 44px; background: var(--card); border: 2.5px solid var(--ink); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow); --line: var(--blue);
}
.sign-badge {
  margin: 16px 0 14px 18px; width: 56px; height: 56px; border-radius: 14px; border: 4px solid var(--line);
  background: var(--card); display: grid; place-items: center; line-height: 1; font-family: var(--f-en); text-align: center;
}
.sign-badge small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--ink-2); }
.sign-badge b { display: block; font-size: 22px; font-weight: 700; margin-top: 2px; }
.sign-name h1, .sign-name h2 { margin: 6px 0 0; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; letter-spacing: .14em; }
.sign-name p { margin: 2px 0 8px; font-family: var(--f-en); font-size: 13px; color: var(--ink-2); letter-spacing: .06em; }
.sign-band { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; padding: 7px 16px; background: var(--line); color: #fff; font-size: 14px; letter-spacing: .06em; }
html[data-time="night"] .sign-band { color: #141a2b; }
.sign-band a { text-decoration: none; opacity: .92; }
.sign-band a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.sign-band .here { font-family: var(--f-en); font-size: 12px; opacity: .85; align-self: center; }
.intro { max-width: 40em; color: var(--ink-2); margin: -20px 0 40px; }
.more-link { display: flex; justify-content: flex-end; margin-top: 26px; }

.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- 按钮与标签 ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer;
  padding: 11px 22px; border-radius: 999px; border: 2px solid var(--ink); background: var(--card);
  box-shadow: 0 3px 0 var(--ink); font-size: 16px; transition: transform .15s, box-shadow .15s, background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.small { padding: 6px 16px; font-size: 14px; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: 0 3px 0 var(--ink); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px; border-radius: 999px; font-size: 13px; border: 1.5px solid var(--ink); background: var(--card); line-height: 1.7; white-space: nowrap; text-decoration: none; }
.tag.soft { border-color: var(--rule); }
.tag.t-open { background: var(--blue-3); border-color: var(--blue); }
.tag.t-soon { background: var(--green-2); border-color: var(--green); }
.tag.t-late { background: var(--pink-2); border-color: var(--rose); color: var(--rose); }
.tag.t-late::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); animation: blink 1.2s steps(2) infinite; }
.tag.t-build { background: var(--amber-2); border-color: var(--amber); }
.tag.t-plan { border-style: dashed; color: var(--ink-2); }
.tag.t-xfer { background: var(--card); border-color: var(--violet); color: var(--ink); }
.tag.t-xfer::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--violet); box-shadow: 4px 0 0 -1px var(--card), 4px 0 0 1px var(--blue); }
@keyframes blink { 50% { opacity: .15; } }
.chip { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; padding: 3px 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--card); transition: background-color .2s, opacity .2s; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip[disabled] { opacity: .45; cursor: not-allowed; border-style: dashed; }
.chip .n { font-family: var(--f-en); font-size: 12px; opacity: .7; }

/* ---------- 对话框 / 灯箱 ---------- */
dialog { border: 0; padding: 0; background: none; color: var(--ink); max-width: none; max-height: none; overflow: visible; }
dialog::backdrop { background: color-mix(in srgb, #10142a 78%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.round { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); cursor: pointer; display: grid; place-items: center; font-size: 18px; line-height: 1; box-shadow: 0 2px 0 var(--ink); flex: none; }
.lb { width: min(1100px, 100vw - 32px); }
.lb figure { margin: 0; background: var(--card); border: 2.5px solid var(--ink); border-radius: 18px; overflow: hidden; }
.lb .stagebox { position: relative; background: var(--paper-2); display: grid; place-items: center; min-height: 200px; touch-action: pan-y; }
.lb .stagebox img { grid-area: 1 / 1; width: auto; height: auto; max-width: 100%; max-height: min(76vh, 1000px); object-fit: contain; }
.lb .ph { filter: blur(10px); transform: scale(1.02); transition: opacity .4s; }
.lb .full { opacity: 0; transition: opacity .35s; }
.lb .full.ready { opacity: 1; }
.lb .full.ready + .ph, .lb .ph.gone { opacity: 0; }
.lb .loading { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-size: 13px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 12px; transition: opacity .3s; }
.lb .loading.done { opacity: 0; }
.lb figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 16px; border-top: 2px solid var(--ink); }
.lb figcaption .ttl { margin-right: auto; display: flex; flex-direction: column; line-height: 1.4; }
.lb figcaption b { font-size: 18px; }
.lb figcaption .meta { font-size: 13px; color: var(--ink-2); font-family: var(--f-en); }
.lb .acts { display: flex; gap: 8px; align-items: center; }
.lb .acts a { font-size: 13px; padding: 4px 12px; }
.lb .x { position: absolute; top: -14px; right: -10px; z-index: 2; }

/* 延误证明书（票据） */
.ticket {
  width: min(440px, 100vw - 32px); position: relative; background: #fff8f0; color: #3a4158; border-radius: 10px; padding: 26px 28px 24px;
  border: 2px solid #3a4158; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  background-image: repeating-linear-gradient(90deg, rgba(220,106,112,.07) 0 2px, transparent 2px 9px);
}
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: #3a4158; margin-top: -11px; }
.ticket::before { left: -12px; } .ticket::after { right: -12px; }
.ticket h4 { margin: 0; text-align: center; font-size: 26px; letter-spacing: .5em; padding-left: .5em; }
.ticket .jp { text-align: center; font-size: 13px; letter-spacing: .4em; color: #646b82; margin-bottom: 16px; }
.ticket dl { display: grid; grid-template-columns: 5.6em 1fr; gap: 6px 8px; margin: 0; font-size: 15px; border-top: 2px dashed #c9c3b8; border-bottom: 2px dashed #c9c3b8; padding: 14px 0; }
.ticket dt { color: #646b82; }
.ticket dd { margin: 0; }
.ticket .why { list-style: none; padding: 0; margin: 0; }
.ticket .why li::before { content: "☑ "; color: #dc6a70; }
.ticket .why li.no::before { content: "☐ "; color: #9aa0b3; }
.ticket .fine { font-size: 12px; color: #9aa0b3; margin: 12px 0 0; }
.ticket .seal { position: absolute; right: 24px; bottom: 64px; width: 74px; height: 74px; border-radius: 50%; border: 3px solid #dc6a70; color: #dc6a70; display: grid; place-items: center; text-align: center; font-size: 12px; line-height: 1.2; transform: rotate(-16deg); opacity: .85; }
.ticket .seal b { display: block; font-size: 19px; letter-spacing: .1em; }
.ticket .close { position: absolute; top: -14px; right: -14px; }
dialog[open] .ticket { animation: printout .55s cubic-bezier(.3,1.4,.5,1); }
@keyframes printout { from { transform: translateY(40px) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 指针卡片（首页与 /cursors/ 共用） ---------- */
.cursors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cur {
  background: var(--card); border: 2px solid var(--ink); border-radius: 20px; padding: 16px 10px 14px; text-align: center; position: relative;
  transition: transform .25s cubic-bezier(.3,1.6,.5,1), background-color .2s; box-shadow: var(--shadow);
}
.cur:hover { transform: translateY(-6px) rotate(-1.5deg); background: var(--blue-3); }
.cur .pv { height: 78px; display: grid; place-items: center; }
.cur .pv svg { width: 64px; height: 64px; overflow: visible; }
.cur b { display: block; font-size: 16px; margin-top: 6px; }
.cur code { font-family: var(--f-en); font-size: 12px; color: var(--ink-2); }
.cur .try { position: absolute; top: 8px; right: 10px; font-family: var(--f-hand); font-size: 17px; color: var(--ink-3); transform: rotate(8deg); }
.cur.live { cursor: none; }
.cur-ghost { position: fixed; left: 0; top: 0; width: 32px; height: 32px; pointer-events: none; z-index: 200; display: none; }
.cur-ghost.on { display: block; }
.cur-ghost svg { width: 32px; height: 32px; overflow: visible; }
/* 动态指针的动画（预览与"跟随指针"共用） */
.anim .a-bob { animation: a-bob 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.anim .a-wig { animation: a-wig 1.1s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 90%; }
.anim .a-spin { animation: a-spin 2.4s linear infinite; transform-box: fill-box; transform-origin: center; }
.anim .a-blink { animation: a-blink 3.2s steps(1) infinite; }
.anim .a-z { animation: a-z 2s ease-in-out infinite; transform-box: fill-box; }
.anim .a-z2 { animation: a-z 2s ease-in-out -1s infinite; transform-box: fill-box; }
.anim .a-pulse { animation: a-pulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes a-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1.6px); } }
@keyframes a-wig { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes a-spin { to { transform: rotate(360deg); } }
@keyframes a-blink { 0%, 92% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes a-z { 0% { transform: translate(0,0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(3px,-5px); opacity: 0; } }
@keyframes a-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; border: 0; background: none; padding: 0; }
.switch .knob { width: 52px; height: 30px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper-2); position: relative; transition: background-color .25s; flex: none; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.switch[aria-checked="true"] .knob { background: var(--blue); }
.switch[aria-checked="true"] .knob::after { transform: translateX(22px); }
html.cur-on, html.cur-on body { cursor: var(--cur-default); }
html.cur-on a, html.cur-on button, html.cur-on .st, html.cur-on [role="switch"], html.cur-on summary, html.cur-on label { cursor: var(--cur-pointer); }
html.cur-on .btn[disabled] { cursor: var(--cur-no); }
html.cur-on .cur.live { cursor: none; }

/* ---------- 视频卡（B 站播放器延迟加载） ---------- */
.screen { position: relative; aspect-ratio: 16 / 9; border: 2.5px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: #23294a; }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.facade { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; color: #fff; overflow: hidden; font-family: var(--f-cn);
  background:
    radial-gradient(60% 80% at 30% 0%, rgba(255, 200, 220, .55), transparent 60%),
    radial-gradient(50% 80% at 75% 0%, rgba(170, 210, 255, .55), transparent 60%),
    linear-gradient(180deg, #2b2f5c, #3d3a6e 60%, #6a5288); }
.facade .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.facade .beam { position: absolute; top: -10%; width: 26%; height: 120%; background: linear-gradient(180deg, rgba(255,255,255,.35), transparent 80%); filter: blur(6px); transform-origin: top center; animation: beam 5s ease-in-out infinite; }
.facade .b1 { left: 14%; transform: rotate(14deg); }
.facade .b2 { right: 14%; transform: rotate(-14deg); animation-delay: -2.5s; }
@keyframes beam { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
.facade .stage-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 24%; background: linear-gradient(180deg, #4b3f73, #2a2550); border-top: 2px solid rgba(255,255,255,.4); }
.facade .ttl { position: absolute; left: 6%; right: 6%; top: 22%; text-align: center; }
.facade .ttl .jp { display: block; font-size: clamp(22px, 3.4vw, 42px); font-weight: 700; letter-spacing: .06em; line-height: 1.3; text-shadow: 0 3px 0 #e889a8, 0 0 24px rgba(255,180,210,.6); }
.facade .ttl .cn { display: block; font-size: clamp(13px, 1.6vw, 18px); opacity: .9; margin-top: 4px; letter-spacing: .2em; }
.facade .play { white-space: nowrap; position: absolute; left: 50%; top: 70%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; padding: 9px 20px 9px 12px; border-radius: 999px; background: #fff; color: #2b2f5c; font-size: 15px; box-shadow: 0 4px 0 #e889a8; transition: transform .2s; }
.facade:hover .play { transform: translate(-50%, -54%); }
.facade .play i { width: 30px; height: 30px; border-radius: 50%; background: #e889a8; display: grid; place-items: center; }
.facade .note { position: absolute; font-size: 22px; opacity: .8; animation: floatnote 6s ease-in-out infinite; }
@keyframes floatnote { 0%,100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-12px) rotate(8deg); } }

/* ---------- 奥斯特拉之庭（首页预告区与 /austra/ 共用） ---------- */
.night {
  --a-ink: #eef0fa; --a-ink-2: #b9bfd8; --gold: #f2d38c;
  position: relative; color: var(--a-ink); overflow: hidden; isolation: isolate;
  background: radial-gradient(80% 60% at 50% 30%, #2d3570 0%, transparent 70%), linear-gradient(180deg, #0c1024, #161c3c 50%, #1d2148);
}
.starfield { position: absolute; inset: 0; z-index: -1; }
.night .sign { --line: var(--gold); background: #1a2044; border-color: var(--gold); color: var(--a-ink); box-shadow: 0 0 0 6px rgba(242,211,140,.08), 0 20px 50px -20px #000; }
.night .sign-badge { background: #1a2044; }
.night .sign-badge small, .night .sign-name p { color: var(--a-ink-2); }
.night .sign-band { color: #1a2044; }
.logotype { text-align: center; position: relative; }
.logotype .arc { display: block; width: min(420px, 80%); margin: 0 auto -6px; overflow: visible; }
.logotype .arc path { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .55; stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 3s cubic-bezier(.4,0,.2,1) .2s; }
.in .logotype .arc path, .logotype.in .arc path { stroke-dashoffset: 0; }
.logotype .arc circle { fill: #fff9e6; filter: url(#glow); }
.logotype .arc circle.big { animation: twinkle 3.5s ease-in-out infinite; }
.logotype .script { display: inline-flex; flex-direction: column; align-items: center; font-family: var(--f-script); font-weight: 400; line-height: 1; margin-top: -4px; }
.logotype .script span { padding: .08em .3em .22em; background: linear-gradient(180deg, #fff8e2 15%, #f2d38c 60%, #c99b54 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 20px rgba(242,211,140,.3)); }
.logotype .niwa { font-size: clamp(36px, 4.6vw, 60px); align-self: flex-start; margin: 0 0 -.42em -.2em; }
.logotype .aus { font-size: clamp(68px, 10.5vw, 140px); }
.logotype .jp { font-family: var(--f-jp); font-size: clamp(14px, 1.5vw, 18px); letter-spacing: .7em; padding-left: .7em; color: var(--gold); opacity: .9; margin-top: 4px; }
.logotype .jp::before, .logotype .jp::after { content: ""; display: inline-block; width: 40px; height: 1px; background: currentColor; vertical-align: middle; margin: 0 16px; opacity: .55; }
.coming { text-align: center; margin-top: 36px; }
.coming .yr { font-family: var(--f-art-en); font-size: clamp(30px, 4vw, 46px); letter-spacing: .3em; padding-left: .3em; color: var(--a-ink); line-height: 1; }
.coming .cs { font-family: var(--f-art-en); font-size: clamp(13px, 1.5vw, 16px); letter-spacing: .7em; padding-left: .7em; color: var(--a-ink-2); margin-top: 12px; }
.coming .whisper { font-size: 13px; color: var(--a-ink-2); opacity: .7; margin-top: 18px; letter-spacing: .1em; }
.coming .whisper::before { content: "※ "; }

/* ---------- 施工中卡片 ---------- */
.wip { position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: 20px; padding: 40px 22px 22px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; display: block; }
.wip::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; border-bottom: 2px solid var(--ink); background: repeating-linear-gradient(-45deg, var(--amber-2) 0 12px, var(--pink) 12px 24px); }
.wip .yr { font-family: var(--f-en); font-weight: 700; font-size: 34px; line-height: 1; color: var(--ink-2); }
.wip h3 { margin: 10px 0 4px; font-size: 21px; }
.wip p { margin: 0; color: var(--ink-2); font-size: 15px; }
.wip .tag { margin-top: 16px; }

/* ---------- 页脚 ---------- */
.foot { padding: 34px 0 40px; display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.foot .links { display: flex; flex-wrap: wrap; gap: 10px; }
.foot .colophon { font-family: var(--f-en); font-size: 12px; letter-spacing: .08em; }
.foot .colophon span { font-family: var(--f-cn); letter-spacing: .1em; }
footer.site { border-top: 2px dashed var(--rule); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 6px 8px; font-size: 14px; }
  .cursors { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  :root { --wrap: min(1160px, 100% - 32px); }
  .menu-btn { display: block; }
  .nav { position: absolute; top: 62px; right: 16px; flex-direction: column; gap: 2px; padding: 10px; background: var(--card); border: 2px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); min-width: 170px;
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { font-size: 16px; padding: 8px 14px; }
  .time-btn .clock { display: none; }
  .page-head { padding: 110px 0 90px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand small { display: none; }
  .time-btn .txt { display: none; }
  .time-btn { padding: 4px; }
  .sign { column-gap: 12px; }
  .sign-badge { width: 48px; height: 48px; margin: 12px 0 10px 12px; border-width: 3px; }
  .sign-badge b { font-size: 18px; }
  .sign-band { font-size: 13px; padding: 6px 12px; }
  .cursors { grid-template-columns: repeat(2, 1fr); }
  .lb figcaption { padding: 10px 12px; }
  .lb .acts { width: 100%; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .cloud { animation: none; }
}
.page-head .cloud { opacity: .55; }

/* ---------- 题词（代替说明文字） ---------- */
.chap-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 48px; }
.chap-head .sign { margin-bottom: 0; flex: 0 1 660px; }
.verse { margin: 0; color: var(--ink-2); flex: none; }
.verse blockquote { margin: 0; font-size: 21px; line-height: 1.9; letter-spacing: .16em; color: var(--ink); }
.verse figcaption { font-size: 13px; letter-spacing: .14em; color: var(--ink-3); }
.verse figcaption::before { content: "—— "; }
.verse.v { display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 12px; padding-right: 6px; }
.verse.v blockquote { writing-mode: vertical-rl; position: relative; }
.verse.v blockquote::before { content: ""; position: absolute; right: -10px; top: 2px; bottom: 2px; border-right: 1.5px solid var(--rule); }
.verse.v figcaption { writing-mode: vertical-rl; }
.verse.h { text-align: right; max-width: 36em; padding-top: 14px; }
.verse.h blockquote { font-family: var(--f-art-en); font-size: 19px; letter-spacing: .06em; line-height: 1.7; }
.verse.h figcaption { margin-top: 8px; }
.verse.inline { text-align: left; }
.verse.inline blockquote { font-size: 19px; }
.page-head .verse blockquote { color: var(--ink); }
@media (max-width: 960px) {
  .chap-head { flex-direction: column; gap: 22px; }
  .chap-head .sign { flex: none; }
  .verse.v { flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 0 0 16px; border-left: 1.5px solid var(--rule); }
  .verse.v blockquote, .verse.v figcaption { writing-mode: horizontal-tb; }
  .verse.v blockquote::before { display: none; }
  .verse blockquote { font-size: 18px; letter-spacing: .1em; }
  .verse.h { text-align: left; padding: 0 0 0 16px; border-left: 1.5px solid var(--rule); }
}
.facade.has-cover .cover { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.facade.has-cover:hover .cover { transform: scale(1.03); }
.facade.has-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(30,34,60,.45)); pointer-events: none; }
.facade.has-cover .play { left: 22px; top: auto; bottom: 20px; transform: none; z-index: 1; }
.facade.has-cover:hover .play { transform: translateY(-3px); }
.cur .pv { height: 100px; }
.cur .pv img { width: 96px; height: 96px; image-rendering: pixelated; }
.cur code { font-family: var(--f-cn); }
.cur-ghost { width: 48px; height: 48px; }
.cur-ghost img { width: 48px; height: 48px; image-rendering: pixelated; display: block; }
.badge-alpha { display: inline-block; font-family: var(--f-en); font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 0 9px; border-radius: 999px; border: 1.5px solid var(--rose); color: var(--rose); vertical-align: middle; line-height: 1.7; }
.pack-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 18px; }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; background: #0c0f1c; object-fit: contain; }
