:root {
  --ink: #111714;
  --muted: #5d6963;
  --paper: #f5f3ec;
  --surface: #fff;
  --line: #d8d2c5;
  --forest: #123b31;
  --forest-deep: #0b2821;
  --sage: #dce7df;
  --brass: #ae8640;
  --brass-light: #e4ca91;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body[data-lang="zh"] { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(174, 134, 64, .5); outline-offset: 3px; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 210, 197, .9);
  background: rgba(245, 243, 236, .95);
  backdrop-filter: blur(16px);
}
.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brass);
  border-radius: 4px;
  background: var(--forest);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 20px;
}
.brand strong { font-family: Georgia, serif; font-size: 15px; letter-spacing: 0; }
.nav-right, .nav-links, .lang-switch { display: flex; align-items: center; }
.nav-right { gap: 12px; }
.nav-links { gap: 2px; }
.nav-links a { padding: 8px 10px; border-radius: 6px; color: #34413b; font-size: 13px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(18, 59, 49, .08); color: var(--forest); }
.nav-links .nav-cta { background: var(--forest); color: #fff; }
.lang-switch { padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.lang-switch button { min-width: 36px; height: 30px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; }
.lang-switch button[aria-pressed="true"] { background: var(--forest); color: #fff; }
.mobile-page-nav { display: none; }

.page-hero { background: var(--forest-deep); color: #f8f5ed; }
.page-hero .wrap { min-height: min(680px, calc(100vh - 70px)); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(300px, .72fr); gap: 70px; align-items: center; padding: 70px 0; }
.eyebrow, .kicker { color: var(--brass); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.page-hero .eyebrow { color: var(--brass-light); }
.page-hero h1 { max-width: 760px; margin: 18px 0 22px; font-size: clamp(44px, 6vw, 72px); line-height: 1.04; letter-spacing: 0; }
.page-hero p { max-width: 680px; margin: 0; color: rgba(248, 245, 237, .74); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius); font-weight: 750; }
.btn-primary { background: #f5efe1; color: var(--forest); }
.btn-secondary { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-forest { background: var(--forest); color: #fff; }
.hero-index { border-top: 1px solid rgba(255,255,255,.2); }
.hero-index div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.hero-index span { color: var(--brass-light); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.hero-index strong { display: block; font-size: 15px; }
.hero-index small { display: block; margin-top: 2px; color: rgba(248,245,237,.58); font-size: 12px; }

.band { padding: 86px 0; background: var(--surface); }
.band.alt { background: var(--paper); }
.band.dark { background: var(--forest); color: #fff; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr); gap: 60px; align-items: end; margin-bottom: 42px; }
.section-head h2 { max-width: 780px; margin: 12px 0 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.12; }
.section-head > p { margin: 0; color: var(--muted); }
.dark .section-head > p { color: rgba(255,255,255,.65); }
.dark .kicker { color: var(--brass-light); }

.three-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.three-grid article { min-width: 0; padding: 30px; border-right: 1px solid var(--line); }
.three-grid article:first-child { padding-left: 0; }
.three-grid article:last-child { border-right: 0; }
.item-code { color: var(--brass); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.three-grid h3 { margin: 28px 0 12px; font-size: 23px; line-height: 1.3; }
.three-grid p { margin: 0; color: var(--muted); }
.three-grid ul { margin: 22px 0 0; padding: 0; list-style: none; }
.three-grid li { padding: 10px 0 10px 15px; border-top: 1px solid #ebe6db; position: relative; font-size: 14px; }
.three-grid li::before { content: ""; position: absolute; left: 0; top: 19px; width: 5px; height: 5px; background: var(--brass); }
.dark .three-grid { border-color: rgba(255,255,255,.18); }
.dark .three-grid article { border-color: rgba(255,255,255,.18); }
.dark .three-grid p { color: rgba(255,255,255,.64); }
.dark .three-grid li { border-color: rgba(255,255,255,.13); }
.product-link { display: inline-block; margin-top: 24px; color: var(--forest); font-size: 14px; font-weight: 800; }
.dark .product-link { color: var(--brass-light); }

.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
.split h2 { margin: 12px 0 18px; font-size: clamp(34px, 4vw, 52px); line-height: 1.12; }
.split > div > p { color: var(--muted); }
.process { border-top: 1px solid var(--line); }
.process-row { display: grid; grid-template-columns: 54px 180px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.process-row span { color: var(--brass); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.process-row strong { font-size: 16px; }
.process-row p { margin: 0; color: var(--muted); font-size: 14px; }

.status-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.status-table th, .status-table td { padding: 17px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.status-table th { width: 25%; color: var(--forest); font-size: 13px; }
.status-table td { color: var(--muted); font-size: 14px; }
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--forest); font-weight: 750; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5b9b78; }
.status.roadmap::before { background: var(--brass); }

.architecture-band { background: #eef1eb; }
.architecture-stack { display: grid; gap: 10px; }
.architecture-layer { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 22px 24px; border: 1px solid var(--line); background: #fff; }
.architecture-layer > span, .architecture-gate > span { color: var(--brass); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.architecture-layer > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid #dde2da; background: #dde2da; }
.architecture-layer strong { min-height: 64px; display: grid; place-items: center; padding: 12px; background: #f8f8f5; text-align: center; font-size: 14px; }
.architecture-layer.workflow { margin-inline: 4%; background: #f8f6ef; }
.architecture-layer.intelligence { margin-inline: 8%; background: var(--forest); color: #fff; border-color: var(--forest); }
.architecture-layer.intelligence > div { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.15); }
.architecture-layer.intelligence strong { background: rgba(255,255,255,.06); }
.architecture-gate { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 18px 24px; border-left: 3px solid var(--brass); background: #e7ddc9; }
.architecture-gate p { margin: 0; font-size: 13px; }

.cta-band { padding: 70px 0; background: #e4ded0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-inner h2 { max-width: 720px; margin: 8px 0 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; }
.footer { padding: 34px 0; background: #0a241e; color: rgba(255,255,255,.62); }
.footer .wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
.footer strong { color: #fff; }
.footer p { margin: 0; font-size: 12px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-page-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    background: var(--paper);
  }
  .mobile-page-nav a { min-width: 0; padding: 9px 5px; border-right: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 11px; font-weight: 750; }
  .mobile-page-nav a:last-child { border-right: 0; }
  .mobile-page-nav a[aria-current="page"] { background: var(--forest); color: #fff; }
  .page-hero .wrap, .section-head, .split { grid-template-columns: 1fr; }
  .page-hero .wrap { min-height: 0; gap: 46px; padding: 62px 0; }
  .three-grid { grid-template-columns: 1fr; }
  .three-grid article, .three-grid article:first-child { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .three-grid article:last-child { border-bottom: 0; }
  .section-head, .split { gap: 24px; }
  .process-row { grid-template-columns: 44px 1fr; }
  .process-row p { grid-column: 2; }
  .architecture-layer, .architecture-gate { grid-template-columns: 1fr; }
  .architecture-layer.workflow, .architecture-layer.intelligence { margin-inline: 0; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .three-grid { grid-template-columns: repeat(2, 1fr); }
  .three-grid article:nth-child(2) { border-right: 0; }
  .three-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .brand strong { font-size: 13px; }
  .page-hero h1 { font-size: 43px; }
  .page-hero p { font-size: 16px; }
  .band { padding: 64px 0; }
  .section-head h2, .split h2 { font-size: 34px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; }
  .status-table, .status-table tbody, .status-table tr, .status-table th, .status-table td { display: block; width: 100%; }
  .status-table tr { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .status-table th, .status-table td { padding: 3px 0; border: 0; }
  .footer .wrap { grid-template-columns: 1fr; gap: 18px; }
  .architecture-layer > div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
