/* =====================================================================
   NOVA · 短视频解析中枢  —  CYBERPUNK NEON（精简静态版）
   深黑底 #0a0a0f · 青色主光 · 品红强调 · 黄色警示
   发光阴影 only（无 shadow-md/lg）· 无渐变文字 · 圆角 ≤ rounded-lg
   font-mono 主导 · Glitch Press（active 偏移，非 scale）
   已移除：boot 开机层 / 星空 canvas / 漂浮环 / 平台跑马灯 /
           滚动揭示 / 点击涟漪 / 标题乱码 / 3D 倾斜 / 磁力吸附 / 实时时钟
   ===================================================================== */

:root {
  --bg: #0a0a0f;
  --surface-1: #0d0d16;   /* 卡片 */
  --surface-2: #11111c;   /* 输入框 / 导航 */
  --surface-3: #15151f;

  --cyan: #22d3ee;            /* cyan-400 */
  --cyan-bright: #00ffff;     /* 主色 #00ffff */
  --magenta: #ff2bd6;         /* fuchsia-500 霓虹 */
  --yellow: #facc15;          /* yellow-400 警示 */
  --green: #00ff9d;           /* 成功 */

  --text: #eafcff;
  --text-dim: #7fd6e6;        /* 高饱和青灰，避免低饱和灰 */
  --text-faint: #4f7e8c;

  --border: rgba(34, 211, 238, 0.30);
  --border-strong: rgba(34, 211, 238, 0.55);
  /* [P2-1 修复] 下面两个变量在全文件被引用了 8 处，但 :root 里从未定义，
     导致那些 border 声明整体失效、回退为 currentColor（颜色发灰/发白）。
     补齐后保存目录框、城市选择器等控件的边框才会呈现预期的青色高亮。 */
  --border-bright: rgba(34, 211, 238, 0.42);
  --red: #ff5d7a;              /* 错误 / 危险态 */
  --glow-sm: 0 0 10px rgba(0, 255, 255, 0.30);
  --glow-md: 0 0 20px rgba(0, 255, 255, 0.45);
  --glow-lg: 0 0 30px rgba(0, 255, 255, 0.60);
  --glow-magenta: 0 0 18px rgba(255, 43, 214, 0.45);

  --font-display: 'Orbitron', 'Share Tech Mono', monospace;
  --font-mono: 'Share Tech Mono', 'JetBrains Mono', monospace;
  --font-body: 'JetBrains Mono', monospace;

  --maxw: 1560px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(0, 255, 255, 0.30); color: #fff; }

a { color: inherit; text-decoration: none; }

code, .mono { font-family: var(--font-mono); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #06060a; }
::-webkit-scrollbar-thumb {
  background: rgba(34, 211, 238, 0.35);
  border-radius: 0;
  box-shadow: var(--glow-sm);
}
::-webkit-scrollbar-thumb:hover { background: rgba(34, 211, 238, 0.6); }

/* =====================================================================
   背景层：扫描线 + 暗角（静态，无鼠标交互、无漂移）
   ===================================================================== */
.scanlines {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 255, 255, 0.035) 0px,
    rgba(0, 255, 255, 0.035) 1px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: screen;
}
.vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,0.75) 100%);
}

/* =====================================================================
   导航 HUD
   ===================================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(2px);
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo { width: 34px; height: 34px; color: var(--cyan-bright); filter: drop-shadow(0 0 8px rgba(0,255,255,0.7)); }
.nav__logo svg { width: 100%; height: 100%; }
.nav__name {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
  text-shadow: 0 0 12px rgba(0,255,255,0.55);
}
.nav__name-sub { color: var(--magenta); text-shadow: 0 0 10px rgba(255,43,214,0.6); margin-left: 4px; font-size: 13px; }

.nav__status { display: flex; align-items: center; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-dim);
}
.pill--live { color: var(--green); border-color: rgba(0,255,157,0.4); box-shadow: 0 0 10px rgba(0,255,157,0.25); }
.pill__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse-glow 1.3s ease-in-out infinite; }

/* =====================================================================
   布局主体
   ===================================================================== */
.app { max-width: var(--maxw); margin: 0 auto; padding: 0 32px 80px; }

/* ---------- HERO（精简） ---------- */
.hero { text-align: center; padding: 0 0 24px; position: relative; }


/* ---------- hero desc · 类型 chip + 双轨（歌词 / 语录） ---------- */
.hero-row .hero__desc { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-row .hero__desc-type {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: 999px;
  border: 1px solid rgba(0,255,255,0.3); background: rgba(0,255,255,0.06);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
  color: var(--cyan-bright); text-transform: uppercase;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
  user-select: none;
}
.hero-row .hero__desc-type:hover {
  border-color: var(--cyan); background: rgba(0,255,255,0.18); color: #fff;
}
.hero-row .hero__desc-type em { font-style: normal; font-weight: 700; }
.hero-row .hero__desc[data-type="saying"] .hero__desc-type {
  border-color: rgba(255,180,80,0.4); background: rgba(255,180,80,0.08); color: #ffb450;
}
.hero-row .hero__desc[data-type="saying"] .hero__desc-type:hover {
  background: rgba(255,180,80,0.18); border-color: rgba(255,180,80,0.7); color: #fff;
}
.hero-row .hero__desc[data-type="saying"] .hero__desc-text { font-style: italic; }
.hero-row .hero__desc[data-type="saying"] .hero__desc-author { font-family: var(--font-mono); font-size: 13px; }

/* ---------- 首屏 hero-row（桌面并排 / 移动堆叠） ---------- */
.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1.4fr);
  gap: 48px;
  align-items: stretch;
  padding: 56px 0 24px;
}
.hero-row .hero {
  padding: 36px 18px 32px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
}
.hero-row .hero__title { margin: 0 0 22px; font-size: 60px; line-height: 1.1; }
.hero-row .hero__desc { font-size: 19px; line-height: 1.7; max-width: 540px; }
.hero-row .hero__desc-text { font-weight: 500; }
.hero-row .hero__desc-author { font-size: 15px; opacity: 0.85; }
.hero-row .hero__cta { margin-top: 32px; }
.hero-row .hero__cta .btn-magnetic { font-size: 16px; padding: 16px 36px; }

/* =====================================================================
   neon-title · 故障效果（GLITCH FAULT · 慢节奏版）
   - 默认：青光文字 + 持续 ±3px RGB 双色错位残留（让标题始终"被干扰"）
   - 节奏放缓：magenta / red 周期均为 5s，每轮约在中段爆裂一次
   - 单次爆裂：6 个硬切切片，每切片停留 ~120ms（肉眼可辨切换，不抢眼）
   - magenta 在周期 60% 处爆裂、red 在 80% 处跟上 → 撕裂"绵延"约 1.5s 后静默 3.5s
   - is-faulting：本体 ±4px + skewX(±2.5°) 慢速抖动 + 多色错位（黄/品/红）
   - 三色错位（含 #facc15 黄）让故障看起来 "屏幕撕裂"
   ===================================================================== */
.neon-title {
  position: relative;
  display: inline-block;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 9vw, 96px);
  line-height: 1.02;
  letter-spacing: 0.04em;
  color: var(--cyan-bright);
  /* 持续多色残影：青色本体下始终带品红/红轻微分离 */
  text-shadow:
    0 0 12px var(--cyan-bright),
    0 0 30px rgba(0, 255, 255, 0.55),
    0 0 60px rgba(0, 255, 255, 0.3),
    -3px 0 0 rgba(255, 43, 214, 0.55),
    3px 0 0 rgba(255, 56, 96, 0.55);
  cursor: default;
  will-change: transform, clip-path, text-shadow;
}

/* 故障中：本体 ±4px + skewX(±2.5°) 慢速抖动 + 三色 text-shadow 更亮 */
.neon-title.is-faulting {
  animation: title-shake 110ms steps(2) infinite;
  text-shadow:
    0 0 14px var(--cyan-bright),
    0 0 36px rgba(0, 255, 255, 0.7),
    0 0 80px rgba(0, 255, 255, 0.45),
    -5px 0 0 rgba(255, 43, 214, 0.9),
    5px 0 0 rgba(255, 56, 96, 0.9),
    0 4px 0 rgba(250, 204, 21, 0.55);
}

@keyframes title-shake {
  0%   { transform: translate(-4px, 1px)  skewX(-2.5deg); }
  25%  { transform: translate(4px, -2px)  skewX(1.5deg);  }
  50%  { transform: translate(-3px, 2px)  skewX(-1deg);   }
  75%  { transform: translate(3px, -1px)  skewX(2deg);    }
  100% { transform: translate(-2px, 1px)  skewX(-1.5deg); }
}

/* 双层 ghost：z-index:-1 叠在青色原文下方，错峰触发不同切片 */
.neon-title::before,
.neon-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.neon-title::before {
  color: var(--magenta);
  text-shadow: 0 0 14px rgba(255, 43, 214, 0.9);
  animation: glitch-magenta 5s infinite steps(1);
}

.neon-title::after {
  color: #ff3860;
  text-shadow: 0 0 14px rgba(255, 56, 96, 0.85);
  animation: glitch-red 5s infinite steps(1);
  animation-delay: 1s;
}

/* 故障中：ghost 层动画适度加快（约 6 倍速率），错位更夸张但仍可辨 */
.neon-title.is-faulting::before {
  animation-duration: 0.8s;
}
.neon-title.is-faulting::after {
  animation-duration: 0.9s;
}

/* 洋红 ghost：5s 周期，单次爆裂在 60% → 78%（约 900ms · 6 切片） */
@keyframes glitch-magenta {
  /* 静态 / 静默偏移 */
  0%, 59%, 78.5%, 100% {
    transform: translate(-3px, 0);
    clip-path: inset(0 0 0 0);
  }
  /* 爆裂：60% → 78%（6 个硬切，每片约 130ms，肉眼可辨） */
  60%   { transform: translate(-14px, 2px);  clip-path: inset(15% 0 60% 0); }
  62%   { transform: translate(-7px, -3px);  clip-path: inset(55% 0 25% 0); }
  64%   { transform: translate(-20px, 0);    clip-path: inset(75% 0 8% 0); }
  66%   { transform: translate(-10px, 2px);  clip-path: inset(30% 0 50% 0); }
  68%   { transform: translate(-22px, -1px); clip-path: inset(60% 0 18% 0); }
  70%   { transform: translate(-5px, 0);     clip-path: inset(0 0 80% 0); }
  72%   { transform: translate(-18px, 1px);  clip-path: inset(40% 0 38% 0); }
  74%   { transform: translate(-6px, 3px);   clip-path: inset(78% 0 5% 0); }
  76%   { transform: translate(-22px, -2px); clip-path: inset(20% 0 60% 0); }
  78%   { transform: translate(-4px, -2px);  clip-path: inset(8% 0 75% 0); }
}

/* 红色 ghost：5s 周期 + 1s delay，单次爆裂在 80% → 98%（约 900ms · 6 切片） */
@keyframes glitch-red {
  0%, 79%, 98.5%, 100% {
    transform: translate(3px, 0);
    clip-path: inset(0 0 0 0);
  }
  /* 爆裂：80% → 98%（紧接 magenta 之后，撕裂"绵延"约 1.5s） */
  80%   { transform: translate(12px, -2px);  clip-path: inset(50% 0 30% 0); }
  82%   { transform: translate(6px, 3px);    clip-path: inset(78% 0 8% 0);  }
  84%   { transform: translate(20px, -2px);  clip-path: inset(18% 0 65% 0); }
  86%   { transform: translate(9px, 0);      clip-path: inset(65% 0 18% 0); }
  88%   { transform: translate(22px, 2px);   clip-path: inset(35% 0 45% 0); }
  90%   { transform: translate(5px, -1px);   clip-path: inset(82% 0 4% 0);  }
  92%   { transform: translate(16px, 1px);   clip-path: inset(45% 0 35% 0); }
  94%   { transform: translate(8px, -3px);   clip-path: inset(72% 0 10% 0); }
  96%   { transform: translate(20px, 0);     clip-path: inset(20% 0 60% 0); }
  98%   { transform: translate(6px, 1px);    clip-path: inset(55% 0 28% 0); }
}

/* 无障碍：用户禁用动画时退化为静态青光，避免分心 */
@media (prefers-reduced-motion: reduce) {
  .neon-title::before,
  .neon-title::after,
  .neon-title.is-faulting,
  .neon-title.is-faulting::before,
  .neon-title.is-faulting::after {
    animation: none !important;
  }
}
.hero__desc {
  max-width: 720px; margin: 0 auto; color: var(--text-dim);
  font-size: 15px; line-height: 1.9;
  display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 8px;
}
.hero__desc-icon { color: var(--magenta); font-size: 18px; text-shadow: 0 0 8px var(--magenta); }
.hero__desc-text {
  color: var(--text);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-shadow: 0 0 6px rgba(0,255,255,0.35);
  position: relative;
  transition: opacity .25s ease, filter .25s ease;
}
.hero__desc-text.is-fading { opacity: 0; filter: blur(6px); }
.hero__desc-author {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  border-left: 1px solid var(--border);
  padding-left: 10px;
  margin-left: 4px;
  white-space: nowrap;
  opacity: 0.85;
}
.hero__cta { display: flex; gap: 16px; justify-content: center; margin: 32px 0 0; flex-wrap: wrap; }

/* =====================================================================
   按钮（UNSTABLE NEON · GLITCH PRESS）
   ===================================================================== */
.btn-primary, .btn-secondary, .btn-ghost, .btn-soft, .btn-paste, .btn-mini, .download-link {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em;
  cursor: pointer; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--cyan); transition: all 0.15s ease-out; position: relative; overflow: hidden;
}
.btn-primary {
  padding: 14px 28px; border-radius: 8px; font-size: 14px;
  background: var(--cyan); color: #04060a; border-color: var(--cyan-bright);
  box-shadow: var(--glow-md); font-weight: 700;
}
.btn-primary:hover { box-shadow: var(--glow-lg); }
.btn-primary:active { transform: translate(2px, -1px); color: var(--magenta); box-shadow: var(--glow-magenta); }

.btn-secondary {
  padding: 14px 28px; border-radius: 8px; font-size: 14px; color: var(--magenta);
  border-color: rgba(255,43,214,0.5); background: rgba(255,43,214,0.06);
  box-shadow: 0 0 10px rgba(255,43,214,0.25); font-weight: 700;
}
.btn-secondary:hover { box-shadow: 0 0 20px rgba(255,43,214,0.5); color: #fff; }
.btn-secondary:active { transform: translate(2px, -1px); color: var(--cyan-bright); }

.btn-ghost {
  padding: 14px 28px; border-radius: 8px; font-size: 14px; color: var(--cyan);
  background: transparent; border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--cyan-bright); box-shadow: var(--glow-md); text-shadow: 0 0 8px var(--cyan-bright); }
.btn-ghost:active { transform: translate(2px, -1px); color: var(--magenta); }

.btn--lg { font-size: 15px; padding: 16px 30px; }
.btn__icon { margin-right: 8px; }
.btn__shine {
  position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg); transition: left 0.35s ease-out;
}
.btn-primary:hover .btn__shine, .btn-secondary:hover .btn__shine, .btn-ghost:hover .btn__shine { left: 130%; }
.btn-magnetic { will-change: transform; }
.btn-magnetic.is-releasing { transition: transform 0.42s cubic-bezier(0.2,0.8,0.2,1); }

/* =====================================================================
   Text Scramble Decrypt（黑客密码解密）— 仅作用于 #heroCtaLabel
   - hover / focus 触发，rAF 随机替换字符 + 左→右逐字锁定
   - decrypting 中：双频霓虹闪烁 + 微抖动 (CRT 故障)
   - hint 在静止时显示，scrambling 中隐藏
   ===================================================================== */
#heroCta { position: relative; overflow: visible; }

#heroCtaLabel {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  /* 静止：单层青光 */
  text-shadow: 0 0 4px rgba(0, 255, 255, 0.55);
  transition: text-shadow 0.18s ease-out;
}

#heroCtaLabel.is-decrypting {
  /* 90ms 双频交错：青光 → 品红光 → 青光，制造 CRT 故障 */
  animation: scramble-flicker 90ms steps(2) infinite;
}

@keyframes scramble-flicker {
  0%, 100% {
    text-shadow:
      0 0 6px var(--cyan-bright),
      0 0 14px rgba(0, 255, 255, 0.55),
      1px 0 0 rgba(255, 43, 214, 0.85),
      -1px 0 0 rgba(0, 255, 255, 0.85);
  }
  50% {
    text-shadow:
      0 0 6px var(--magenta),
      0 0 14px rgba(255, 43, 214, 0.55),
      -1px 0 0 rgba(0, 255, 255, 0.85),
      1px 0 0 rgba(255, 43, 214, 0.85);
  }
}

#heroCta .btn__hint {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.35em;
  color: rgba(0, 255, 255, 0.55);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.2s ease-out;
}

#heroCta:hover .btn__hint,
#heroCta:focus-visible .btn__hint { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  #heroCtaLabel.is-decrypting { animation: none; }
}

.btn-paste {
  padding: 10px 18px; border-radius: 8px; font-size: 12px; color: var(--cyan);
  align-self: stretch; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-paste:hover { border-color: var(--cyan-bright); box-shadow: var(--glow-sm); }
.btn-paste:active { transform: translate(2px, -1px); }
.btn-paste.is-done { color: var(--green); border-color: rgba(0,255,157,0.5); }

/* =====================================================================
   控制台
   ===================================================================== */
.console { padding: 60px 0; }
/* =====================================================================
   控制台头部 + 下载保存目录（同行右侧 · chip 风格）
   ===================================================================== */
.console__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 30px;
}
.console__head-left { flex: 1; min-width: 0; }
.section-title {
  font-family: var(--font-mono); font-weight: 700; font-size: clamp(24px, 4vw, 38px);
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--text);
  text-shadow: 0 0 14px rgba(0,255,255,0.4); display: flex; align-items: baseline; gap: 14px;
}
.section-title__idx { color: var(--magenta); font-size: 0.6em; text-shadow: 0 0 10px var(--magenta); }
.section-sub { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; color: var(--text-dim); margin-top: 8px; }

/* 保存目录 chip：横向、被 label / input / 按钮三段拼接，无突兀边框 */
.save-dir {
  display: inline-flex; align-items: stretch; gap: 0;
  border: 1px solid var(--border-bright);
  border-radius: 10px; overflow: hidden; background: var(--surface-1);
  box-shadow: var(--glow-sm); height: 38px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.save-dir:hover { border-color: var(--cyan); }
.save-dir:focus-within { border-color: var(--cyan-bright); box-shadow: 0 0 0 1px var(--cyan-bright), 0 0 18px rgba(0,255,255,0.25); }
.save-dir__label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 12px; background: rgba(0,255,255,0.06);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  color: var(--cyan); text-transform: uppercase; white-space: nowrap;
  border-right: 1px solid var(--border-bright);
}
.save-dir__field {
  display: flex; align-items: center; min-width: 180px; max-width: 320px;
  background: transparent; position: relative;
}
.save-dir__prefix {
  padding: 0 8px 0 12px; font-size: 14px; color: var(--text-faint);
  font-family: var(--font-mono); line-height: 1; user-select: none;
  transition: color .2s ease;
}
/* 状态色：empty 默认灰色 / set 绿色 / error 红色 / granted 青色 */
.save-dir.is-granted .save-dir__prefix { color: var(--cyan-bright); }
.save-dir.is-set    .save-dir__prefix { color: var(--green); }
.save-dir.is-error  .save-dir__prefix { color: var(--red, #ff5d7a); }
.save-dir__input {
  flex: 1; min-width: 0; width: 100%;
  background: transparent; border: none; outline: none; color: var(--text);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em;
  padding: 0 6px;
  text-overflow: ellipsis;
}
.save-dir__input::placeholder { color: var(--text-faint); }
.save-dir__input:read-only { color: var(--text-dim); cursor: default; text-overflow: ellipsis; }
.save-dir__clear {
  padding: 0 10px; font-size: 18px; cursor: pointer; color: var(--text-faint);
  transition: color .2s ease; user-select: none; display: none;
}
.save-dir__clear:hover { color: var(--red, #ff5d7a); }
.save-dir__clear.is-visible { display: inline-block; }
/* 「选文件夹」按钮：chip 风格、绿色高亮 */
.save-dir__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 14px; background: linear-gradient(135deg, rgba(0,255,157,0.18), rgba(0,255,255,0.12));
  border: none; border-left: 1px solid var(--border-bright);
  color: var(--green); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer; white-space: nowrap;
  transition: background .2s ease, color .2s ease, text-shadow .2s ease;
}
.save-dir__btn:hover {
  background: linear-gradient(135deg, rgba(0,255,157,0.32), rgba(0,255,255,0.2));
  color: #fff; text-shadow: 0 0 10px var(--green);
}
.save-dir__btn:active { transform: translateY(1px); }
.save-dir__btn-icon { font-size: 14px; line-height: 1; }
.save-dir__btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 响应式：移动端改两行（label 单独一行，input+btn 同行） */
@media (max-width: 720px) {
  .console__head { align-items: stretch; }
  .save-dir { width: 100%; height: auto; flex-direction: column; }
  .save-dir__label { border-right: 0; border-bottom: 1px solid var(--border-bright); padding: 8px 12px; }
  .save-dir__field { min-width: 0; max-width: none; padding: 6px 0; }
  .save-dir__btn { border-left: 0; border-top: 1px solid var(--border-bright); padding: 10px 14px; justify-content: center; }
}

.console__panel {
  border: 1px solid var(--border); background: var(--surface-1);
  box-shadow: var(--glow-sm); border-radius: 10px; padding: 26px;
}
.panel__grid { display: grid; gap: 20px; }

/* 输入框 */
.field__top { margin-bottom: 8px; }
.field__label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan); display: inline-flex; align-items: center; gap: 8px;
}
.field__icon { color: var(--magenta); }
.field__body { display: flex; gap: 12px; align-items: stretch; }
.field__wrap {
  position: relative; flex: 1; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface-2); overflow: hidden;
}
.field__wrap:focus-within { border-color: var(--cyan-bright); box-shadow: 0 0 15px rgba(0,255,255,0.3); }
#shareUrl {
  width: 100%; min-height: 110px; resize: vertical; padding: 14px 16px;
  background: transparent; border: none; outline: none; color: var(--cyan-bright);
  font-family: var(--font-mono); font-size: 14px; line-height: 1.6;
}
#shareUrl::placeholder { color: var(--text-faint); }
.field__glow { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 18px rgba(0,255,255,0.08); }

.field__meta { display: flex; justify-content: space-between; margin-top: 8px; }
.valid { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text-dim); }
.valid__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); box-shadow: 0 0 6px var(--text-faint); }
.valid.is-ok { color: var(--green); } .valid.is-ok .valid__dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.valid.is-bad { color: var(--yellow); } .valid.is-bad .valid__dot { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.counter { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }

.actions { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }

/* =====================================================================
   结果卡片（CRT 扫描线 hover）
   ===================================================================== */
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
.card {
  position: relative; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-1); box-shadow: var(--glow-sm);
  padding: 22px; overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background: repeating-linear-gradient(to bottom, rgba(0,255,255,0.5) 0, rgba(0,255,255,0.5) 1px, transparent 2px, transparent 4px);
  transition: opacity 0.15s;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--glow-md); }
.card:hover::after { opacity: 0.18; }
.card__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card__title {
  font-family: var(--font-mono); font-weight: 700; font-size: 18px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text); text-shadow: 0 0 10px rgba(0,255,255,0.4);
  display: inline-flex; align-items: center; gap: 10px;
}
.card__title-icon { color: var(--cyan-bright); text-shadow: 0 0 10px var(--cyan-bright); }
.card__actions { display: flex; gap: 8px; }

.btn-mini {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface-2); color: var(--text-dim); cursor: pointer; transition: all 0.15s ease-out;
}
.btn-mini:hover { color: var(--cyan-bright); border-color: var(--cyan-bright); box-shadow: var(--glow-sm); }
.btn-mini:active { transform: translate(2px, -1px); }

.status {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--text-dim);
  border-left: 2px solid var(--border); padding: 8px 12px; margin-bottom: 14px;
  background: rgba(0,255,255,0.04);
}
.status.error { color: #ff6b8a; border-left-color: #ff3b6b; background: rgba(255,59,107,0.08); text-shadow: 0 0 8px rgba(255,59,107,0.4); }
.status.success { color: var(--green); border-left-color: var(--green); background: rgba(0,255,157,0.07); text-shadow: 0 0 8px rgba(0,255,157,0.4); }
.status.warn { color: var(--yellow); border-left-color: var(--yellow); background: rgba(250,204,21,0.07); }

.download-box { min-height: 8px; }
.meta { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; display: grid; gap: 6px; }
.meta__row { display: flex; gap: 12px; font-family: var(--font-mono); font-size: 12px; }
.meta__key { color: var(--magenta); min-width: 44px; letter-spacing: 0.1em; text-transform: uppercase; }
.meta__val { color: var(--text-dim); }

/* 进度条 */
.progress-wrap { margin: 6px 0 16px; }
.progress-top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: var(--cyan); letter-spacing: 0.12em; margin-bottom: 6px; }
.progress { position: relative; height: 10px; background: #0a0a12; border: 1px solid var(--border); overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--cyan), var(--cyan-bright)); box-shadow: var(--glow-md); transition: width 0.25s ease-out; }
.progress-glow { position: absolute; top: 0; right: 0; width: 30px; height: 100%; background: rgba(255,255,255,0.6); filter: blur(4px); }
.progress-eq { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; padding: 1px; opacity: 0; transition: opacity 0.2s; }
.progress-eq.is-active { opacity: 0.85; }
.progress-eq span { flex: 1; background: var(--magenta); box-shadow: 0 0 6px var(--magenta); height: 20%; }
.progress-eq.is-active span { animation: eq 0.6s ease-in-out infinite alternate; }
.progress-eq.is-active span:nth-child(2){animation-delay:.1s} .progress-eq.is-active span:nth-child(3){animation-delay:.2s}
.progress-eq.is-active span:nth-child(4){animation-delay:.3s} .progress-eq.is-active span:nth-child(5){animation-delay:.15s}
.progress-eq.is-active span:nth-child(6){animation-delay:.25s} .progress-eq.is-active span:nth-child(7){animation-delay:.05s}
.progress-eq.is-active span:nth-child(8){animation-delay:.35s}
@keyframes eq { from { height: 15%; } to { height: 95%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-glow { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

/* 转写结果 */
.transcript {
  font-family: var(--font-mono); font-size: 14px; line-height: 1.9; color: var(--text);
  max-height: 260px; overflow-y: auto; padding: 12px; border: 1px solid var(--border);
  background: #07070d; min-height: 80px;
}
.transcript .empty { color: var(--text-faint); }
.transcript .line { padding: 2px 0; border-bottom: 1px dashed rgba(34,211,238,0.12); }

.notice {
  display: flex; gap: 10px; margin-top: 14px; padding: 12px; font-size: 12px; line-height: 1.7;
  color: var(--text-dim); border: 1px solid var(--border); background: rgba(34,211,238,0.04);
}
.notice__icon { color: var(--cyan-bright); flex-shrink: 0; }
.notice b { color: var(--cyan); }

/* =====================================================================
   页脚
   ===================================================================== */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 30px 24px;
  border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--text-dim);
}
.footer__brand { color: var(--cyan-bright); text-shadow: 0 0 8px rgba(0,255,255,0.5); text-transform: uppercase; }
.footer__sep { color: var(--magenta); }
.footer__env { color: var(--magenta); }

/* =====================================================================
   加载圈 / 涟漪（保留功能性 spinner）
   ===================================================================== */
.spinner {
  display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border);
  border-top-color: var(--cyan-bright); border-radius: 50%; animation: spin 0.8s linear infinite;
  vertical-align: middle; margin-right: 8px;
}

/* =====================================================================
   动态生成内容：视频预览 / 搜索结果
   ===================================================================== */
.video-info-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); background: var(--surface-2); margin-bottom: 12px; }
.info-title { color: var(--cyan-bright); font-family: var(--font-mono); font-size: 14px; text-shadow: 0 0 8px rgba(0,255,255,0.4); }
.info-author { color: var(--text-dim); font-size: 12px; }
.info-platform { color: var(--magenta); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; }
.dash-badge { color: var(--yellow); border: 1px solid rgba(250,204,21,0.5); padding: 0 6px; font-size: 11px; }

.video-wrapper { margin-bottom: 12px; border: 1px solid var(--border); box-shadow: var(--glow-sm); }
.video-preview { width: 100%; display: block; max-height: 420px; background: #000; }

.download-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.download-link {
  padding: 12px 22px; border-radius: 8px; font-size: 13px; font-weight: 700;
  background: var(--cyan); color: #04060a; border-color: var(--cyan-bright); box-shadow: var(--glow-md);
}
.download-link:hover { box-shadow: var(--glow-lg); }
.download-link:active { transform: translate(2px, -1px); color: var(--magenta); }
.btn-soft {
  padding: 12px 22px; border-radius: 8px; font-size: 13px; color: var(--cyan);
  background: var(--surface-2); border: 1px solid var(--border);
}
.btn-soft:hover { border-color: var(--cyan-bright); box-shadow: var(--glow-sm); color: var(--cyan-bright); }
.btn-soft:active { transform: translate(2px, -1px); }

.dash-notice { font-size: 12px; color: var(--text-dim); margin-top: 8px; border-left: 2px solid var(--yellow); padding-left: 10px; }

.search-header { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 13px; color: var(--cyan); margin-bottom: 12px; letter-spacing: 0.06em; }
.search-query { color: var(--text); }
.search-count { color: var(--magenta); }

/* 搜索结果：扁平列表行（非嵌套卡片，避免卡片套卡片） */
.search-results-grid { display: grid; gap: 2px; }
.search-result-card {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  padding: 12px; border: 1px solid transparent; border-bottom: 1px solid var(--border);
  transition: all 0.15s ease-out; background: transparent;
}
.search-result-card:hover { border-color: var(--border); background: rgba(0,255,255,0.05); box-shadow: var(--glow-sm); }
.result-platform-dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.result-thumb { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--border); }
.result-thumb-placeholder { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--border); color: var(--cyan); font-family: var(--font-display); font-size: 22px; }
.result-info { min-width: 0; }
.result-title { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-uploader { font-size: 11px; color: var(--text-dim); }
.result-duration { font-family: var(--font-mono); font-size: 11px; color: var(--magenta); }
.result-parse-btn { font-size: 11px; padding: 8px 12px; }

.cross-search-trigger {
  display: inline-block; margin-top: 12px; padding: 12px 20px; border-radius: 8px;
  font-size: 13px; color: var(--magenta); border: 1px solid rgba(255,43,214,0.5);
  background: rgba(255,43,214,0.06); box-shadow: 0 0 10px rgba(255,43,214,0.25); cursor: pointer;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em;
}
.cross-search-trigger:hover { box-shadow: 0 0 20px rgba(255,43,214,0.5); color: #fff; }
.cross-search-trigger:active { transform: translate(2px, -1px); }

/* =====================================================================
   响应式
   ===================================================================== */
@media (max-width: 900px) {
  .results-grid { grid-template-columns: 1fr; }
  .field__body { flex-direction: column; }
  .actions { flex-direction: column; }
  .actions .btn-magnetic { width: 100%; }
  /* 首屏并排改为堆叠：hero 上、weather 下 */
  .hero-row { grid-template-columns: 1fr; gap: 24px; padding: 36px 0 12px; }
  .hero-row .hero { padding: 0; text-align: center; }
  .weather--compact { padding: 18px; }
  .weather--compact .weather__days--compact { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .app { padding: 0 16px 60px; }
  .nav { padding: 14px 16px; }
  .hero { padding: 56px 0 20px; }
  .console__panel { padding: 18px; }
  .weather { padding: 18px; }
  .weather__head { flex-direction: column; align-items: stretch; }
  .weather__city { width: 100%; }
  .weather__city-select { flex: 1; }
  .weather__current { flex-direction: column; align-items: center; text-align: center; }
  .weather__days { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   天气组件
   ===================================================================== */
.weather {
  margin: 36px 0 0; padding: 26px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface-1);
  box-shadow: var(--glow-sm);
  position: relative;
}
.weather::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at top, rgba(0,255,255,0.06), transparent 60%);
}
.weather__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 22px;
}
.weather__head-left { flex: 1; min-width: 0; }

.weather__city {
  display: inline-flex; align-items: stretch; gap: 0;
  border: 1px solid var(--border-bright); border-radius: 10px; overflow: hidden;
  background: var(--surface-1); height: 38px;
}
.weather__city-label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 12px; background: rgba(0,255,255,0.06);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  color: var(--cyan); text-transform: uppercase;
  border-right: 1px solid var(--border-bright);
}
.weather__city-select {
  background: transparent; border: none; outline: none;
  color: var(--text); padding: 0 14px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em;
  min-width: 130px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--cyan-bright) 50%),
                    linear-gradient(135deg, var(--cyan-bright) 50%, transparent 50%);
  background-position: calc(100% - 14px) 17px, calc(100% - 9px) 17px;
  background-size: 5px 5px; background-repeat: no-repeat;
  padding-right: 28px;
}
.weather__city-select option { background: var(--surface-2); color: var(--text); }
.weather__city--district { display: flex; width: 100%; margin-top: 10px; }
.weather__city--district[hidden] { display: none; }
.weather__refresh {
  border: none; border-left: 1px solid var(--border-bright);
  background: rgba(0,255,157,0.12); color: var(--green);
  font-family: var(--font-mono); font-size: 18px; padding: 0 14px;
  cursor: pointer; transition: background .2s ease, color .2s ease;
}
.weather__refresh:hover { background: rgba(0,255,157,0.28); color: #fff; }
.weather__refresh.is-loading { animation: spin 1s linear infinite; }
.weather__refresh:disabled { opacity: 0.5; cursor: not-allowed; }

/* 当前天气大卡 */
.weather__current {
  display: flex; align-items: center; gap: 28px;
  padding: 22px;
  border: 1px solid var(--border); border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,255,255,0.04), rgba(255,0,255,0.03));
  margin-bottom: 22px;
}
.weather__now-icon { font-size: 76px; line-height: 1; flex-shrink: 0; filter: drop-shadow(0 0 12px rgba(0,255,255,0.4)); }
.weather__now-info { flex: 1; min-width: 0; }
.weather__now-temp {
  font-family: var(--font-mono); font-size: 56px; font-weight: 700; line-height: 1;
  color: var(--cyan-bright); text-shadow: 0 0 18px rgba(0,255,255,0.4);
  display: flex; align-items: baseline;
}
.weather__now-temp-unit { font-size: 22px; color: var(--text-dim); margin-left: 6px; font-weight: 400; }
.weather__now-text {
  margin-top: 6px; font-family: var(--font-mono); font-size: 16px; letter-spacing: 0.08em;
  color: var(--text); text-transform: uppercase;
}
.weather__now-meta {
  margin-top: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--text-dim);
}
.weather__now-side { display: flex; flex-direction: column; gap: 8px; min-width: 130px; }
.weather__now-extra {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 12px;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface-2);
}
.weather__now-extra span { color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; }
.weather__now-extra b { color: var(--cyan-bright); font-weight: 500; }

/* 7 天网格 */
.weather__days {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px;
  margin-bottom: 12px;
}
.weather__day {
  position: relative;
  padding: 14px 8px 10px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-2);
  cursor: pointer; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  text-align: center; overflow: hidden;
}
.weather__day:hover { border-color: var(--cyan); transform: translateY(-2px); box-shadow: var(--glow-sm); }
.weather__day.is-active { border-color: var(--cyan-bright); box-shadow: 0 0 0 1px var(--cyan-bright), 0 0 18px rgba(0,255,255,0.2); }
.weather__day.is-today { background: linear-gradient(135deg, rgba(0,255,255,0.06), rgba(255,0,255,0.04)); }
.weather__day-dow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--text-dim); text-transform: uppercase;
}
.weather__day.is-today .weather__day-dow { color: var(--magenta); }
.weather__day-date { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); margin-bottom: 6px; }
.weather__day-icon { font-size: 32px; line-height: 1; margin: 6px 0; filter: drop-shadow(0 0 4px rgba(0,255,255,0.3)); }
.weather__day-text { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); margin-bottom: 4px; }
.weather__day-temp { font-family: var(--font-mono); font-size: 13px; color: var(--text); }
.weather__day-tmax { color: var(--red, #ff7a8a); }
.weather__day-tmin { color: var(--cyan-bright); margin-left: 4px; }
.weather__day-pop { font-family: var(--font-mono); font-size: 10px; color: var(--cyan); margin-top: 4px; opacity: 0.85; }

/* ---------- 天气 · 紧凑面板（首屏右侧） ---------- */
.weather--compact { margin: 0; padding: 28px 32px; }
.weather--compact .section-title.weather__section-title {
  font-size: 22px; margin: 0; display: flex; align-items: center; gap: 8px; letter-spacing: 0.08em;
}
.weather--compact .section-title.weather__section-title .field__icon { color: var(--cyan-bright); font-size: 20px; }
.weather--compact .weather__head { margin-bottom: 20px; }
.weather--compact .weather__current { padding: 22px; margin-bottom: 18px; gap: 22px; }
.weather--compact .weather__now-icon { font-size: 80px; }
.weather--compact .weather__now-temp { font-size: 64px; }
.weather--compact .weather__now-temp-unit { font-size: 26px; }
.weather--compact .weather__now-text { font-size: 18px; margin-top: 6px; }
.weather--compact .weather__now-meta { font-size: 14px; margin-top: 6px; }
.weather--compact .weather__now-side { min-width: 160px; gap: 10px; }
.weather--compact .weather__now-extra { font-size: 14px; padding: 8px 14px; }
.weather--compact .weather__now-extra span { font-size: 13px; }
.weather--compact .weather__now-extra b { font-size: 16px; }
.weather--compact .weather__city { height: 44px; }
.weather--compact .weather__city-label { font-size: 14px; padding: 0 14px; }
.weather--compact .weather__city-select { font-size: 15px; min-width: 150px; }
.weather--compact .weather__refresh { font-size: 22px; padding: 0 18px; }
.weather--compact .weather__day { padding: 18px 10px 14px; }
.weather--compact .weather__day-dow { font-size: 15px; }
.weather--compact .weather__day-date { font-size: 12px; margin-bottom: 8px; }
.weather--compact .weather__day-icon { font-size: 42px; margin: 8px 0 6px; }
.weather--compact .weather__day-text { font-size: 13px; margin-bottom: 6px; }
.weather--compact .weather__day-temp { font-size: 17px; }
.weather--compact .weather__day-pop { font-size: 12px; margin-top: 6px; }
.weather--compact .weather__now-side { gap: 6px; min-width: 110px; }
.weather--compact .weather__now-extra { padding: 4px 10px; font-size: 11px; }
.weather--compact .weather__days--compact {
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.weather--compact .weather__day { padding: 10px 4px 8px; }
.weather--compact .weather__day-dow { font-size: 10px; letter-spacing: 0.06em; }
.weather--compact .weather__day-date { font-size: 9px; margin-bottom: 4px; }
.weather--compact .weather__day-icon { font-size: 24px; margin: 4px 0; }
.weather--compact .weather__day-text { font-size: 10px; margin-bottom: 2px; }
.weather--compact .weather__day-temp { font-size: 11px; }
.weather--compact .weather__day-pop { font-size: 9px; margin-top: 2px; }
.weather--compact .weather__hint { font-size: 11px; text-align: center; opacity: 0.7; margin-top: 4px; }
.weather--compact .weather__hours-host { display: none; }
.weather--compact .weather__hours-host:not(:empty) {
  display: block;
  margin-top: 10px;
  background: var(--surface-2);
  border: 1px solid var(--cyan-bright);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 0 18px rgba(0,255,255,0.18);
}
.weather--compact .weather__hours-inline .weather__hours-grid { grid-template-columns: repeat(6, 1fr); gap: 4px; }
.weather--compact .weather__hours-inline .weather__hour { padding: 4px 1px; font-size: 10px; }

/* ---------- 天气 · 错误态 ---------- */
.weather__error {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 12px;
  gap: 6px;
  color: var(--text-dim);
}
.weather__error-icon { font-size: 30px; filter: drop-shadow(0 0 6px rgba(0,255,255,0.3)); }
.weather__error-msg { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }
.weather__error-retry {
  margin-top: 6px;
  padding: 6px 14px;
  border: 1px solid var(--cyan-bright);
  border-radius: 8px;
  background: rgba(0,255,255,0.08);
  color: var(--cyan-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.weather__error-retry:hover { background: rgba(0,255,157,0.18); color: var(--green); border-color: var(--green); }

/* 24h 展开面板 */
.weather__hours {
  position: absolute; top: 100%; left: 0; right: 0;
  margin-top: 4px;
  background: var(--surface-1);
  border: 1px solid var(--cyan-bright); border-radius: 8px;
  padding: 10px; z-index: 5;
  box-shadow: 0 0 18px rgba(0,255,255,0.2);
}
.weather__hours-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px;
}
.weather__hour {
  text-align: center; padding: 4px 2px;
  border: 1px solid transparent; border-radius: 4px;
  font-family: var(--font-mono); font-size: 10px;
}
.weather__hour:hover { border-color: var(--border); background: var(--surface-2); }
.weather__hour-time { color: var(--text-faint); }
.weather__hour-icon { font-size: 14px; line-height: 1; margin: 2px 0; }
.weather__hour-t { color: var(--text); }
.weather__hour-pop { color: var(--cyan); font-size: 9px; }

.weather__hint {
  margin-top: 10px; text-align: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--text-faint);
}

/* =====================================================================
   主题交互动画（滚动入场 · 浮动粒子 · 按钮反馈）
   - 滚动入场走 .reveal-on-scroll，JS 只负责加 .is-revealed
   - prefers-reduced-motion 全部自动关闭（见底部 @media）
   ===================================================================== */

/* ---- 1. 滚动入场 ---- */
.js-fx .reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 0.7s cubic-bezier(0.2,0.8,0.2,1),
              transform 0.7s cubic-bezier(0.2,0.8,0.2,1);
  will-change: opacity, transform;
}
.js-fx .reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: none;
}
/* 错峰：子元素延后出现，制造层次 */
.js-fx .reveal-on-scroll.is-revealed .reveal-child {
  opacity: 0; transform: translateY(8px);
  animation: reveal-child 0.6s 0.15s cubic-bezier(0.2,0.8,0.2,1) forwards;
}
@keyframes reveal-child {
  to { opacity: 1; transform: none; }
}

/* ---- 2. 浮动粒子（点缀 · 23 颗向上飘） ---- */
.particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute; bottom: -10vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,255,0.85), rgba(0,255,255,0.2) 60%, transparent);
  box-shadow: 0 0 6px rgba(0,255,255,0.6);
  opacity: 0;
  animation: particle-rise linear infinite;
}
@keyframes particle-rise {
  0%   { transform: translateY(0) scale(0.5); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-110vh) scale(1); opacity: 0; }
}

/* ---- 5. 「换一句」按钮反馈脉冲 ---- */
.btn--quote {
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn--quote:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0,255,255,0.45), var(--glow-md);
}
.btn--quote.is-pulsing {
  animation: quote-pulse 0.5s ease;
}
@keyframes quote-pulse {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,255,255,0.55); }
  40%  { transform: scale(0.94); box-shadow: 0 0 0 14px rgba(0,255,255,0); }
  100% { transform: scale(1); }
}

/* =====================================================================
   降低动效（无障碍）
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .pill__pulse, .progress-eq.is-active span { animation: none !important; }
  .progress-eq.is-active { opacity: 0.4; }
  .particles { display: none !important; }
  .js-fx .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
}
