:root {
  --ink: #16243b;
  --muted: #68778b;
  --line: #d8e2ec;
  --line-strong: #c4d2df;
  --primary: #2366d1;
  --primary-deep: #1459c4;
  --secondary: #0b8a83;
  --white: #ffffff;
  --shadow: 0 14px 34px rgba(22, 36, 59, 0.07);
  --radius: 22px;
}

/*
  字号规则
  - 页面主标题保持 42px，不随正文调整。
  - 除主标题外，页眉、卡片、用户原声、坐标标签与结论文字，
    均在上一版本基础上统一增加 2px。
*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #020b18;
}

body,
button,
input,
textarea {
  color: var(--ink);
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
}

deck-stage:not(:defined) {
  visibility: hidden;
}

.slide {
  overflow: hidden;
  background: #f7f9fc;
}

.page {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 32px 74px minmax(0, 1fr);
  gap: 14px;
  padding: 34px 64px 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 4%, rgba(72, 165, 230, 0.18), transparent 27%),
    linear-gradient(rgba(35, 102, 209, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 102, 209, 0.025) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 54%, #eef4f9 100%);
  background-size: auto, 40px 40px, 40px 40px, auto;
}

.page::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 370px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 155, 235, 0.12), transparent 70%);
  pointer-events: none;
}

.page-meta,
.page-title,
.evidence-layout {
  position: relative;
  z-index: 1;
}

.page-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.045em;
}

.research-label {
  display: flex;
  align-items: center;
  gap: 14px;
}

.research-label span {
  width: 54px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.page-topic {
  color: var(--muted);
  font-size: 20px;
}

.page-title {
  display: flex;
  align-items: center;
  max-width: 1760px;
  border-bottom: 2px solid rgba(196, 210, 223, 0.66);
  color: var(--ink);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.page-title mark {
  margin: 0 8px;
  color: var(--primary);
  background: transparent;
}

.evidence-layout {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 82px;
  gap: 14px;
  min-height: 0;
}

.device-matrix,
.conclusion-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.device-matrix {
  position: relative;
  min-height: 0;
  padding: 18px 18px 48px 116px;
  overflow: hidden;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
  height: 100%;
}

.evidence-card {
  --tone: var(--primary);
  position: relative;
  display: grid;
  grid-template-rows: 58px 88px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  min-height: 0;
  padding: 14px 16px 13px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tone), white 73%);
  border-radius: 18px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--tone), white 96%), #ffffff 70%);
}

.evidence-card[data-tone="teal"] {
  --tone: var(--secondary);
}

.evidence-card[data-runtime="ondemand"] {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--tone), white 98%), #ffffff 76%);
}

.card-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  min-width: 0;
}

.card-index {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid color-mix(in srgb, var(--tone), white 56%);
  border-radius: 10px;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone), white 92%);
  font-size: 17px;
  font-weight: 800;
}

.card-heading {
  min-width: 0;
}

.card-heading h2 {
  color: var(--ink);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.card-heading p {
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--tone), white 60%);
  border-radius: 999px;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone), white 94%);
  font-size: 15.5px;
  font-weight: 800;
  white-space: nowrap;
}

.card-summary {
  display: grid;
  grid-template-columns: 43% minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 0;
  padding: 3px 7px 7px;
  border-bottom: 1px solid color-mix(in srgb, var(--tone), white 78%);
}

.device-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
}

.device-image {
  display: block;
  max-width: 100%;
  max-height: 76px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.device-image-fixed-long {
  width: 260px;
}

.device-image-mobile-long {
  width: 335px;
}

.device-image-fixed-short {
  width: 215px;
}

.device-image-mobile-short {
  width: 218px;
}

.mapping-note {
  position: absolute;
  right: 1px;
  bottom: -8px;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--secondary);
  background: rgba(235, 249, 247, 0.94);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.card-summary > p {
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.48;
  text-wrap: pretty;
}

.embedded-voice {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 28px;
  min-width: 0;
  min-height: 0;
  padding: 11px 14px 8px 41px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tone), white 78%);
  border-radius: 14px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--tone), white 97%), rgba(247, 250, 255, 0.98));
}

.embedded-voice::before {
  content: "“";
  position: absolute;
  top: 2px;
  left: 12px;
  color: color-mix(in srgb, var(--tone), white 14%);
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.embedded-voice blockquote {
  align-self: center;
  color: var(--ink);
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "楷体", serif;
  font-size: 19.5px;
  font-weight: 600;
  line-height: 1.48;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}

.embedded-voice mark,
.mini-voice mark {
  color: var(--primary);
  background: transparent;
}

.evidence-card[data-tone="teal"] .embedded-voice mark {
  color: var(--secondary);
}

.embedded-voice figcaption {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.8px;
  line-height: 1.15;
}

.embedded-voice figcaption span {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.embedded-voice figcaption small {
  flex: 0 0 auto;
  color: var(--tone);
  font-size: 13.8px;
  font-weight: 800;
}

.combined-voice {
  display: block;
  padding: 28px 12px 10px;
}

.combined-voice::before {
  display: none;
}

.combined-label {
  position: absolute;
  top: 7px;
  left: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(229, 239, 255, 0.96);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

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

.mini-voice {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 18px 16px;
  min-width: 0;
  min-height: 0;
  padding: 3px 10px 0;
}

.mini-voice + .mini-voice {
  border-left: 1px solid var(--line);
}

.mini-voice blockquote {
  align-self: center;
  color: var(--ink);
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "楷体", serif;
  font-size: 16.8px;
  font-weight: 600;
  line-height: 1.42;
  text-wrap: pretty;
}

.mini-voice p {
  overflow: hidden;
  color: var(--muted);
  font-size: 13.8px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-voice small {
  color: var(--primary);
  font-size: 12.6px;
  font-weight: 800;
  line-height: 1.2;
}

.matrix-axis-y {
  position: absolute;
  top: 28px;
  bottom: 55px;
  left: 14px;
  width: 92px;
  color: var(--primary);
}

.matrix-axis-y i {
  position: absolute;
  top: 25px;
  bottom: 25px;
  left: 83px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.matrix-axis-y i::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -8px;
  border-right: 10px solid transparent;
  border-bottom: 16px solid var(--primary);
  border-left: 10px solid transparent;
}

.axis-long,
.axis-short {
  position: absolute;
  left: 0;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.axis-long {
  top: 1px;
}

.axis-short {
  bottom: 0;
}

.axis-name {
  position: absolute;
  top: 50%;
  left: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  transform: translateY(-50%);
}

.matrix-axis-x {
  position: absolute;
  right: 20px;
  bottom: 7px;
  left: 116px;
  height: 34px;
  color: var(--primary);
}

.matrix-axis-x i {
  position: absolute;
  top: 3px;
  right: 8px;
  left: 8px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.matrix-axis-x i::after {
  content: "";
  position: absolute;
  top: -8px;
  right: -9px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid var(--secondary);
}

.axis-fixed,
.axis-title,
.axis-mobile {
  position: absolute;
  bottom: 0;
  font-size: 17.5px;
  font-weight: 800;
}

.axis-fixed {
  left: 0;
}

.axis-title {
  left: 50%;
  transform: translateX(-50%);
}

.axis-mobile {
  right: 0;
}

.conclusion-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  color: #ffffff;
  text-align: center;
  border-color: rgba(35, 102, 209, 0.45);
  background: linear-gradient(105deg, #155ec7 0%, #1d71da 58%, #0b8a83 120%);
}

.conclusion-strip p {
  font-size: 31px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.notes {
  display: none;
}

.fade-up {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  [data-deck-active] .fade-up {
    animation: fadeUp 0.52s both;
  }

  [data-deck-active] .evidence-layout {
    animation-delay: 0.08s;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media print {
  html,
  body {
    overflow: visible;
    background: #ffffff;
  }
}
