/* ============================================================
   HDPE 管材生产线 · 数字孪生拆解可视化
   深色科技风界面
   ============================================================ */
:root {
  --bg: #05070c;
  --panel: rgba(10, 15, 23, 0.72);
  --panel-2: rgba(15, 22, 33, 0.82);
  --line: rgba(110, 175, 230, 0.14);
  --line-2: rgba(110, 175, 230, 0.28);
  --txt: #dce7f5;
  --txt-2: #93a5bc;
  --txt-3: #5b6c83;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --warn: #f5a524;
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

body { user-select: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, li { list-style: none; }
kbd { font-family: var(--mono); }

/* ---------------------------------------------------- 舞台 */
#app, #stage { position: fixed; inset: 0; }
#stage { overflow: hidden; }

#gl {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

.label-layer {
  position: absolute !important;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

/* 暗角 + 扫描线 */
#app::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background:
    radial-gradient(115% 90% at 50% 45%, transparent 38%, rgba(0, 0, 0, 0.55) 100%),
    repeating-linear-gradient(0deg, rgba(120, 190, 240, 0.028) 0 1px, transparent 1px 3px);
}

/* ---------------------------------------------------- 通用面板 */
.hud { position: fixed; z-index: 10; }

.panel-left,
.panel-right,
.bottombar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(180, 220, 255, 0.06);
}

/* 顶部高光条 */
.panel-left::before,
.panel-right::before,
.bottombar::before {
  content: "";
  position: absolute;
  top: 0; left: 14px; right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.5), transparent);
  opacity: 0.8;
}

/* ---------------------------------------------------- 顶部栏 */
.topbar {
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px 16px;
  background: linear-gradient(180deg, rgba(4, 7, 12, 0.92) 0%, rgba(4, 7, 12, 0.55) 55%, transparent 100%);
  z-index: 12;
  pointer-events: none;
}

.topbar > * { pointer-events: auto; }

.brand { display: flex; align-items: center; gap: 14px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 11px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #06121a;
  background: linear-gradient(140deg, #6ee7f9, #22d3ee 45%, #0ea5b7);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.brand-txt h1 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #eaf3ff;
  line-height: 1.25;
}

.brand-txt p {
  margin-top: 3px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--txt-3);
  text-transform: uppercase;
}

.brand-txt p i { color: var(--accent); font-style: normal; margin: 0 6px; opacity: 0.7; }

.top-actions { display: flex; align-items: center; gap: 8px; }

.line-spec {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--txt-2);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 16, 25, 0.6);
  margin-right: 6px;
}

.top-actions button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--txt-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(11, 17, 26, 0.66);
  transition: all 0.22s ease;
  white-space: nowrap;
}

.top-actions button:hover {
  color: #eaf6ff;
  border-color: var(--line-2);
  background: rgba(22, 34, 50, 0.85);
  transform: translateY(-1px);
}

.top-actions button.is-on {
  color: #041018;
  background: linear-gradient(140deg, #7dd3fc, #22d3ee);
  border-color: rgba(34, 211, 238, 0.9);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
  font-weight: 600;
}

.ic {
  width: 13px; height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  opacity: 0.85;
  flex: 0 0 auto;
}
.ic-tour { border-radius: 50%; border-right-color: transparent; }
.ic-explode { border-style: dashed; }
.ic-reset { border-radius: 50%; border-top-color: transparent; }

/* ---------------------------------------------------- 左面板 */
.panel-left {
  top: 96px;
  left: 24px;
  width: 272px;
  max-height: calc(100vh - 250px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ph {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 11px;
  border-bottom: 1px solid rgba(110, 175, 230, 0.09);
}

.ph h2 {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #d7e6f7;
}

.ph-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--txt-3);
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.dev-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 175, 230, 0.25) transparent;
}

.dev-list::-webkit-scrollbar { width: 5px; }
.dev-list::-webkit-scrollbar-thumb { background: rgba(110, 175, 230, 0.22); border-radius: 3px; }

.dev-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: 1px solid transparent;
}

.dev-item:hover,
.dev-item.is-hover {
  background: rgba(34, 211, 238, 0.06);
  border-color: rgba(34, 211, 238, 0.16);
}

.dev-item.is-active {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.16), rgba(34, 211, 238, 0.02));
  border-color: rgba(34, 211, 238, 0.34);
}

.dev-item.is-active::before {
  content: "";
  position: absolute;
  left: -1px; top: 22%; bottom: 22%;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.di-no {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--txt-3);
  width: 16px;
  flex: 0 0 auto;
  letter-spacing: 0.04em;
}

.dev-item.is-active .di-no { color: var(--accent); }

.di-main { flex: 1; min-width: 0; }
.di-main b {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: #cfdff0;
  letter-spacing: 0.01em;
}
.dev-item.is-active .di-main b { color: #fff; font-weight: 600; }

.di-main i {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-style: normal;
  color: var(--txt-3);
  letter-spacing: 0.04em;
}

.di-bar {
  width: 22px; height: 2px;
  border-radius: 2px;
  background: rgba(110, 175, 230, 0.12);
  overflow: hidden;
  flex: 0 0 auto;
}
.di-bar i { display: block; height: 100%; width: 100%; opacity: 0.75; }

.pf {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px 12px;
  font-size: 10.5px;
  color: var(--txt-3);
  border-top: 1px solid rgba(110, 175, 230, 0.09);
}

.pf-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex: 0 0 auto;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* ---------------------------------------------------- 右面板 */
.panel-right {
  top: 96px;
  right: 24px;
  width: 352px;
  max-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 175, 230, 0.25) transparent;
}

.detail-body::-webkit-scrollbar { width: 5px; }
.detail-body::-webkit-scrollbar-thumb { background: rgba(110, 175, 230, 0.22); border-radius: 3px; }

/* 空态 */
.detail-empty { padding: 18px 2px 4px; text-align: left; }

.de-ring {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 70%);
  margin-bottom: 14px;
  position: relative;
}
.de-ring::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(34, 211, 238, 0.2);
  animation: spin 16s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.de-ring span {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--accent);
  font-weight: 600;
}

.detail-empty h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.detail-empty p { font-size: 11.5px; line-height: 1.85; color: var(--txt-2); }

.line-kpi {
  margin-top: 16px;
  display: grid;
  gap: 1px;
  background: rgba(110, 175, 230, 0.1);
  border: 1px solid rgba(110, 175, 230, 0.1);
  border-radius: 9px;
  overflow: hidden;
}
.line-kpi > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  background: rgba(8, 13, 20, 0.72);
}
.line-kpi dt { font-size: 11px; color: var(--txt-3); }
.line-kpi dd { font-family: var(--mono); font-size: 11.5px; color: var(--accent); }

.de-tip {
  margin-top: 14px;
  font-size: 10.5px;
  color: var(--txt-3);
  letter-spacing: 0.03em;
  padding-left: 10px;
  border-left: 2px solid rgba(34, 211, 238, 0.3);
}

/* 详情内容 */
.detail-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(110, 175, 230, 0.1);
}

.dh-no {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: #041018;
  background: var(--theme, var(--accent));
  padding: 3px 7px;
  border-radius: 5px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.dh-title h3 { font-size: 16px; font-weight: 600; line-height: 1.2; color: #fff; }
.dh-title p {
  margin-top: 3px;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--txt-3);
  font-family: var(--mono);
}

.detail-tagline {
  margin: 12px 0 8px;
  font-size: 11.5px;
  color: var(--theme, var(--accent));
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.detail-tagline::before {
  content: "";
  width: 14px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.detail-summary {
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--txt-2);
  text-align: justify;
}

.detail-sec { margin-top: 18px; }

.detail-sec h4 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #cbdcf0;
  margin-bottom: 9px;
  letter-spacing: 0.04em;
}
.detail-sec h4 span {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--txt-3);
  font-weight: 400;
}

/* 参数表 */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(110, 175, 230, 0.1);
  border: 1px solid rgba(110, 175, 230, 0.1);
  border-radius: 9px;
  overflow: hidden;
}
.spec-grid > div {
  background: rgba(8, 13, 20, 0.78);
  padding: 8px 10px;
  min-height: 42px;
}
.spec-grid dt {
  font-size: 9.5px;
  color: var(--txt-3);
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}
.spec-grid dd {
  font-family: var(--mono);
  font-size: 11.5px;
  color: #cfe6f5;
  letter-spacing: 0.01em;
}

/* 部件列表 */
.part-list { display: grid; gap: 7px; }

.part-list li {
  display: flex;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(12, 19, 28, 0.6);
  border: 1px solid rgba(110, 175, 230, 0.08);
  transition: border-color 0.2s, background 0.2s;
}
.part-list li:hover {
  border-color: rgba(34, 211, 238, 0.28);
  background: rgba(20, 32, 45, 0.7);
}

.pl-no {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--theme, var(--accent));
  opacity: 0.75;
  padding-top: 2px;
  flex: 0 0 auto;
}

.part-list b { display: block; font-size: 11.5px; font-weight: 600; color: #d5e6f7; }
.part-list p { margin-top: 3px; font-size: 10.5px; line-height: 1.7; color: var(--txt-3); }

/* 提示 */
.hint-list { display: grid; gap: 7px; }
.hint-list li {
  position: relative;
  padding: 8px 10px 8px 26px;
  font-size: 10.5px;
  line-height: 1.75;
  color: #b9a06a;
  background: rgba(245, 165, 36, 0.06);
  border-left: 2px solid rgba(245, 165, 36, 0.45);
  border-radius: 0 7px 7px 0;
}
.hint-list li::before {
  content: "!";
  position: absolute;
  left: 9px; top: 9px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--warn);
  border: 1px solid rgba(245, 165, 36, 0.5);
  border-radius: 50%;
  width: 11px; height: 11px;
  display: grid; place-items: center;
  line-height: 1;
}

/* 详情按钮 */
.detail-actions {
  position: sticky;
  bottom: -18px;
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding: 14px 0 4px;
  border-top: 1px solid rgba(110, 175, 230, 0.1);
  background: linear-gradient(180deg, rgba(10, 15, 23, 0) 0%, rgba(10, 15, 23, 0.96) 45%);
  backdrop-filter: blur(6px);
}

.btn-primary,
.btn-ghost {
  flex: 1;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-primary {
  color: #041018;
  background: linear-gradient(140deg, #7dd3fc, #22d3ee);
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 8px 26px rgba(34, 211, 238, 0.42);
  transform: translateY(-1px);
}
.btn-primary.is-on {
  background: linear-gradient(140deg, #fbbf24, #f59e0b);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.btn-ghost {
  color: var(--txt-2);
  border-color: var(--line);
  background: rgba(12, 19, 28, 0.6);
}
.btn-ghost:hover { color: #fff; border-color: var(--line-2); background: rgba(22, 34, 50, 0.8); }

/* ---------------------------------------------------- 底部工艺条 */
.bottombar {
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 640px));
  min-width: 520px;
  display: flex;
  align-items: stretch;
  padding: 8px 10px 8px 14px;
  gap: 12px;
}

.steps-label {
  writing-mode: vertical-rl;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--txt-3);
  padding: 4px 0;
  border-right: 1px solid rgba(110, 175, 230, 0.1);
  padding-right: 10px;
  flex: 0 0 auto;
  text-align: center;
}

.steps {
  display: flex;
  flex: 1;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.steps::-webkit-scrollbar { display: none; }

.step {
  position: relative;
  flex: 1 1 0;
  min-width: 82px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 7px 8px 8px 10px;
  border-radius: 8px;
  text-align: left;
  transition: background 0.2s;
}

.step::before {
  content: "";
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: rgba(110, 175, 230, 0.14);
}
.step:first-child::before { display: none; }

.step:hover { background: rgba(34, 211, 238, 0.07); }
.step.is-active { background: rgba(34, 211, 238, 0.13); }

.step.is-active::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.st-no {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--txt-3);
}
.step.is-active .st-no { color: var(--accent); }

.st-name {
  font-size: 11.5px;
  font-weight: 500;
  color: #c8d9ec;
  white-space: nowrap;
}
.step.is-active .st-name { color: #fff; font-weight: 600; }

.st-param {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--txt-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.step.is-active .st-param { color: rgba(34, 211, 238, 0.8); }

/* ---------------------------------------------------- 左下提示 */
.tips {
  left: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  color: var(--txt-3);
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(110, 175, 230, 0.1);
  background: rgba(8, 13, 20, 0.6);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.tips kbd {
  display: inline-block;
  padding: 2px 6px;
  margin-right: 4px;
  font-size: 9px;
  color: var(--txt-2);
  border: 1px solid rgba(110, 175, 230, 0.2);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: rgba(20, 30, 44, 0.7);
}

/* ---------------------------------------------------- 3D 标签 */
.dev-label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 5px;
  border-radius: 999px;
  background: rgba(6, 11, 18, 0.78);
  border: 1px solid rgba(110, 175, 230, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #a9bdd3;
  font-family: var(--sans);
  font-size: 9.5px;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.55;
  transition: opacity 0.3s, border-color 0.3s, box-shadow 0.3s, background 0.3s;
  will-change: transform;
}

.dev-label:hover,
.dev-label.is-hover { opacity: 1; border-color: rgba(34, 211, 238, 0.45); }

.dev-label.is-dim { opacity: 0.14; pointer-events: none; }

.dev-label.is-active {
  opacity: 1;
  color: #eaf7ff;
  border-color: rgba(34, 211, 238, 0.7);
  background: rgba(8, 26, 34, 0.9);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.35), inset 0 0 12px rgba(34, 211, 238, 0.08);
}

.lb-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex: 0 0 auto;
}

.dev-label.is-active .lb-dot { animation: pulse 1.6s ease-in-out infinite; }

.lb-no {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  opacity: 0.65;
}

.lb-body { display: flex; align-items: baseline; gap: 5px; }

.lb-name { font-weight: 500; font-size: 9.5px; }

.lb-model {
  display: none;
  font-style: normal;
  font-size: 8px;
  opacity: 0.5;
  font-family: var(--mono);
}

.dev-label.is-active .lb-model,
.dev-label:hover .lb-model { display: inline; }

/* ---------------------------------------------------- 引导 */
.guide {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(3, 6, 10, 0.72);
  backdrop-filter: blur(6px);
  transition: opacity 0.55s ease;
}

.guide.is-hidden { opacity: 0; pointer-events: none; }

.guide-inner {
  width: min(560px, calc(100vw - 48px));
  padding: 30px 32px 26px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(16, 24, 36, 0.96), rgba(8, 13, 20, 0.98));
  border: 1px solid rgba(110, 175, 230, 0.16);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(180, 220, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.guide-inner::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.7), transparent);
}

.g-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--accent);
  opacity: 0.7;
}

.guide-top h2 {
  margin-top: 8px;
  margin-bottom: 20px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
}

.guide-list { display: grid; gap: 12px; margin-bottom: 24px; }

.guide-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.g-no {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--accent);
  padding: 3px 0 0;
  flex: 0 0 auto;
  opacity: 0.75;
  letter-spacing: 0.06em;
}

.guide-list b { display: block; font-size: 12.5px; font-weight: 600; color: #dceae0; margin-bottom: 3px; }
.guide-list p { font-size: 11.5px; line-height: 1.7; color: var(--txt-2); }

#guideClose {
  width: 100%;
  padding: 12px;
  font-size: 13px;
}

/* ---------------------------------------------------- 加载 */
#loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  background: #04070b;
  transition: opacity 0.7s ease 0.15s;
}

#loading.is-done { opacity: 0; pointer-events: none; }

.ld-ring {
  position: relative;
  width: 56px; height: 56px;
  margin-bottom: 18px;
}

.ld-ring i {
  position: absolute;
  inset: 0;
  border: 1.5px solid transparent;
  border-top-color: rgba(34, 211, 238, 0.9);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}
.ld-ring i:nth-child(2) { inset: 8px; border-top-color: rgba(59, 130, 246, 0.7); animation-duration: 1.6s; animation-direction: reverse; }
.ld-ring i:nth-child(3) { inset: 16px; border-top-color: rgba(34, 211, 238, 0.45); animation-duration: 2.2s; }

.ld-title {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: #8fa4ba;
}

.ld-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: #40505f;
}

/* ---------------------------------------------------- 入场动画 */
.topbar, .panel-left, .panel-right, .bottombar, .tips {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.bottombar, .tips { transform: translateY(10px); }
.bottombar { transform: translateX(-50%) translateY(10px); }

body.ready .topbar,
body.ready .panel-left,
body.ready .panel-right,
body.ready .tips { opacity: 1; transform: translateY(0); }

body.ready .bottombar {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------------------------------------------------- 响应式 */
@media (max-width: 1400px) {
  .tips { display: none; }
  .step { min-width: 70px; }
  .st-param { display: none; }
}

@media (max-width: 1320px) {
  .panel-left { width: 246px; }
  .panel-right { width: 320px; }
  .bottombar { width: min(680px, calc(100vw - 600px)); min-width: 460px; }
  .brand-txt h1 { font-size: 15.5px; }
  .brand-mark { width: 40px; height: 40px; font-size: 10px; }
}

@media (max-width: 1120px) {
  .panel-left { width: 200px; left: 16px; top: 88px; max-height: calc(100vh - 268px); }
  .panel-right { width: 288px; right: 16px; top: 88px; max-height: calc(100vh - 268px); }
  .brand-txt h1 { font-size: 15px; }
  .bottombar {
    width: calc(100vw - 32px);
    left: 16px;
    transform: none;
    min-width: 0;
    bottom: 16px;
    padding-left: 12px;
  }
  body.ready .bottombar { transform: none; }
  .steps-label { display: none; }
  .tips { display: none; }
}

@media (max-width: 900px) {
  .panel-left { display: none; }
  .panel-right {
    top: auto;
    bottom: 96px;
    left: 16px;
    right: 16px;
    width: auto;
    max-height: 40vh;
  }
  .bottombar {
    width: calc(100vw - 32px);
    min-width: 0;
    left: 16px;
    transform: none;
    bottom: 16px;
  }
  body.ready .bottombar { transform: none; }
  .top-actions .line-spec { display: none; }
  .brand-txt p { display: none; }
}
