:root {
  --paper: #ffffff;
  --canvas: #f7f7f8;
  --ink: #151515;
  --muted: #6c6c70;
  --line: #d9d9dc;
  --soft: #eeeeef;
  --red: #e4002b;
  --red-soft: #fff0f2;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 32px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand {
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: 0;
}
.brand-note { color: var(--red); font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search-box input {
  width: 250px;
  height: 36px;
  padding: 0 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  color: var(--ink);
}
.search-box input:focus { border-color: var(--red); }

.button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.button:hover, .button:focus-visible { border-color: var(--red); color: var(--red); outline: 0; }
.button-primary { border-color: var(--red); background: var(--red); color: #fff; }
.button-primary:hover, .button-primary:focus-visible { background: #c90026; color: #fff; }
.button-quiet { background: transparent; }
.button[disabled] { cursor: default; opacity: .45; }

main { max-width: 1440px; margin: 0 auto; padding: 0 32px 80px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 64px;
  align-items: end;
  padding: 72px 0 48px;
  border-bottom: 2px solid var(--ink);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .03em;
}
.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: 64px;
  line-height: 1.08;
  letter-spacing: 0;
}
.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hero-index { padding-left: 24px; border-left: 1px solid var(--ink); }
.hero-index-number { color: var(--red); font-size: 82px; font-weight: 800; line-height: .9; }
.hero-index-label { margin-top: 10px; font-size: 13px; }
.hero-rule { height: 1px; margin: 20px 0 16px; background: var(--ink); }
.hero-index p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

.notice {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.notice strong { color: var(--ink); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.stat { min-height: 90px; padding: 18px 18px 17px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 18px; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 28px; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 12px; }

.workspace { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; padding-top: 44px; }
.catalog-panel { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 108px); overflow: auto; }
.catalog-head { display: flex; align-items: end; justify-content: space-between; padding-bottom: 15px; border-bottom: 2px solid var(--ink); }
.catalog-head .eyebrow { margin-bottom: 4px; }
.catalog-head h2 { margin: 0; font-size: 22px; line-height: 1.2; }
.catalog-count { color: var(--red); font-size: 12px; }
.catalog-list { padding-top: 8px; }
.catalog-day { margin: 18px 0 6px; color: var(--muted); font-size: 12px; font-weight: 750; }
.catalog-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  padding: 11px 8px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  text-align: left;
}
.catalog-item:hover, .catalog-item.is-active { background: var(--paper); border-left-color: var(--red); }
.catalog-number { color: var(--red); font-size: 12px; }
.catalog-title { font-size: 13px; line-height: 1.5; }
.catalog-speaker { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.catalog-item.is-read .catalog-title::after { content: " · 已读"; color: var(--red); font-size: 11px; }
.catalog-empty { color: var(--muted); font-size: 13px; }

.content-panel { min-width: 0; }
.section-heading { max-width: 760px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-size: 38px; line-height: 1.2; }
.section-heading p:last-child { margin: 15px 0 0; color: var(--muted); }
.day-block { padding: 28px 0 8px; border-bottom: 1px solid var(--line); }
.day-block-head { display: flex; gap: 18px; align-items: baseline; margin-bottom: 14px; }
.day-block-head h3 { margin: 0; font-size: 21px; }
.day-block-head span { color: var(--muted); font-size: 12px; }
.session-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.session-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  min-height: 160px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  transition: border-color .15s ease, transform .15s ease;
}
.session-card:hover, .session-card:focus-visible { border-color: var(--red); outline: 0; transform: translateY(-2px); }
.session-card-index { color: var(--red); font-size: 13px; font-weight: 750; }
.session-card h4 { margin: 0; font-size: 18px; line-height: 1.35; }
.session-card p { margin: 11px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.session-card-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; color: var(--muted); font-size: 11px; }
.session-card-meta span { padding: 3px 6px; border: 1px solid var(--line); }
.knowledge-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  text-align: left;
}
.knowledge-card:hover, .knowledge-card:focus-visible { background: var(--red); outline: 0; }
.knowledge-card-index { color: #ffb6c3; font-size: 12px; }
.knowledge-card-copy strong, .knowledge-card-copy small { display: block; }
.knowledge-card-copy strong { font-size: 18px; }
.knowledge-card-copy small { margin-top: 4px; color: #d7d7d7; font-size: 12px; }
.knowledge-card-action { font-size: 12px; }

.reader-view { max-width: 920px; }
.is-hidden { display: none; }
.reader-header { padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.reader-kicker { color: var(--red); font-size: 12px; font-weight: 750; }
.reader-header h2 { margin: 8px 0 8px; font-size: 40px; line-height: 1.2; }
.reader-meta { color: var(--muted); font-size: 13px; }
.reader-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.reader-content { padding-top: 24px; font-size: 16px; line-height: 1.9; }
.reader-content h1, .reader-content h2, .reader-content h3, .reader-content h4 { line-height: 1.35; }
.reader-content h1 { margin: 0 0 28px; font-size: 31px; }
.reader-content h2 { margin: 42px 0 14px; padding-left: 12px; border-left: 4px solid var(--red); font-size: 24px; }
.reader-content h3 { margin: 30px 0 10px; font-size: 19px; }
.reader-content h4 { margin: 24px 0 8px; font-size: 16px; }
.reader-content p { margin: 13px 0; }
.reader-content ul, .reader-content ol { padding-left: 26px; }
.reader-content li { margin: 6px 0; }
.reader-content li::marker { color: var(--red); }
.reader-content blockquote { margin: 22px 0; padding: 12px 16px; border-left: 2px solid var(--red); background: var(--soft); }
.reader-content a { color: var(--red); }
.reader-content code { padding: 2px 4px; background: var(--soft); font-size: .9em; }
.reader-content pre { overflow: auto; padding: 15px; background: var(--ink); color: #fff; }
.reader-content table { width: 100%; margin: 22px 0 30px; border-collapse: collapse; font-size: 14px; line-height: 1.65; }
.reader-content th, .reader-content td { padding: 9px 10px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.reader-content th { background: var(--ink); color: #fff; }
.reader-content tr:nth-child(even) td { background: #fafafa; }
.reader-content img { display: block; max-width: 100%; height: auto; margin: 18px 0; }
.reader-content hr { margin: 30px 0; border: 0; border-top: 1px solid var(--line); }
.reader-loading, .reader-error { padding: 26px 0; color: var(--muted); }
.reader-error { color: var(--red); }
.reader-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); }
.reader-nav .button { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.site-footer { display: flex; justify-content: space-between; max-width: 1440px; margin: 0 auto; padding: 20px 32px 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
  .site-header { padding: 0 17px; }
  .brand-note { display: none; }
  .search-box input { width: 180px; }
  main { padding: 0 17px 56px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 34px; }
  .hero h1 { font-size: 44px; }
  .hero-index { display: grid; grid-template-columns: 75px 1fr; gap: 4px 13px; padding-left: 16px; }
  .hero-index-number { grid-row: span 2; font-size: 61px; }
  .hero-index-label { align-self: end; }
  .hero-rule { grid-column: 2; margin: 0; }
  .hero-index p { grid-column: 2; }
  .workspace { display: block; padding-top: 28px; }
  .catalog-panel { position: static; display: none; max-height: none; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .catalog-panel.is-open { display: block; }
  .session-grid { grid-template-columns: 1fr; }
  .reader-header h2 { font-size: 31px; }
  .reader-content { font-size: 15px; line-height: 1.85; }
  .reader-content table { display: block; overflow-x: auto; }
  .menu-button { display: block; }
}

@media (min-width: 901px) {
  .menu-button { display: none; }
}

@media (max-width: 560px) {
  .header-actions { gap: 6px; }
  .search-box input { width: 142px; }
  .button { padding: 7px 9px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 15px; }
  .notice { display: block; }
  .notice strong { display: block; margin-bottom: 3px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { min-height: 78px; padding-right: 8px; }
  .stat + .stat { padding-left: 8px; }
  .stat strong { font-size: 23px; }
  .stat span { font-size: 11px; }
  .section-heading h2 { font-size: 29px; }
  .session-card { min-height: 0; padding: 15px; }
  .knowledge-card { grid-template-columns: 50px minmax(0, 1fr); }
  .knowledge-card-action { grid-column: 2; }
  .reader-header h2 { font-size: 27px; }
  .reader-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .reader-nav .button { max-width: none; }
  .site-footer { padding: 18px 17px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
