/* ============ 子页面（/maps/ /gallery/ /video/ /cursors/ /guides/ /austra/ /calculator/ 404） ============ */

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.toolbar .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar .count { font-size: 14px; color: var(--ink-2); }
.note { font-size: 14px; color: var(--ink-2); margin-top: 26px; }
.empty { border: 2px dashed var(--ink-3); border-radius: 20px; padding: 40px 24px; text-align: center; color: var(--ink-2); }
.empty svg { width: 70px; margin: 0 auto 10px; }

/* ---------- 图库：瀑布流 ---------- */
.masonry { columns: 4 240px; column-gap: 16px; }
.g-card { display: block; width: 100%; break-inside: avoid; margin: 0 0 16px; padding: 0; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--card); cursor: zoom-in; position: relative; box-shadow: var(--shadow); text-align: left; }
.g-card img { width: 100%; height: auto; background: var(--paper-2); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.g-card:hover img { transform: scale(1.03); }
.g-cap { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 12px; border-top: 2px solid var(--ink); background: var(--card); }
.g-cap b { font-size: 15px; }
.g-cap small { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.load-more { display: flex; justify-content: center; margin-top: 18px; }

/* ---------- 地图入口 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 2.5px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; transition: transform .3s cubic-bezier(.3,1.5,.5,1); }
a.card:hover { transform: translateY(-5px) rotate(-.6deg); }
.card .pic { aspect-ratio: 3 / 2; background: #24262c; border-bottom: 2.5px solid var(--ink); overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h2, .card h3 { margin: 0; font-size: 22px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card .tags-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.card.ghost { border-style: dashed; border-color: var(--ink-3); background: transparent; box-shadow: none; }
.card.ghost .pic { background: repeating-linear-gradient(-45deg, transparent 0 12px, var(--rule) 12px 24px); border-bottom: 2px dashed var(--ink-3); display: grid; place-items: center; color: var(--ink-3); font-size: 40px; }

/* ---------- 影像 ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 30px; }
.vcard h2 { margin: 16px 0 2px; font-size: 22px; }
.vcard .jp { margin: 0; color: var(--ink-2); font-size: 14px; }
.vcard .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }

/* ---------- 指针包 ---------- */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 50px; }
.faq div { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); }
.faq h3 { margin: 0 0 6px; font-size: 18px; }
.faq p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- 攻略 ---------- */
.guides-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.guides-list li a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 2px solid var(--ink); border-radius: 16px; background: var(--card); text-decoration: none; box-shadow: var(--shadow); }
.guides-list li a:hover { background: var(--blue-3); }
.guides-list b { flex: 1; }
.guides-list small { color: var(--ink-2); font-family: var(--f-en); }

/* ---------- 计算器 ---------- */
.calc-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.calc-art { width: 100%; max-width: 340px; }
.timeline { list-style: none; margin: 24px 0 24px; padding: 0 0 0 40px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; border-left: 4px dashed var(--amber); }
.timeline li { position: relative; margin-bottom: 18px; }
.timeline li::before { content: ""; position: absolute; left: -40px; top: 6px; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--ink); background: var(--card); }
.timeline li.now::before { background: var(--amber); }
.timeline b { font-family: var(--f-en); font-size: 20px; margin-right: 10px; }
.timeline span { color: var(--ink-2); }

/* ---------- 奥斯特拉之庭 预告页 ---------- */
body.teaser { background: #0c1024; }
body.teaser::before { display: none; }
.teaser-stage { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 110px 0 80px; }
.teaser-stage .letterbox { position: absolute; left: 0; right: 0; height: 6vh; background: #05070f; z-index: 2; pointer-events: none; }
.teaser-stage .letterbox.t { top: 0; } .teaser-stage .letterbox.b { bottom: 0; }
.teaser-lines { text-align: center; margin: 46px 0 0; color: var(--a-ink-2); font-size: clamp(16px, 1.8vw, 20px); line-height: 2.2; letter-spacing: .2em; }
.teaser-lines span { display: block; opacity: 0; transform: translateY(8px); transition: opacity 1.4s ease, transform 1.4s ease; }
.in .teaser-lines span { opacity: 1; transform: none; }
.in .teaser-lines span:nth-child(2) { transition-delay: 1.2s; }
.in .teaser-lines span:nth-child(3) { transition-delay: 2.4s; }
.teaser .coming { opacity: 0; transition: opacity 1.6s ease 3.4s; }
.in .coming, .teaser .in.coming { opacity: 1; }
.teaser-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.teaser-foot .btn { background: transparent; color: var(--a-ink); border-color: var(--gold); box-shadow: 0 3px 0 var(--gold); }
.teaser-foot .btn:hover { background: rgba(242,211,140,.1); }
.teaser footer.site { border-top-color: rgba(255,255,255,.1); }
.teaser .foot { color: #9aa0b3; }
.teaser .foot .tag { background: transparent; border-color: rgba(242,211,140,.5); color: #eef0fa; }
html[data-lock] .time-btn { display: none; }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 140px 0 60px; }
.lost .sign { margin: 0 auto 26px; text-align: left; }

@media (max-width: 960px) {
  .calc-grid { grid-template-columns: 1fr; gap: 30px; }
  .calc-art { margin: 0 auto; max-width: 260px; }
  .videos { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .masonry { columns: 2 150px; column-gap: 10px; }
  .g-card { margin-bottom: 10px; border-radius: 12px; }
  .g-cap { padding: 6px 9px; }
  .g-cap small { display: none; }
  .g-cap b { font-size: 13px; }
  .cards { grid-template-columns: 1fr; }
}

/* ---------- 作品详情（/works/…） ---------- */
.vcard h2 a { text-decoration: none; }
.vcard h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.work-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; }
.work-meta .tags-row { display: flex; flex-wrap: wrap; gap: 6px; }
.work-h { margin: 56px 0 18px; font-size: 24px; letter-spacing: .1em; }
.viewer { position: relative; border: 2.5px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
  background: radial-gradient(ellipse at 50% 40%, #2c3456, #121626 75%); min-height: 380px; }
.viewer .turn { display: grid; grid-template-columns: repeat(4, 1fr); }
.viewer .turn img { width: 100%; height: auto; background: transparent; }
.viewer.is-3d .turn { display: none; }
.viewer model-viewer { display: block; width: 100%; height: min(70vh, 620px); --poster-color: transparent; background: transparent; }
.viewer .load-3d { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); }
.viewer .load-3d:hover { transform: translate(-50%, -2px); }
@media (max-width: 560px) {
  .viewer .turn { grid-template-columns: repeat(2, 1fr); }
}
.viewer:not(.is-3d) { background: #e7e7ea; min-height: 0; }
.viewer:not(.is-3d) .turn { padding-bottom: 70px; }
