:root {
  --bg: #fbf7f1;
  --paper: #fffdf9;
  --ink: #211915;
  --muted: #6c5b51;
  --line: rgba(99, 74, 58, 0.16);
  --brand: #d97745;
  --brand-dark: #a84f2c;
  --brand-soft: #ffe4d4;
  --coal: #181310;
  --green: #3f8f62;
  --yellow: #f3b34c;
  --shadow: 0 20px 55px rgba(49, 34, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(217, 119, 69, 0.16), transparent 26rem),
    linear-gradient(180deg, #fff9f2 0%, #fbf7f1 48%, #ffffff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
  min-height: 74px;
  padding: 0 3.4vw;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: #fffaf2;
  background: linear-gradient(145deg, #e8925f, #b85b33 64%, #3a2419);
  box-shadow: 0 12px 28px rgba(168, 79, 44, 0.25);
  font: 900 0.9rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.brand strong {
  font-size: 1.16rem;
  font-weight: 900;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.55rem, 1.35vw, 1.15rem);
  color: #4f4038;
  font-size: 0.91rem;
  font-weight: 800;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 74px;
  border-bottom: 2px solid transparent;
}

.top-nav .main-site-link {
  align-self: center;
  min-height: 34px;
  border: 1px solid rgba(176, 85, 48, 0.26);
  border-radius: 999px;
  padding: 0 0.9rem;
  color: #fffaf4;
  background: linear-gradient(135deg, #2b1811 0%, #8c4327 54%, #d47745 100%);
  box-shadow: 0 10px 24px rgba(126, 58, 32, 0.18);
}

.top-nav a:hover {
  color: var(--brand-dark);
  border-bottom-color: var(--brand);
}

.top-nav .main-site-link:hover {
  color: #fffdf9;
  border-color: rgba(255, 222, 196, 0.58);
  border-bottom-color: rgba(255, 222, 196, 0.58);
  transform: translateY(-1px);
}

.top-nav a.active {
  color: var(--brand-dark);
  border-bottom-color: var(--brand);
}

.top-nav .main-site-link.active {
  color: #fffdf9;
  border-bottom-color: rgba(255, 222, 196, 0.58);
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 38px;
  border: 1px solid rgba(217, 119, 69, 0.26);
  border-radius: 8px;
  color: #5b3d2e;
  background: #fff5ec;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
}

.search-trigger:hover {
  color: #fffdf9;
  border-color: transparent;
  background: var(--brand-dark);
}

.header-action,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 1rem;
  font-weight: 900;
}

.hero-button {
  border: 1px solid rgba(217, 119, 69, 0.35);
  font: inherit;
  cursor: pointer;
}

.header-action,
.primary-action {
  color: #fffdf9;
  background: linear-gradient(135deg, #df8a56, #ad5631);
  box-shadow: 0 14px 34px rgba(168, 79, 44, 0.24);
}

.secondary-action {
  border: 1px solid rgba(217, 119, 69, 0.35);
  color: #ffe7d8;
  background: rgba(52, 32, 22, 0.7);
}

.audience-action {
  min-width: 164px;
  border-color: rgba(255, 210, 168, 0.78);
  color: #2b1810;
  background: #ffe0c4;
  box-shadow: 0 12px 26px rgba(255, 176, 111, 0.18);
}

.audience-action:hover {
  border-color: #fff1e6;
  background: #fff1e6;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(660px, 1.08fr) minmax(380px, 0.92fr);
  gap: clamp(2rem, 3.4vw, 4.8rem);
  align-items: center;
  min-height: calc(100svh - 74px);
  padding: clamp(3rem, 4.6vw, 5.1rem) clamp(3.4rem, 5.4vw, 6.6rem) clamp(2.6rem, 4vw, 3.4rem);
  overflow: hidden;
  color: #fff8ef;
  background:
    radial-gradient(circle at 72% 22%, rgba(245, 168, 101, 0.34), transparent 26rem),
    radial-gradient(circle at 88% 74%, rgba(93, 65, 48, 0.54), transparent 22rem),
    linear-gradient(125deg, #20140f 0%, #4a281a 48%, #130e0b 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 230, 210, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 230, 210, 0.045) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #ffd7bd;
  font-weight: 900;
}

.eyebrow span {
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd2a8, #df8a56, #8a4027);
}

h1 {
  margin: 1.2rem 0 0;
  color: #fffaf2;
  font-size: clamp(3rem, 4.25vw, 4.85rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero h1 {
  white-space: nowrap;
}

h1 span {
  color: #ffc49d;
}

.subtitle {
  margin: 1.25rem 0 0;
  color: #fff4e8;
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  font-weight: 900;
}

.slogan {
  margin: 0.7rem 0 0;
  color: #ffb06f;
  font-size: clamp(1.06rem, 1.35vw, 1.28rem);
  font-weight: 900;
}

.hero-desc {
  max-width: 720px;
  margin: 1rem 0 0;
  color: #e4c9b8;
  line-height: 1.92;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 790px;
  margin-top: 3rem;
  overflow: hidden;
  border: 1px solid rgba(255, 218, 190, 0.22);
  border-radius: 10px;
  background: rgba(28, 17, 12, 0.68);
}

.feature-strip div {
  min-height: 92px;
  padding: 1rem;
  border-right: 1px solid rgba(255, 218, 190, 0.16);
}

.feature-strip div:last-child {
  border-right: 0;
}

.feature-strip strong,
.feature-strip span {
  display: block;
}

.feature-strip span {
  margin-top: 0.35rem;
  color: #d8bca9;
  font-size: 0.82rem;
  line-height: 1.45;
}

.hero-visual {
  min-height: 560px;
  margin-left: 0;
}

.terminal-card {
  position: absolute;
  right: 0;
  bottom: 8%;
  width: min(94%, 680px);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(255, 211, 176, 0.24);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(18, 13, 11, 0.98), rgba(39, 24, 17, 0.96));
  box-shadow: 0 34px 88px rgba(0, 0, 0, 0.38), 0 0 46px rgba(217, 119, 69, 0.28);
  transform: perspective(1000px) rotateX(7deg) rotateY(-10deg) rotateZ(1.5deg);
}

.terminal-top {
  display: flex;
  gap: 0.55rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 218, 190, 0.12);
}

.terminal-top span {
  width: 0.76rem;
  height: 0.76rem;
  border-radius: 999px;
  background: #ff5f57;
}

.terminal-top span:nth-child(2) { background: #ffbd2e; }
.terminal-top span:nth-child(3) { background: #28c840; }

.chat-lines {
  display: grid;
  gap: 0.82rem;
  padding: 1.2rem;
}

.chat-lines p {
  margin: 0;
  max-width: 88%;
  border-radius: 10px;
  padding: 0.74rem 0.9rem;
  line-height: 1.55;
  font-size: 0.92rem;
}

.user-line {
  justify-self: end;
  color: #fff7ed;
  background: rgba(217, 119, 69, 0.28);
}

.assistant-line {
  justify-self: start;
  color: #d8f3df;
  background: rgba(63, 143, 98, 0.18);
}

.workflow-card {
  position: absolute;
  width: 184px;
  border: 1px solid rgba(255, 211, 176, 0.28);
  border-radius: 12px;
  padding: 1rem;
  color: #fff8ef;
  background: rgba(33, 22, 16, 0.86);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.workflow-card span {
  display: block;
  color: #ffb06f;
  font: 900 0.78rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.workflow-card strong {
  display: block;
  margin-top: 0.55rem;
}

.plan-card { top: 11%; left: 0; }
.diff-card { top: 68%; right: 4%; }
.verify-card { bottom: 7%; left: 2%; }

.section {
  padding: 4.6rem 4vw;
}

.muted-section {
  background: linear-gradient(180deg, #fffaf4, #ffffff);
}

.course-section {
  background: #fffdf9;
}

.roadmap-section {
  background: linear-gradient(180deg, #fffdf9, #fff7ef);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 1.8rem;
  text-align: center;
}

.section-heading span {
  color: var(--brand-dark);
  font: 900 0.8rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  letter-spacing: 0;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
}

.path-card {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.18rem;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.path-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 119, 69, 0.42);
  box-shadow: 0 24px 64px rgba(168, 79, 44, 0.14);
}

.path-card span,
.path-card strong,
.path-card em {
  display: block;
}

.path-card span {
  color: var(--brand-dark);
  font: 900 0.82rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.path-card strong {
  margin-top: 0.9rem;
  font-size: 1.12rem;
}

.path-card em {
  margin-top: 0.55rem;
  color: var(--muted);
  font-style: normal;
  line-height: 1.72;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
  max-width: 1120px;
  margin: 0 auto;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  counter-reset: stage;
}

.stage-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 69, 0.18);
  border-radius: 10px;
  padding: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 244, 233, 0.92), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 100% 0, rgba(217, 119, 69, 0.22), transparent 9rem);
  box-shadow: 0 18px 48px rgba(49, 34, 24, 0.08);
}

.stage-card::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d97745, rgba(217, 119, 69, 0.12));
}

.stage-card span,
.stage-card strong,
.stage-card em {
  display: block;
}

.roadmap-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid rgba(217, 119, 69, 0.2);
  border-radius: 12px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 100% 0, rgba(217, 119, 69, 0.16), transparent 20rem),
    #211510;
  color: #fff8ef;
  box-shadow: 0 24px 70px rgba(49, 34, 24, 0.18);
}

.roadmap-kicker {
  color: #ffbf8d;
  font: 900 0.78rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.roadmap-panel h2 {
  margin: 0.65rem 0 0;
  color: #fff8ef;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.roadmap-panel p {
  max-width: 520px;
  color: #e5cbbb;
  line-height: 1.85;
}

.roadmap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: roadmap;
}

.roadmap-list li {
  counter-increment: roadmap;
}

.roadmap-list a {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-height: 58px;
  border: 1px solid rgba(255, 216, 186, 0.18);
  border-radius: 8px;
  padding: 0.75rem;
  color: #fff8ef;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

.roadmap-list a::before {
  content: counter(roadmap, decimal-leading-zero);
  color: #ffbf8d;
  font: 900 0.78rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.stage-card span {
  color: var(--brand-dark);
  font: 900 0.84rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.stage-card strong {
  margin-top: 1rem;
  font-size: 1.2rem;
}

.stage-card em {
  margin-top: 0.65rem;
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 1.4rem;
}

.module-grid a {
  display: block;
  min-height: 136px;
  border: 1px solid rgba(217, 119, 69, 0.18);
  border-radius: 8px;
  padding: 0.95rem;
  background: linear-gradient(180deg, #fff8f1, #ffffff);
}

.module-grid span,
.module-grid strong,
.module-grid em {
  display: block;
}

.module-grid span {
  color: var(--brand-dark);
  font: 900 0.78rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.module-grid strong {
  margin-top: 0.65rem;
  color: var(--ink);
}

.module-grid em {
  margin-top: 0.45rem;
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.6;
}

.lesson-grid a {
  min-height: 58px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: #ffffff;
  color: #3b2e27;
  font-weight: 800;
}

.lesson-grid a:hover {
  border-color: rgba(217, 119, 69, 0.45);
  color: var(--brand-dark);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
}

.catalog-card {
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(49, 34, 24, 0.07);
}

.catalog-card span {
  color: var(--brand-dark);
  font: 900 0.78rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.catalog-card h3 {
  margin: 0.65rem 0 0.75rem;
  font-size: 1.12rem;
}

.catalog-card a {
  display: block;
  border-top: 1px solid rgba(99, 74, 58, 0.1);
  padding: 0.62rem 0;
  color: #4c3c34;
  font-weight: 800;
  font-size: 0.92rem;
}

.catalog-card a:hover {
  color: var(--brand-dark);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 0;
  color: #f7eadf;
  background:
    radial-gradient(circle at 14% 0, rgba(217, 119, 69, 0.28), transparent 22rem),
    linear-gradient(135deg, #211510 0%, #3b2218 52%, #15100d 100%);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.3rem 4vw 1.2rem;
}

.footer-brand {
  border-bottom: 1px solid rgba(255, 224, 201, 0.14);
  padding-bottom: 1.5rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo strong {
  color: #fff8ef;
  font-size: 1.18rem;
  font-weight: 900;
}

.footer-brand p {
  width: 100%;
  max-width: none;
  margin: 0.8rem 0 0;
  color: #dcc4b5;
  line-height: 1.65;
}

.footer-wechat {
  display: block;
  max-width: 150px;
  padding-top: 0.1rem;
}

.footer-wechat img {
  display: block;
  width: 118px;
  height: 118px;
  margin: 0 auto 0.72rem;
  border: 6px solid rgba(255, 248, 239, 0.92);
  border-radius: 8px;
  object-fit: cover;
  background: #fffdf9;
}

.footer-wechat strong {
  display: block;
}

.footer-wechat strong {
  text-align: center;
  color: #fff8ef;
  font-size: 0.95rem;
  font-weight: 900;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(160px, 190px);
  gap: 1rem;
  padding: 1.55rem 0;
}

.footer-links section {
  min-height: 150px;
}

.footer-links h2 {
  margin: 0 0 0.75rem;
  color: #ffbf8d;
  font-size: 0.92rem;
  font-weight: 900;
}

.footer-links a {
  display: block;
  width: fit-content;
  padding: 0.32rem 0;
  color: #dfc7b8;
  font-size: 0.9rem;
  font-weight: 750;
}

.footer-links a:hover {
  color: #fff8ef;
  text-decoration: underline;
  text-decoration-color: rgba(255, 191, 141, 0.55);
  text-underline-offset: 0.2em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 224, 201, 0.14);
  padding-top: 1rem;
  color: #bfa89b;
  font-size: 0.84rem;
  font-weight: 700;
}

.footer-bottom a {
  color: #e5c9b9;
}

.footer-bottom a:hover {
  color: #fff8ef;
}

.search-open {
  overflow: hidden;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: start center;
  padding: 9vh 1rem 1rem;
}

.search-overlay[hidden] {
  display: none;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 19, 16, 0.52);
  backdrop-filter: blur(8px);
}

.search-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(720px, 82vh);
  overflow: hidden;
  border: 1px solid rgba(217, 119, 69, 0.26);
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: 0 30px 90px rgba(24, 19, 16, 0.28);
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(99, 74, 58, 0.12);
  background: linear-gradient(180deg, #fff8f1, #fffdf9);
}

.search-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(99, 74, 58, 0.18);
  border-radius: 8px;
  padding: 0 0.9rem;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.search-input:focus {
  border-color: rgba(217, 119, 69, 0.72);
  box-shadow: 0 0 0 3px rgba(217, 119, 69, 0.14);
}

.search-close {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 0.9rem;
  color: #fffdf9;
  background: var(--brand-dark);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.search-hint {
  padding: 0.78rem 1rem;
  border-bottom: 1px solid rgba(99, 74, 58, 0.1);
  color: #7a685f;
  font-size: 0.88rem;
  font-weight: 700;
}

.search-results {
  max-height: min(560px, 62vh);
  overflow: auto;
  padding: 0.65rem;
}

.search-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.35rem 0.72rem;
  color: #4f4038;
  font-size: 0.84rem;
  font-weight: 900;
}

.search-summary span {
  color: #8a7569;
  font-weight: 750;
}

.search-result {
  display: block;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.86rem 0.9rem;
  background: #fffdf9;
}

.search-result:hover {
  border-color: rgba(217, 119, 69, 0.26);
  background: #fff5ec;
}

.search-result span,
.search-result strong,
.search-result em,
.search-empty strong,
.search-empty span {
  display: block;
}

.search-result span {
  color: var(--brand-dark);
  font: 900 0.76rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.search-result strong {
  margin-top: 0.4rem;
  color: var(--ink);
  font-size: 1rem;
}

.search-result em {
  margin-top: 0.35rem;
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

.search-result mark {
  border-radius: 4px;
  padding: 0 0.12em;
  color: #592b17;
  background: #ffd8b8;
}

.search-empty {
  border: 1px dashed rgba(217, 119, 69, 0.28);
  border-radius: 8px;
  padding: 1rem;
  color: var(--muted);
  background: #fff8f1;
}

.search-empty strong {
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.search-suggestions button {
  border: 1px solid rgba(217, 119, 69, 0.24);
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  color: #6a412c;
  background: #fffdf9;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.search-suggestions button:hover {
  color: #fffdf9;
  border-color: transparent;
  background: var(--brand-dark);
}

.not-found-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(3rem, 8vw, 6rem) 1rem;
  background:
    radial-gradient(circle at 74% 18%, rgba(217, 119, 69, 0.2), transparent 22rem),
    linear-gradient(135deg, #fff9f2, #fffdf9 48%, #fff3e8);
}

.not-found-panel {
  width: min(860px, 100%);
  border: 1px solid rgba(217, 119, 69, 0.22);
  border-radius: 14px;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(255, 248, 240, 0.96)),
    radial-gradient(circle at 100% 0, rgba(217, 119, 69, 0.16), transparent 18rem);
  box-shadow: 0 26px 80px rgba(49, 34, 24, 0.12);
  text-align: center;
}

.not-found-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 42px;
  border-radius: 8px;
  color: #fff8ef;
  background: linear-gradient(135deg, #df8a56, #ad5631);
  font: 900 1.15rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.not-found-panel h1 {
  margin: 1rem 0 0;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.not-found-panel p {
  max-width: 650px;
  margin: 1rem auto 0;
  color: var(--muted);
  line-height: 1.8;
}

.not-found-actions,
.not-found-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.not-found-actions {
  margin-top: 1.6rem;
}

.not-found-links {
  margin-top: 1.4rem;
}

.not-found-links a {
  border: 1px solid rgba(217, 119, 69, 0.22);
  border-radius: 8px;
  padding: 0.62rem 0.8rem;
  color: #5b3d2e;
  background: #fffdf9;
  font-weight: 850;
}

.not-found-links a:hover {
  border-color: rgba(217, 119, 69, 0.48);
  color: var(--brand-dark);
  background: #fff5ec;
}

.wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.wechat-modal[hidden] {
  display: none;
}

.wechat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 19, 16, 0.54);
  backdrop-filter: blur(8px);
}

.wechat-panel {
  position: relative;
  z-index: 1;
  width: min(380px, 100%);
  border: 1px solid rgba(217, 119, 69, 0.25);
  border-radius: 12px;
  padding: 1.2rem;
  background: #fffdf9;
  box-shadow: 0 28px 80px rgba(24, 19, 16, 0.28);
  text-align: center;
}

.wechat-panel strong {
  display: block;
  color: var(--ink);
  font-size: 1.24rem;
}

.wechat-panel p {
  margin: 0.65rem auto 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.wechat-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: 0;
  border-radius: 7px;
  padding: 0.35rem 0.55rem;
  color: #fffdf9;
  background: var(--brand-dark);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.wechat-qr {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 69, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 242, 231, 0.96), rgba(255, 253, 249, 0.98)),
    repeating-linear-gradient(45deg, rgba(217, 119, 69, 0.08) 0 8px, transparent 8px 16px);
}

.wechat-qr {
  width: 220px;
  height: 220px;
  margin: 0 auto;
}

.wechat-qr img,
.toc-wechat-qr img {
  display: block;
  width: 100%;
}

.wechat-qr img {
  height: 100%;
  object-fit: cover;
}

.wechat-qr span,
.toc-wechat-qr span {
  color: #9a6b50;
  font-size: 0.88rem;
  font-weight: 900;
}

.doc-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 320px;
  gap: 0;
  align-items: start;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.doc-sidebar {
  position: sticky;
  top: 74px;
  align-self: start;
  height: calc(100vh - 74px);
  max-height: calc(100vh - 74px);
  overflow: auto;
  border: 0;
  border-right: 1px solid rgba(99, 74, 58, 0.12);
  border-radius: 0;
  padding: 1.45rem 1.1rem 2rem;
  background: rgba(255, 250, 244, 0.78);
}

.doc-sidebar a {
  display: block;
  border-radius: 8px;
  padding: 0.56rem 0.65rem;
  color: #5b493f;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.45;
}

.sidebar-section-title {
  margin: 0.15rem 0 0.55rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: var(--brand-dark);
  background: #fff2e7;
  font-size: 0.9rem;
  font-weight: 900;
}

.sidebar-group {
  margin-top: 0.55rem;
}

.sidebar-group-title {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 0.3rem;
  border: 0;
  border-radius: 8px;
  padding: 0.58rem 0.7rem;
  color: #241812;
  background: linear-gradient(180deg, #fff8f0, #fff2e7);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: left;
}

.sidebar-group-title:hover {
  color: var(--brand-dark);
  background: #fff0e4;
}

.sidebar-group-icon {
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.sidebar-group.is-open .sidebar-group-icon {
  transform: rotate(225deg);
}

.sidebar-group-links {
  display: none;
  gap: 0.12rem;
  margin-left: 0.45rem;
  padding-left: 0.55rem;
  border-left: 1px solid rgba(217, 119, 69, 0.18);
}

.sidebar-group.is-open .sidebar-group-links {
  display: grid;
}

.doc-sidebar a:hover,
.doc-sidebar a.active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.article {
  min-width: 0;
  width: min(1040px, calc(100% - 4rem));
  max-width: 1040px;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  padding: clamp(2rem, 3.2vw, 3.4rem) 0 4rem;
  background: transparent;
  box-shadow: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1.75rem;
  color: #8a7569;
  font-size: 0.92rem;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--brand-dark);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span:last-child {
  color: #5b493f;
}

.doc-toc {
  position: sticky;
  top: 74px;
  align-self: start;
  height: calc(100vh - 74px);
  max-height: calc(100vh - 74px);
  overflow: auto;
  border: 0;
  border-left: 1px solid rgba(99, 74, 58, 0.1);
  border-radius: 0;
  padding: 1.45rem 1.05rem 2rem;
  background: rgba(246, 251, 255, 0.62);
}

.doc-toc-title {
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.toc-wechat-card {
  margin-bottom: 1rem;
  border: 1px solid rgba(217, 119, 69, 0.18);
  border-radius: 10px;
  padding: 0.72rem;
  background: linear-gradient(180deg, #fff8f0, #fffdf9);
}

.toc-wechat-qr {
  display: block;
  overflow: visible;
  border: 0;
  border-radius: 8px;
  width: 100%;
  margin: 0 auto 0.65rem;
  background: #fffdf9;
}

.toc-wechat-card strong,
.toc-wechat-card p {
  display: block;
  text-align: center;
}

.toc-wechat-card strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.toc-wechat-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.55;
}

.toc-wechat-qr img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.doc-toc a {
  display: block;
  border-left: 2px solid transparent;
  padding: 0.31rem 0 0.31rem 0.58rem;
  color: #7a685f;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.doc-toc a:hover {
  border-left-color: var(--brand);
  color: var(--brand-dark);
}

.doc-toc a.level-3 {
  padding-left: 1.25rem;
  font-size: 0.8rem;
}

.article h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  line-height: 1.18;
}

.article h2 {
  margin: 2.2rem 0 0.8rem;
  font-size: 1.38rem;
}

.article h3 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.08rem;
}

.table-scroll {
  margin: 1.25rem 0 1.8rem;
  overflow-x: auto;
  border: 1px solid rgba(99, 74, 58, 0.12);
  border-radius: 8px;
  background: rgba(255, 252, 248, 0.86);
}

.article table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.article th,
.article td {
  border-bottom: 1px solid rgba(99, 74, 58, 0.1);
  padding: 0.78rem 0.86rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.article th {
  color: #241812;
  background: #fff2e7;
  font-weight: 900;
}

.article tbody tr:last-child td {
  border-bottom: 0;
}

.article td:first-child,
.article th:first-child {
  width: 4.2rem;
  color: var(--brand-dark);
  font-weight: 900;
  white-space: nowrap;
}

.article a {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(217, 119, 69, 0.36);
  text-underline-offset: 0.18em;
}

.article a:hover {
  color: var(--brand);
  text-decoration-color: var(--brand);
}

.article table a {
  color: #b85e34;
  text-decoration-thickness: 2px;
}

.article p,
.article li {
  color: #4c3c34;
  line-height: 1.82;
}

.article .lead {
  color: var(--muted);
  font-size: 1.06rem;
}

.note,
.warning,
.success {
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  line-height: 1.75;
}

.note {
  border: 1px solid rgba(217, 119, 69, 0.22);
  background: #fff3e8;
}

.warning {
  border: 1px solid rgba(190, 117, 32, 0.28);
  background: #fff8df;
}

.success {
  border: 1px solid rgba(63, 143, 98, 0.24);
  background: #eefaf1;
}

.prompt-block {
  position: relative;
  margin: 1rem 0;
}

.prompt-block pre {
  overflow: auto;
  border: 1px solid rgba(49, 34, 24, 0.16);
  border-radius: 10px;
  padding: 1rem;
  background: #181310;
  color: #fff3e8;
  line-height: 1.75;
  white-space: pre-wrap;
}

.copy-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  border: 0;
  border-radius: 7px;
  padding: 0.4rem 0.62rem;
  color: #fffdf9;
  background: var(--brand-dark);
  font-weight: 900;
  cursor: pointer;
}

.checklist {
  padding-left: 1.2rem;
}

.next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.next-links a {
  border-radius: 8px;
  padding: 0.75rem 0.95rem;
  color: #fffdf9;
  background: var(--coal);
  font-weight: 900;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0.85rem 1rem;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .search-trigger {
    justify-self: end;
  }

  .top-nav a {
    min-height: 34px;
    white-space: nowrap;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: calc(100svh - 74px);
    padding-inline: clamp(1.2rem, 5vw, 3rem);
  }

  .hero h1 {
    font-size: clamp(2.9rem, 8.4vw, 4.5rem);
  }

  .hero-visual {
    min-height: 430px;
    margin-left: 0;
  }

  .path-grid {
    grid-template-columns: 1fr;
  }

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

  .doc-layout {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
  }

  .roadmap-panel {
    grid-template-columns: 1fr;
  }

  .doc-sidebar,
  .doc-toc {
    position: static;
    height: auto;
    max-height: none;
    border: 1px solid var(--line);
    border-radius: 10px;
  }

  .article {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .brand strong {
    font-size: 1rem;
  }

  .header-action {
    display: none;
  }

  .search-trigger {
    min-width: 64px;
    min-height: 36px;
    font-size: 0.82rem;
  }

  .search-overlay {
    padding: 0.75rem;
    place-items: start center;
  }

  .search-panel {
    max-height: calc(100vh - 1.5rem);
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.4rem 1rem 2rem;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8.6vw, 3.05rem);
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .stage-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-list {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
  }

  .footer-wechat {
    max-width: none;
  }

  .footer-wechat img {
    width: 112px;
    height: 112px;
  }

  .feature-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 218, 190, 0.16);
  }

  .hero-visual {
    min-height: 340px;
  }

  .terminal-card {
    right: 0;
    width: 100%;
    min-height: 260px;
    transform: none;
  }

  .workflow-card {
    width: 142px;
    padding: 0.8rem;
  }

  .doc-layout {
    padding: 0.75rem;
  }

  .doc-toc {
    display: none;
  }

  .article {
    padding-top: 1.6rem;
  }

  .article table {
    min-width: 680px;
  }
}
