/* ==========================================================================
   晨频 09:00 (CHÉNPÍN) — 精密短波收报控制台 × 冷白晨间电报单
   材质体系：暗松柏阳极金属台面 + 内嵌深绿黑玻璃示波窗 + 冷白印刷电报纸
   ========================================================================== */

:root {
  /* 暗台面与硬件金属 */
  --bg-desk: #090f0d;
  --bg-console: #0f1815;
  --bg-console-raised: #15211d;
  --bg-console-well: #060b09;
  --bg-console-hover: #1a2924;

  /* 金属边框与斜光高光 */
  --edge-light: rgba(220, 240, 232, 0.16);
  --edge-mid: rgba(186, 214, 202, 0.10);
  --edge-subtle: rgba(186, 214, 202, 0.06);
  --edge-dark: rgba(0, 0, 0, 0.55);

  /* 暗底文字 */
  --ink-light: #ebf2ee;
  --ink-secondary: #9fb2a9;
  --ink-muted: #687d73;
  --ink-faint: #44574e;

  /* 唯一品牌强调色：微信原生信号翠绿 + 即时推送琥珀 */
  --wx-green: #07c160;
  --wx-green-bright: #1ce07a;
  --wx-green-dim: rgba(7, 193, 96, 0.16);
  --wx-green-glow: rgba(7, 193, 96, 0.36);

  --pulse-amber: #e69d38;
  --pulse-amber-dim: rgba(230, 157, 56, 0.15);
  --pulse-amber-ink: #9a5d07;

  /* 冷白印刷电报纸 */
  --paper-bg: #f4f7f5;
  --paper-surface: #ffffff;
  --paper-tint: #eaeff0;
  --paper-rule: #d5dfda;
  --paper-rule-strong: #b6c5bd;
  --paper-ink: #111b17;
  --paper-ink-2: #384942;
  --paper-ink-3: #63756d;

  /* 字体 */
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  /* 圆角：克制的工业机械倒角 */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  /* 阴影 */
  --shadow-console: 0 28px 72px rgba(0, 0, 0, 0.58), 0 4px 16px rgba(0, 0, 0, 0.36);
  --shadow-paper: 0 24px 64px rgba(0, 0, 0, 0.52), 0 3px 10px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-desk);
  color: var(--ink-light);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-desk);
  /* 清晨 08:59 左上角斜切冷冽天光 + 精密台面微网格 */
  background-image:
    radial-gradient(ellipse 82% 58% at 12% -6%, rgba(154, 214, 198, 0.14) 0%, rgba(22, 54, 44, 0.08) 46%, transparent 74%),
    radial-gradient(ellipse 45% 40% at 88% 12%, rgba(7, 193, 96, 0.06) 0%, transparent 70%),
    linear-gradient(to right, rgba(208, 232, 222, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(208, 232, 222, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  background-attachment: fixed, fixed, scroll, scroll;
  color: var(--ink-light);
  line-height: 1.6;
}

/* 细微磨砂阳极铝表面颗粒（极低透明度，避免纯色发死） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--wx-green-bright);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   顶部收报仪表窄栏 (Bezel Topbar)
   ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 54px;
  background: rgba(9, 15, 13, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--edge-mid);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wx-green);
  box-shadow: 0 0 10px var(--wx-green-glow), 0 0 2px #fff inset;
  flex-shrink: 0;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.brand-led.is-noise {
  background: var(--pulse-amber);
  box-shadow: 0 0 10px rgba(230, 157, 56, 0.55);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-light);
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  border-left: 1px solid var(--edge-mid);
  padding-left: 10px;
  white-space: nowrap;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar-nav a {
  font-size: 13px;
  color: var(--ink-secondary);
  padding: 6px 12px;
  border-radius: var(--r-xs);
  transition: color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.topbar-nav a:hover {
  color: var(--ink-light);
  background: rgba(255, 255, 255, 0.05);
}

.topbar-telemetry {
  display: flex;
  align-items: center;
  gap: 10px;
}

.clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--edge-mid);
  padding: 4px 10px;
  border-radius: var(--r-xs);
  white-space: nowrap;
}

.clock-pill strong {
  color: var(--wx-green-bright);
  font-weight: 600;
}

.sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--edge-mid);
  border-radius: var(--r-xs);
  padding: 5px 10px;
  min-height: 30px;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.sound-btn:hover {
  border-color: var(--edge-light);
  color: var(--ink-light);
}

.sound-btn[aria-pressed="true"] {
  border-color: rgba(7, 193, 96, 0.45);
  color: var(--wx-green-bright);
  background: rgba(7, 193, 96, 0.08);
}

/* ==========================================================================
   第一幕 · 首屏收报台 Hero (1440×900 一屏完整构图)
   ========================================================================== */

.hero-section {
  padding: 24px 0 38px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(350px, 0.92fr);
  gap: 24px;
  align-items: stretch;
}

/* 左侧：暗松柏磨砂金属收报主机 */
.receiver-chassis {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(155deg, rgba(28, 43, 37, 0.65) 0%, rgba(14, 23, 20, 0.92) 38%, rgba(11, 18, 16, 0.98) 100%);
  border: 1px solid var(--edge-mid);
  border-top-color: var(--edge-light);
  border-left-color: rgba(212, 236, 226, 0.13);
  border-radius: var(--r-lg);
  padding: 24px 26px 22px;
  box-shadow: var(--shadow-console);
  overflow: hidden;
}

/* 左上金属斜光光泽 */
.receiver-chassis::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(226, 248, 238, 0.42) 0%, rgba(160, 210, 190, 0.12) 48%, transparent 100%);
  pointer-events: none;
}

.hero-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wx-green-bright);
}

.eyebrow-tag::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--wx-green);
}

.channel-meta-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-secondary);
  background: rgba(6, 11, 9, 0.65);
  border: 1px solid var(--edge-mid);
  padding: 3px 9px;
  border-radius: var(--r-xs);
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink-light);
}

.hero-title .accent-word {
  color: var(--wx-green-bright);
  position: relative;
}

.hero-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
  max-width: 62ch;
  line-height: 1.65;
}

/* 内嵌深绿黑玻璃示波窗（核心视觉记忆点） */
.scope-frame {
  position: relative;
  border-radius: var(--r-md);
  background: var(--bg-console-well);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 8px 28px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px rgba(7, 193, 96, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 16px;
}

/* 玻璃斜角反光 */
.scope-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(220, 245, 236, 0.045) 0%, transparent 34%, transparent 78%, rgba(7, 193, 96, 0.025) 100%);
  pointer-events: none;
}

.scope-hud-top {
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.scope-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-light);
  background: rgba(6, 11, 9, 0.82);
  border: 1px solid rgba(7, 193, 96, 0.35);
  padding: 4px 10px;
  border-radius: var(--r-xs);
  backdrop-filter: blur(6px);
}

.scope-status-badge.is-noisy {
  border-color: rgba(230, 157, 56, 0.45);
  color: #f6c478;
}

.scope-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wx-green-bright);
  box-shadow: 0 0 8px var(--wx-green-bright);
}

.scope-status-badge.is-noisy .scope-dot {
  background: var(--pulse-amber);
  box-shadow: 0 0 8px var(--pulse-amber);
}

.scope-snr-readout {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-secondary);
  background: rgba(6, 11, 9, 0.78);
  border: 1px solid var(--edge-subtle);
  padding: 4px 9px;
  border-radius: var(--r-xs);
}

.scope-snr-readout strong {
  color: var(--wx-green-bright);
}

#signalCanvas {
  display: block;
  width: 100%;
  height: 292px;
  cursor: crosshair;
  touch-action: pan-y;
}

/* 示波窗下沿独立阳极铝信息条（绝不与波形画布重叠） */
.scope-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: linear-gradient(180deg, rgba(16, 26, 22, 0.96) 0%, rgba(10, 17, 14, 0.98) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.scope-hover-info {
  color: var(--ink-secondary);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scope-freq-span {
  flex-shrink: 0;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

/* 物理控制台：阻尼滤波滑杆 + 双主操作钮 */
.control-deck {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(7, 13, 11, 0.62);
  border: 1px solid var(--edge-subtle);
  border-radius: var(--r-md);
  padding: 14px 16px;
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.slider-end {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}

.slider-end.active-noise {
  color: var(--pulse-amber);
  font-weight: 600;
}

.slider-end.active-locked {
  color: var(--wx-green-bright);
  font-weight: 600;
}

.slider-readout {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-light);
}

/* 定制工业阻尼推子：滚花铝键帽 + 精准刻度尺 */
.tuner-track-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tuner-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.25) 100%),
    linear-gradient(90deg, rgba(230, 157, 56, 0.55) 0%, rgba(120, 150, 136, 0.28) 46%, rgba(7, 193, 96, 0.72) 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.82), 0 1px 0 rgba(255, 255, 255, 0.06);
  outline: none;
  cursor: ew-resize;
}

.tuner-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 34px;
  height: 24px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 22%, rgba(0, 0, 0, 0.28) 22%, rgba(0, 0, 0, 0.28) 27%, transparent 27%, transparent 46%, #07c160 46%, #07c160 54%, transparent 54%, transparent 73%, rgba(0, 0, 0, 0.28) 73%, rgba(0, 0, 0, 0.28) 78%, transparent 78%),
    linear-gradient(180deg, #e5eee9 0%, #b5c6be 52%, #8a9d94 100%);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: grab;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.tuner-range::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.8), 0 0 12px rgba(7, 193, 96, 0.45);
}

.tuner-range::-moz-range-thumb {
  width: 34px;
  height: 24px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 22%, rgba(0, 0, 0, 0.28) 22%, rgba(0, 0, 0, 0.28) 27%, transparent 27%, transparent 46%, #07c160 46%, #07c160 54%, transparent 54%, transparent 73%, rgba(0, 0, 0, 0.28) 73%, rgba(0, 0, 0, 0.28) 78%, transparent 78%),
    linear-gradient(180deg, #e5eee9 0%, #b5c6be 52%, #8a9d94 100%);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.72);
  cursor: grab;
}

.tuner-ruler {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-faint);
  user-select: none;
}

.tuner-ruler span {
  position: relative;
  padding-top: 5px;
}

.tuner-ruler span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 4px;
  background: rgba(186, 214, 202, 0.24);
}

.deck-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.action-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(28, 224, 122, 0.55);
  background: linear-gradient(180deg, #0cd06a 0%, #07b057 100%);
  color: #04190e;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 20px rgba(7, 193, 96, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 26px rgba(7, 193, 96, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(230, 157, 56, 0.48);
  background: rgba(230, 157, 56, 0.13);
  color: #f6c478;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.btn-amber:hover {
  background: rgba(230, 157, 56, 0.22);
  border-color: rgba(230, 157, 56, 0.72);
}

.btn-amber:active {
  transform: translateY(1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--edge-mid);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-light);
  border-color: var(--edge-light);
}

.deck-kpi-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

.deck-kpi-strip b {
  color: var(--ink-light);
  font-weight: 600;
}

/* ==========================================================================
   首屏右侧 · 放在暗台面上的冷白「09:00 晨间电报单预览」
   ========================================================================== */

.hero-slip {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--paper-bg);
  /* 纸面微细肌理 */
  background-image:
    radial-gradient(rgba(17, 27, 23, 0.028) 1px, transparent 0),
    linear-gradient(180deg, #fafcfa 0%, #f1f5f3 100%);
  background-size: 14px 14px, 100% 100%;
  color: var(--paper-ink);
  border-radius: 3px 3px var(--r-md) var(--r-md);
  box-shadow: var(--shadow-paper);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

/* 顶部电报纸精加工撕纸微齿孔 */
.paper-perforation {
  height: 15px;
  background:
    radial-gradient(circle at 11px 7.5px, #121b17 2.4px, rgba(0, 0, 0, 0.16) 2.8px, transparent 3.2px) repeat-x;
  background-size: 22px 15px;
  border-bottom: 1px dashed var(--paper-rule-strong);
  background-color: #eef3f0;
  flex-shrink: 0;
}

/* 左侧处于算法混流态时，右侧电报单的实时物理联动遮罩 */
.hero-slip-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.slip-noise-veil {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: rgba(244, 247, 245, 0.86);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 24px;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.hero-slip.is-unfiltered .slip-noise-veil {
  opacity: 1;
  pointer-events: auto;
}

.slip-noise-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--pulse-amber-ink);
  background: rgba(230, 157, 56, 0.22);
  border: 1px solid rgba(230, 157, 56, 0.5);
  padding: 3px 10px;
  border-radius: 3px;
}

.slip-noise-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--paper-ink);
  line-height: 1.38;
}

.slip-noise-desc {
  margin: 0;
  font-size: 13px;
  color: var(--paper-ink-2);
  line-height: 1.62;
  max-width: 30ch;
}

.slip-live-tag.is-noise {
  color: var(--pulse-amber-ink);
}

.slip-live-tag.is-noise::before {
  background: var(--pulse-amber);
}

.slip-head {
  padding: 16px 20px 14px;
  border-bottom: 1.5px solid var(--paper-ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slip-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--paper-ink-3);
}

.slip-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #058f46;
  font-weight: 600;
}

.slip-live-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wx-green);
}

.slip-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.slip-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper-ink);
}

.slip-saved {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #057a3c;
  background: rgba(7, 193, 96, 0.11);
  border: 1px solid rgba(7, 193, 96, 0.25);
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.slip-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 20px;
  background: rgba(213, 223, 218, 0.35);
  border-bottom: 1px solid var(--paper-rule);
}

.slip-stat-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.slip-stat-num {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--paper-ink);
  line-height: 1.2;
}

.slip-stat-label {
  font-size: 11px;
  color: var(--paper-ink-3);
}

.slip-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 6px 20px;
}

.slip-entry {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 0;
  border-bottom: 1px solid var(--paper-rule);
  text-align: left;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  width: 100%;
  transition: background 0.15s ease, padding-left 0.15s ease;
}

.slip-entry:last-child {
  border-bottom: 0;
}

.slip-entry:hover {
  padding-left: 6px;
}

.slip-entry-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--paper-ink-3);
}

.slip-account-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--paper-ink-2);
}

.slip-mode-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
}

.slip-mode-badge.instant {
  color: var(--pulse-amber-ink);
  background: rgba(230, 157, 56, 0.22);
}

.slip-mode-badge.morning {
  color: #057a3c;
  background: rgba(7, 193, 96, 0.14);
}

.slip-entry-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--paper-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slip-entry-liner {
  font-size: 12px;
  line-height: 1.48;
  color: var(--paper-ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slip-footer {
  padding: 12px 20px 15px;
  border-top: 1px solid var(--paper-rule);
  background: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.slip-footer-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--paper-ink-3);
}

.slip-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: #057a3c;
  padding: 6px 10px;
  border-radius: var(--r-xs);
  background: rgba(7, 193, 96, 0.11);
  transition: background 0.16s ease;
}

.slip-cta:hover {
  background: rgba(7, 193, 96, 0.2);
}

/* ==========================================================================
   通用章节头（与暗台面一致的精密编号系统）
   ========================================================================== */

.section-block {
  padding: 36px 0 44px;
  scroll-margin-top: 68px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wx-green-bright);
  margin-bottom: 6px;
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.5vw, 31px);
  font-weight: 700;
  color: var(--ink-light);
  line-height: 1.25;
}

.section-desc {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-secondary);
  max-width: 60ch;
}

/* ==========================================================================
   第二幕 · 冷白完整「今日晨间电报单」
   ========================================================================== */

.telegraph-sheet {
  position: relative;
  background-color: var(--paper-bg);
  background-image:
    radial-gradient(rgba(17, 27, 23, 0.025) 1px, transparent 0),
    linear-gradient(180deg, #fafcfa 0%, #f2f6f4 100%);
  background-size: 16px 16px, 100% 100%;
  color: var(--paper-ink);
  border-radius: 3px 3px var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow-paper);
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.sheet-masthead {
  padding: 20px 28px 18px;
  border-bottom: 2px solid var(--paper-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.masthead-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.masthead-issue {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--paper-ink-3);
}

.masthead-headline {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--paper-ink);
}

.masthead-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.schedule-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-surface);
  border: 1px solid var(--paper-rule-strong);
  border-radius: var(--r-xs);
  padding: 5px 10px;
  font-size: 12.5px;
  color: var(--paper-ink-2);
}

.schedule-picker select {
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12.5px;
  color: #057a3c;
  cursor: pointer;
  outline: none;
}

.sheet-toolbar {
  padding: 14px 28px;
  background: rgba(213, 223, 218, 0.34);
  border-bottom: 1px solid var(--paper-rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.paper-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.paper-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: var(--r-xs);
  border: 1px solid transparent;
  background: transparent;
  color: var(--paper-ink-2);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.paper-tab:hover {
  background: rgba(255, 255, 255, 0.7);
}

.paper-tab.is-active {
  background: var(--paper-ink);
  color: #f4f7f5;
}

.paper-tab .count-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.75;
}

.sheet-search-wrap {
  position: relative;
  min-width: 240px;
  flex: 0 1 300px;
}

.sheet-search-wrap svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--paper-ink-3);
  pointer-events: none;
}

.sheet-search {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 34px;
  border-radius: var(--r-xs);
  border: 1px solid var(--paper-rule-strong);
  background: var(--paper-surface);
  color: var(--paper-ink);
  font-size: 13px;
}

.sheet-search::placeholder {
  color: var(--paper-ink-3);
}

/* 电报文章网格：两栏印刷排布，桌面高密度不松垮，手机单栏舒展 */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--paper-rule);
  gap: 1px;
}

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  background: var(--paper-surface);
  padding: 22px 26px 20px;
  transition: background 0.16s ease;
}

.article-card:hover {
  background: #fbfdfb;
}

.article-card.is-instant {
  background: linear-gradient(180deg, rgba(230, 157, 56, 0.055) 0%, #ffffff 34%);
}

.article-card.is-fresh {
  animation: freshFlash 1.5s ease-out;
}

@keyframes freshFlash {
  0% { background: rgba(7, 193, 96, 0.24); }
  100% { background: linear-gradient(180deg, rgba(230, 157, 56, 0.055) 0%, #ffffff 34%); }
}

.article-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.article-source {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}

.freq-chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--paper-ink-3);
  background: var(--paper-tint);
  border: 1px solid var(--paper-rule);
  padding: 1px 6px;
  border-radius: 3px;
}

.alias-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--paper-ink);
}

.fullname-hint {
  font-size: 11.5px;
  color: var(--paper-ink-3);
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
}

.delivery-badge.instant {
  color: var(--pulse-amber-ink);
  background: rgba(230, 157, 56, 0.2);
}

.delivery-badge.morning {
  color: #057a3c;
  background: rgba(7, 193, 96, 0.13);
}

.time-saved-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--paper-ink-3);
}

.article-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--paper-ink);
}

.article-title button {
  all: unset;
  cursor: pointer;
}

.article-title button:hover {
  color: #057a3c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-oneliner {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  color: #163026;
  padding-left: 11px;
  border-left: 2.5px solid var(--wx-green);
}

.article-card.is-instant .article-oneliner {
  border-left-color: var(--pulse-amber);
}

.article-bullets {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.58;
  color: var(--paper-ink-2);
}

.article-bullets li::marker {
  color: var(--paper-ink-3);
}

.article-evidence {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--paper-ink-2);
  background: var(--paper-bg);
  border: 1px solid var(--paper-rule);
  border-radius: var(--r-xs);
  padding: 9px 12px;
}

.article-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--paper-rule);
  flex-wrap: wrap;
}

.article-action-left,
.article-action-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.paper-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: var(--r-xs);
  border: 1px solid var(--paper-rule-strong);
  background: var(--paper-surface);
  color: var(--paper-ink-2);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.paper-btn:hover {
  border-color: var(--paper-ink);
  color: var(--paper-ink);
  background: var(--paper-bg);
}

.paper-btn.is-primary {
  background: var(--paper-ink);
  border-color: var(--paper-ink);
  color: #f4f7f5;
}

.paper-btn.is-primary:hover {
  background: #066f38;
  border-color: #066f38;
}

.paper-btn.is-bookmarked {
  border-color: rgba(7, 193, 96, 0.55);
  background: rgba(7, 193, 96, 0.12);
  color: #057a3c;
}

.empty-sheet {
  grid-column: 1 / -1;
  background: var(--paper-surface);
  padding: 46px 24px;
  text-align: center;
  color: var(--paper-ink-3);
  font-size: 14px;
}

/* ==========================================================================
   第三幕 · 记不住全称？凭印象搜号 & 订阅策略矩阵
   ========================================================================== */

.console-panel {
  background: linear-gradient(160deg, rgba(22, 34, 29, 0.78) 0%, rgba(12, 20, 17, 0.96) 100%);
  border: 1px solid var(--edge-mid);
  border-top-color: var(--edge-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-console);
  overflow: hidden;
}

.recall-bar {
  padding: 20px 24px;
  border-bottom: 1px solid var(--edge-mid);
  background: rgba(6, 11, 9, 0.45);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recall-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.recall-input-wrap {
  position: relative;
  flex: 1 1 320px;
}

.recall-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--wx-green-bright);
  pointer-events: none;
}

.recall-input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--edge-light);
  background: var(--bg-console-well);
  color: var(--ink-light);
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.recall-input::placeholder {
  color: var(--ink-muted);
}

.recall-input:focus {
  outline: none;
  border-color: var(--wx-green);
  box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.16);
}

.recall-hints {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-muted);
}

.hint-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--edge-mid);
  border-radius: var(--r-xs);
  padding: 4px 10px;
  transition: all 0.15s ease;
}

.hint-chip:hover {
  border-color: var(--wx-green);
  color: var(--wx-green-bright);
  background: rgba(7, 193, 96, 0.08);
}

/* 新增自定义公众号折叠表单 */
.add-account-form {
  display: none;
  padding: 18px 24px;
  border-bottom: 1px solid var(--edge-mid);
  background: rgba(7, 193, 96, 0.05);
}

.add-account-form.is-open {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 1fr 0.8fr auto;
  gap: 10px;
  align-items: end;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-group label {
  font-size: 11.5px;
  color: var(--ink-secondary);
}

.field-input,
.field-select {
  height: 38px;
  padding: 0 11px;
  border-radius: var(--r-xs);
  border: 1px solid var(--edge-light);
  background: var(--bg-console-well);
  color: var(--ink-light);
  font-size: 13px;
}

.accounts-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--edge-subtle);
}

.account-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: var(--bg-console);
  transition: background 0.16s ease;
}

.account-row:hover {
  background: var(--bg-console-raised);
}

.account-row.is-muted {
  opacity: 0.62;
}

.account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.account-alias-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.account-freq {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--wx-green-bright);
  background: rgba(7, 193, 96, 0.1);
  border: 1px solid rgba(7, 193, 96, 0.25);
  padding: 1px 6px;
  border-radius: 3px;
}

.account-row.is-instant .account-freq {
  color: #f6c478;
  background: rgba(230, 157, 56, 0.12);
  border-color: rgba(230, 157, 56, 0.35);
}

.account-row.is-muted .account-freq {
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--edge-mid);
}

.account-alias {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-light);
}

.alias-edit-btn {
  font-size: 11px;
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid transparent;
  padding: 1px 6px;
  border-radius: 3px;
}

.alias-edit-btn:hover {
  color: var(--ink-light);
  border-color: var(--edge-mid);
}

.account-fullname {
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.account-fullname mark,
.account-alias mark {
  background: rgba(7, 193, 96, 0.28);
  color: #eafff2;
  padding: 0 2px;
  border-radius: 2px;
}

.account-bio {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.account-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.account-cat-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

/* 三态分段拨片：更新即推 | 早 09:00 | 静音 */
.mode-switch {
  display: inline-flex;
  background: var(--bg-console-well);
  border: 1px solid var(--edge-mid);
  border-radius: var(--r-xs);
  padding: 2px;
  gap: 2px;
}

.mode-opt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ink-muted);
  font-size: 11.5px;
  font-weight: 600;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.mode-opt:hover {
  color: var(--ink-light);
}

.mode-opt.active-instant {
  background: rgba(230, 157, 56, 0.22);
  color: #ffd38e;
  box-shadow: inset 0 0 0 1px rgba(230, 157, 56, 0.45);
}

.mode-opt.active-morning {
  background: rgba(7, 193, 96, 0.2);
  color: var(--wx-green-bright);
  box-shadow: inset 0 0 0 1px rgba(7, 193, 96, 0.45);
}

.mode-opt.active-muted {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-secondary);
}

/* ==========================================================================
   第四幕 · 三端原生打通坞 (微信原生 · WorkBuddy · DeepSeek Harness)
   ========================================================================== */

.bridge-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 20px 0;
  border-bottom: 1px solid var(--edge-mid);
  background: rgba(6, 11, 9, 0.55);
  overflow-x: auto;
}

.bridge-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.bridge-tab:hover {
  color: var(--ink-light);
}

.bridge-tab.is-active {
  color: var(--wx-green-bright);
  border-bottom-color: var(--wx-green);
}

.bridge-body {
  padding: 24px;
}

.bridge-pane {
  display: none;
}

.bridge-pane.is-active {
  display: block;
}

/* Tab 1: 微信原生卡片实景预览 */
.wechat-bridge-grid {
  display: grid;
  grid-template-columns: minmax(290px, 380px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.wx-phone {
  background: #ededed;
  color: #191919;
  border-radius: 22px;
  border: 6px solid #1c2824;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.58), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wx-status-bar {
  background: #ededed;
  padding: 7px 16px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #222;
}

.wx-phone-bar {
  background: #ededed;
  border-bottom: 1px solid #dcdcdc;
  padding: 8px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.wx-phone-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #07c160;
  font-weight: 600;
}

.wx-chat-scroll {
  padding: 13px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-height: 396px;
  overflow-y: auto;
}

.wx-phone-inputbar {
  background: #f7f7f7;
  border-top: 1px solid #dedede;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wx-input-fake {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e3e3e3;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 12px;
  color: #777;
  text-align: left;
  cursor: pointer;
}

.wx-input-fake:hover {
  border-color: #07c160;
  color: #222;
}

.wx-send-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: #07c160;
  border: 0;
  border-radius: 5px;
  padding: 6px 10px;
}

.wx-time-stamp {
  text-align: center;
  font-size: 11px;
  color: #888;
}

.wx-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.wx-avatar {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(135deg, #0b2418 0%, #07c160 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.wx-bubble {
  background: #ffffff;
  border-radius: 6px;
  padding: 11px 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #1a1a1a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  max-width: calc(100% - 42px);
}

.wx-bubble-head {
  font-weight: 700;
  font-size: 13px;
  color: #111;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid #f0f0f0;
}

.wx-bubble-item {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #ececec;
}

.wx-bubble-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.wx-bubble-src {
  font-size: 11px;
  font-weight: 700;
  color: #06a350;
}

.wx-bubble-link {
  display: inline-block;
  margin-top: 3px;
  font-size: 11.5px;
  color: #576b95;
  font-weight: 600;
  cursor: pointer;
}

.wx-bubble-link:hover {
  text-decoration: underline;
}

.bridge-explain {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bridge-explain h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--ink-light);
}

.bridge-explain p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.7;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.principle-card {
  background: rgba(6, 11, 9, 0.55);
  border: 1px solid var(--edge-mid);
  border-radius: var(--r-sm);
  padding: 14px 15px;
}

.principle-card strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink-light);
  margin-bottom: 4px;
}

.principle-card span {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Tab 2 & 3: 实时编译代码配方视图 */
.recipe-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.recipe-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recipe-file-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--edge-mid);
  background: rgba(6, 11, 9, 0.5);
  text-align: left;
  transition: all 0.15s ease;
}

.recipe-file-btn:hover {
  border-color: var(--edge-light);
}

.recipe-file-btn.is-active {
  border-color: rgba(7, 193, 96, 0.55);
  background: rgba(7, 193, 96, 0.1);
}

.recipe-filename {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-light);
  word-break: break-all;
}

.recipe-file-btn.is-active .recipe-filename {
  color: var(--wx-green-bright);
}

.recipe-filedesc {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.code-panel {
  border-radius: var(--r-md);
  border: 1px solid var(--edge-mid);
  background: var(--bg-console-well);
  overflow: hidden;
}

.code-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--edge-subtle);
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
}

.code-path {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-secondary);
}

.code-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-pre {
  margin: 0;
  padding: 16px 18px;
  max-height: 410px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 12.2px;
  line-height: 1.68;
  color: #cfe4da;
  white-space: pre;
  tab-size: 2;
}

.recipe-sync-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.recipe-sync-note strong {
  color: var(--wx-green-bright);
}

/* ==========================================================================
   收尾结语（Footer）
   ========================================================================== */

.site-footer {
  padding: 34px 0 54px;
  border-top: 1px solid var(--edge-subtle);
  text-align: center;
}

.closing-quote {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-light);
}

.footer-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* ==========================================================================
   精读抽屉 (Slide-over Reader Drawer) & 微信实时推送 Toast
   ========================================================================== */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(4, 8, 7, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.reader-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(580px, 100vw);
  background: var(--paper-bg);
  color: var(--paper-ink);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.55);
  transform: translateX(102%);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.reader-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--paper-rule);
  background: var(--paper-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-close {
  width: 34px;
  height: 34px;
  border-radius: var(--r-xs);
  border: 1px solid var(--paper-rule-strong);
  background: var(--paper-bg);
  color: var(--paper-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.38;
  color: var(--paper-ink);
}

.drawer-section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #057a3c;
  margin-bottom: 6px;
}

.drawer-box {
  background: var(--paper-surface);
  border: 1px solid var(--paper-rule);
  border-radius: var(--r-sm);
  padding: 14px 16px;
}

.drawer-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #edf3f0;
  border: 1px solid var(--paper-rule-strong);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  flex-wrap: wrap;
}

.drawer-link-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #164e34;
  word-break: break-all;
}

.drawer-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--paper-rule);
  background: var(--paper-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* 微信原生风格即刻推送悬浮提示（模拟更新即推时出现） */
.push-toast-stack {
  position: fixed;
  top: 66px;
  right: 20px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(370px, calc(100vw - 28px));
  pointer-events: none;
}

.push-toast {
  pointer-events: auto;
  background: rgba(14, 24, 20, 0.96);
  border: 1px solid rgba(7, 193, 96, 0.55);
  border-left: 3.5px solid var(--wx-green);
  border-radius: var(--r-md);
  padding: 13px 15px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 5px;
  animation: toastSlideIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.push-toast.is-instant {
  border-color: rgba(230, 157, 56, 0.6);
  border-left-color: var(--pulse-amber);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.push-toast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--wx-green-bright);
}

.push-toast-close {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-secondary);
  width: 20px;
  height: 20px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.push-toast-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.push-toast.is-instant .push-toast-head {
  color: #f6c478;
}

.push-toast-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-light);
  line-height: 1.4;
}

.push-toast-sub {
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   响应式适配（平板 + 手机 390×844 精细打磨）
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid,
  .accounts-list {
    grid-template-columns: 1fr;
  }

  .wechat-bridge-grid,
  .recipe-shell {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }

  .topbar {
    height: 50px;
  }

  .topbar-nav,
  .brand-sub {
    display: none;
  }

  .clock-pill {
    padding: 3px 8px;
    font-size: 11px;
  }

  .sound-btn span {
    display: none;
  }

  .hero-section {
    padding: 14px 0 24px;
  }

  .receiver-chassis {
    padding: 16px 15px 15px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .eyebrow-tag {
    font-size: 10.5px;
    letter-spacing: 0.06em;
  }

  #signalCanvas {
    height: 238px;
  }

  .scope-hud-top {
    top: 8px;
    left: 10px;
    right: 10px;
  }

  .scope-snr-readout,
  .scope-freq-span,
  .hide-xs {
    display: none;
  }

  .scope-subbar {
    padding: 7px 11px;
    font-size: 10.5px;
  }

  .control-deck {
    padding: 12px;
  }

  .slider-labels {
    font-size: 11px;
  }

  .slider-end,
  .slider-readout {
    font-size: 10.5px;
    white-space: nowrap;
  }

  .action-group {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .btn-primary,
  .btn-amber {
    width: 100%;
    min-height: 44px;
    padding: 0 8px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .deck-kpi-strip {
    width: 100%;
    justify-content: space-between;
    font-size: 11px;
  }

  .sheet-masthead,
  .sheet-toolbar,
  .article-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sheet-search-wrap {
    width: 100%;
    flex: 1 1 100%;
  }

  .recall-bar,
  .account-row,
  .bridge-body {
    padding-left: 15px;
    padding-right: 15px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .mode-switch {
    width: 100%;
    justify-content: space-between;
  }

  .mode-opt {
    flex: 1;
    justify-content: center;
    min-height: 36px;
  }

  .push-toast-stack {
    top: 58px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .reader-drawer {
    width: 100vw;
  }
}

/* 尊重系统减弱动态效果设置 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
