:root {
  color-scheme: light;
  --bg: #fcfcfb;
  --surface: #ffffff;
  --surface-soft: #f6f7f8;
  --ink: #18191b;
  --muted: #6f7379;
  --line: #e8e8ea;
  --line-strong: #d0d2d6;
  --accent: #1f1f22;
  --blue: #4d555e;
  --radius: 16px;
  --shadow: 0 24px 78px rgba(24, 25, 27, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC",
    sans-serif;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 70px;
  padding: 14px clamp(28px, 5vw, 72px);
  border-bottom: 1px solid rgba(21, 24, 29, 0.08);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  text-decoration: none;
}

.brand-mark {
  display: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
}

.brand small {
  display: none;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

.top-nav a,
.top-nav .nav-menu-trigger {
  padding: 8px 12px;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a[aria-current="page"],
.top-nav .nav-menu-trigger:hover,
.top-nav .nav-menu-trigger.is-active {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  display: block;
  list-style: none;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu-trigger::after {
  content: "v";
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
}

.nav-menu-list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 168px;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.nav-menu:hover .nav-menu-list,
.nav-menu:focus-within .nav-menu-list,
.nav-menu[open] .nav-menu-list {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-menu-list a {
  white-space: nowrap;
}

.section {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(440px, 0.94fr) minmax(420px, 0.86fr);
  gap: clamp(48px, 8vw, 116px);
  align-items: center;
  min-height: 548px;
  padding: 34px 0 42px;
}

.hero-copy {
  display: grid;
  gap: 20px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 0;
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.18;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.3;
}

.lead {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: var(--surface);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-media {
  margin: 0;
  background: transparent;
}

.hero-media img {
  width: 100%;
  height: auto;
  filter: saturate(0.96);
}

.hero-lines {
  position: relative;
  min-height: 360px;
  margin: 0;
  opacity: 0.92;
}

.hero-lines::before,
.hero-lines::after {
  content: "";
  position: absolute;
  inset: 58px 18px 56px 22px;
  border: 1px solid var(--line);
}

.hero-lines::before {
  transform: skewY(-4deg);
}

.hero-lines::after {
  inset: 104px 74px 100px 82px;
  border-color: rgba(24, 25, 27, 0.12);
  transform: skewY(6deg);
}

.hero-lines .line {
  position: absolute;
  display: block;
  height: 1px;
  background: rgba(24, 25, 27, 0.34);
  transform-origin: left center;
}

.line-main {
  top: 180px;
  left: 38px;
  width: 88%;
  transform: rotate(-9deg);
}

.line-upper {
  top: 116px;
  left: 88px;
  width: 72%;
  transform: rotate(7deg);
}

.line-lower {
  top: 242px;
  left: 68px;
  width: 76%;
  transform: rotate(11deg);
}

.hero-lines .line-vertical {
  width: 130px;
  transform: rotate(90deg);
  background: rgba(24, 25, 27, 0.2);
}

.line-a {
  top: 92px;
  left: 136px;
}

.line-b {
  top: 74px;
  left: 276px;
  width: 188px;
}

.line-c {
  top: 146px;
  left: 420px;
  width: 120px;
}

.hero-lines .node {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
}

.node-a {
  top: 164px;
  left: 126px;
}

.node-b {
  top: 150px;
  left: 270px;
}

.node-c {
  top: 196px;
  left: 416px;
}

.notice-strip {
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.notice-strip a {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
}

.notice-strip span {
  display: inline-flex;
  min-width: 44px;
  justify-content: center;
  padding: 4px 8px;
  background: var(--accent);
  color: var(--surface);
  font-size: 13px;
  font-weight: 700;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0 24px;
  color: var(--muted);
  text-align: center;
}

.logo-strip span {
  border-right: 1px solid var(--line);
}

.logo-strip span:last-child {
  border-right: 0;
}

.home-panels,
.workshop-grid,
.note-index,
.prompt-section,
.after-class,
.agent-grid,
.resource-band,
.feed-layout,
.index-layout,
.directory-section {
  margin-bottom: 88px;
}

.home-panels {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.home-panel {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-panel summary {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 32px;
  align-items: center;
  min-height: 102px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}

.home-panel summary::-webkit-details-marker {
  display: none;
}

.home-panel summary::after {
  content: "+";
  color: var(--accent);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  justify-self: end;
}

.home-panel[open] summary::after {
  content: "-";
}

.home-panel summary span {
  align-self: start;
  padding-top: 9px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.home-panel summary strong {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 600;
  line-height: 1.12;
}

.home-panel-body {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 0 26px 76px;
}

.home-panel-body a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  color: var(--blue);
  text-decoration: none;
}

.home-panel-body a:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 14px;
}

.topic-grid,
.practice-grid,
.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.topic-card,
.practice-card,
.mini-panel,
.long-note,
.agent-card {
  border: 1px solid var(--line);
  background: var(--surface);
}

.topic-card,
.practice-card,
.long-note,
.agent-card,
.mini-panel {
  padding: 24px;
}

.topic-card {
  min-height: 240px;
}

.topic-code,
.agent-card span {
  display: block;
  margin-bottom: 42px;
  color: var(--blue);
  font-size: 28px;
  font-weight: 700;
}

.topic-card p,
.practice-card p,
.long-note p,
.after-class p,
.agent-card p,
.resource-band p,
.agenda-list p {
  color: var(--muted);
  line-height: 1.75;
}

.topic-card a,
.note-item a,
.resource-list a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.note-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.note-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.note-item time,
.long-note time {
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
}

.note-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.resource-band {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
  padding: 38px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.resource-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-list li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.page-hero {
  padding: 76px 0 54px;
}

.page-hero.compact h1 {
  max-width: 920px;
}

.workshop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.agenda-panel {
  border: 1px solid var(--ink);
  background: var(--surface);
  padding: clamp(24px, 4vw, 44px);
}

.agenda-list {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.agenda-list li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.agenda-list span {
  color: var(--accent);
  font-size: 24px;
  font-weight: 700;
}

.agenda-list p {
  margin: 6px 0 0;
}

.workshop-aside {
  display: grid;
  gap: 14px;
}

.mini-panel.accent {
  border-color: rgba(215, 98, 63, 0.35);
  background: #fff6f3;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.practice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.practice-card {
  min-height: 170px;
}

.prompt-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

pre {
  margin: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #15181d;
  color: #f7f8fa;
  padding: 24px;
  font-size: 15px;
  line-height: 1.75;
}

code {
  font-family:
    "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.after-class {
  max-width: 820px;
  margin-left: max(20px, calc((100% - 1180px) / 2));
}

.note-index {
  display: grid;
  gap: 14px;
}

.directory-section {
  display: grid;
  gap: 14px;
}

.directory-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 120px;
  gap: 18px;
  align-items: center;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 22px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(21, 24, 29, 0.04);
  color: var(--ink);
  text-decoration: none;
}

.directory-row:last-child {
  border-bottom: 1px solid var(--line);
}

.directory-row span {
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
}

.directory-row strong {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
}

.directory-row em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.directory-row:hover strong {
  color: var(--blue);
}

.empty-note {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
}

.long-note h2 {
  margin-top: 10px;
  font-size: 27px;
}

.agent-card {
  min-height: 230px;
}

.agent-card h2 {
  margin-bottom: 12px;
  font-size: 25px;
}

.article-hero {
  padding-bottom: 38px;
}

.article-hero h1 {
  max-width: 960px;
  font-size: clamp(30px, 3vw, 40px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.article-meta span {
  padding: 12px 18px 0 0;
  margin-right: 18px;
  border-right: 1px solid var(--line);
}

.article-meta span:last-child {
  border-right: 0;
}

.article-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 74px);
  align-items: start;
  margin-bottom: 88px;
}

.article-toc {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
}

.article-toc a {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--ink);
}

.article-body {
  min-width: 0;
  border-top: 1px solid var(--ink);
}

.article-block {
  display: grid;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 34px 0 42px;
}

.article-block h2 {
  max-width: 780px;
  font-size: clamp(25px, 2.6vw, 34px);
}

.article-block h3 {
  margin: 18px 0 0;
  font-size: 19px;
}

.article-block p {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.82;
}

.block-number {
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.route-chain {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.route-chain span {
  min-height: 64px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 16px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.article-figure {
  margin: 4px 0;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(16px, 3vw, 28px);
}

.article-figure img {
  width: 100%;
  height: auto;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.65;
}

.wide-table table {
  min-width: 880px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px 14px 0;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
  font-weight: 700;
}

td {
  color: var(--muted);
}

.article-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.two-column-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
}

.prompt-detail {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.prompt-detail summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.prompt-detail pre {
  margin-top: 14px;
}

.article-note {
  border-left: 2px solid var(--ink);
  padding-left: 16px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 40px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  margin-right: 14px;
}

@media (max-width: 920px) {
  .site-header {
    display: flex;
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .hero,
  .resource-band,
  .workshop-grid,
  .prompt-section,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-lines {
    min-height: 300px;
  }

  .hero {
    min-height: auto;
  }

  .topic-grid,
  .practice-grid,
  .agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .note-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 620px) {
  .section {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding: 16px 14px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.18;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .topic-grid,
  .practice-grid,
  .agent-grid {
    grid-template-columns: 1fr;
  }

  .nav-menu-list {
    position: static;
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .hero-media img {
    width: 100%;
  }

  .hero-lines {
    min-height: 230px;
    margin-top: 4px;
  }

  .hero-lines::before {
    inset: 36px 8px 34px 8px;
  }

  .hero-lines::after {
    inset: 70px 48px 68px 48px;
  }

  .line-main {
    top: 116px;
    left: 18px;
    width: 86%;
  }

  .line-upper {
    top: 74px;
    left: 48px;
    width: 72%;
  }

  .line-lower {
    top: 158px;
    left: 38px;
    width: 74%;
  }

  .line-a {
    top: 58px;
    left: 86px;
    width: 92px;
  }

  .line-b {
    top: 50px;
    left: 176px;
    width: 134px;
  }

  .line-c {
    top: 94px;
    left: 270px;
    width: 80px;
  }

  .node-a {
    top: 102px;
    left: 82px;
  }

  .node-b {
    top: 92px;
    left: 176px;
  }

  .node-c {
    top: 126px;
    left: 270px;
  }

  .logo-strip {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: left;
  }

  .logo-strip span {
    border-right: 0;
  }

  .notice-strip a {
    align-items: flex-start;
    flex-direction: column;
    font-size: 15px;
  }

  .home-panel summary {
    grid-template-columns: 52px minmax(0, 1fr) 24px;
    min-height: 78px;
    padding: 14px 0;
  }

  .home-panel-body {
    padding-left: 52px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .resource-band,
  .agenda-panel {
    padding: 22px;
  }

  .site-footer {
    flex-direction: column;
  }

  .article-toc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-block {
    padding: 28px 0 34px;
  }

  .article-meta span {
    width: 100%;
    margin-right: 0;
    border-right: 0;
  }

  .route-chain,
  .two-column-list {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 640px;
  }

  .directory-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .directory-row em {
    grid-column: 2;
    text-align: left;
  }
}
