/* ==========================================================================
   oncekey - 超前卫赛博密码学样式系统 (Hyper-Cyber Quantum Vault & Incinerator)
   纯 Vanilla CSS · 零外部依赖 · 零内联 · 极度前卫、夸张、酷炫与超感官仪式感
   ========================================================================== */

:root {
  /* 赛博深空与高维暗网 */
  --bg-abyss: #020408;
  --bg-surface: #060a14;
  --bg-surface-glass: rgba(7, 12, 24, 0.86);
  --bg-surface-elevated: #0b1326;
  --bg-input: #03060d;

  /* 霓虹与量子光效 */
  --cyber-cyan: #00f0ff;
  --cyber-emerald: #00ff88;
  --cyber-mint: #10b981;
  --cyber-violet: #818cf8;
  --cyber-amber: #fbbf24;
  --cyber-rose: #f43f5e;

  /* 强烈能量光晕 */
  --glow-cyan: 0 0 25px rgba(0, 240, 255, 0.45);
  --glow-emerald: 0 0 35px rgba(0, 255, 136, 0.55);
  --glow-nuclear: 0 0 80px rgba(0, 255, 136, 0.75), inset 0 0 30px rgba(0, 255, 136, 0.4);
  --glow-card: 0 25px 70px -10px rgba(0, 0, 0, 0.95), 0 0 50px -10px rgba(0, 240, 255, 0.2);

  /* 边框体系 */
  --border-subtle: rgba(0, 240, 255, 0.12);
  --border-medium: rgba(0, 240, 255, 0.28);
  --border-strong: rgba(0, 255, 136, 0.5);
  --border-focus: #00f0ff;

  /* 文字 */
  --text-pure: #ffffff;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #475569;

  /* 字体族栈 */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --radius-card: 24px;
  --radius-box: 14px;
  --radius-pill: 9999px;
  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-glow: 300ms ease;
}

/* 全局重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  color-scheme: dark;
  background-color: var(--bg-abyss);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background-color: var(--bg-abyss);
  /* 夸张赛博宇宙复合背景：全息极光星云 + 量子发光网格 + 虚空力场 */
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 240, 255, 0.2) 0%, transparent 60%),
    radial-gradient(circle at 10% 90%, rgba(0, 255, 136, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(129, 140, 248, 0.12) 0%, transparent 45%),
    linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  background-position: center top, left bottom, right bottom, 0 0, 0 0;
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

/* 顶部全息流光霓虹天际线 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00f0ff, #00ff88, #818cf8, #00f0ff, transparent);
  box-shadow: 0 0 20px #00f0ff, 0 0 40px #00ff88;
  z-index: 99;
}

/* 主容器布局 (适配 375px 移动端同时在宽屏展开气场) */
.page-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}

/* --------------------------------------------------------------------------
   品牌全息头部区 (Holographic Cyber Header)
   -------------------------------------------------------------------------- */
.brand-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.hud-beacon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.875rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--cyber-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.2), 0 0 20px -3px rgba(0, 240, 255, 0.3);
}

.radar-dot {
  width: 6px;
  height: 6px;
  background-color: var(--cyber-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyber-emerald);
  animation: radar-pulse 1.8s infinite;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  position: relative;
}

.hologram-emblem {
  width: 46px;
  height: 46px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emblem-core {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.3) 0%, rgba(0, 255, 136, 0.2) 100%);
  border: 1px solid rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.45), inset 0 0 15px rgba(0, 255, 136, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyber-cyan);
  position: relative;
  z-index: 2;
}

.emblem-core svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.8));
}

.emblem-orbit {
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  border: 1px dashed rgba(0, 255, 136, 0.5);
  animation: rotate-slow 18s linear infinite;
  pointer-events: none;
}

.brand-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 15%, #7dd3fc 55%, #00ff88 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.35));
}

.brand-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 380px;
}

/* --------------------------------------------------------------------------
   赛博前卫卡片结构 (Cyber Enclave Card & HUD Brackets)
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--glow-card);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f0ff, #00ff88, transparent);
  box-shadow: 0 0 15px #00f0ff;
  pointer-events: none;
}

.hud-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}
.hud-corner-tl {
  top: 10px;
  left: 10px;
  border-top: 2px solid var(--cyber-cyan);
  border-left: 2px solid var(--cyber-cyan);
  filter: drop-shadow(0 0 4px var(--cyber-cyan));
}
.hud-corner-tr {
  top: 10px;
  right: 10px;
  border-top: 2px solid var(--cyber-cyan);
  border-right: 2px solid var(--cyber-cyan);
  filter: drop-shadow(0 0 4px var(--cyber-cyan));
}
.hud-corner-bl {
  bottom: 10px;
  left: 10px;
  border-bottom: 2px solid var(--cyber-cyan);
  border-left: 2px solid var(--cyber-cyan);
  filter: drop-shadow(0 0 4px var(--cyber-cyan));
}
.hud-corner-br {
  bottom: 10px;
  right: 10px;
  border-bottom: 2px solid var(--cyber-cyan);
  border-right: 2px solid var(--cyber-cyan);
  filter: drop-shadow(0 0 4px var(--cyber-cyan));
}

/* --------------------------------------------------------------------------
   密码学输入工作舱 (Quantum Cipher Bay)
   -------------------------------------------------------------------------- */
.cipher-compartment {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  position: relative;
}

.compartment-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.125rem;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
}

.label-icon {
  width: 15px;
  height: 15px;
  color: var(--cyber-cyan);
}

.cipher-badges-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.badge-quantum {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--cyber-emerald);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 4px;
  padding: 0.125rem 0.4375rem;
  letter-spacing: 0.02em;
}

.token-field {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
  margin-bottom: 1rem;
}

input#upload-token {
  height: 44px;
  padding: 0 0.875rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-box);
  color: var(--text-pure);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input#upload-token::placeholder {
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 0.84375rem;
}

input#upload-token:focus {
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 15px -3px rgba(0, 240, 255, 0.4);
}

.textarea-wrapper {
  position: relative;
  border-radius: var(--radius-box);
  overflow: hidden;
  background-color: var(--bg-input);
  border: 1px solid var(--border-medium);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.textarea-wrapper:focus-within {
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 0 1px var(--cyber-cyan), 0 0 25px -4px rgba(0, 240, 255, 0.35);
}

.laser-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.8), rgba(0, 255, 136, 0.8), transparent);
  box-shadow: 0 0 12px #00f0ff;
  opacity: 0.6;
  pointer-events: none;
  animation: laser-sweep 4s ease-in-out infinite;
  z-index: 3;
}

textarea#secret {
  width: 100%;
  min-height: 145px;
  padding: 1rem;
  background: transparent;
  border: none;
  color: var(--text-pure);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  position: relative;
  z-index: 2;
}

textarea#secret::placeholder {
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 0.84375rem;
}

.entropy-gauge-container {
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
  padding: 0.25rem 0;
}

.gauge-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.gauge-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.gauge-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyber-cyan), var(--cyber-emerald));
  box-shadow: 0 0 10px var(--cyber-cyan);
  transition: width 250ms ease, background 250ms ease, box-shadow 250ms ease, opacity 250ms ease;
}

[data-strength="empty"] #entropy-bar { width: 0%; opacity: 0; }
[data-strength="low"] #entropy-bar { width: 32%; opacity: 1; background: var(--cyber-amber); box-shadow: 0 0 10px var(--cyber-amber); }
[data-strength="medium"] #entropy-bar { width: 68%; opacity: 1; background: var(--cyber-cyan); box-shadow: 0 0 12px var(--cyber-cyan); }
[data-strength="high"] #entropy-bar { width: 100%; opacity: 1; background: linear-gradient(90deg, var(--cyber-cyan), var(--cyber-emerald)); box-shadow: 0 0 15px var(--cyber-emerald); }

/* --------------------------------------------------------------------------
   霓虹主按钮 (Neon Cyber Action Trigger)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  height: 52px;
  min-height: 52px;
  padding: 0 1.625rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-box);
  border: 1px solid transparent;
  cursor: pointer;
  outline: none;
  user-select: none;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.btn:focus-visible {
  outline: 2px solid var(--cyber-cyan);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(2px) scale(0.985);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00f0ff 0%, #00ff88 50%, #10b981 100%);
  color: #03140e;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 30px -4px rgba(0, 240, 255, 0.45), 0 0 15px rgba(0, 255, 136, 0.3);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  letter-spacing: 0.02em;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #38bdf8 0%, #00ff88 60%, #34d399 100%);
  box-shadow: 0 8px 36px -2px rgba(0, 240, 255, 0.65), 0 0 25px rgba(0, 255, 136, 0.5);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  background: #00ff88;
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-pure);
  height: 42px;
  min-height: 42px;
  padding: 0 1.125rem;
  font-size: 0.875rem;
}

.btn-secondary:hover:not(:disabled) {
  background: #17233f;
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 15px -3px rgba(0, 240, 255, 0.3);
}

.btn-block {
  width: 100%;
}

/* 接收端专用夸张核能按钮 (Nuclear Trigger Button) */
.btn-nuclear {
  width: 100%;
  height: 58px;
  min-height: 58px;
  font-size: 1.125rem;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #00f0ff 0%, #00ff88 40%, #10b981 100%);
  box-shadow: 0 8px 35px -2px rgba(0, 240, 255, 0.6), 0 0 30px rgba(0, 255, 136, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
}

.btn-nuclear:hover:not(:disabled) {
  box-shadow: 0 12px 45px 0 rgba(0, 240, 255, 0.8), 0 0 40px rgba(0, 255, 136, 0.7);
  transform: translateY(-2px) scale(1.01);
}

.btn-laser-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-100%);
  animation: button-laser 3s infinite;
  pointer-events: none;
}

/* 状态行 */
.status-line {
  min-height: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  word-break: break-all;
}

/* --------------------------------------------------------------------------
   生成结果舱室 (Encrypted Vault Seal Compartment)
   -------------------------------------------------------------------------- */
.result-area {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(4, 7, 14, 0.92);
  border: 1px solid rgba(0, 255, 136, 0.35);
  box-shadow: 0 0 40px -10px rgba(0, 255, 136, 0.25);
  animation: seal-deploy 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.result-area.hidden {
  display: none !important;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-status-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--cyber-emerald);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--cyber-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyber-emerald);
  animation: radar-pulse 1.6s infinite;
}

.pulse-cyan {
  width: 6px;
  height: 6px;
  background-color: var(--cyber-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyber-cyan);
  display: inline-block;
  animation: radar-pulse 1.4s infinite;
}

.label-muted {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.link-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

input#share-link {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 0.875rem;
  background-color: #030509;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-box);
  color: var(--cyber-cyan);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  outline: none;
  overflow-x: auto;
  white-space: nowrap;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
}

input#share-link:focus {
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 15px -3px rgba(0, 240, 255, 0.4);
}

.result-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   底部三联全息技术指标面板 (Cyber Metrics Strip)
   -------------------------------------------------------------------------- */
.security-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
}

.spec-item {
  background: rgba(13, 21, 39, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-box);
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.375rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.spec-item:hover {
  background: rgba(13, 21, 39, 0.8);
  border-color: rgba(0, 240, 255, 0.3);
}

.spec-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--cyber-cyan);
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.5));
}

.spec-title {
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 600;
}

.spec-sub {
  font-size: 0.6875rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.footnote {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}

/* ==========================================================================
   接收页超夸张量子核聚变中枢 (Receiver Super-Reactor Vault)
   ========================================================================== */
.security-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto;
  padding: 0.4375rem 1.125rem;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.32);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6ee7b7;
  box-shadow: 0 0 24px -4px rgba(0, 255, 136, 0.35);
}

.security-banner svg {
  width: 16px;
  height: 16px;
  stroke: var(--cyber-emerald);
}

.receiver-card {
  align-items: center;
  text-align: center;
  padding: 2.25rem 1.75rem 2.5rem;
  gap: 1.625rem;
  position: relative;
}

/* 接收端机载遥测状态条 */
.reactor-telemetry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
}

.telemetry-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.telemetry-divider {
  color: rgba(255, 255, 255, 0.15);
}

/* 巨型多环量子反应堆中心舞台 (Quantum Reactor Stage) */
.vault-reactor-stage {
  width: 160px;
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem auto;
}

/* 外层量子轨道刻度环 */
.reactor-outer-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(0, 240, 255, 0.3);
  animation: rotate-slow 22s linear infinite;
  pointer-events: none;
}

/* 360 度赛博雷达扫描扇形光锥 */
.reactor-radar-beam {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0, 255, 136, 0.25) 0deg, transparent 60deg, transparent 360deg);
  animation: rotate-slow 4s linear infinite;
  pointer-events: none;
  opacity: 0.7;
}

/* 中层逆向旋转轨道 */
.reactor-mid-orbit {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px dotted rgba(0, 255, 136, 0.4);
  animation: rotate-counter 14s linear infinite;
  pointer-events: none;
}

/* 内核保险箱反应室 (Core Chamber) */
.vault-dial {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  transition: all var(--transition-glow);
}

.vault-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #0e1935 0%, #060a14 80%);
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all var(--transition-glow);
}

.state-icon {
  display: none;
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 10px currentColor);
}

.state-icon svg {
  width: 100%;
  height: 100%;
}

/* 接收端状态文案区 */
.receiver-message-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 380px;
}

.receiver-status-text {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-pure);
  word-break: break-word;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

/* 销毁成功专属高能横幅 */
.state-banner-destroyed {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.4);
  border-radius: 6px;
  font-size: 0.75rem;
  color: #a7f3d0;
  box-shadow: 0 0 15px -3px rgba(0, 255, 136, 0.3);
  animation: seal-deploy 300ms ease;
}

.burn-tag {
  background: var(--cyber-emerald);
  color: #03140e;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.6875rem;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
}

#copy-secret {
  display: none;
}

/* --------------------------------------------------
   接收页六态视觉渲染体系
   -------------------------------------------------- */

/* 1. loading 态 (高能粒子对撞加速) */
[data-state="loading"] .icon-loading {
  display: flex;
  color: var(--cyber-cyan);
  animation: spin 0.8s linear infinite;
}
[data-state="loading"] .vault-core {
  border-color: var(--cyber-cyan);
  background: radial-gradient(circle, rgba(0, 240, 255, 0.3) 0%, #060a14 80%);
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.6);
}
[data-state="loading"] .reactor-radar-beam {
  background: conic-gradient(from 0deg, rgba(0, 240, 255, 0.4) 0deg, transparent 90deg, transparent 360deg);
  animation-duration: 1.5s;
}
[data-state="loading"] .receiver-status-text {
  color: #7dd3fc;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* 2. ready 态 (量子核芯满充就绪，主按钮高光展出) */
[data-state="ready"] .icon-ready {
  display: flex;
  color: var(--cyber-emerald);
  animation: pulse-icon 2.5s infinite;
}
[data-state="ready"] .vault-core {
  border-color: var(--cyber-emerald);
  background: radial-gradient(circle, rgba(0, 255, 136, 0.28) 0%, #060a14 80%);
  box-shadow: 0 0 50px rgba(0, 255, 136, 0.6), inset 0 0 20px rgba(0, 255, 136, 0.3);
}
[data-state="ready"] .reactor-outer-ring {
  border-color: rgba(0, 255, 136, 0.5);
}
[data-state="ready"] #copy-secret {
  display: inline-flex;
}

/* 3. destroyed 态 (核爆级焚毁成功终态！主色超新星光环，按钮自毁隐匿) */
[data-state="destroyed"] .icon-destroyed {
  display: flex;
  color: var(--cyber-emerald);
  filter: drop-shadow(0 0 15px #00ff88);
}
[data-state="destroyed"] .vault-core {
  border-color: #00ff88;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.5) 0%, rgba(16, 185, 129, 0.2) 60%, #060a14 90%);
  box-shadow: var(--glow-nuclear);
  animation: pulse-supernova 2s infinite alternate;
}
[data-state="destroyed"] .vault-dial {
  transform: scale(1.08);
}
[data-state="destroyed"] .reactor-outer-ring {
  border-style: solid;
  border-color: #00ff88;
  box-shadow: 0 0 35px rgba(0, 255, 136, 0.6);
}
[data-state="destroyed"] .reactor-radar-beam {
  display: none;
}
[data-state="destroyed"] .receiver-status-text {
  color: #00ff88;
  font-size: 1.25rem;
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.7);
}
[data-state="destroyed"] .state-banner-destroyed {
  display: inline-flex;
}

/* 4. invalid 态 (冷铁灰静默失效，光环熄灭) */
[data-state="invalid"] .icon-invalid {
  display: flex;
  color: var(--text-dim);
}
[data-state="invalid"] .vault-core {
  border-color: rgba(71, 85, 105, 0.4);
  background: radial-gradient(circle, rgba(71, 85, 105, 0.2) 0%, #060a14 80%);
  box-shadow: none;
}
[data-state="invalid"] .reactor-radar-beam,
[data-state="invalid"] .reactor-mid-orbit {
  display: none;
}
[data-state="invalid"] .reactor-outer-ring {
  border-color: rgba(71, 85, 105, 0.2);
}
[data-state="invalid"] .receiver-status-text {
  color: var(--text-muted);
}

/* 5. copyFailed 态 (警报琥珀光，保持可重试按钮) */
[data-state="copyFailed"] .icon-copyFailed {
  display: flex;
  color: var(--cyber-amber);
}
[data-state="copyFailed"] .vault-core {
  border-color: var(--cyber-amber);
  background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, #060a14 80%);
  box-shadow: 0 0 50px rgba(251, 191, 36, 0.55);
}
[data-state="copyFailed"] .reactor-outer-ring {
  border-color: rgba(251, 191, 36, 0.5);
}
[data-state="copyFailed"] .receiver-status-text {
  color: var(--cyber-amber);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}
[data-state="copyFailed"] #copy-secret {
  display: inline-flex;
}

/* 6. fetchFailed 态 (警示柔红) */
[data-state="fetchFailed"] .icon-fetchFailed {
  display: flex;
  color: var(--cyber-rose);
}
[data-state="fetchFailed"] .vault-core {
  border-color: var(--cyber-rose);
  background: radial-gradient(circle, rgba(244, 63, 94, 0.3) 0%, #060a14 80%);
  box-shadow: 0 0 45px rgba(244, 63, 94, 0.5);
}
[data-state="fetchFailed"] .reactor-outer-ring {
  border-color: rgba(244, 63, 94, 0.4);
}
[data-state="fetchFailed"] .receiver-status-text {
  color: #fb7185;
  text-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}

/* --------------------------------------------------------------------------
   关键帧动画宝库 (Keyframe Animations)
   -------------------------------------------------------------------------- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-counter {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes radar-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

@keyframes pulse-supernova {
  0% { box-shadow: 0 0 60px rgba(0, 255, 136, 0.6), inset 0 0 20px rgba(0, 255, 136, 0.3); }
  100% { box-shadow: 0 0 100px rgba(0, 255, 136, 0.85), inset 0 0 35px rgba(0, 255, 136, 0.5); }
}

@keyframes laser-sweep {
  0% { top: 0; opacity: 0.2; }
  50% { top: calc(100% - 2px); opacity: 0.8; }
  100% { top: 0; opacity: 0.2; }
}

@keyframes button-laser {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

@keyframes seal-deploy {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 移动端视口 (375px) 微调 */
@media (max-width: 400px) {
  body {
    padding: 1rem 0.625rem;
  }
  .card {
    padding: 1.5rem 1.125rem;
    border-radius: 20px;
  }
  .brand-title {
    font-size: 1.625rem;
  }
  .vault-reactor-stage {
    width: 140px;
    height: 140px;
  }
  .vault-dial {
    width: 90px;
    height: 90px;
  }
  .state-icon {
    width: 40px;
    height: 40px;
  }
  .btn-nuclear {
    height: 52px;
    min-height: 52px;
    font-size: 1rem;
  }
  .security-specs {
    gap: 0.375rem;
  }
  .spec-item {
    padding: 0.5rem 0.25rem;
  }
  .spec-title {
    font-size: 0.6875rem;
  }
}
