:root {
  font-family: 'Comic Sans MS', 'Trebuchet MS', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #2b2340;
  background:
    radial-gradient(circle at top left, #fff4b8 0, transparent 32%),
    radial-gradient(circle at 85% 15%, #b5f0ff 0, transparent 28%),
    linear-gradient(180deg, #fffaf1, #ffe8f0 55%, #eaf9ff);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  font-weight: 400;
}

* {
  box-sizing: border-box;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-width: 320px;
  height: 100vh;
  overflow: hidden;
}

*::-webkit-scrollbar {
  display: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
}

.inline-link {
  color: #ff5d3d;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  word-break: break-all;
}

.inline-link:hover {
  color: #d94325;
}

#app {
  height: 100vh;
}

.shell {
  --sidebar-width: 280px;
  height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: 100vh;
  transition: grid-template-columns 220ms ease;
  overflow: hidden;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border-right: 3px dashed rgba(93, 63, 211, 0.18);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  transition: padding 220ms ease, background 220ms ease;
}

.brand-card,
.slide-card {
  border: 3px solid #2b2340;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 10px 10px 0 rgba(43, 35, 64, 0.12);
}

.brand-card {
  padding: 18px;
  background: linear-gradient(180deg, #fffaf7, #fff0ba);
}

.brand-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  border: 3px solid #2b2340;
  background: #ffffff;
  display: grid;
  place-items: center;
  font-size: 26px;
  flex: 0 0 auto;
}

.brand-copy {
  margin-top: 14px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.brand-card h1 {
  margin: 10px 0 8px;
  font-size: 26px;
  line-height: 1.05;
}

.brand-card p {
  margin: 0;
  color: #5f5676;
  font-size: 14px;
}

.brand-badge,
.kicker,
.nav-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ff7f66;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.collapse-toggle {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 3px solid #2b2340;
  background: #ffffff;
  color: #2b2340;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(43, 35, 64, 0.1);
  transition: transform 180ms ease, background 180ms ease;
}

.collapse-toggle:hover {
  transform: translateY(-1px);
  background: #eef7ff;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding-right: 4px;
}

.nav-item {
  text-align: left;
  padding: 14px 14px 16px;
  border-radius: 22px;
  background: #ffffff;
  border: 3px solid #2b2340;
  box-shadow: 6px 6px 0 rgba(43, 35, 64, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.nav-item:hover {
  transform: translateY(-2px);
}

.nav-item.active {
  background: linear-gradient(180deg, #c8f7ff, #ffffff);
}

.nav-kicker {
  width: fit-content;
  background: #5d3fd3;
}

.nav-index {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 3px solid #2b2340;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fff7d1, #ffffff);
  font-size: 18px;
  font-weight: 700;
}

.nav-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-title {
  font-size: 16px;
  font-weight: 700;
}

.sidebar.collapsed {
  padding-left: 12px;
  padding-right: 12px;
}

.sidebar.collapsed .brand-card {
  padding: 14px 10px;
}

.sidebar.collapsed .brand-head {
  justify-content: center;
  flex-direction: column;
}

.sidebar.collapsed .brand-copy,
.sidebar.collapsed .nav-copy {
  opacity: 0;
  transform: translateX(-12px);
  pointer-events: none;
}

.sidebar.collapsed .brand-copy {
  margin-top: 0;
  height: 0;
  overflow: hidden;
}

.sidebar.collapsed .nav-item {
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  padding: 12px 8px;
}

.sidebar.collapsed .nav-list {
  padding-right: 0;
}

.sidebar.collapsed .nav-copy {
  display: none;
}

.sidebar.collapsed .nav-index {
  margin: 0 auto;
}

/* ─── 单屏约束核心 ─── */
.stage {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background-image: radial-gradient(rgba(43, 35, 64, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
}

.slide-content {
  height: 100%;
  padding: 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: stretch;
}
.slide-content::-webkit-scrollbar { display: none; }

/* 紧凑模式：内容超屏时收紧间距 */
.slide-content--compact {
  gap: 12px;
  padding: 16px;
}

.stage[data-mood='hero'] {
  background-color: #fff9ef;
}

.stage[data-mood='mint'] {
  background-color: #eefdf7;
}

.stage[data-mood='sun'] {
  background-color: #fff7db;
}

.stage[data-mood='pink'] {
  background-color: #fff0f7;
}

.stage[data-mood='wave'] {
  background-color: #eef7ff;
}

.stage[data-mood='leaf'] {
  background-color: #f1fff0;
}

.hero-card {
  padding: 14px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 16px;
  align-items: center;
  background: linear-gradient(135deg, #fff7d1, #ffd7e9 50%, #d5f1ff);
}

.hero-copy h2 {
  margin: 5px 0 5px;
  font-size: clamp(22px, 3.2vw, 38px);
  line-height: 1.02;
}

.subtitle {
  margin: 0;
  color: #5f5676;
  font-size: 16px;
  line-height: 1.5;
}

.mascot-cloud {
  display: flex;
  justify-content: center;
}

.mascot-bubble {
  width: 90px;
  height: 90px;
  border-radius: 27px;
  border: 3px solid #2b2340;
  background: #ffffff;
  display: grid;
  place-items: center;
  font-size: 44px;
  box-shadow: 7px 7px 0 rgba(43, 35, 64, 0.12);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.content-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 20px;
}

.content-grid--cover {
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}

.case-grid {
  grid-template-columns: 4fr 6fr;
  align-items: stretch;
  min-height: 0;
  flex: 1;
}

.case-grid > .case-sections-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.case-grid > .case-sections-card > .case-section {
  flex: 1;
  min-height: 0;
}

/* 案例2目标区扩大1.5倍，仅影响case-2的第一个section */
.case-grid > .case-sections-card > .section--taller-goal {
  flex: 0 0 auto;
  max-height: 57%;
}

/* 2列布局 */
.cards-grid--2square {
  grid-template-columns: repeat(2, 1fr) !important;
  padding: 10px 14px 14px;
}

.cards-grid--2square .case-card-icon-btn {
  min-height: 80px;
  padding: 14px 12px;
  border-radius: 16px;
}

.case-grid > .case-right-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.case-right-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.case-right-card .shot-grid {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.case-right-card .shot-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.case-right-card .shot-frame {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-right-card .shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slide-card {
  padding: 22px;
}

/* ─── 案例页左侧分区卡片 ─── */
.case-sections-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px;
}

.case-section {
  border-radius: 20px;
  border: 3px solid #2b2340;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  flex-direction: column;
}

/* 触发方式/资源下载区域占满剩余空间，按钮在容器内居中协调 */
.case-section:nth-child(2) {
  flex: 1;
  min-height: 0;
}

.case-section:nth-child(3) {
  flex: 1;
  min-height: 0;
}

.case-section:nth-child(2) .case-cards-grid,
.case-section:nth-child(3) .case-cards-grid {
  height: 100%;
  margin-top: -30px;
  padding: 10px 14px 14px;
  align-content: center;
  justify-items: stretch;
}

.case-section:nth-child(2) .case-card-item,
.case-section:nth-child(3) .case-card-item {
  display: flex;
  align-items: stretch;
}

.case-section:nth-child(2) .case-card-icon-btn,
.case-section:nth-child(3) .case-card-icon-btn {
  width: 100%;
  height: 100%;
  min-height: 80px;
  padding: 14px 12px;
  border-radius: 16px;
}

.case-section-label {
  padding: 6px 16px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-bottom: 2px solid rgba(43, 35, 64, 0.12);
}

.case-section-list {
  margin: 0;
  padding: 10px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  flex: 1;
}

.case-section-list li {
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.highlight-red {
  color: #ff5d3d;
  font-weight: 700;
}

/* 目标区：橙色暖调 */
.case-section:nth-child(1) {
  background: linear-gradient(135deg, #fff7d1, #ffd7e9);
  box-shadow: 5px 5px 0 rgba(43, 35, 64, 0.1);
}
.case-section:nth-child(1) .case-section-label {
  background: rgba(255, 127, 102, 0.2);
  color: #b94025;
  border-bottom: 2px solid rgba(43, 35, 64, 0.12);
}

/* 工作流区：蓝色冷调 */
.case-section:nth-child(2) {
  background: linear-gradient(135deg, #eef7ff, #d5f1ff);
  box-shadow: 5px 5px 0 rgba(43, 35, 64, 0.1);
}
.case-section:nth-child(2) .case-section-label {
  background: rgba(93, 63, 211, 0.12);
  color: #3d2b8a;
  border-bottom: 2px solid rgba(43, 35, 64, 0.12);
}

/* 资源下载区：绿色冷调 */
.case-section:nth-child(3) {
  background: linear-gradient(135deg, #e8fff0, #c8f7dc);
  box-shadow: 5px 5px 0 rgba(43, 35, 64, 0.1);
}
.case-section:nth-child(3) .case-section-label {
  background: rgba(35, 150, 80, 0.12);
  color: #1a6b3c;
  border-bottom: 2px solid rgba(43, 35, 64, 0.12);
}

.case-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 4px 16px 26px;
  align-content: center;
}

.case-card-item {
  display: flex;
  flex-direction: column;
}

.case-card-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 12px;
  border-radius: 20px;
  border: 3px solid #2b2340;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 5px 5px 0 rgba(43, 35, 64, 0.1);
  cursor: pointer;
  width: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  min-height: 100px;
}

.case-card-icon-btn:hover {
  transform: translateY(-3px);
  box-shadow: 8px 8px 0 rgba(43, 35, 64, 0.14);
  background: #fffdf7;
}

.case-card-link {
  text-decoration: none;
  color: inherit;
}

.case-card-icon {
  font-size: 36px;
  line-height: 1;
}

.case-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.case-card-body strong {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
}

.case-card-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff3cf;
  font-size: 11px;
  font-weight: 700;
  color: #7a5c20;
}

/* ─── 通用卡片标题 ─── */
.slide-card > h3 {
  margin: 0 0 14px;
  font-size: 26px;
}

.slide-card p,
.slide-card li,
.slide-card span,
.slide-card strong {
  font-size: 17px;
}

.info-card {
  min-height: 180px;
}

.info-card h3 {
  font-size: 22px;
}

.info-card p {
  margin: 0;
  color: #5f5676;
  line-height: 1.7;
}

/* ─── 封面专用：定位对比 + 目录卡片 ─── */
.locator-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.locator-card > h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.main-card {
  padding: 24px;
}

.main-card > h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.locator-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: start;
}

.locator-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.locator-header {
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 14px;
  border: 3px solid #2b2340;
}

.not-header {
  background: #ffe8e8;
  color: #c0392b;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.but-header {
  background: #e8ffef;
  color: #1a7a45;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.locator-badge {
  padding: 14px 18px;
  border-radius: 18px;
  border: 3px solid #2b2340;
  box-shadow: 5px 5px 0 rgba(43, 35, 64, 0.1);
  font-size: 16px;
  line-height: 1.5;
  flex: 1;
}

.not-badge {
  background: linear-gradient(135deg, #fff0f0, #ffd7d7);
}

.but-badge {
  background: linear-gradient(135deg, #efffef, #d7ffd7);
}

/* ─── 封面署名：右下角 ─── */
.cover-attribution {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 13px;
  color: #8888aa;
  letter-spacing: 0.04em;
  padding-right: 4px;
}

.attr-sep {
  color: #bbb;
}

.agenda-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.agenda-item {
  padding: 16px 20px;
  border-radius: 20px;
  border: 3px solid #2b2340;
  background: linear-gradient(135deg, #eef7ff, #d5f1ff);
  box-shadow: 6px 6px 0 rgba(43, 35, 64, 0.1);
  font-size: 17px;
  line-height: 1.6;
  flex: 1;
  min-height: 70px;
  display: flex;
  align-items: center;
}

.bullet-list,
.side-list {
  margin: 0;
  padding-left: 28px;
  display: grid;
  gap: 14px;
}

.bullet-list li::marker,
.side-list li::marker {
  color: #ff7f66;
}

.code-block {
  margin: 18px 0 0;
  padding: 18px;
  border-radius: 22px;
  border: 3px solid #2b2340;
  background: #2b2340;
  color: #fff3b3;
  overflow: auto;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
}

.callout-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.callout-card {
  padding: 14px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #dff7ff, #ffffff);
  border: 3px dashed #2b2340;
  display: grid;
  gap: 6px;
}

.side-card {
  background: linear-gradient(180deg, #fffaf9, #ffeef5);
}

.feature-board {
  background: linear-gradient(180deg, #fffdf4, #f1fbff);
}

.accordion-board {
  background: linear-gradient(180deg, #fff8fb, #eef7ff);
}

.table-board {
  background: linear-gradient(180deg, #fffdf7, #eef7ff);
}

.link-board {
  background: linear-gradient(180deg, #fffaf7, #fff2dd);
}

.link-board h3 {
  margin: 0 0 16px;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.link-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 24px;
  border: 3px solid #2b2340;
  background: #fff;
  box-shadow: 8px 8px 0 rgba(43, 35, 64, 0.08);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.link-card:hover {
  transform: translateY(-2px);
  background: #fffdf7;
}

.link-card p,
.link-card span {
  margin: 0;
  color: #5f5676;
}

.link-card p {
  line-height: 1.6;
}

.link-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.link-source,
.link-arrow {
  font-size: 13px;
  font-weight: 700;
}

.link-source {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff3cf;
  color: #2b2340;
}

.link-arrow {
  color: #ff7f66;
}

.table-scroll {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
}

.compare-table th,
.compare-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-right: 2px solid rgba(43, 35, 64, 0.12);
  border-bottom: 2px solid rgba(43, 35, 64, 0.12);
  font-size: 15px;
  line-height: 1.65;
}

.compare-table th {
  background: #fff3cf;
  color: #2b2340;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.compare-table td {
  background: rgba(255, 255, 255, 0.92);
  color: #5f5676;
}

.compare-table tr th:first-child,
.compare-table tr td:first-child {
  border-left: 2px solid rgba(43, 35, 64, 0.12);
}

.compare-table thead tr:first-child th:first-child {
  border-top-left-radius: 20px;
}

.compare-table thead tr:first-child th:last-child {
  border-top-right-radius: 20px;
}

.compare-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 20px;
}

.compare-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  padding: 18px 14px;
  border-radius: 24px;
  border: 3px solid #2b2340;
  background: #fff;
  text-align: center;
}

.accordion-list {
  display: grid;
  gap: 14px;
}

.accordion-card {
  border-radius: 26px;
  border: 3px solid #2b2340;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.accordion-card.open {
  box-shadow: 10px 10px 0 rgba(43, 35, 64, 0.12);
}

.accordion-trigger {
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
}

.accordion-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.accordion-emoji {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 3px solid #2b2340;
  background: #fff7d1;
  display: grid;
  place-items: center;
  font-size: 30px;
}

.accordion-head strong {
  display: block;
  margin-bottom: 4px;
  font-size: 22px;
}

.accordion-summary {
  display: block;
  color: #5f5676;
  line-height: 1.7;
}

.accordion-arrow {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 3px solid #2b2340;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
}

.accordion-body {
  padding: 0 20px 20px 90px;
}

.accordion-points {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 12px;
}

.accordion-points li::marker {
  color: #ff7f66;
}

.example-card-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.example-card {
  padding: 16px;
  border-radius: 22px;
  border: 3px solid #2b2340;
  background: linear-gradient(180deg, #fffaf2, #ffffff);
  display: grid;
  gap: 10px;
  box-shadow: 8px 8px 0 rgba(43, 35, 64, 0.08);
}

.example-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 3px solid #2b2340;
  background: #fff7d1;
  display: grid;
  place-items: center;
  font-size: 28px;
}

.example-card strong {
  font-size: 18px;
}

.example-card p {
  margin: 0;
  color: #5f5676;
  line-height: 1.7;
}

.accordion-media-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.accordion-media-card {
  display: grid;
  gap: 12px;
}

.accordion-media-card .shot-frame,
.accordion-media-card .shot-copy {
  width: min(760px, 100%);
  margin: 0 auto;
}

.accordion-media-card .shot-frame img {
  width: 100%;
  height: auto;
  background: #fff;
}

.dialog-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dialog-grid.single {
  grid-template-columns: 1fr;
}

.dialog-board {
  background: linear-gradient(180deg, #fffdf8, #eef7ff);
}

.dialog-case {
  display: grid;
  gap: 10px;
}

.dialog-case-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.dialog-case-head strong {
  font-size: 20px;
}

.dialog-card {
  padding: 18px;
  border-radius: 24px;
  border: 3px solid #2b2340;
  background: linear-gradient(180deg, #fffdf8, #eef7ff);
  display: grid;
  gap: 14px;
}

.dialog-card--flat {
  gap: 0;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-head strong {
  font-size: 20px;
}

.dialog-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 3px solid #2b2340;
  background: #fff7d1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.dialog-thread {
  display: grid;
  gap: 12px;
}

.chat-row {
  display: flex;
}

.chat-row.user {
  justify-content: flex-end;
}

.chat-row.assistant {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 22px;
  border: 3px solid #2b2340;
  background: #fff;
  box-shadow: 6px 6px 0 rgba(43, 35, 64, 0.08);
}

.chat-row.user .chat-bubble {
  background: #fff3cf;
}

.chat-row.assistant .chat-bubble {
  background: #e8f8ff;
}

.chat-role {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5f5676;
}

.chat-bubble p {
  margin: 0;
  line-height: 1.7;
}

.shot-board {
  background: linear-gradient(180deg, #fffdf9, #eef7ff);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* 单张图片最大化填充 */
.shot-board:has(.shot-1col) {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.shot-1col {
  flex: 1;
  min-height: 0;
}

.shot-1col .shot-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.shot-1col .shot-frame {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot-1col .shot-frame img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.shot-grid.shot-1col {
  grid-template-columns: 1fr;
}

/* 紧凑模式：3+ 张图自动切 3 列，收紧间距 */
.shot-grid.shot-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

/* 紧凑模式：缩小 shot-card 内边距和文字 */
.shot-grid.shot-compact .shot-card {
  padding: 10px;
}

.shot-grid.shot-compact .shot-frame {
  border-radius: 16px;
  box-shadow: 5px 5px 0 rgba(43, 35, 64, 0.1);
}

.shot-grid.shot-compact .shot-hint {
  display: none;
}

.shot-grid.shot-compact .shot-copy h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.shot-grid.shot-compact .shot-copy p {
  font-size: 13px;
  line-height: 1.5;
}

.shot-card {
  display: grid;
  gap: 14px;
}

.shot-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 3px solid #2b2340;
  background: #ffffff;
  box-shadow: 10px 10px 0 rgba(43, 35, 64, 0.1);
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.shot-frame:hover {
  transform: translateY(-2px);
  box-shadow: 12px 12px 0 rgba(43, 35, 64, 0.14);
}

.shot-hint {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(43, 35, 64, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-copy h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.shot-copy p {
  margin: 0;
  color: #5f5676;
  line-height: 1.7;
}

.video-board {
  background: linear-gradient(180deg, #fffdf9, #f3f8ff);
  display: grid;
  gap: 16px;
}

.video-frame {
  overflow: hidden;
  border-radius: 28px;
  border: 3px solid #2b2340;
  background: #111;
  box-shadow: 10px 10px 0 rgba(43, 35, 64, 0.1);
}

.video-frame video {
  display: block;
  width: 100%;
  max-height: 520px;
  background: #000;
}

.video-copy h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.video-copy p {
  margin: 0;
  color: #5f5676;
  line-height: 1.7;
}

.feature-emoji {
  font-size: 36px;
  margin-bottom: 10px;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  color: #5f5676;
  font-size: 14px;
  line-height: 1.6;
}

.action-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  flex: 1;
  min-height: 180px;
  padding: 24px;
  border-radius: 24px;
  border: 3px solid #2b2340;
  background: linear-gradient(135deg, #fff7d1, #dff7ff);
  box-shadow: 8px 8px 0 rgba(43, 35, 64, 0.12);
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.action-button:hover {
  transform: translateY(-3px);
  box-shadow: 12px 12px 0 rgba(43, 35, 64, 0.16);
}

.action-button-icon {
  font-size: 48px;
  line-height: 1;
}

.action-button-label {
  font-size: 18px;
  font-weight: 700;
  color: #2b2340;
  letter-spacing: 0.02em;
}

.army-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
}

.army-list {
  display: grid;
  gap: 14px;
}

.army-prompt {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 3px dashed #2b2340;
  background: linear-gradient(180deg, #fff8d8, #fffdf7);
}

.army-prompt strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.army-prompt p {
  margin: 0;
  color: #5f5676;
  line-height: 1.7;
}

.army-unit {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff2d7, #ffffff);
  border: 3px solid #2b2340;
}

.unit-icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 3px solid #2b2340;
  font-size: 30px;
}

.army-unit p {
  margin: 6px 0 0;
  color: #5f5676;
  line-height: 1.6;
}

.quote-card {
  background: linear-gradient(180deg, #fff, #dff7ff);
}

.quote-card p {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.5;
  font-weight: 700;
}

.floating-pager {
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floating-nav-btn {
  width: 50px;
  height: 50px;
  padding: 0;
  border: 3px solid #2b2340;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  color: #2b2340;
  backdrop-filter: blur(8px);
  box-shadow: 6px 6px 0 rgba(43, 35, 64, 0.08);
  display: grid;
  place-items: center;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, opacity 180ms ease;
  opacity: 0.62;
}

.floating-nav-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 8px 8px 0 rgba(43, 35, 64, 0.12);
  background: rgba(255, 255, 255, 0.62);
  opacity: 0.9;
}

.floating-nav-btn:disabled {
  cursor: not-allowed;
  opacity: 0.28;
  box-shadow: none;
}

.floating-nav-arrow {
  font-size: 24px;
  line-height: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 10, 20, 0.95);
  overflow: hidden;
}

.lightbox-card {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
  margin: 0;
}

.lightbox-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 16px;
  border: 3px solid #2b2340;
  background: #fff;
  user-select: none;
}

.lightbox-card figcaption { display: none; }

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 3px solid #2b2340;
  background: #fff7d1;
  color: #2b2340;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 8px 8px 0 rgba(43, 35, 64, 0.16);
  z-index: 2;
  transition: transform 180ms ease, background 180ms ease;
}

.lightbox-close:hover {
  transform: translateY(-2px);
  background: #ffe066;
}

.case-img-card:hover {
  transform: translateY(-3px);
  box-shadow: 12px 12px 0 rgba(43, 35, 64, 0.14);
}

.case-img-preview {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  background: #fff;
}

.case-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 35, 64, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 200ms ease;
}

.case-img-card:hover .case-img-overlay {
  opacity: 1;
}

.case-img-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.case-img-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.case-img-desc {
  margin: 12px 0 0;
  color: #5f5676;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.lightbox-video-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-video {
  width: 100%;
  max-height: calc(100vh - 120px);
  border-radius: 20px;
  border: 3px solid #2b2340;
  background: #000;
}

.lightbox-card--video .lightbox-video-wrap {
  max-height: calc(100vh - 60px);
}

/* ─── 移动端目录按钮 ─── */
.mobile-nav-btn {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 15;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 3px solid #2b2340;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 5px 5px 0 rgba(43, 35, 64, 0.12);
  cursor: pointer;
  color: #2b2340;
  font-weight: 700;
  font-size: 15px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.mobile-nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 7px 7px 0 rgba(43, 35, 64, 0.14);
}
.mobile-nav-icon { font-size: 18px; }

/* 移动端遮罩层 */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 16;
  background: rgba(12, 10, 20, 0.45);
  backdrop-filter: blur(2px);
}

/* 移动/窄屏适配 */
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    transition: none;
  }

  .mobile-nav-btn { display: flex; }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 17;
    border-right: 3px dashed rgba(93, 63, 211, 0.18);
    transform: translateX(-100%);
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: block;
  }

  .stage {
    height: auto !important;
    min-height: 60vh;
    padding-top: 60px;
    overflow: auto;
  }

  .slide-content {
    padding: 16px;
    transform: none !important;
  }

  .nav-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar.collapsed { padding: 22px 18px; }
  .sidebar.collapsed .brand-card { padding: 18px; }
  .sidebar.collapsed .brand-head { justify-content: space-between; flex-direction: row; }
  .sidebar.collapsed .brand-copy,
  .sidebar.collapsed .nav-copy { opacity: 1; transform: none; pointer-events: auto; }
  .sidebar.collapsed .brand-copy { margin-top: 14px; height: auto; overflow: visible; }
  .sidebar.collapsed .nav-item { grid-template-columns: 42px minmax(0, 1fr); justify-items: stretch; padding: 14px 14px 16px; }
  .sidebar.collapsed .nav-copy { display: grid; }
  .collapse-toggle { display: none; }

  .content-grid, .army-grid, .content-grid.three, .feature-grid,
  .link-list, .example-card-grid, .dialog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .mobile-nav-btn { top: 10px; left: 10px; padding: 6px 12px; font-size: 14px; }
  .nav-list { grid-template-columns: 1fr; }
  .slide-content { padding: 12px; gap: 12px; transform: none !important; }
  .floating-pager { right: 10px; bottom: 12px; gap: 6px; }
  .floating-nav-btn { width: 44px; height: 44px; }
  .hero-card { grid-template-columns: 1fr; }
  .slide-card { padding: 14px; }
  .slide-card h3 { font-size: 18px; }
  .hero-copy h2 { font-size: 20px; }
  .subtitle, .slide-card p, .slide-card li, .slide-card span, .slide-card strong { font-size: 14px; line-height: 1.6; }
  .accordion-trigger { padding: 12px; }
  .accordion-head { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; }
  .accordion-emoji { width: 42px; height: 42px; border-radius: 14px; font-size: 20px; }
  .accordion-head strong { font-size: 17px; }
  .accordion-body { padding: 0 12px 12px; }
  .accordion-arrow { width: 34px; height: 34px; border-radius: 10px; font-size: 20px; }
  .lightbox { padding: 10px; }
  .lightbox-card { padding: 10px; }
  .lightbox-img-wrap img { max-height: calc(100vh - 80px); }
  .lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; font-size: 22px; }

  /* 移动端更好的排版 */
  .case-grid { grid-template-columns: 1fr; }
  .case-grid > .case-right-card { min-height: auto; }
  .case-right-card .shot-frame { min-height: 200px; }
  .brand-card h1 { font-size: 20px; }
  .brand-badge { font-size: 11px; padding: 4px 10px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .link-list { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: 1fr; }
  .agenda-item { min-height: 56px; font-size: 15px; }
  .locator-compare { grid-template-columns: 1fr; }
  .locator-badge { font-size: 14px; }
  .bullet-list, .side-list { padding-left: 20px; }
  .code-block { font-size: 12px; white-space: pre-wrap; word-break: break-all; }
}
