/* 新组件层：版本条 / v1 补丁 / v2 产品组件 / compare。底样式来自 event-live-styles.css（紫壳）。 */

/* ---- 版本条（所有产品页共用；说明页在自身内嵌样式里实现同一条） ---- */
.version-bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 7px 12px calc(7px + 0px);
  padding-top: max(7px, env(safe-area-inset-top));
  background: rgba(25, 25, 31, .93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.version-bar a {
  border-radius: 999px; padding: 5px 11px;
  color: #c9c9d4; font-size: 12px; font-weight: 750; text-decoration: none;
  white-space: nowrap;
}
.version-bar a:hover { color: white; background: rgba(255,255,255,.09); }
.version-bar a[aria-current="page"] { color: white; background: var(--accent); }
.version-note { margin-left: auto; color: #77778a; font-size: 10px; white-space: nowrap; }
.embed .version-bar { display: none; }

/* ---- v1 补丁 ---- */
summary.section-toggle { list-style: none; }
summary.section-toggle::-webkit-details-marker { display: none; }
.cue.flash { animation: cueflash 1.8s ease; border-radius: 12px; }
@keyframes cueflash { 0% { background: #fff1a8; } 100% { background: transparent; } }
.page-foot { margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 10px; line-height: 1.6; }

/* ---- v2 · 压缩头部（首屏给导读留位置） ---- */
.live-header.compact { margin-top: 6px; }
.live-header.compact .live-title { font-size: 21px; }
.live-header.compact .live-meta { margin-top: 7px; font-size: 11px; }
.player.slim { padding: 11px 13px; border-radius: 17px; }
.player.slim .play-toggle { width: 36px; height: 36px; flex-basis: 36px; }
.player.slim .wave { height: 20px; }

/* ---- v2 · 小节标题 ---- */
.v2-h {
  display: flex; align-items: baseline; gap: 8px;
  margin: 22px 2px 9px;
}
.v2-h .n {
  color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .08em;
  text-transform: uppercase;
}
.v2-h h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.v2-h span.sub { margin-left: auto; color: var(--ink-3); font-size: 10px; }

/* ---- v2 · 顶部导读 ---- */
.brief-card {
  border: 1px solid var(--accent-line); border-radius: 21px;
  padding: 14px 14px 12px; margin-top: 12px;
  background: linear-gradient(155deg, #f6f3ff 0%, white 68%);
}
.brief-card .kicker { display: flex; justify-content: space-between; gap: 8px; color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.brief-card .kicker em { font-style: normal; color: var(--ink-3); font-weight: 700; letter-spacing: 0; text-transform: none; }
.brief-why { margin: 8px 0 4px; color: #33333c; font-size: 13px; line-height: 1.6; }
.takeaways { display: grid; gap: 7px; margin-top: 9px; }
.takeaway {
  width: 100%; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 11px; background: white; text-align: left; cursor: pointer;
  display: grid; gap: 5px; transition: .15s ease;
}
.takeaway:hover, .takeaway:focus-visible { border-color: var(--accent-line); box-shadow: 0 6px 18px rgba(103,87,230,.10); outline: none; }
.takeaway strong { font-size: 13px; line-height: 1.4; }
.takeaway .meta { display: flex; align-items: center; gap: 7px; color: var(--ink-3); font-size: 10px; }
.takeaway .meta .cue-time { font-size: 10px; }
.brief-delta { margin: 10px 2px 0; color: var(--ink-2); font-size: 11px; line-height: 1.55; }
.brief-delta button { border: 0; padding: 0; background: none; color: var(--accent); font-size: 11px; font-weight: 750; cursor: pointer; }

/* ---- 通用小标签 ---- */
.pill-delta {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px;
  font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase;
}
.pill-delta.softened { background: #fff5e8; color: var(--warning); }
.pill-delta.reiterated { background: #edf9f3; color: var(--success); }
.pill-delta.hardened { background: #fff0f1; color: var(--live); }
.pill-delta.withdrawn { background: var(--surface-2); color: var(--ink-3); text-decoration: line-through; }
.pill-delta.new { background: var(--accent-soft); color: var(--accent); }
.pill-note { display: inline-flex; border-radius: 999px; padding: 3px 8px; background: var(--surface-2); color: var(--ink-2); font-size: 9px; font-weight: 800; }

/* ---- v2 · 听这三段 ---- */
.listen-list { display: grid; gap: 8px; }
.listen-item {
  width: 100%; border: 1px solid var(--line); border-radius: 15px; padding: 10px 12px;
  display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 10px; align-items: center;
  background: white; text-align: left; cursor: pointer; transition: .15s ease;
}
.listen-item:hover, .listen-item:focus-visible { border-color: var(--accent-line); box-shadow: 0 6px 18px rgba(103,87,230,.10); outline: none; }
.listen-n {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: white; font-size: 12px; font-weight: 850;
}
.listen-item strong { display: block; font-size: 13px; }
.listen-item em { display: block; margin-top: 3px; font-style: normal; color: var(--ink-3); font-size: 10.5px; line-height: 1.45; }
.listen-time { text-align: right; }
.listen-time b { display: block; color: var(--accent); font-size: 11px; font-variant-numeric: tabular-nums; }
.listen-time span { display: block; margin-top: 2px; color: var(--ink-3); font-size: 9px; }

/* ---- v2 · 主题卡 ---- */
.theme-grid { display: grid; gap: 8px; }
.theme-card { border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }
.theme-card[open] { border-color: var(--accent-line); }
.theme-head {
  display: flex; align-items: center; gap: 9px; padding: 12px 13px;
  cursor: pointer; list-style: none;
}
.theme-head::-webkit-details-marker { display: none; }
.theme-head .theme-name { font-size: 13.5px; font-weight: 750; }
.theme-head .count { color: var(--ink-3); font-size: 10px; }
.theme-head .chev { margin-left: auto; color: var(--ink-3); font-size: 10px; transition: transform .15s ease; }
.theme-card[open] .chev { transform: rotate(180deg); }
.theme-body { border-top: 1px solid var(--line); padding: 3px 13px 13px; }
.theme-points { margin: 10px 0 4px; padding-left: 18px; color: #33333c; font-size: 12.5px; line-height: 1.6; }
.theme-points li { margin: 3px 0; }
.theme-quote {
  margin-top: 8px; border-left: 3px solid var(--accent-line); border-radius: 0 12px 12px 0;
  padding: 8px 10px; background: var(--surface-2);
}
.theme-quote .who { display: flex; align-items: baseline; gap: 7px; font-size: 10px; color: var(--ink-3); }
.theme-quote .who strong { color: var(--ink); font-size: 11px; }
.theme-quote .zh { margin-top: 4px; color: #33333c; font-size: 12.5px; line-height: 1.55; }
.theme-quote .en { margin-top: 3px; color: var(--ink-3); font-size: 11px; line-height: 1.5; }
.quote-actions { display: flex; gap: 12px; margin-top: 6px; }
.quote-actions button { border: 0; padding: 0; background: none; color: var(--accent); font-size: 10px; font-weight: 750; cursor: pointer; }
.theme-compare {
  margin-top: 10px; border: 1px dashed var(--accent-line); border-radius: 12px; padding: 9px 10px;
  background: var(--accent-soft);
}
.theme-compare .lab { display: block; color: var(--accent); font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.theme-compare .row { margin-top: 6px; font-size: 11.5px; line-height: 1.5; color: #464052; }
.theme-compare .row b { font-weight: 800; }

/* ---- v2 · 被追问 ---- */
.pressed-list { display: grid; gap: 8px; }
.pressed-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 13px; background: white; }
.pressed-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.pressed-top strong { font-size: 13px; margin-right: auto; }
.pressed-by { margin-top: 5px; color: var(--ink-3); font-size: 10.5px; }
.pressed-detail { margin-top: 6px; color: #33333c; font-size: 12px; line-height: 1.6; }
.pressed-cues { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pressed-cues button {
  border: 1px solid var(--accent-line); border-radius: 999px; padding: 3px 9px;
  background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 750;
  font-variant-numeric: tabular-nums; cursor: pointer;
}

/* ---- v2 · 跨季对照 ---- */
.compare-list { display: grid; gap: 8px; }
.compare-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 13px; background: white; }
.compare-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.compare-top strong { font-size: 13px; margin-right: auto; }
.compare-cols { display: grid; gap: 7px; margin-top: 9px; }
@media (min-width: 560px) { .compare-cols { grid-template-columns: 1fr 1fr; } }
.compare-q { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--surface-2); }
.compare-q .lab { display: block; color: var(--ink-3); font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.compare-q .zh { margin-top: 4px; color: #33333c; font-size: 12px; line-height: 1.55; }
.compare-q .en { margin-top: 3px; color: var(--ink-3); font-size: 10.5px; line-height: 1.5; }
.compare-q.this-q { border-color: var(--accent-line); background: var(--accent-soft); }
.compare-q .cue-time { font-size: 10px; }
.compare-note { margin-top: 8px; color: var(--ink-2); font-size: 11px; line-height: 1.55; }
.compare-legend { margin: 8px 2px 0; display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- v2 · 当前有效指引 ---- */
.guidance-list { display: grid; gap: 8px; }
.guidance-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 13px; background: white; }
.guidance-ent { color: var(--ink-3); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.guidance-card h3 { margin: 4px 0 0; font-size: 13.5px; }
.guidance-cur {
  margin-top: 8px; border-radius: 12px; padding: 9px 11px;
  background: #19191f; color: #f2f2f7; font-size: 12px; line-height: 1.5;
}
.guidance-cur small { display: block; margin-bottom: 3px; color: #a49bf0; font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.guidance-chain { margin: 10px 0 0; padding: 0; list-style: none; }
.guidance-chain li {
  position: relative; padding: 0 0 10px 18px; font-size: 11.5px; line-height: 1.5; color: #33333c;
}
.guidance-chain li::before {
  content: ""; position: absolute; left: 4px; top: 5px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--ink-3);
}
.guidance-chain li.active::before { background: var(--accent); }
.guidance-chain li.note::before { background: var(--warning); }
.guidance-chain li::after {
  content: ""; position: absolute; left: 7px; top: 14px; bottom: -2px; width: 1px; background: var(--line);
}
.guidance-chain li:last-child::after { display: none; }
.guidance-chain .when { display: block; color: var(--ink-3); font-size: 9.5px; font-weight: 750; }
.guidance-chain button { border: 0; padding: 0; background: none; color: var(--accent); font-size: 10px; font-weight: 750; cursor: pointer; }

/* ---- v2 · 播客横条 + 播客页 ---- */
.pod-banner {
  width: 100%; margin-top: 10px; border: 1px solid var(--accent-line); border-radius: 15px;
  padding: 11px 13px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 10px; align-items: center;
  background: linear-gradient(140deg, var(--accent-soft), white 70%); text-align: left; cursor: pointer;
}
.pod-banner .ic { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: white; font-size: 13px; }
.pod-banner strong { display: block; font-size: 12.5px; }
.pod-banner em { display: block; margin-top: 2px; font-style: normal; color: var(--ink-2); font-size: 10.5px; }
.pod-banner .go { color: var(--accent); font-size: 12px; font-weight: 800; }
.restate-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 13px; background: white; }
.entity-tag { display: inline-flex; border-radius: 999px; padding: 3px 8px; background: #eef4ff; color: #2f5d8c; font-size: 9px; font-weight: 850; }

/* ---- v2 · MCP 页脚 ---- */
.mcp-foot { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 13px; color: var(--ink-3); font-size: 10.5px; line-height: 1.7; }
.mcp-foot code { border-radius: 5px; padding: 1px 5px; background: var(--surface-2); color: var(--accent-strong); font-size: 10px; }

/* ---- compare 页 ---- */
.compare-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--page); }
.compare-head { padding: 10px 14px 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.compare-head h1 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.compare-head p { margin: 0; color: var(--ink-2); font-size: 11px; }
.seg {
  display: none; margin: 10px 14px 0; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px; background: white; gap: 3px;
}
.seg button {
  flex: 1; border: 0; border-radius: 999px; padding: 8px 0;
  background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 750; cursor: pointer;
}
.seg button.active { background: var(--accent); color: white; }
.compare-frames { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 14px 14px; min-height: 0; }
.frame-slot { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: white; box-shadow: var(--shadow); }
.frame-label {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
  font-size: 11px; font-weight: 800;
}
.frame-label .pill-note { margin-left: auto; }
.frame-slot iframe { flex: 1; width: 100%; border: 0; min-height: 0; }
@media (max-width: 760px) {
  .seg { display: flex; }
  .compare-frames { grid-template-columns: 1fr; }
  .compare-frames .frame-slot[data-pane]:not(.on) { display: none; }
}

/* ---- v2 桌面：沿用 live-layout，右栏导读优先 ---- */
@media (min-width: 700px) {
  .v2-h { margin-top: 26px; }
  .brief-card { margin-top: 0; }
}
