/* ==========================================================================
   时控台 StageCue — 全站样式
   [data-theme="light"] 营销页 / [data-theme="dark"] 控制台与大屏
   ========================================================================== */

:root {
  --font-cn: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
             "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
             "Noto Sans CJK SC", sans-serif;
  --font-num: "SF Mono", "DIN Alternate", "Roboto Mono", Consolas,
              "Liberation Mono", monospace;

  --green: #10b981;
  --green-d: #059669;
  --blue: #2563eb;
  --amber: #f59e0b;
  --red: #ef4444;

  --ink: #0b1220;
  --body: #384152;
  --muted: #6b7480;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(11, 18, 32, .05), 0 12px 32px -12px rgba(11, 18, 32, .14);
  --r: 12px;
}

html[data-theme="dark"] {
  --ink: #eef1f6;
  --body: #c3cad6;
  --muted: #838c9b;
  --line: #2b3038;
  --bg: #111317;
  --bg-soft: #171a1f;
  --card: #1c2026;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

a { color: var(--green-d); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(780px, 100% - 2.5rem); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- 按钮 */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  padding: .62em 1.25em; border-radius: 9px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.4;
  cursor: pointer; white-space: nowrap; transition: .16s ease;
  text-decoration: none !important;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 1px 2px rgba(16,185,129,.3); }
.btn-primary:hover { background: var(--green-d); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { opacity: .88; }
.btn-lg { padding: .85em 1.8em; font-size: 1.05rem; border-radius: 11px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------------------------------------------------------------- 导航 */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);                                  /* 旧浏览器回退 */
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 62px; }

.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 700; font-size: 1.1rem; text-decoration: none !important; }
.brand-logo { display: block; width: auto; height: 36px; flex: none; }
html[data-theme="dark"] .brand-logo { content: url('../logo-light.svg?v=20260911-logo1'); }

.nav-links { display: flex; align-items: center; gap: 1.35rem; }
.nav-links > a { color: var(--body); font-size: .93rem; font-weight: 500; }
.nav-links > a:hover, .nav-links > a.on { color: var(--ink); text-decoration: none; }
.navtoggle, .navburger { display: none; }

@media (max-width: 860px) {
  .navburger {
    display: block; width: 34px; height: 34px; border: 1px solid var(--line);
    border-radius: 8px; position: relative; cursor: pointer;
  }
  .navburger span, .navburger span::before, .navburger span::after {
    content: ""; position: absolute; left: 8px; width: 16px; height: 2px;
    background: var(--ink); border-radius: 2px;
  }
  .navburger span { top: 16px; }
  .navburger span::before { top: -5px; left: 0; }
  .navburger span::after { top: 5px; left: 0; }
  .nav-links {
    position: absolute; inset: 62px 0 auto; flex-direction: column; align-items: stretch;
    gap: .25rem; padding: 1rem 1.25rem 1.5rem; background: var(--bg);
    border-bottom: 1px solid var(--line); display: none;
  }
  .navtoggle:checked ~ .nav-links { display: flex; }
  .nav-links .btn { justify-content: center; margin-top: .35rem; }
}

/* ---------------------------------------------------------------- Hero */

.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 130%; z-index: -1;
  background:
    radial-gradient(50% 45% at 12% 8%, rgba(16,185,129,.28), transparent 70%),
    radial-gradient(45% 40% at 88% 18%, rgba(245,158,11,.24), transparent 70%),
    radial-gradient(40% 35% at 60% 70%, rgba(37,99,235,.12), transparent 70%);
  filter: blur(6px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 .hl {
  background: linear-gradient(transparent 62%, rgba(16,185,129,.35) 62%);
  padding: 0 .1em;
}
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--body); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.5rem; }
.hero-note { font-size: .85rem; color: var(--muted); margin-top: .75rem; }

/* 演示用的大屏预览 */
.screen {
  background: #0e1013; border-radius: 16px; padding: 1.1rem 1.25rem 1.25rem;
  box-shadow: 0 30px 70px -30px rgba(11,18,32,.55), 0 0 0 1px rgba(255,255,255,.06);
  color: #fff;
}
.screen-top { display: flex; align-items: center; justify-content: space-between; font-size: .72rem; color: #8b939f; margin-bottom: .35rem; }
.screen-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }
.screen-num {
  font-family: var(--font-num); font-size: clamp(3.2rem, 9vw, 5.2rem); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums;
  text-align: center; margin: .2rem 0 .1rem;
}
.screen-cap { text-align: center; font-size: .9rem; color: #b9c0cc; margin-bottom: .8rem; }
.screen-bar { height: 8px; border-radius: 99px; background: #262b33; overflow: hidden; display: flex; }
.screen-bar i { display: block; height: 100%; }

.cue-list { margin-top: 1rem; display: grid; gap: .4rem; }
.cue {
  display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center;
  background: #171a20; border-radius: 8px; padding: .5rem .75rem; font-size: .85rem; color: #c3cad6;
}
.cue.on { background: var(--blue); color: #fff; }
.cue b { font-family: var(--font-num); font-weight: 600; }
.cue span { color: #8b939f; }
.cue.on span { color: rgba(255,255,255,.75); }

/* ---------------------------------------------------------------- 通用版块 */

.sec { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.sec-alt { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green-d); margin-bottom: .6rem;
}
.lede { font-size: 1.08rem; color: var(--body); max-width: 46em; }

.feat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(2rem,4vw,3.2rem) 0; }
.feat:nth-child(even) .feat-media { order: -1; }
@media (max-width: 880px) { .feat { grid-template-columns: 1fr; } .feat:nth-child(even) .feat-media { order: 0; } }
.feat ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.feat ul li { position: relative; padding-left: 1.6rem; }
.feat ul li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--green);
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.4rem; box-shadow: var(--shadow); transition: .18s ease;
}
a.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--green) 45%, var(--line)); text-decoration: none; }
.card h3 { margin-bottom: .35rem; }
.card p { font-size: .92rem; color: var(--muted); margin: 0; }
.card .ico { font-size: 1.5rem; line-height: 1; display: block; margin-bottom: .6rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; counter-reset: s; }
.step { counter-increment: s; }
.step h3::before {
  content: counter(s); display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin-right: .5rem; border-radius: 8px;
  background: var(--green); color: #fff; font-size: .85rem; font-family: var(--font-num);
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; text-align: center; }
.stat-v { font-family: var(--font-num); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--ink); line-height: 1.1; }
.stat-l { font-size: .88rem; color: var(--muted); }

/* GEO 用的「事实块」：AI 引擎易于摘录的定义段 */
.factbox {
  border-left: 3px solid var(--green); background: var(--bg-soft);
  padding: 1.1rem 1.3rem; border-radius: 0 var(--r) var(--r) 0; margin: 1.5rem 0;
}
.factbox p:last-child { margin-bottom: 0; }

.faq details {
  border-bottom: 1px solid var(--line); padding: .35rem 0;
}
.faq summary {
  cursor: pointer; padding: .85rem 2rem .85rem 0; font-weight: 600; color: var(--ink);
  list-style: none; position: relative; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: .7rem;
  font-size: 1.35rem; font-weight: 400; color: var(--muted);
}
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 2rem 1rem 0; color: var(--body); }

.cta-band {
  background: linear-gradient(135deg, #0f172a, #14312a 60%, #1a2e1f);
  color: #fff; border-radius: 18px; padding: clamp(2rem, 5vw, 3.5rem); text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9c5cc; }

/* 面包屑 */
.crumb { font-size: .85rem; color: var(--muted); padding: 1rem 0 0; }
.crumb a { color: var(--muted); }
.crumb i { font-style: normal; padding: 0 .4rem; opacity: .5; }

/* 价格 */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; align-items: start; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.plan.best { border-color: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,.12); position: relative; }
.plan.best::after {
  content: "推荐"; position: absolute; top: -11px; left: 1.5rem; background: var(--green); color: #fff;
  font-size: .72rem; font-weight: 700; padding: .15rem .6rem; border-radius: 99px;
}
.price { font-family: var(--font-num); font-size: 2.1rem; font-weight: 700; color: var(--ink); }
.price small { font-size: .85rem; font-weight: 400; color: var(--muted); font-family: var(--font-cn); }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.25rem; display: grid; gap: .45rem; font-size: .9rem; }
.plan ul li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.plan ul li.no { color: var(--muted); }
.plan ul li.no::before { content: "— "; color: var(--muted); }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--ink); font-weight: 600; background: var(--bg-soft); }
.tbl code { font-family: var(--font-num); font-size: .86em; background: var(--bg-soft); padding: .12em .4em; border-radius: 5px; }
.scroll-x { overflow-x: auto; }

/* 页脚 */
.foot { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 3rem 0 1.5rem; margin-top: 4rem; font-size: .9rem; }
.foot-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; }
@media (max-width: 940px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-top { grid-template-columns: 1fr; } }
.foot-brand p { color: var(--muted); font-size: .88rem; }
.foot-meta { font-size: .8rem; opacity: .8; }
.foot-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .7rem; }
.foot-col a { display: block; color: var(--body); padding: .16rem 0; font-size: .89rem; }
.foot-bot { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.2rem; color: var(--muted); font-size: .82rem; }
.foot-bot .dot { padding: 0 .5rem; opacity: .5; }
.foot-bot a { color: var(--muted); }

/* ==========================================================================
   应用界面（深色）
   ========================================================================== */

.app { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }

.appbar {
  display: flex; align-items: center; gap: .75rem; padding: .55rem .9rem;
  border-bottom: 1px solid var(--line); background: var(--bg-soft); flex: none; flex-wrap: wrap;
}
.appbar .room-name {
  font-size: 1.05rem; font-weight: 700; color: var(--ink); background: transparent;
  border: 1px solid transparent; border-radius: 7px; padding: .2rem .45rem; min-width: 8ch;
  font-family: inherit;
}
.appbar .room-name:hover { border-color: var(--line); }
.appbar .room-name:focus { border-color: var(--green); outline: none; background: var(--card); }
.spacer { flex: 1 1 auto; }

.chip {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem;
  padding: .2rem .55rem; border-radius: 99px; border: 1px solid var(--line);
  color: var(--muted); background: var(--card); white-space: nowrap;
}
.chip b { color: var(--ink); font-family: var(--font-num); letter-spacing: .06em; }
.chip .led { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.chip .led.ok { background: var(--green); box-shadow: 0 0 6px var(--green); }
.chip .led.bad { background: var(--red); box-shadow: 0 0 6px var(--red); }

.cols {
  flex: 1 1 auto; display: grid; grid-template-columns: 320px 1fr 300px;
  gap: 1px; background: var(--line); min-height: 0;
}
@media (max-width: 1080px) { .cols { grid-template-columns: 1fr; } }
.col { background: var(--bg); padding: .9rem; overflow-y: auto; min-height: 0; }

.col-h {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700;
}
.col-h .spacer { flex: 1; }

/* 控制台里的大屏预览 */
.preview {
  background: #000; border-radius: 10px; overflow: hidden; position: relative;
  aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: center;
  border: 1px solid var(--line);
}
.preview .pv-logo { position: absolute; top: .5rem; left: .6rem; font-size: .65rem; color: #6b7480; }
.preview .pv-title { position: absolute; top: .5rem; right: .6rem; font-size: .7rem; color: var(--green); font-weight: 600; }
.preview .pv-num {
  font-family: var(--font-num); font-weight: 700; font-size: clamp(2rem, 13vw, 3.6rem);
  color: #fff; text-align: center; line-height: 1; font-variant-numeric: tabular-nums;
}
.preview .pv-msg {
  position: absolute; bottom: .5rem; left: .6rem; right: .6rem; text-align: center;
  font-size: .72rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.bar { height: 9px; border-radius: 4px; background: #262b33; overflow: hidden; display: flex; margin-top: .5rem; }
.bar i { height: 100%; display: block; transition: width .25s linear; }

.readout {
  display: flex; align-items: baseline; gap: .5rem; margin-top: .5rem;
  font-family: var(--font-num); font-size: 1.25rem; color: var(--ink); font-variant-numeric: tabular-nums;
}
.readout .st {
  font-family: var(--font-cn); font-size: .68rem; padding: .1rem .4rem; border-radius: 4px;
  background: #33383f; color: #cbd2dc; letter-spacing: .05em;
}
.readout .st.live { background: var(--red); color: #fff; }
.readout .st.hold { background: var(--amber); color: #21170a; }

.transport { display: flex; gap: .4rem; margin-top: .75rem; }
.tbtn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem .3rem; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer; font: inherit;
  font-size: .85rem; font-weight: 600; transition: .14s;
}
.tbtn:hover { border-color: var(--muted); }
.tbtn.go { background: var(--green); border-color: var(--green); color: #06281c; }
.tbtn.go:hover { background: var(--green-d); }
.tbtn.stop { background: var(--amber); border-color: var(--amber); color: #2a1c04; }
.tbtn.wide { flex: 1.4; }

.kv { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .8rem; }
.kv div { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .65rem; }
.kv .k { font-size: .68rem; color: var(--muted); letter-spacing: .06em; }
.kv .v { font-family: var(--font-num); font-size: 1rem; color: var(--ink); }

/* 计时器行 */
.trow {
  display: grid; grid-template-columns: 26px 1fr auto; gap: .6rem; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 9px;
  padding: .55rem .7rem; margin-bottom: .45rem; cursor: pointer; transition: .14s;
}
.trow:hover { border-color: var(--muted); }
.trow.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.trow.done { opacity: .55; }
.trow .idx { font-family: var(--font-num); font-size: .8rem; color: var(--muted); text-align: center; }
.trow.active .idx { color: rgba(255,255,255,.8); }
.trow .ttl { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow.active .ttl { color: #fff; }
.trow .sub { font-size: .76rem; color: var(--muted); }
.trow.active .sub { color: rgba(255,255,255,.8); }
.trow .dur { font-family: var(--font-num); font-weight: 600; color: var(--ink); font-size: .95rem; }
.trow.active .dur { color: #fff; }
.trow .acts { display: flex; gap: .25rem; }

.ibtn {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; border: 1px solid var(--line); background: var(--bg-soft);
  color: var(--body); cursor: pointer; font-size: .8rem; padding: 0; line-height: 1; flex: none;
}
.ibtn:hover { color: var(--ink); border-color: var(--muted); }
.ibtn.go { background: var(--green); border-color: var(--green); color: #06281c; }
.ibtn.danger:hover { color: var(--red); border-color: var(--red); }
.trow.active .ibtn { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.28); color: #fff; }

/* 消息 */
.mrow { background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: .55rem .65rem; margin-bottom: .45rem; }
.mrow.on { border-color: var(--green); box-shadow: 0 0 0 2px rgba(16,185,129,.16); }
.mrow textarea {
  width: 100%; background: transparent; border: 0; resize: vertical; min-height: 3.2em;
  color: var(--ink); font: inherit; font-size: .92rem; padding: 0; outline: none;
}
.mrow .mtools { display: flex; align-items: center; gap: .25rem; margin-top: .4rem; flex-wrap: wrap; }
.swatch { width: 22px; height: 22px; border-radius: 5px; border: 1px solid var(--line); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }

.field { display: block; margin-bottom: .8rem; }
.field > span { display: block; font-size: .78rem; color: var(--muted); margin-bottom: .28rem; }
.inp, select.inp, textarea.inp {
  width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: .5rem .65rem; color: var(--ink); font: inherit; font-size: .93rem; outline: none;
}
.inp:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal[open], .modal.show { display: block; }
.modal-bd { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(2px); }
.modal-bx {
  position: relative; margin: 4vh auto; width: min(640px, 100% - 2rem); max-height: 92vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
}
.modal-h { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.modal-h h3 { margin: 0; flex: 1; }
.modal-f { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.2rem; }

.linkbox { display: flex; gap: .4rem; align-items: center; margin-bottom: .5rem; }
.linkbox .inp { font-family: var(--font-num); font-size: .78rem; }

.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; flex-wrap: wrap; }
.tab {
  padding: .5rem .85rem; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--green); }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: .6rem 1.1rem; border-radius: 9px;
  font-size: .9rem; z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.toast.show { opacity: 1; }

.empty { color: var(--muted); font-size: .88rem; text-align: center; padding: 1.5rem .5rem; }

/* 快捷键说明 */
.keys { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .76rem; color: var(--muted); margin-top: .8rem; }
kbd {
  font-family: var(--font-num); font-size: .72rem; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: .05em .4em;
}

/* ==========================================================================
   全屏大屏输出
   ========================================================================== */

body.output {
  background: #000; color: #fff; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; cursor: none;
}
body.output.idle-show { cursor: default; }

.out-wrap { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; padding: 2vh 3vw; min-height: 0; }
.out-logo { position: absolute; top: 2.2vh; left: 2.5vw; font-size: clamp(.8rem, 1.6vw, 1.2rem); color: #7c848f; font-weight: 600; }
.out-clock { position: absolute; top: 2.2vh; right: 2.5vw; font-family: var(--font-num); font-size: clamp(.9rem, 2vw, 1.5rem); color: #7c848f; font-variant-numeric: tabular-nums; }
.out-title { font-size: clamp(1rem, 3.4vw, 2.4rem); color: #cbd2dc; font-weight: 600; text-align: center; margin-bottom: .2em; }
.out-speaker { font-size: clamp(.85rem, 2.2vw, 1.5rem); color: #7c848f; text-align: center; margin-bottom: .35em; }

.out-num {
  font-family: var(--font-num); font-weight: 700; font-variant-numeric: tabular-nums;
  line-height: .95; letter-spacing: -.02em; text-align: center;
  font-size: min(26vw, 40vh); transition: color .3s;
}
.out-num.warn { color: var(--amber); }
.out-num.crit { color: var(--red); }

.out-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1.6vh; min-height: 8px; background: #16191d; display: flex; }
.out-bar i { height: 100%; display: block; transition: width .25s linear; }

.out-msg {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  padding: 4vh 5vw; text-align: center; background: rgba(0,0,0,.94); z-index: 5;
}
.out-msg.show { display: flex; }
.out-msg span { font-weight: 700; line-height: 1.25; font-size: clamp(1.5rem, 7vw, 6rem); }
.out-msg.c-green span { color: #34d399; }
.out-msg.c-yellow span { color: #fbbf24; }
.out-msg.c-red span { color: #f87171; }

.blackout { position: fixed; inset: 0; background: #000; z-index: 20; display: none; }
.blackout.on { display: block; }

.flashing { animation: flash .42s steps(1) 6; }
@keyframes flash { 0%, 49% { background: #fff; } 50%, 100% { background: #000; } }

@media (prefers-reduced-motion: reduce) {
  .flashing { animation: none; outline: 6px solid #fff; outline-offset: -6px; }
  * { transition-duration: .01ms !important; }
}

/* 议程页 */
.agenda { max-width: 820px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.ag-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
  padding: .9rem 1rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); margin-bottom: .5rem;
}
.ag-row.now { border-color: var(--green); box-shadow: 0 0 0 2px rgba(16,185,129,.18); }
.ag-row.past { opacity: .5; }
.ag-when { font-family: var(--font-num); color: var(--muted); font-size: .9rem; }
.ag-ttl { font-weight: 600; color: var(--ink); }
.ag-spk { font-size: .84rem; color: var(--muted); }
.ag-dur { font-family: var(--font-num); color: var(--body); }
.ag-badge { font-size: .7rem; background: var(--green); color: #06281c; padding: .1rem .45rem; border-radius: 99px; font-weight: 700; }
