/* 回车比特 · 站点样式
   无外部依赖（不引用 Google Fonts / CDN），保证国内访问速度。
   浅色 / 深色自动跟随系统。 */

:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #efeee9;
  --text: #17171a;
  --muted: #62626b;
  --faint: #9a9aa2;
  --border: rgba(23, 23, 26, 0.09);
  --border-strong: rgba(23, 23, 26, 0.16);
  --accent: #4b4bf0;
  --accent-ink: #ffffff;
  --accent-soft: rgba(75, 75, 240, 0.09);
  --logo-accent: #8f8fff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -16px rgba(0, 0, 0, 0.18);

  /* 随手弹幕的霓虹色 */
  --neon: #3cf06e;
  --neon-2: #a463ff;
  --led-bg: #050807;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --max: 1080px;
  --doc-max: 760px;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0f;
    --surface: #15151a;
    --surface-2: #1c1c22;
    --text: #f1f1f3;
    --muted: #a3a3ad;
    --faint: #6f6f79;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --accent: #8f8fff;
    --accent-ink: #0c0c0f;
    --accent-soft: rgba(143, 143, 255, 0.13);
    --logo-accent: #4b4bf0;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 16px 40px -24px rgba(0, 0, 0, 0.8);
  }
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
::selection { background: var(--accent-soft); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 16px;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
/* Logo：7×7 像素拼成的回车箭头，箭头尖为强调色。深浅色自动反转 */
.brand-mark {
  display: block;
  flex: none;
  width: 32px;
  height: 32px;
}
/* 点阵字标“回车比特”（方舟像素字体 12px 的 11×11 字形）
   顶栏：每格 2px、实心像素，小尺寸下最清晰 */
.brand-word {
  display: block;
  flex: none;
  width: 100px;
  height: 22px;
  fill: currentColor;
}
/* 英文字标 hcbits：35×8 格，每格 3px */
.brand-word--en { width: 105px; height: 24px; }

/* ---------- 语言切换 ---------- */
/* 重置文档页 FAQ 用的通用 details 样式 */
details.lang,
details.lang[open] {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.lang summary {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--text); background: var(--surface-2); }
.lang-icon { width: 16px; height: 16px; flex: none; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 140px;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.35);
}
.lang-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  white-space: nowrap;
}
.lang-menu a:hover { background: var(--surface-2); text-decoration: none; }
.lang-menu a[aria-current="true"] { color: var(--accent); font-weight: 600; }
.lang-menu a[aria-current="true"]::after { content: " ✓"; }

/* 语言建议条 */
.lang-suggest {
  border-bottom: 1px solid var(--border);
  background: var(--accent-soft);
  font-size: 14px;
}
.lang-suggest .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.lang-suggest span { margin-right: auto; }

/* 窄屏：收紧顶栏，保证 Logo、导航和语言切换放得下 */
@media (max-width: 440px) {
  .nav { gap: 0; }
  .nav a, .lang summary { padding: 6px 7px; }
}
@media (max-width: 480px) {
  .brand-word--en { width: 70px; height: 16px; }
  .site-header .container:has(.nav > a:nth-of-type(3)) .brand-word:not(.brand-word--en) { display: none; }
}
@media (max-width: 370px) {
  .brand-word:not(.brand-word--en) { display: none; }
  .lang summary span { display: none; } /* 只留地球图标 */
  .nav a, .lang summary { padding: 6px 5px; }
}
.lm-bg { fill: var(--text); }
.lm-px { fill: var(--bg); }
.lm-ac { fill: var(--logo-accent); }
.nav {
  display: flex;
  gap: 4px;
  font-size: 14px;
}
.nav a {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
}
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); }

@media (max-width: 480px) {
  html[lang="en"] .site-header .container { gap: 8px; }
  html[lang="en"] .brand { gap: 6px; }
  html[lang="en"] .nav { gap: 0; }
  html[lang="en"] .nav > a, html[lang="en"] .lang summary { padding-inline: 5px; }
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { color: var(--faint); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 550;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; border-color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-primary:hover { opacity: 0.9; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- 首页主视觉 ---------- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}
.hero::before {
  /* 淡淡的点阵背景 */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 30% 20%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 750;
  letter-spacing: -0.025em;
}
.hero .lead {
  max-width: 34em;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 19px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.keycap {
  display: inline-grid;
  place-items: center;
  min-width: 1.35em;
  height: 1.12em;
  padding: 0 0.22em;
  margin: 0 0.06em;
  border: 2px solid var(--border-strong);
  border-bottom-width: 7px;
  border-radius: 0.2em;
  background: var(--surface);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.82em;
  line-height: 1;
  vertical-align: 0.06em;
  animation: keypress 3.2s ease-in-out infinite;
}
@keyframes keypress {
  0%, 82%, 100% { transform: translateY(0); border-bottom-width: 7px; }
  88% { transform: translateY(4px); border-bottom-width: 3px; }
}

/* ---------- 区块 ---------- */
.section { padding: 40px 0; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 20px;
}
.section-head h2 { margin: 0; font-size: clamp(22px, 3.4vw, 28px); }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- App 卡片（首页） ---------- */
.app-list { display: grid; gap: 16px; }
@media (min-width: 900px) { .app-list { grid-template-columns: 1.6fr 1fr; } }

.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.app-icon {
  width: 76px;
  height: 76px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px var(--border), 0 8px 18px -10px rgba(0, 0, 0, 0.45);
}
.app-card h3 { margin: 2px 0 2px; font-size: 20px; }
.app-card .sub { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.app-card .desc { margin: 0 0 14px; font-size: 15px; }
.app-card .actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 520px) {
  .app-card { grid-template-columns: 1fr; }
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip {
  display: inline-block;
  padding: 1px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  line-height: 20px;
}

.app-card.coming {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border-style: dashed;
  border-color: var(--border-strong);
  background: transparent;
  box-shadow: none;
  color: var(--muted);
}
.app-card.coming strong { color: var(--text); font-size: 17px; }
.app-card.coming .cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: -0.15em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 联系卡片 ---------- */
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.contact h2 { margin: 0 0 4px; font-size: 20px; }
.contact p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 56px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.site-footer a { color: var(--muted); }
.site-footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.site-footer .beian { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* =========================================================
   App 介绍页（随手弹幕）
   ========================================================= */
.app-hero { padding: 24px 0 8px; }
.app-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 8px 0 22px;
}
.app-head .app-icon { width: 92px; height: 92px; }
.app-head h1 { margin: 0; font-size: clamp(28px, 5vw, 40px); }
.app-head p { margin: 2px 0 0; color: var(--muted); }
.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}
.app-meta li::before { content: "· "; color: var(--faint); }
.app-meta li:first-child::before { content: ""; }

/* LED 灯牌演示 */
.led {
  position: relative;
  overflow: hidden;
  margin: 24px 0 8px;
  border-radius: var(--radius-l);
  background: var(--led-bg);
  box-shadow:
    0 0 0 1px rgba(60, 240, 110, 0.25),
    0 0 0 6px #0b0f0d,
    0 0 0 7px rgba(164, 99, 255, 0.35),
    0 30px 60px -30px rgba(60, 240, 110, 0.45);
}
.led-track {
  display: flex;
  width: max-content;
  padding: clamp(18px, 4vw, 34px) 0;
  animation: led-scroll 26s linear infinite;
}
.led-track span {
  padding-right: 1.6em;
  color: var(--neon);
  font-size: clamp(56px, 13vw, 132px);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  text-shadow:
    0 0 6px rgba(60, 240, 110, 0.9),
    0 0 22px rgba(60, 240, 110, 0.55),
    0 0 48px rgba(60, 240, 110, 0.35);
}
.led-track span:nth-child(even) {
  color: #f6f0ff;
  text-shadow:
    0 0 6px rgba(164, 99, 255, 0.95),
    0 0 22px rgba(164, 99, 255, 0.6),
    0 0 48px rgba(164, 99, 255, 0.4);
}
.led::after {
  /* 点阵遮罩，模拟 LED 灯珠 */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, transparent 1.7px, var(--led-bg) 2.3px);
  background-size: 6px 6px;
  pointer-events: none;
}
.led::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--led-bg), transparent 12%, transparent 88%, var(--led-bg));
  pointer-events: none;
}
@keyframes led-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.led-caption { margin: 0; color: var(--faint); font-size: 13px; text-align: center; }

/* 功能 */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}
.feature {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature .num {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--neon);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(60, 240, 110, 0.35);
}
@media (prefers-color-scheme: light) {
  .feature .num { color: #10a83c; text-shadow: none; }
}
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* 截图 */
.shots {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 16px 18px;
  margin: 0 -16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
@media (min-width: 768px) { .shots { padding: 4px 32px 18px; margin: 0 -32px; } }
.shots img {
  flex: none;
  width: min(62vw, 240px);
  height: auto;
  aspect-ratio: 552 / 1200;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--led-bg);
  scroll-snap-align: start;
}

/* 免费 / PRO 对比 */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}
.plan {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.plan.pro {
  border-color: rgba(60, 240, 110, 0.45);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(164, 99, 255, 0.14), transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(60, 240, 110, 0.12), transparent 55%),
    var(--surface);
}
.plan h3 { margin: 0 0 2px; font-size: 19px; }
.plan .price { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { position: relative; padding: 5px 0 5px 24px; font-size: 15px; }
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.85em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--faint);
}
.plan.pro li::before { background: var(--neon); box-shadow: 0 0 8px rgba(60, 240, 110, 0.6); }

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}
.link-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
.link-card:hover { border-color: var(--border-strong); text-decoration: none; }
.link-card strong { display: block; font-size: 16px; }
.link-card span { color: var(--muted); font-size: 14px; }

/* =========================================================
   文档页（隐私政策 / 用户协议 / 技术支持）
   ========================================================= */
.doc {
  max-width: var(--doc-max);
  margin: 0 auto;
  padding: 0 16px;
}
.doc-head { padding: 12px 0 8px; }
.doc-head .app-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}
.doc-head .app-line img { width: 28px; height: 28px; border-radius: 22.5%; }
.doc h1 { margin: 0 0 6px; font-size: clamp(28px, 5vw, 38px); }
.doc .meta { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.doc h2 {
  margin: 40px 0 10px;
  padding-top: 8px;
  font-size: 21px;
  scroll-margin-top: 76px;
}
.doc h3 { margin: 24px 0 6px; font-size: 17px; }
.doc p, .doc li { overflow-wrap: anywhere; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 4px 0; }

.toc {
  margin: 0 0 8px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14.5px;
}
.toc strong { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2 220px; column-gap: 24px; }

.callout {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-s);
  background: var(--accent-soft);
}
.callout.neon { border-left-color: var(--neon); background: rgba(60, 240, 110, 0.07); }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }
.callout ul { margin: 8px 0; }
.callout[id] { scroll-margin-top: 76px; }

.table-scroll {
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
tr:last-child td { border-bottom: 0; }
th { background: var(--surface-2); font-weight: 600; white-space: nowrap; }

details {
  margin: 10px 0;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
details[open] { border-color: var(--border-strong); }
summary { cursor: pointer; font-weight: 600; }
summary::marker { color: var(--faint); }
details p, details ul { margin: 10px 0 0; color: var(--muted); }

.todo { color: #c2410c; font-weight: 600; }
@media (prefers-color-scheme: dark) { .todo { color: #fb923c; } }

/* =========================================================
   彩蛋（assets/egg.js）
   ========================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 首页键帽可以点 */
.hero .keycap { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.keycap.pressed {
  animation: none;
  transform: translateY(4px);
  border-bottom-width: 3px;
}

/* Logo 像素沿箭头点亮 */
.lm-px rect, .lm-ac { transition: fill 0.35s ease; }
.lm-px rect.lit { fill: var(--logo-accent); transition: none; }
.lm-ac.lit { fill: var(--bg); transition: none; }

/* 迸出的比特 */
.egg-bit {
  position: fixed;
  left: -5px;
  top: -5px;
  z-index: 50;
  border-radius: 2px;
  background: var(--text);
  pointer-events: none;
}
.egg-bit.ac { background: var(--logo-accent); }

/* 底部终端提示 */
.egg-toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #17171a;
  color: #f1f1f3;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.egg-toast.show { opacity: 1; transform: translate(-50%, 0); }
.egg-prompt { color: var(--neon); }
.egg-caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 2px;
  background: #8f8fff;
  vertical-align: -0.18em;
  animation: blink 1s steps(1) infinite;
}

/* 随手弹幕：灯牌可以输入 */
.led-input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 16px; /* 避免 iOS 聚焦时放大页面 */
  opacity: 0;
  cursor: text;
}
.led.editing {
  box-shadow:
    0 0 0 1px rgba(60, 240, 110, 0.6),
    0 0 0 6px #0b0f0d,
    0 0 0 8px rgba(60, 240, 110, 0.55),
    0 30px 60px -30px rgba(60, 240, 110, 0.6);
}
.led.launch .led-track span { animation: led-flash 0.18s steps(1) 4; }
@keyframes led-flash { 50% { opacity: 0.15; } }

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .led-track { justify-content: center; width: 100%; }
  .led-track span:not(:first-child) { display: none; }
  .led-track span { padding-right: 0; font-size: clamp(36px, 9vw, 88px); }
}
