/* ==========================================================================
   一镜到底 / Powers of Ten
   ========================================================================== */

:root {
  --bg: #030609;
  --text: #eae7df;
  --text-bright: #faf7ef;
  --muted: #929ba2;
  --line: rgba(235, 240, 242, .12);
  --line-soft: rgba(235, 240, 242, .065);
  --accent: #d9c3a0;
  --cool: #9dbdd3;
  --sans: "Avenir Next", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Times New Roman", serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", "Liberation Mono", Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button { color: inherit; font: inherit; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 1px solid rgba(217,195,160,.9); outline-offset: 4px; }
::selection { color: #16120b; background: var(--accent); }
svg { display: block; }

/* Loading ------------------------------------------------------------------ */

.zoom-loading {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: #030609; transition: opacity .7s var(--ease), visibility .7s;
}
.zoom-loading.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.zoom-loading-mark { position: relative; width: 56px; height: 56px; display: grid; place-items: center; }
.zoom-loading-mark i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--cool); box-shadow: 0 0 16px rgba(157,189,211,.8); }
.zoom-loading-mark i:nth-child(1) { animation: zoom-orbit 2.8s linear infinite; }
.zoom-loading-mark i:nth-child(2) { animation: zoom-orbit 2.8s linear infinite reverse; animation-delay: -1s; opacity: .6; }
.zoom-loading-mark i:nth-child(3) { width: 3px; height: 3px; opacity: .4; }
@keyframes zoom-orbit { 0% { transform: rotate(0) translateX(23px); } 100% { transform: rotate(360deg) translateX(23px); } }
.zoom-loading > span { font-family: var(--mono); font-size: 8px; letter-spacing: .18em; color: rgba(190,186,172,.7); }
.zoom-loading > b { font-family: var(--mono); font-size: 7px; font-weight: 400; color: rgba(157,189,211,.65); }

/* Scene -------------------------------------------------------------------- */

.zoom-scene { position: fixed; inset: 0; z-index: 0; background: #030609; }
.zoom-scene canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.zoom-scene canvas.is-dragging { cursor: grabbing; }
.zoom-vignette {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 46%, transparent 32%, rgba(3,6,9,.24) 100%),
    linear-gradient(90deg, rgba(3,6,9,.66) 0%, transparent 31%, transparent 67%, rgba(3,6,9,.6) 100%),
    linear-gradient(0deg, rgba(3,6,9,.72) 0%, transparent 22%);
}

/* Topbar ------------------------------------------------------------------- */

.zoom-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  height: 82px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 34px; pointer-events: none;
}
.zoom-brand { display: flex; align-items: center; gap: 12px; pointer-events: auto; }
.zoom-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(157,189,211,.32); border-radius: 50%;
  color: rgba(196,220,232,.96);
}
.zoom-mark svg { width: 30px; height: 30px; }
.zoom-brand-copy { display: flex; flex-direction: column; gap: 4px; }
.zoom-brand-copy > span { font-size: 15px; font-weight: 500; letter-spacing: .09em; color: rgba(244,239,228,.95); }
.zoom-brand-copy small { font-family: var(--mono); font-size: 6px; letter-spacing: .2em; color: rgba(145,157,160,.8); }
.zoom-status {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 7px; letter-spacing: .1em;
  color: rgba(160,166,163,.75); white-space: nowrap;
}
.zoom-status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cool); box-shadow: 0 0 10px rgba(157,189,211,.7); }
.zoom-status i { width: 26px; height: 1px; background: rgba(235,240,242,.15); }
.zoom-status span:last-child { color: rgba(201,211,206,.84); }
.zoom-actions { display: flex; align-items: center; gap: 5px; pointer-events: auto; }
.zoom-actions a {
  display: flex; align-items: center; gap: 6px; height: 33px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(5,9,13,.52);
  font-family: var(--mono); font-size: 7.5px; color: rgba(211,205,193,.8);
  backdrop-filter: blur(13px); transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.zoom-actions a span { opacity: .55; }
.zoom-actions a:hover { border-color: rgba(157,189,211,.5); color: var(--text-bright); background: rgba(15,22,25,.7); }

/* Copy --------------------------------------------------------------------- */

.zoom-copy { position: fixed; left: 44px; top: 126px; z-index: 8; width: 420px; max-width: 44vw; pointer-events: none; }
.zoom-kicker { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 7px; letter-spacing: .16em; color: rgba(163,195,211,.8); }
.zoom-kicker i { width: 5px; height: 5px; border-radius: 50%; background: var(--cool); box-shadow: 0 0 10px rgba(157,189,211,.7); }
.zoom-power {
  margin-top: 17px;
  font-family: var(--mono);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 300;
  letter-spacing: -.02em;
  color: rgba(187,211,222,.9);
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.zoom-copy h1 {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: clamp(43px, 4.5vw, 66px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: .03em;
  color: rgba(245,241,231,.97);
}
.zoom-copy > p { margin: 15px 0 0; max-width: 345px; font-size: 11.5px; line-height: 1.82; color: rgba(151,160,163,.92); }
.zoom-meta {
  display: flex; align-items: center; gap: 13px; margin-top: 18px;
  font-family: var(--mono); font-size: 7.5px; letter-spacing: .04em; color: rgba(180,177,165,.82);
}
.zoom-meta span + span::before { content: "·"; margin-right: 13px; color: rgba(109,120,123,.7); }
.zoom-hint { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-family: var(--mono); font-size: 6.5px; letter-spacing: .05em; color: rgba(116,126,130,.7); }
.zoom-hint i { width: 17px; height: 1px; background: rgba(157,189,211,.4); }

/* Panel -------------------------------------------------------------------- */

.zoom-panel {
  position: fixed; top: 104px; right: 32px; bottom: 142px; z-index: 20;
  width: 342px; padding: 18px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 3px;
  background: rgba(6,10,15,.76);
  box-shadow: 0 22px 70px rgba(0,0,0,.28);
  backdrop-filter: blur(22px) saturate(.9); -webkit-backdrop-filter: blur(22px) saturate(.9);
  scrollbar-width: thin; scrollbar-color: rgba(157,189,211,.26) transparent;
  pointer-events: auto;
}
.zoom-panel-head { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 6.5px; letter-spacing: .12em; color: rgba(145,152,152,.7); }
.zoom-panel h2 { margin: 13px 0 0; font-family: var(--serif); font-size: 29px; font-weight: 400; line-height: 1.16; color: rgba(247,242,231,.96); }
.zoom-panel-copy { margin: 12px 0 0; font-size: 10.5px; line-height: 1.72; color: rgba(149,156,157,.9); }
.zoom-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 16px;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.zoom-stats div { display: flex; flex-direction: column; gap: 4px; padding: 9px 6px; border-bottom: 1px solid rgba(235,240,242,.035); }
.zoom-stats div:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--line-soft); }
.zoom-stats div:nth-last-child(-n+2) { border-bottom: 0; }
.zoom-stats span { font-family: var(--mono); font-size: 6px; letter-spacing: .05em; color: rgba(116,126,130,.86); }
.zoom-stats strong { font-family: var(--mono); font-size: 8.5px; font-weight: 400; color: rgba(225,220,209,.92); }
.zoom-facts { margin: 14px 0 0; padding: 0; list-style: none; }
.zoom-facts li { position: relative; padding: 0 0 9px 13px; font-size: 9.5px; line-height: 1.62; color: rgba(148,157,159,.88); }
.zoom-facts li::before { content: ""; position: absolute; left: 0; top: 6px; width: 4px; height: 4px; border-radius: 50%; background: rgba(157,189,211,.58); }
.zoom-disclaimer { margin: 11px 0 0; font-size: 8px; line-height: 1.6; color: rgba(102,112,116,.72); }

/* Timeline ----------------------------------------------------------------- */

.zoom-timeline {
  position: fixed; left: 26px; right: 26px; bottom: 20px; z-index: 30;
  display: grid; grid-template-columns: 185px minmax(0, 1fr) 150px;
  align-items: center; gap: 22px; min-height: 88px;
  padding: 12px 16px;
  border: 1px solid rgba(235,240,242,.14); border-radius: 3px;
  background: rgba(5,9,13,.78);
  box-shadow: 0 18px 60px rgba(0,0,0,.3);
  backdrop-filter: blur(20px) saturate(.9); -webkit-backdrop-filter: blur(20px) saturate(.9);
}
.zoom-now { display: flex; align-items: center; gap: 10px; }
.zoom-play {
  flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(157,189,211,.34); border-radius: 50%;
  background: rgba(157,189,211,.08); color: #c6dae3;
  transition: border-color .2s ease, background .2s ease;
}
.zoom-play:hover { border-color: rgba(157,189,211,.65); background: rgba(157,189,211,.14); }
.zoom-play svg { width: 19px; height: 19px; }
.zoom-pause-icon { display: none; }
.zoom-now.is-playing .zoom-play-icon { display: none; }
.zoom-now.is-playing .zoom-pause-icon { display: block; }
.zoom-now-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.zoom-now-copy span { font-family: var(--mono); font-size: 6.5px; letter-spacing: .09em; color: rgba(139,149,152,.85); }
.zoom-now-copy b { font-family: var(--mono); font-size: 9px; font-weight: 400; color: rgba(230,221,204,.92); white-space: nowrap; }

.zoom-track-wrap { position: relative; min-width: 0; padding-top: 20px; }
.zoom-ticks { position: absolute; left: 0; right: 0; top: 0; height: 17px; pointer-events: none; }
.zoom-tick {
  position: absolute; top: 0; transform: translateX(-50%); padding: 0; border: 0; background: transparent;
  font-family: var(--mono); font-size: 6.5px; letter-spacing: .04em; color: rgba(129,141,144,.72);
  white-space: nowrap; pointer-events: auto; transition: color .2s ease;
}
.zoom-tick::after { content: ""; display: block; width: 1px; height: 4px; margin: 3px auto 0; background: rgba(189,196,193,.24); }
.zoom-tick:hover, .zoom-tick.is-active { color: rgba(207,226,234,.94); }
.zoom-tick.is-active::after { background: rgba(157,189,211,.85); }

#zoom-range { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; margin: 0; background: transparent; cursor: pointer; }
#zoom-range::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(99,126,138,.55), rgba(157,189,211,.6) 55%, rgba(217,195,160,.62)); }
#zoom-range::-moz-range-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(99,126,138,.55), rgba(157,189,211,.6) 55%, rgba(217,195,160,.62)); }
#zoom-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 11px; height: 11px; margin-top: -4.5px;
  border: 1px solid rgba(14,16,16,.7); border-radius: 50%;
  background: #cfe3e9; box-shadow: 0 0 0 4px rgba(157,189,211,.12), 0 0 15px rgba(157,189,211,.45);
}
#zoom-range::-moz-range-thumb { width: 10px; height: 10px; border: 1px solid rgba(14,16,16,.7); border-radius: 50%; background: #cfe3e9; box-shadow: 0 0 0 4px rgba(157,189,211,.12); }
.zoom-track-meta { display: flex; justify-content: space-between; margin-top: 3px; font-family: var(--mono); font-size: 6.5px; letter-spacing: .05em; color: rgba(107,120,123,.68); }
.zoom-actions-bottom { display: flex; justify-content: flex-end; }
.zoom-reset {
  height: 34px; padding: 0 11px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 2px;
  background: rgba(255,255,255,.018);
  font-family: var(--mono); font-size: 7.5px; color: rgba(207,203,192,.86);
}
.zoom-reset:hover { border-color: rgba(157,189,211,.45); background: rgba(157,189,211,.07); color: var(--text-bright); }

/* Flash -------------------------------------------------------------------- */

.zoom-flash { position: fixed; inset: 0; z-index: 40; background: #dbe9ec; opacity: 0; pointer-events: none; }
.zoom-flash.is-active { animation: zoom-flash .55s var(--ease); }
@keyframes zoom-flash { 0% { opacity: .2; } 100% { opacity: 0; } }

/* Responsive --------------------------------------------------------------- */

@media (max-width: 1120px) {
  .zoom-copy { left: 30px; width: 360px; }
  .zoom-panel { right: 22px; width: 320px; }
  .zoom-topbar { padding: 0 24px; }
  .zoom-timeline { left: 18px; right: 18px; grid-template-columns: 170px minmax(0, 1fr) 140px; gap: 15px; }
}

@media (max-width: 900px) {
  .zoom-topbar { height: 66px; padding: 0 14px; }
  .zoom-mark { width: 35px; height: 35px; }
  .zoom-mark svg { width: 25px; height: 25px; }
  .zoom-brand-copy > span { font-size: 13px; }
  .zoom-brand-copy small { font-size: 5px; }
  .zoom-status { display: none; }
  .zoom-actions a { height: 30px; padding: 0 8px; font-size: 6.5px; }
  .zoom-actions a span { display: none; }
  .zoom-copy { top: 86px; left: 18px; width: min(325px, 84vw); max-width: none; }
  .zoom-copy h1 { font-size: 44px; }
  .zoom-power { font-size: 37px; margin-top: 13px; }
  .zoom-copy > p { max-width: 295px; font-size: 10px; line-height: 1.72; }
  .zoom-meta { margin-top: 13px; font-size: 7px; }
  .zoom-hint { display: none; }
  .zoom-panel { display: none; }
  .zoom-timeline {
    left: 10px; right: 10px; bottom: 10px;
    grid-template-columns: 1fr auto; grid-template-areas: "track track" "now actions";
    gap: 10px 14px; min-height: 0; padding: 10px 12px;
  }
  .zoom-track-wrap { grid-area: track; padding-top: 18px; }
  .zoom-now { grid-area: now; }
  .zoom-actions-bottom { grid-area: actions; }
  .zoom-play { width: 38px; height: 38px; }
  .zoom-play svg { width: 17px; height: 17px; }
  .zoom-tick { font-size: 5.8px; }
  .zoom-tick:nth-child(even) { display: none; }
  .zoom-now-copy b { font-size: 8px; }
  .zoom-track-meta { font-size: 5.8px; }
  .zoom-reset { height: 31px; padding: 0 9px; font-size: 7px; }
}

@media (max-width: 560px) {
  .zoom-copy { top: 78px; width: min(290px, 82vw); }
  .zoom-copy h1 { font-size: 38px; }
  .zoom-power { font-size: 32px; }
  .zoom-copy > p { max-width: 270px; font-size: 9.5px; }
  .zoom-actions a { font-size: 6.2px; padding: 0 7px; }
  .zoom-timeline { left: 6px; right: 6px; bottom: calc(6px + env(safe-area-inset-bottom, 0px)); padding: 9px 10px; }
  .zoom-tick { font-size: 5.2px; }
  .zoom-now-copy span { font-size: 6px; }
  .zoom-now-copy b { font-size: 7.5px; }
  .zoom-play { width: 35px; height: 35px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .zoom-topbar { height: 51px; }
  .zoom-copy { top: 60px; left: 14px; width: 270px; }
  .zoom-copy h1 { font-size: 32px; }
  .zoom-power { font-size: 28px; }
  .zoom-copy > p, .zoom-hint { display: none; }
  .zoom-meta { margin-top: 8px; }
  .zoom-timeline {
    left: 8px; right: 8px; bottom: 7px;
    grid-template-columns: 150px minmax(0, 1fr) auto; grid-template-areas: none;
    gap: 12px; min-height: 64px; padding: 7px 10px;
  }
  .zoom-track-wrap { grid-area: auto; padding-top: 15px; }
  .zoom-now { grid-area: auto; }
  .zoom-actions-bottom { grid-area: auto; }
}
