:root {
  --ink: #f8f4ec;
  --dim: rgba(248, 244, 236, .84);
  --panel: rgba(12, 15, 20, .62);
  --line: rgba(245, 240, 231, .28);
  --red: #d43522;
  --gold: #f4c96b;
  --serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", "Noto Serif SC", "SimSun", serif;
}
html, body { margin: 0; height: 100%; background: #0d1015; overflow: hidden; -webkit-user-select: none; user-select: none; touch-action: none; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; cursor: crosshair; }
#ui { position: fixed; inset: 0; pointer-events: none; color: var(--ink); font: 14px/1.6 var(--serif); text-shadow: 0 1px 4px rgba(0, 0, 0, .92), 0 0 12px rgba(0, 0, 0, .62); }
#ui::before { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 175px; background: linear-gradient(to top, rgba(8, 10, 15, .58) 0%, rgba(8, 10, 15, .24) 55%, rgba(8, 10, 15, 0) 100%); pointer-events: none; z-index: 0; }
#ui > * { z-index: 1; }
#ui button, #ui input, .minimap, .bigmap { pointer-events: auto; }
#ui button { font: inherit; color: var(--dim); background: none; border: 0; padding: 2px 9px; cursor: pointer; letter-spacing: .08em; text-shadow: inherit; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
#ui button:hover { color: var(--ink); }
#ui button.on { color: var(--ink); border-bottom-color: var(--red); }
.fatal { position: fixed; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; text-align: center; }

.head { position: absolute; left: 26px; top: 22px; display: flex; gap: 14px; align-items: center; }
.seal { width: 44px; height: 44px; background: var(--red); color: #fff8ee; display: grid; place-items: center; font-size: 25px; font-weight: 700; border-radius: 3px; text-shadow: none; box-shadow: 0 2px 16px rgba(212, 53, 34, .4); }
.title { font-size: 32px; font-weight: 700; letter-spacing: .28em; line-height: 1.1; }
.subtitle { font-size: 13px; letter-spacing: .42em; color: var(--dim); margin-top: 2px; }

.minimap { position: absolute; right: 22px; top: 22px; width: 220px; cursor: pointer; }
.minimap canvas { width: 220px; height: 220px; display: block; border-radius: 50%; box-shadow: 0 0 0 1px var(--line), 0 6px 28px rgba(0, 0, 0, .5); opacity: .94; }
.coord { text-align: center; font-size: 12px; color: var(--dim); margin-top: 8px; letter-spacing: .08em; }

.bigmap { position: absolute; inset: 0; display: none; place-items: center; background: rgba(10, 12, 16, .76); backdrop-filter: blur(6px); flex-direction: column; z-index: 20; }
.bigmap.on { display: grid; }
.bigmap canvas { box-shadow: 0 10px 60px rgba(0, 0, 0, .65); cursor: crosshair; max-width: calc(100vw - 40px); border: 1px solid var(--line); }
.bigmap-hint { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--dim); letter-spacing: .2em; }

.places { position: absolute; left: 22px; bottom: 22px; max-width: min(390px, 31vw); display: flex; flex-wrap: wrap; gap: 2px 2px; }
.timebox { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); text-align: center; width: min(440px, 42vw); }
.clock { font-size: 22px; letter-spacing: .2em; }
.slider { width: 100%; appearance: none; -webkit-appearance: none; height: 1px; background: var(--line); outline: none; margin: 12px 0 8px; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px rgba(244, 201, 107, .85); cursor: pointer; }
.slider::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px rgba(244, 201, 107, .85); cursor: pointer; }
.presets { display: flex; justify-content: center; flex-wrap: nowrap; white-space: nowrap; gap: 2px; }
.presets button { padding: 2px 6px !important; font-size: 13px; letter-spacing: .05em; }
.controls { position: absolute; right: 22px; bottom: 22px; text-align: right; }
.controls .row { margin-top: 2px; }
.lbl { color: var(--dim); font-size: 12px; letter-spacing: .28em; margin-right: 4px; }
.attr { position: absolute; right: 22px; bottom: 4px; font-size: 10px; color: rgba(245, 240, 231, .38); letter-spacing: .04em; }

.hint { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); padding: 8px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; letter-spacing: .3em; transition: opacity .6s; backdrop-filter: blur(4px); }
.hint.off { opacity: 0; }
.cross { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: rgba(255, 255, 255, .75); box-shadow: 0 0 4px rgba(0, 0, 0, .7); opacity: 0; transition: opacity .3s; }
body.locked .cross { opacity: 1; }
.help { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(540px, 86vw); padding: 22px 28px; background: rgba(14, 17, 22, .86); border: 1px solid var(--line); border-radius: 6px; backdrop-filter: blur(8px); display: none; z-index: 15; }
.help.on { display: block; }
.help h3 { margin: 0 0 8px; letter-spacing: .4em; font-size: 18px; }
.help p { margin: 6px 0; }
.help b { color: var(--gold); font-weight: 600; }
.dim { color: var(--dim); }

.stick { position: absolute; width: 110px; height: 110px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); display: none; }
.stick.on { display: block; }
.stick i { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; background: rgba(255, 255, 255, .28); }

.veil { position: absolute; inset: 0; background: #0d1015; display: grid; place-items: center; transition: opacity 1.1s; z-index: 30; }
.veil.gone { opacity: 0; pointer-events: none; }
.veil-title { font-size: 62px; font-weight: 700; letter-spacing: .5em; text-indent: .5em; text-align: center; }
.veil-sub { text-align: center; color: var(--dim); letter-spacing: .38em; margin-top: 8px; }
.veil-bar { width: 260px; height: 1px; background: var(--line); margin: 26px auto 0; }
.veil-bar i { display: block; height: 1px; width: 0; background: var(--gold); box-shadow: 0 0 10px var(--gold); transition: width .4s; }

body.bare #ui > :not(.cross):not(.veil) { display: none; }
body.locked .places, body.locked .controls, body.locked .timebox, body.locked .head, body.locked .attr { opacity: .0; transition: opacity .5s; }
.places, .controls, .timebox, .head, .attr { transition: opacity .5s; }
.head::after { content: none; }
@media (max-width: 760px), (max-height: 480px) {
  .head { left: 12px; top: 12px; gap: 10px; pointer-events: auto; cursor: pointer; }
  .head::after { content: "菜单"; font-size: 12px; letter-spacing: .3em; padding: 3px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
  body.menu .head::after { content: "收起"; }
  .seal { width: 34px; height: 34px; font-size: 20px; } .title { font-size: 22px; letter-spacing: .2em; } .subtitle, .attr { display: none; }
  .minimap, .minimap canvas { width: 96px; height: 96px; } .minimap { width: 96px; right: 12px; top: 12px; } .coord { font-size: 10px; margin-top: 4px; }
  .hint { top: auto; bottom: 18px; font-size: 12px; letter-spacing: .15em; white-space: nowrap; }
  .places, .timebox, .controls { display: none; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; backdrop-filter: blur(6px); pointer-events: auto; }
  body.menu .places { display: flex; left: 12px; right: 12px; top: 140px; bottom: auto; max-width: none; font-size: 13px; }
  body.menu .timebox { display: block; left: 12px; right: 12px; bottom: 104px; transform: none; width: auto; }
  body.menu .controls { display: block; left: 12px; right: 12px; bottom: 12px; text-align: left; font-size: 13px; }
  body.menu .hint { display: none; }
}
@media (max-height: 480px) {
  body.menu .places { top: 56px; right: 124px; }
  body.menu .timebox { left: 12px; right: 50%; bottom: 10px; margin-right: 6px; }
  body.menu .controls { left: 50%; right: 12px; bottom: 10px; margin-left: 6px; }
}

.labels { position: absolute; inset: 0; overflow: hidden; }
.label { position: absolute; left: 0; top: 0; display: none; padding-bottom: 16px; font-size: 13px; font-weight: 600; letter-spacing: .24em; white-space: nowrap; color: #fffaf0; text-shadow: 0 1px 4px rgba(0, 0, 0, .95), 0 0 12px rgba(0, 0, 0, .82); will-change: transform; }
.label::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 13px; background: rgba(245, 240, 231, .7); }
body.locked .labels { opacity: .0; }

/* Shaxian 3D Innovations: Drone Tour Caption Banner & Cultural Heritage/Snack Guide Drawer */
.tour-banner { position: absolute; left: 50%; top: 82px; transform: translateX(-50%) translateY(-12px); max-width: min(540px, 50vw); padding: 10px 24px; background: rgba(14, 17, 22, .78); border: 1px solid rgba(244, 201, 107, .45); border-radius: 26px; backdrop-filter: blur(8px); text-align: center; opacity: 0; pointer-events: none; transition: opacity .45s, transform .45s; z-index: 12; }
.tour-banner.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.tour-title { font-size: 15px; font-weight: 700; color: var(--gold); letter-spacing: .16em; }
.tour-desc { font-size: 12px; color: var(--ink); opacity: .88; letter-spacing: .06em; margin-top: 2px; }

.guide { position: absolute; left: 24px; top: 92px; bottom: 204px; width: min(360px, 84vw); background: rgba(14, 17, 22, .92); border: 1px solid var(--line); border-radius: 10px; backdrop-filter: blur(10px); display: none; flex-direction: column; pointer-events: auto; z-index: 18; box-shadow: 0 12px 44px rgba(0, 0, 0, .65); overflow: hidden; }
.guide.on { display: flex; }
.guide-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 700; letter-spacing: .14em; color: var(--gold); font-size: 14px; }
.guide-close { font-size: 16px; padding: 0 6px !important; }
.guide-list { overflow-y: auto; padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.guide-card { padding: 10px 12px; border: 1px solid rgba(245, 240, 231, .14); border-radius: 8px; background: rgba(255, 250, 240, .04); }
.gc-top { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.gc-tag { font-size: 10px; padding: 1px 6px; border-radius: 4px; background: var(--red); color: #fff8ee; letter-spacing: .08em; text-shadow: none; }
.gc-desc { margin: 5px 0 4px; font-size: 12px; color: var(--dim); line-height: 1.5; }
.gc-snack { font-size: 11px; color: var(--gold); margin-bottom: 6px; }
.gc-acts { display: flex; gap: 8px; }
.gc-acts button { font-size: 12px !important; padding: 3px 10px !important; border: 1px solid var(--line) !important; border-radius: 14px; color: var(--ink) !important; background: rgba(255, 255, 255, .07) !important; }
.gc-acts button:hover { border-color: var(--gold) !important; color: var(--gold) !important; }
