/*
 * 快捷样式类 - 简化常用排版操作
 * 灵感来源: xaringan, lite.js
 */

/* ============================================
   图片快捷类
   ============================================ */

/* 图片左浮动 */
.img-left {
  float: left;
  width: 33%;
  padding-right: 1rem;
  margin-bottom: 0.5rem;
}

.img-left img {
  width: 100%;
}

/* 图片右浮动 */
.img-right {
  float: right;
  width: 33%;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
}

.img-right img {
  width: 100%;
}

/* 图片居中 */
.img-center {
  display: block;
  margin: 0 auto;
  text-align: center;
}

.img-center img {
  max-width: 100%;
}

/* 图片全宽 */
.img-full {
  width: 100%;
}

.img-full img {
  width: 100%;
}

/* 图片半宽居中 */
.img-half {
  width: 50%;
  margin: 0 auto;
  display: block;
  text-align: center;
}

.img-half img {
  width: 100%;
}

/* 图片尺寸变体 */
.img-25 { width: 25%; }
.img-33 { width: 33%; }
.img-50 { width: 50%; }
.img-66 { width: 66%; }
.img-75 { width: 75%; }

/* ============================================
   xaringan 兼容类 (pull-left/right)
   ============================================ */

.pull-left {
  float: left;
  width: 47%;
}

.pull-right {
  float: right;
  width: 47%;
}

.pull-left + .pull-right {
  clear: none;
}

/* 清除浮动 */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ============================================
   概览模式 (Tile View)
   ============================================ */

.tile-view-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 20, 30, 0.98);
  z-index: 9999;
  padding: 2rem;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tile-view-container.active {
  opacity: 1;
  visibility: visible;
}

.tile-view-tile {
  position: relative;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  aspect-ratio: 4 / 3;
}

.tile-view-tile:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.tile-view-tile.current {
  outline: 4px solid #4361ee;
  outline-offset: 3px;
}

.tile-view-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 400%;
  height: 400%;
  transform: scale(0.25);
  transform-origin: top left;
  pointer-events: none;
  overflow: hidden;
}

.tile-view-content .remark-slide-content {
  width: 100%;
  height: 100%;
  padding: 1em 2em;
  box-sizing: border-box;
  font-size: 28px;
}

.tile-view-page {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  z-index: 1;
}

/* ============================================
   代码复制按钮样式
   ============================================ */

.copy-button {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 4px 8px;
  font-size: 12px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

pre:hover .copy-button {
  opacity: 1;
}

.copy-button:hover {
  background: #e0e0e0;
}

.copy-button.copied {
  background: #4caf50;
  color: white;
  border-color: #4caf50;
}

/* ============================================
   快捷文本样式
   ============================================ */

/* 高亮文本 */
.hl {
  background: linear-gradient(transparent 60%, #ffeb3b 60%);
  padding: 0 2px;
}

/* 关键词强调 */
.keyword {
  color: #e91e63;
  font-weight: 600;
}

/* 成功/警告/错误文本 */
.text-success { color: #4caf50; }
.text-warning { color: #ff9800; }
.text-error { color: #f44336; }
.text-info { color: #2196f3; }
.text-muted { color: #9e9e9e; }

/* ============================================
   快捷间距
   ============================================ */

.gap { margin: 1rem 0; }
.gap-sm { margin: 0.5rem 0; }
.gap-lg { margin: 2rem 0; }

/* ============================================
   卡片样式
   ============================================ */

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  margin: 0.5rem 0;
}

.card-dark {
  background: #2d2d2d;
  color: #fff;
  border-radius: 8px;
  padding: 1rem;
  margin: 0.5rem 0;
}

/* ============================================
   Agent workbench sharing slides
   ============================================ */

.hw-share {
  font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", Arial, sans-serif;
  color: #333333;
  background: #fbfbfa;
  padding: 28px 34px 26px 34px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.hw-share h1,
.hw-share h2,
.hw-share h3 {
  font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", Arial, sans-serif;
}

.hw-share h1 {
  font-size: 54px;
  line-height: 1.06;
  color: #1a1a1a;
  margin: 0 0 18px 0;
  font-weight: 800;
}

.hw-share h2 {
  font-size: 34px;
  line-height: 1.12;
  color: #171717;
  margin: 0;
  font-weight: 800;
  border-bottom: none !important;
}

.hw-share h2 + p {
  margin-top: 10px;
}

.hw-share .hw-title {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 20px;
  border-bottom: 1px solid rgba(199, 0, 11, 0.18);
  border-left: 6px solid #c7000b;
  padding: 0 0 11px 14px;
  margin-bottom: 16px;
}

.hw-share .hw-title .tag {
  font-size: 12px;
  color: #c7000b;
  background: #ffffff;
  border: 1px solid rgba(199, 0, 11, 0.35);
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hw-share .lead {
  font-size: 16px;
  line-height: 1.42;
  color: #555555;
  margin: 0 0 14px 0;
}

.hw-share .red {
  color: #c7000b;
}

.hw-share .muted {
  color: #888888;
}

.hw-share .grid2,
.hw-share .grid3,
.hw-share .grid4 {
  display: grid;
  gap: 12px;
}

.hw-share .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hw-share .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hw-share .grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hw-share .box {
  border: 1px solid #e6e1df;
  border-top: 4px solid #c7000b;
  background: #ffffff;
  padding: 10px 12px;
  min-height: 86px;
  box-sizing: border-box;
  box-shadow: 0 3px 10px rgba(20, 20, 20, 0.04);
}

.hw-share .box.gray {
  border-top-color: #8c8c8c;
  background: #f4f4f2;
}

.hw-share .box.redbg {
  background: #fff7f6;
}

.hw-share .box h3,
.hw-share .box .boxtitle {
  font-size: 16px;
  line-height: 1.22;
  color: #1a1a1a;
  margin: 0 0 6px 0;
  font-weight: 800;
}

.hw-share .box p,
.hw-share .box li,
.hw-share .small {
  font-size: 12px;
  line-height: 1.38;
  color: #555555;
}

.hw-share ul {
  margin: 5px 0 0 0;
  padding-left: 18px;
}

.hw-share li {
  margin: 2px 0;
}

.hw-share .metric {
  display: inline-block;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  color: #c7000b;
}

.hw-share .flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  margin-top: 12px;
}

.hw-share .step {
  border: 1px solid #e6e1df;
  background: #ffffff;
  padding: 9px 10px;
  position: relative;
  min-height: 96px;
  box-shadow: 0 3px 10px rgba(20, 20, 20, 0.04);
}

.hw-share .step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -12px;
  top: 34px;
  color: #c7000b;
  font-weight: 800;
}

.hw-share .step .num {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  background: #c7000b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 6px;
}

.hw-share .step .name {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.hw-share .step .desc {
  font-size: 11px;
  line-height: 1.34;
  color: #666666;
}

.hw-share .strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.hw-share .strip > div {
  border-top: 4px solid #c7000b;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(20, 20, 20, 0.04);
  padding: 8px 10px;
}

.hw-share .strip b {
  display: block;
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 3px;
}

.hw-share .strip span {
  font-size: 11px;
  line-height: 1.32;
  color: #666666;
}

.hw-share .table-dense table {
  font-size: 11px;
  line-height: 1.25;
}

.hw-share .table-dense table th {
  background: #c7000b;
  color: #ffffff;
  font-weight: 800;
}

.hw-share .table-dense table td,
.hw-share .table-dense table th {
  padding: 5px 7px;
}

.hw-share .quote {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  color: #1a1a1a;
  border-left: 8px solid #c7000b;
  padding-left: 18px;
  margin-top: 38px;
}

.hw-share .footnote {
  position: absolute;
  left: 34px;
  bottom: 20px;
  right: 34px;
  font-size: 10px;
  color: #999999;
}

.hw-share .bottom-red {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: #c7000b;
  z-index: 3;
}

.hw-share.cover {
  padding: 46px 54px 34px 54px;
  background: #ffffff;
}

.hw-share.cover.cover-with-image {
  padding: 48px 56px 36px 56px;
  background: #ffffff;
}

.hw-share .cover-visual {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.86;
}

.hw-share .cover-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 34%, rgba(255, 255, 255, 0.48) 62%, rgba(255, 255, 255, 0.12) 100%);
}

.hw-share .cover-content {
  position: relative;
  z-index: 2;
}

.hw-share .cover-mark {
  width: 58px;
  height: 9px;
  background: #c7000b;
  margin-bottom: 34px;
}

.hw-share .cover-kicker {
  font-size: 15px;
  color: #c7000b;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.hw-share .cover-subtitle {
  width: 68%;
  font-size: 20px;
  line-height: 1.42;
  color: #555555;
  margin-top: 18px;
}

.hw-share .cover-meta {
  position: absolute;
  left: 54px;
  bottom: 42px;
  font-size: 12px;
  line-height: 1.6;
  color: #666666;
  z-index: 2;
}

.hw-share .cover-side {
  position: absolute;
  right: 42px;
  top: 48px;
  bottom: 28px;
  width: 138px;
  border-left: 1px solid #e2e2e2;
  z-index: 2;
}

.hw-share .cover-side::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 84px;
  width: 9px;
  height: 126px;
  background: #c7000b;
}

.hw-share .cover-side .vertical {
  writing-mode: vertical-rl;
  position: absolute;
  right: 16px;
  top: 4px;
  font-size: 13px;
  color: #999999;
  letter-spacing: 0.18em;
}

.hw-share .claim {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px 15px;
  border-left: 5px solid #c7000b;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(20, 20, 20, 0.04);
  margin: 10px 0 15px 0;
}

.hw-share .claim .mark {
  color: #c7000b;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.hw-share .claim p {
  margin: 0;
  font-size: 17px;
  line-height: 1.36;
  color: #1a1a1a;
  font-weight: 800;
}

.hw-share .toc {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.hw-share .toc-item {
  border-top: 5px solid #c7000b;
  background: #ffffff;
  padding: 14px 13px 16px 13px;
  min-height: 158px;
  box-shadow: 0 3px 10px rgba(20, 20, 20, 0.04);
}

.hw-share .toc-item .idx {
  font-size: 32px;
  line-height: 1;
  color: #c7000b;
  font-weight: 800;
  margin-bottom: 18px;
}

.hw-share .toc-item b {
  display: block;
  font-size: 19px;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hw-share .toc-item span {
  font-size: 12px;
  line-height: 1.35;
  color: #666666;
}

.hw-share .diagram {
  border: 1px solid #e6e1df;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 3px 10px rgba(20, 20, 20, 0.04);
}

.hw-share .diagram-title {
  font-size: 13px;
  color: #c7000b;
  font-weight: 800;
  margin-bottom: 8px;
}

.hw-share .lane {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 8px;
}

.hw-share .lane:last-child {
  margin-bottom: 0;
}

.hw-share .lane-label {
  background: #252525;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.hw-share .lane-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hw-share .lane-body > div {
  background: #fbfbfa;
  border: 1px solid #e6e1df;
  padding: 8px 9px;
  min-height: 46px;
}

.hw-share .lane-body b {
  display: block;
  font-size: 13px;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.hw-share .lane-body span {
  font-size: 10.5px;
  line-height: 1.3;
  color: #666666;
}

.hw-share .matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  line-height: 1.32;
}

.hw-share .matrix th {
  background: #2a2a2a;
  color: #ffffff;
  font-weight: 800;
  text-align: left;
  padding: 7px 8px;
  border-top: 4px solid #c7000b;
}

.hw-share .matrix td {
  border: 1px solid #e6e1df;
  padding: 7px 8px;
  vertical-align: top;
  color: #444444;
}

.hw-share .matrix tr:nth-child(odd) td {
  background: #ffffff;
}

.hw-share .matrix tr:nth-child(even) td {
  background: #f4f4f2;
}

.hw-share .label {
  display: inline-block;
  background: #c7000b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  margin-right: 6px;
}

.hw-share .timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 16px;
  border-top: 4px solid #c7000b;
}

.hw-share .timeline-item {
  position: relative;
  padding: 20px 12px 12px 0;
}

.hw-share .timeline-item::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #c7000b;
}

.hw-share .timeline-item b {
  display: block;
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.hw-share .timeline-item span {
  display: block;
  font-size: 11.5px;
  line-height: 1.35;
  color: #666666;
}

.hw-share .split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.hw-share .codebox {
  background: #1f1f1f;
  color: #f5f5f5;
  padding: 12px 13px;
  font-family: Consolas, "Andale Mono", monospace;
  font-size: 10.5px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.hw-share .codebox .dim {
  color: #a9a9a9;
}

.hw-share .codebox .hot {
  color: #ffb3b3;
}

.hw-share .callout-red {
  background: #c7000b;
  color: #ffffff;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 19px;
  line-height: 1.28;
  font-weight: 800;
}

/* ============================================
   标题自动缩放
   ============================================ */

/* 方案1: 纯 CSS 响应式标题 (推荐) */
/* 使用 class: scale-title */
.remark-slide-content.scale-title h1 {
  font-size: clamp(1.5rem, 5vw, 3rem);
}

/* 更小的标题 */
.remark-slide-content.scale-title-sm h1 {
  font-size: clamp(1.2rem, 4vw, 2.5rem);
}

/* 方案2: 使用 fitty 自动缩放的标题 */
.fit-title {
  display: block;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* 整页启用标题缩放: class: fit-text */
.remark-slide-content.fit-text h1 {
  display: block;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* 方案3: 允许标题换行但保持美观 */
.remark-slide-content.wrap-title h1 {
  white-space: normal;
  word-break: keep-all;
  line-height: 1.2;
  text-wrap: balance; /* 现代浏览器支持 */
}

/* 中文标题按词换行 (不在字符中间断开) */
.word-break-keep h1,
.word-break-keep h2,
h1.word-keep,
h2.word-keep {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ============================================
   内容溢出处理
   ============================================ */

/* 可滚动内容区域: class: scroll */
.remark-slide-content.scroll {
  overflow-y: auto;
}

/* 可滚动代码块 */
.scroll-code pre {
  max-height: 400px;
  overflow-y: auto;
}

/* 代码块自适应高度 */
.fit-code pre {
  max-height: 60vh;
  overflow-y: auto;
}

.fit-code pre code {
  font-size: 0.75em;
}

/* 紧凑模式：减小所有间距和字体 */
.remark-slide-content.compact {
  padding: 0.5em 2em;
}

.remark-slide-content.compact h2 {
  margin-top: 0.3em;
  margin-bottom: 0.3em;
}

.remark-slide-content.compact pre {
  margin: 0.3em 0;
  padding: 0.5em;
}

.remark-slide-content.compact p {
  margin: 0.3em 0;
}

.remark-slide-content.compact ul,
.remark-slide-content.compact ol {
  margin: 0.3em 0;
}

/* 超小字体模式 */
.remark-slide-content.tiny {
  font-size: 0.7em;
}

.remark-slide-content.tiny pre code {
  font-size: 0.85em;
}

/* ============================================
   代码块尺寸控制
   ============================================ */

/* 小号代码 */
.code-sm pre code {
  font-size: 0.7em;
  line-height: 1.3;
}

/* 超小号代码 */
.code-xs pre code {
  font-size: 0.6em;
  line-height: 1.2;
}

/* 限制代码块高度 */
.code-h200 pre { max-height: 200px; overflow-y: auto; }
.code-h300 pre { max-height: 300px; overflow-y: auto; }
.code-h400 pre { max-height: 400px; overflow-y: auto; }

/* ============================================
   Conversational sharing deck
   ============================================ */

.talk {
  --talk-red: #c7000b;
  --talk-ink: #151515;
  --talk-text: #3f3f3f;
  --talk-muted: #777777;
  --talk-line: #e8e2df;
  --talk-paper: #fffdfa;
  font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", Arial, sans-serif;
  color: var(--talk-text);
  background: var(--talk-paper);
  padding: 44px 56px 38px 56px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.talk h1,
.talk h2,
.talk h3 {
  font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", Arial, sans-serif;
  letter-spacing: 0;
}

.talk h1 {
  font-size: 52px;
  line-height: 1.08;
  color: var(--talk-ink);
  margin: 0;
  font-weight: 800;
}

.talk h2 {
  font-size: 39px;
  line-height: 1.16;
  color: var(--talk-ink);
  margin: 0;
  font-weight: 800;
  border-bottom: none !important;
}

.talk h3 {
  font-size: 21px;
  color: var(--talk-ink);
  margin: 0 0 8px 0;
  font-weight: 800;
}

.talk p {
  margin: 0;
}

.remark-slide-content.talk .remark-slide-number {
  display: none;
}

.talk .talk-page {
  position: absolute;
  top: 34px;
  right: 48px;
  font-size: 12px;
  color: var(--talk-red);
  border: 1px solid rgba(199, 0, 11, 0.32);
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.78);
}

.talk .talk-kicker {
  font-size: 14px;
  color: var(--talk-red);
  font-weight: 800;
  margin-bottom: 12px;
}

.talk .talk-lead {
  font-size: 21px;
  line-height: 1.52;
  color: var(--talk-text);
  max-width: 760px;
  margin-top: 18px;
}

.talk .talk-note {
  font-size: 17px;
  line-height: 1.5;
  color: var(--talk-muted);
}

.talk .talk-accent {
  color: var(--talk-red);
  font-weight: 800;
}

.talk .talk-rule {
  width: 68px;
  height: 6px;
  background: var(--talk-red);
  margin-bottom: 26px;
}

.talk .talk-bottom {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 30px;
  height: 1px;
  background: var(--talk-line);
}

.talk .talk-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 84px;
  height: 3px;
  background: var(--talk-red);
}

.talk.cover {
  padding: 58px 64px 48px 64px;
  background: #ffffff;
}

.talk.cover .cover-visual {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.9;
}

.talk.cover .cover-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.93) 34%, rgba(255,255,255,0.46) 66%, rgba(255,255,255,0.1) 100%);
}

.talk.cover .cover-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.talk.cover .cover-mark {
  width: 70px;
  height: 7px;
  background: var(--talk-red);
  margin-bottom: 38px;
}

.talk.cover .cover-kicker {
  color: var(--talk-red);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
}

.talk.cover .cover-subtitle {
  font-size: 22px;
  line-height: 1.48;
  color: #4d4d4d;
  margin-top: 22px;
  max-width: 680px;
}

.talk.cover .cover-meta {
  position: absolute;
  z-index: 2;
  left: 64px;
  bottom: 56px;
  font-size: 14px;
  line-height: 1.6;
  color: #555555;
}

.talk.cover .cover-side {
  position: absolute;
  z-index: 2;
  right: 54px;
  top: 64px;
  bottom: 48px;
  width: 120px;
  border-left: 1px solid rgba(0,0,0,0.10);
}

.talk.cover .cover-side::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 132px;
  width: 9px;
  height: 116px;
  background: var(--talk-red);
}

.talk.cover .cover-side .vertical {
  writing-mode: vertical-rl;
  position: absolute;
  right: 12px;
  top: 0;
  font-size: 13px;
  color: #8a8a8a;
  letter-spacing: 0.18em;
}

.talk .story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  min-height: 330px;
}

.talk .story-wide {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: start;
  margin-top: 30px;
}

.talk .speech {
  font-size: 24px;
  line-height: 1.55;
  color: var(--talk-ink);
  padding-left: 22px;
  border-left: 6px solid var(--talk-red);
}

.talk .speech.wide {
  max-width: 930px;
  font-size: 30px;
  line-height: 1.36;
  padding-left: 20px;
}

.talk .opening-question {
  margin-top: 8px;
}

.talk .opening-quote {
  max-width: 940px;
  font-size: 30px;
  line-height: 1.36;
  color: var(--talk-ink);
  font-weight: 500;
}

.talk .opening-lead {
  max-width: 930px;
  margin-top: 18px;
}

.talk .opening-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 32px;
  align-items: stretch;
  margin-top: 28px;
}

.talk .opening-grid .path {
  margin-top: 0;
}

.talk .opening-grid .example {
  min-height: 118px;
}

.talk .quiet {
  color: var(--talk-muted);
}

.talk .path {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
}

.talk .path.compact {
  gap: 8px;
}

.talk .node {
  background: #ffffff;
  border: 1px solid var(--talk-line);
  border-radius: 8px;
  padding: 13px 15px;
  min-width: 112px;
  box-shadow: 0 8px 22px rgba(27, 27, 27, 0.07);
}

.talk .path.compact .node {
  min-width: 86px;
  padding: 10px 10px;
}

.talk .node b {
  display: block;
  font-size: 16px;
  color: var(--talk-ink);
  margin-bottom: 5px;
}

.talk .path.compact .node b {
  font-size: 14px;
}

.talk .node span {
  display: block;
  font-size: 12px;
  line-height: 1.34;
  color: var(--talk-muted);
}

.talk .path.compact .node span {
  font-size: 10.5px;
}

.talk .arrow {
  color: var(--talk-red);
  font-size: 26px;
  font-weight: 800;
}

.talk .path.compact .arrow {
  font-size: 20px;
}

.talk .path.dense {
  gap: 6px;
  margin-top: 28px;
}

.talk .path.dense .node {
  min-width: 72px;
  padding: 9px 8px;
}

.talk .path.dense .node b {
  font-size: 13px;
}

.talk .path.dense .node span {
  font-size: 9.8px;
  line-height: 1.24;
}

.talk .path.dense .arrow {
  font-size: 17px;
}

.talk .cap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.talk .cap-card {
  background: #ffffff;
  border: 1px solid var(--talk-line);
  border-top: 5px solid var(--talk-red);
  border-radius: 8px;
  padding: 18px 16px 16px;
  min-height: 148px;
  box-shadow: 0 8px 22px rgba(27, 27, 27, 0.05);
}

.talk .cap-card b {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  color: var(--talk-ink);
  margin-bottom: 12px;
}

.talk .cap-card span {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  color: var(--talk-muted);
}

.talk .method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.talk .method-grid > div {
  background: #ffffff;
  border: 1px solid var(--talk-line);
  border-radius: 8px;
  padding: 13px 13px 12px;
  min-height: 100px;
  box-shadow: 0 8px 20px rgba(27, 27, 27, 0.05);
}

.talk .method-grid b {
  display: block;
  font-family: Consolas, "Andale Mono", monospace;
  font-size: 13px;
  line-height: 1.2;
  color: var(--talk-red);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.talk .method-grid span {
  display: block;
  font-size: 13.5px;
  line-height: 1.36;
  color: var(--talk-text);
}

.talk .comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 34px;
}

.talk .comparison.tight {
  gap: 14px;
  margin-top: 0;
}

.talk .pane {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--talk-line);
  padding: 24px 24px 22px 24px;
  min-height: 178px;
}

.talk .comparison.tight .pane {
  min-height: 126px;
  padding: 20px 22px;
}

.talk .comparison.tight .talk-note {
  font-size: 16px;
  line-height: 1.42;
}

.talk .pane.hot {
  border-color: rgba(199, 0, 11, 0.36);
  box-shadow: 0 12px 30px rgba(199, 0, 11, 0.08);
}

.talk .pane .big {
  display: block;
  font-size: 32px;
  color: var(--talk-red);
  font-weight: 800;
  margin-bottom: 18px;
}

.talk .bullets {
  margin: 14px 0 0 0;
  padding: 0;
  list-style: none;
}

.talk .bullets li {
  font-size: 18px;
  line-height: 1.45;
  color: var(--talk-text);
  margin: 10px 0;
  padding-left: 22px;
  position: relative;
}

.talk .bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--talk-red);
}

.talk .tool-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.talk .tool {
  background: #ffffff;
  border: 1px solid var(--talk-line);
  border-radius: 8px;
  padding: 18px 16px;
  min-height: 140px;
}

.talk .tool .tag {
  display: inline-block;
  color: #ffffff;
  background: var(--talk-red);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

.talk .tool b {
  display: block;
  font-size: 20px;
  color: var(--talk-ink);
  margin-bottom: 10px;
}

.talk .tool span {
  display: block;
  font-size: 15px;
  line-height: 1.42;
  color: var(--talk-muted);
}

.talk .example {
  background: #ffffff;
  border: 1px solid var(--talk-line);
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 0 10px 26px rgba(27, 27, 27, 0.06);
}

.talk .example .label {
  display: block;
  font-size: 13px;
  color: var(--talk-red);
  font-weight: 800;
  margin-bottom: 8px;
}

.talk .example p {
  font-size: 19px;
  line-height: 1.5;
  color: var(--talk-text);
}

.talk .light-code {
  background: #1f1f1f;
  color: #f4f4f4;
  border-radius: 10px;
  padding: 22px 24px;
  font-family: Consolas, "Andale Mono", monospace;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.talk .light-code .dim {
  color: #a9a9a9;
}

.talk .light-code .hot {
  color: #ffb3b3;
}

.talk .stack {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.talk .stack.compact {
  gap: 10px;
  margin-top: 10px;
}

.talk .line-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--talk-line);
}

.talk .stack.compact .line-card {
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 11px 0;
}

.talk .line-card b {
  color: var(--talk-red);
  font-size: 18px;
}

.talk .stack.compact .line-card b {
  font-size: 16px;
}

.talk .line-card span {
  font-size: 19px;
  line-height: 1.42;
  color: var(--talk-text);
}

.talk .stack.compact .line-card span {
  font-size: 16px;
  line-height: 1.34;
}

.talk .takeaways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.talk .takeaway {
  padding-top: 18px;
  border-top: 5px solid var(--talk-red);
}

.talk .takeaway b {
  display: block;
  color: var(--talk-ink);
  font-size: 22px;
  margin-bottom: 10px;
}

.talk .takeaway span {
  display: block;
  color: var(--talk-muted);
  font-size: 16px;
  line-height: 1.45;
}

.talk .mini-timeline {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 4px solid var(--talk-red);
}

.talk .mini-timeline > div {
  position: relative;
  padding: 24px 22px 0 0;
}

.talk .mini-timeline > div::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--talk-red);
}

.talk .mini-timeline b {
  display: block;
  color: var(--talk-ink);
  font-size: 21px;
  margin-bottom: 10px;
}

.talk .mini-timeline span {
  display: block;
  font-size: 16px;
  line-height: 1.42;
  color: var(--talk-muted);
}
