/* ══════════════════════════════════════════════════════════
   Boot / 启动加载页
   形式照 rhine-lab-art src/boot/boot.css：
   品牌字标左上 / 扫描环居中 / 底部状态条 / 右下 powered
   配色换成我们的深色 + 暖金
   ══════════════════════════════════════════════════════════ */

#boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #060807;
  color: #eef1ec;
  overflow: hidden;
  font-family: var(--mono);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

#boot[data-state="done"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 舞台：1920×1080 逻辑尺寸等比缩放（原站同款做法） */
.boot-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

/* ── 背景几何 ── */
.boot-bg {
  position: absolute;
  inset: 0;
  color: rgba(200, 164, 100, 0.10);
  opacity: 0;
  animation: bootFade 1.6s var(--ease) 0.2s forwards;
}

.boot-bg svg {
  width: 100%;
  height: 100%;
}

/* ── 品牌（左上，原站 .brand 同位：left 59 top 114）── */
.boot-brand {
  position: absolute;
  left: 59px;
  top: 114px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  animation: bootFade 1.1s var(--ease) 0.35s forwards;
}

.boot-brand h1 {
  font-family: var(--font);
  font-size: 44px;
  font-weight: 750;
  letter-spacing: 2.3px;
  margin: 0 0 6px;
}

.boot-brand > div {
  font-size: 19px;
  letter-spacing: 0.6px;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 4px;
}

.boot-brand p {
  margin: 0;
  font-size: 30px;
  letter-spacing: 1px;
  opacity: 0.85;
}

.boot-brand p b {
  color: var(--accent);
  margin-left: 8px;
}

/* ── 扫描环（居中，原站 .scan 同位）── */
.boot-scan {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1100px;
  height: 1100px;
  margin: -550px 0 0 -550px;
  opacity: 0;
  transform: scale(0.86);
  animation: bootScan 2.2s var(--ease) 0.5s forwards;
}

.boot-scan svg {
  width: 100%;
  height: 100%;
}

.ring-outer {
  stroke: rgba(238, 241, 236, 0.55);
  stroke-width: 2;
  stroke-dasharray: 2400 900;
  transform-origin: 550px 550px;
  animation: orbit 18s linear infinite;
}

.ring-inner {
  stroke: rgba(200, 164, 100, 0.5);
  stroke-width: 1.5;
  stroke-dasharray: 800 500;
  transform-origin: 550px 550px;
  animation: orbit 9s linear infinite reverse;
}

.ring-tick {
  stroke: rgba(238, 241, 236, 0.12);
  stroke-width: 1;
}

.orbit-dot {
  fill: var(--accent);
  transform-origin: 550px 550px;
  animation: orbit 9s linear infinite;
}

.orbit-dot.o1 { animation-duration: 9s; }
.orbit-dot.o2 { animation-duration: 14s; animation-direction: reverse; }

.scan-core {
  fill: var(--accent);
  opacity: 0.9;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes bootScan {
  to { opacity: 1; transform: scale(1); }
}

@keyframes bootFade {
  to { opacity: 1; }
}

/* ── 中央状态文本（原站 .access-text 同位）── */
.boot-status {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  padding: 14px 26px;
  /* 暗底：避免扫描环线穿过文字 */
  background: radial-gradient(ellipse 100% 100% at 50% 50%, #060807 55%, rgba(6,8,7,0.85) 78%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0;
  animation: bootFade 1s var(--ease) 1.1s forwards;
  white-space: nowrap;
}

.boot-dot {
  color: var(--accent);
  font-size: 12px;
}

.boot-caret {
  width: 3px;
  height: 20px;
  background: var(--accent);
  animation: blink 0.8s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ── 底部状态条（原站 .load-status 同款）── */
.boot-load {
  position: absolute;
  left: 59px;
  right: 59px;
  bottom: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0;
  animation: bootFade 1s var(--ease) 1.4s forwards;
}

#boot-enter {
  padding: 14px 26px;
  min-height: 44px;
  border: 1px solid rgba(200, 164, 100, 0.45);
  background: transparent;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: not-allowed;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

#boot-enter:not(:disabled) {
  cursor: pointer;
  color: #0a0c0b;
  background: var(--accent);
  border-color: var(--accent);
}

#boot-enter:not(:disabled):hover {
  transform: translateY(-2px);
  background: var(--ink);
  border-color: var(--ink);
}

/* ── 右下 powered ── */
.boot-powered {
  position: absolute;
  right: 59px;
  bottom: 108px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0;
  animation: bootFade 1s var(--ease) 1.6s forwards;
}

.boot-powered b {
  color: var(--ink);
  letter-spacing: 0.22em;
}

.boot-powered i {
  width: 34px;
  height: 1px;
  background: var(--accent);
}

/* ── 进度条（细线，贴底部）── */
.boot-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(238, 241, 236, 0.08);
}

.boot-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.35s var(--ease-glide);
}

/* ── 竖屏适配 ── */
@media (max-width: 900px) {
  .boot-stage {
    width: 900px;
    height: 100%;
    height: 100dvh;
  }

  .boot-brand {
    left: 24px;
    top: 42px;
  }

  .boot-brand h1 { font-size: 30px; }
  .boot-brand > div { font-size: 13px; }
  .boot-brand p { font-size: 21px; }

  .boot-scan {
    width: 640px;
    height: 640px;
    margin: -320px 0 0 -320px;
  }

  .boot-status { font-size: 13px; }

  .boot-load {
    left: 24px;
    right: 24px;
    bottom: 36px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    font-size: 11px;
  }

  .boot-powered { display: none; }
}

/* 减少动态 */
@media (prefers-reduced-motion: reduce) {
  .boot-bg, .boot-brand, .boot-scan, .boot-status, .boot-load, .boot-powered {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .ring-outer, .ring-inner, .orbit-dot { animation: none !important; }
}
