/* 叁狂播客节排期 · 移动端设计系统 */
:root {
  --bg: #f6f3ec;
  --bg-card: #ffffff;
  --ink: #1a1a1a;
  --ink-2: #4a4a4a;
  --ink-3: #8a8a8a;
  --line: #e8e3d8;

  /* 借海报粉绿双主色，压低彩度避免刺眼 */
  --rose: oklch(0.78 0.14 358);
  --rose-ink: oklch(0.42 0.16 358);
  --lime: oklch(0.82 0.13 135);
  --lime-ink: oklch(0.38 0.10 135);

  --amber: oklch(0.82 0.12 70);
  --amber-ink: oklch(0.42 0.14 70);
  --teal: oklch(0.78 0.10 190);
  --teal-ink: oklch(0.40 0.10 190);
  --sky: oklch(0.80 0.10 235);
  --sky-ink: oklch(0.40 0.12 235);
  --indigo: oklch(0.72 0.12 280);
  --indigo-ink: oklch(0.40 0.14 280);
  --violet: oklch(0.75 0.14 315);
  --violet-ink: oklch(0.40 0.14 315);
  --fuchsia: oklch(0.76 0.16 345);
  --fuchsia-ink: oklch(0.42 0.16 345);
  --slate: oklch(0.68 0.02 260);
  --slate-ink: oklch(0.32 0.02 260);
}

/* ===== 打印模式：每张卡一页，像素级一致 ===== */
@page {
  size: 420px 910px;
  margin: 0;
}
@media print {
  html, body {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .controls, .header-strip {
    display: none !important;
  }
  .stack {
    display: block !important;
    padding: 0 !important;
    gap: 0 !important;
    background: #fff !important;
    background-image: none !important;
    min-height: 0 !important;
  }
  .phone {
    width: 420px !important;
    height: 910px !important;
    margin: 0 !important;
    box-shadow: none !important;
    page-break-after: always;
    break-after: page;
    overflow: hidden !important;
  }
  .phone:last-child {
    page-break-after: auto;
    break-after: auto;
  }
  /* 让背景色和渐变在打印中保留 */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #eae6dc;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}

/* 每张卡 = 一个手机竖屏，420 × 910，便于用户长截图分享 */
.phone {
  width: 420px;
  height: 910px;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 40px rgba(0,0,0,0.06);
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 0;
  background: #eae6dc;
  background-image:
    radial-gradient(circle at 20% 20%, oklch(0.92 0.03 350 / 0.4), transparent 50%),
    radial-gradient(circle at 80% 80%, oklch(0.92 0.04 135 / 0.4), transparent 50%);
  min-height: 100vh;
}

/* ===== 封面 ===== */
.cover {
  background:
    radial-gradient(ellipse at 30% 20%, oklch(0.85 0.14 350), transparent 60%),
    radial-gradient(ellipse at 70% 80%, oklch(0.85 0.14 140), transparent 60%),
    linear-gradient(180deg, oklch(0.88 0.10 350), oklch(0.82 0.10 140));
  color: var(--ink);
  padding: 56px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cover .en-top {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.25em;
  line-height: 1.3;
}
.cover .en-top .sep {
  display: inline-block; width: 20px; height: 1px;
  background: var(--ink); vertical-align: middle; margin: 0 4px;
}
.cover h1 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 900;
  font-size: 180px;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: #fff;
  text-shadow: 0 6px 40px oklch(0.42 0.16 358 / 0.35);
  margin-top: auto;
}
.cover h1 .sm {
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 900;
  display: block;
  font-size: 32px;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-shadow: none;
  margin-top: 18px;
  line-height: 1.2;
}
.cover .tag {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  background: var(--ink);
  color: #fff;
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
  width: fit-content;
}
.cover .meta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}
.cover .meta .row { display: flex; gap: 14px; align-items: baseline; }
.cover .meta .label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  min-width: 48px;
  font-weight: 600;
}
.cover .meta .val { font-size: 14px; font-weight: 500; }
.cover .big-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 68px;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
  margin-top: 8px;
}
.cover .big-num small {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-left: 10px;
}

/* 非官方声明，放在 meta 下方、能看见但不抢主视觉 */
.cover .disclaimer {
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(26, 26, 26, 0.08);
  border-left: 3px solid var(--ink);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
}
.cover .disclaimer b {
  display: block;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 4px;
}

/* 制作者署名，低调；搬到尾页最下方 */
.outro .credit {
  margin-top: 18px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  opacity: 0.7;
  text-align: right;
}

/* ===== 轮次卡 header ===== */
.phone.round {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.round-head {
  padding: 24px 22px 18px;
  border-bottom: 1px solid var(--line);
  position: relative;
  flex-shrink: 0;
}
.round-head .crumb {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 10px;
  white-space: nowrap;
  gap: 12px;
}
.round-head .crumb > span { white-space: nowrap; }
.round-head .crumb b { color: var(--ink); font-weight: 700; }
.round-head .title-row {
  display: grid;
  grid-template-columns: 1fr 160px;
  align-items: end;
  gap: 16px;
}
.round-head .round-no-wrap { min-width: 0; }
.round-head .round-meta { width: 160px; }
.round-head .round-no {
  font-family: "Space Grotesk", sans-serif;
  font-size: 88px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: var(--ink);
}
.round-head .round-no.late-night {
  font-family: "Noto Serif SC", serif;
  font-size: 56px;
  letter-spacing: 0;
  font-weight: 900;
  line-height: 1;
}
/* 深夜加场卡片：整体氛围调暗一点，和白天轮次区分 */
.phone.round.late {
  background: linear-gradient(180deg, #f6f3ec 0%, #e9e4d5 100%);
}
.phone.round.late .round-head {
  border-bottom-color: #d8d2c2;
}
.round-head .round-meta-inner {
  text-align: right;
  padding-bottom: 8px;
  white-space: nowrap;
}
.round-head .day-tag { white-space: nowrap; }
.round-head .day-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  background: var(--ink);
  color: var(--bg);
  padding: 4px 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  margin-bottom: 8px;
}
.round-head .time {
  font-family: "Space Grotesk", "JetBrains Mono", monospace;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.round-head .sub {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 6px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ===== 场次列表 ===== */
.sessions {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.session {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  padding: 9px 22px;
  border-bottom: 1px dashed var(--line);
  align-items: start;
  position: relative;
}
.session:last-child { border-bottom: none; }

/* 紧凑模式：11 场同时进行的轮次 (R1/R2/R7/R8) 用更紧凑的间距避免底部裁切 */
.phone.round[data-density="dense"] .session {
  padding: 7px 22px;
  gap: 8px;
}
.phone.round[data-density="dense"] .session .t {
  font-size: 12px;
  line-height: 1.3;
  margin-bottom: 2px;
  -webkit-line-clamp: 2;
}
.phone.round[data-density="dense"] .session .h {
  font-size: 10.5px;
  line-height: 1.25;
  -webkit-line-clamp: 3;  /* 同 normal：长嘉宾名单允许最多 3 行 */
}
.phone.round[data-density="dense"] .session .venue {
  font-size: 9.5px;
  padding: 2px 6px;
}

.session .no {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  padding-top: 2px;
}
.session .body { min-width: 0; }
.session .t {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 3px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-wrap: balance;
}
.session .h {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.session .h .time-mini {
  font-family: "Space Grotesk", "JetBrains Mono", monospace;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.session .h .time-mini:after {
  content: "·";
  margin: 0 6px;
  color: var(--ink-3);
  font-weight: 500;
}
.session .venue {
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 2px;
  white-space: nowrap;
  text-transform: uppercase;
  line-height: 1.4;
  height: fit-content;
  margin-top: 1px;
}

/* 彩色场馆标签 */
.v-rose    { background: var(--rose);    color: var(--rose-ink); }
.v-amber   { background: var(--amber);   color: var(--amber-ink); }
.v-lime    { background: var(--lime);    color: var(--lime-ink); }
.v-teal    { background: var(--teal);    color: var(--teal-ink); }
.v-sky     { background: var(--sky);     color: var(--sky-ink); }
.v-indigo  { background: var(--indigo);  color: var(--indigo-ink); }
.v-violet  { background: var(--violet);  color: var(--violet-ink); }
.v-fuchsia { background: var(--fuchsia); color: var(--fuchsia-ink); }
.v-slate   { background: var(--slate);   color: var(--slate-ink); }

/* 左侧彩条提示 */
.session::before {
  content: "";
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  background: var(--accent, transparent);
  border-radius: 0 2px 2px 0;
}
.session[data-v="rose"]    { --accent: var(--rose); }
.session[data-v="amber"]   { --accent: var(--amber); }
.session[data-v="lime"]    { --accent: var(--lime); }
.session[data-v="teal"]    { --accent: var(--teal); }
.session[data-v="sky"]     { --accent: var(--sky); }
.session[data-v="indigo"]  { --accent: var(--indigo); }
.session[data-v="violet"]  { --accent: var(--violet); }
.session[data-v="fuchsia"] { --accent: var(--fuchsia); }
.session[data-v="slate"]   { --accent: var(--slate); }

.round-foot {
  border-top: 1px solid var(--line);
  padding: 10px 22px;
  display: flex;
  justify-content: space-between;
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  background: var(--bg);
}
.round-foot .brand {
  font-weight: 700;
  color: var(--ink);
}

/* ===== 尾页 ===== */
.outro {
  padding: 56px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, oklch(0.92 0.05 140), oklch(0.90 0.08 350));
}
.outro h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 900;
  margin-bottom: 20px;
}
.outro p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.outro .note-box {
  border: 1px solid var(--ink);
  padding: 16px 18px;
  background: rgba(255,255,255,0.5);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 20px;
}
.outro .note-box b { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: 0.2em; }
.outro .venues {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-top: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
}
.outro .venues .v-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.outro .venues .dot {
  width: 10px; height: 10px; border-radius: 2px;
}

/* controls */
.controls {
  position: fixed;
  top: 14px;
  right: 14px;
  background: #fff;
  padding: 10px 14px;
  border-radius: 100px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 100;
}
.controls button {
  border: none;
  background: var(--ink);
  color: #fff;
  padding: 5px 10px;
  border-radius: 100px;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.controls button.alt {
  background: transparent;
  color: var(--ink);
}
.header-strip {
  text-align: center;
  padding: 30px 0 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-3);
}
.header-strip b {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-top: 6px;
  font-weight: 800;
}

/* 封面 waveform 装饰 */
.waveform {
  position: absolute;
  left: 0; right: 0;
  top: 45%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  pointer-events: none;
  opacity: 0.25;
}
.waveform span {
  display: block;
  width: 3px;
  background: var(--ink);
  border-radius: 2px;
}
