/* =========================================================
   弘生创翌 · 官网首页
   纯静态 · 无外部依赖
   ========================================================= */

:root {
  --ink: #3b3733;
  --ink-2: #4c453e;
  --muted: #6b625a;
  --line: #d8c7ae;
  --line-strong: #c9b79c;
  --bg: #f7f1e6;
  --surface: #fffbf4;
  --surface-alt: #efe2cc;
  --brand: #c94a2b;
  --brand-600: #a83b22;
  --brand-soft: #f8e6de;
  --warm: #2f7d5b;
  --warm-soft: #e4efe8;
  --green: #2f7d5b;
  --wood: #2f7d5b;
  --wood-light: #3e8e6e;
  --radius-lg: 20px;
  --radius: 14px;
  --shadow-1: 0 1px 2px rgba(59, 55, 51, .06);
  --shadow-2: 0 20px 45px -28px rgba(59, 55, 51, .3);
  --shadow-3: 0 40px 90px -50px rgba(59, 55, 51, .4);
  --maxw: 1180px;
  --font: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "SFMono-Regular", monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(201, 74, 43, .16); }

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { display: block; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: .85rem;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ========================= 通用组件 ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .94rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(201, 74, 43, .9);
}
.btn--primary:hover {
  background: var(--brand-600);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(201, 74, 43, .85);
}
.btn--ghost {
  background: rgba(255, 255, 255, .8);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff;
  transform: translateY(-2px);
}
.btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .6);
}
.btn--light:hover { transform: translateY(-2px); background: #fffdf8; }
.btn--sm { padding: 11px 18px; font-size: .86rem; }
.btn--block { width: 100%; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--brand);
}
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.kicker--light { color: var(--wood-light); }

h2 {
  margin: 14px 0 0;
  font-size: clamp(1.85rem, 3.3vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.section {
  padding: 100px 0;
  scroll-margin-top: 86px;
}
.section--white { background: var(--surface); }
.section--tint { background: linear-gradient(180deg, #f3e8d7 0%, #f7f1e6 100%); }

.section-head { max-width: 780px; }
.section-head .lead {
  margin-top: 16px;
  max-width: 700px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink-2);
}

/* ========================= 顶部导航 ========================= */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(246, 248, 252, .74);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 34px -30px rgba(15, 26, 64, .55);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.brand-mark { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: .96rem; font-weight: 700; letter-spacing: .03em; }
.brand-text small {
  font-size: .6rem;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  position: relative;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .2s ease, background .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--brand); background: rgba(47, 125, 91, .07); }
.nav-links a:hover::after { transform: scaleX(1); }

/* 产品二级菜单 */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item--has-menu::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
  transform: translateY(-1px);
  transition: transform .2s ease;
}
.nav-item--has-menu:hover .nav-caret,
.nav-item--has-menu:focus-within .nav-caret { transform: translateY(-1px) rotate(180deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 640px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 60;
}
.nav-item--has-menu:hover > .nav-menu,
.nav-item--has-menu:focus-within > .nav-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-menu-label {
  display: block;
  margin-bottom: 8px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}
.nav-menu a {
  display: block;
  margin: 0 -8px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: .86rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-2);
}
.nav-menu a::after { display: none; }
.nav-menu a:hover { color: var(--brand); background: rgba(47, 125, 91, .07); }
.nav-menu a.is-active { color: var(--brand); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================= Hero ========================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0 66px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 460px at 82% 4%, rgba(47, 125, 91, .10), transparent 62%),
    radial-gradient(720px 420px at 4% 0%, rgba(201, 74, 43, .07), transparent 58%),
    radial-gradient(600px 300px at 50% 100%, rgba(239, 226, 204, .55), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(107, 98, 90, .16) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, transparent 2%, rgba(0, 0, 0, .85) 30%, transparent 88%);
  mask-image: linear-gradient(180deg, transparent 2%, rgba(0, 0, 0, .85) 30%, transparent 88%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 58px;
  align-items: center;
}

.hero-copy { max-width: 620px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  color: var(--ink-2);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .02em;
  box-shadow: var(--shadow-1);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(14, 170, 98, .14);
  flex: none;
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(2.5rem, 4.9vw, 3.85rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero-sub {
  margin-top: 22px;
  max-width: 33em;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.8;
  color: var(--ink-2);
}

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

.hero-slogan {
  margin-top: 36px;
  padding-left: 16px;
  border-left: 3px solid rgba(201, 74, 43, .35);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero-slogan strong { font-size: .98rem; font-weight: 700; letter-spacing: .04em; }
.hero-slogan span {
  font-size: .76rem;
  letter-spacing: .07em;
  color: var(--muted);
  text-transform: uppercase;
}

/* 画布示意 */
.hero-visual { display: flex; flex-direction: column; align-items: stretch; }

.canvas-card {
  width: 100%;
  border: 1px solid rgba(212, 219, 232, .9);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.canvas-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fffdf8;
}
.win-dots { display: inline-flex; gap: 6px; flex: none; }
.win-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}
.win-dots i:nth-child(1) { background: #f3b6ab; }
.win-dots i:nth-child(2) { background: #f7d79b; }
.win-dots i:nth-child(3) { background: #b2dfc4; }
.canvas-file {
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--muted);
}
.canvas-state {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(201, 74, 43, .18);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .72rem;
  font-weight: 500;
}
.canvas-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.canvas-body {
  padding: 12px 14px 10px;
  background-color: #fffdf8;
  background-image: radial-gradient(rgba(107, 98, 90, .12) 1px, transparent 1px);
  background-size: 19px 19px;
}
.canvas-svg { width: 100%; height: auto; }

.canvas-svg text { font-family: var(--font); }
.node rect {
  fill: #fff;
  stroke: var(--line);
  stroke-width: 1.5;
  transition: stroke .25s ease, fill .25s ease;
}
.node:hover rect { stroke: var(--brand); fill: #fffdf8; }
.node .n-title { font-size: 17px; font-weight: 600; fill: var(--ink); }
.node .n-sub { font-size: 11px; fill: var(--muted); }
.node--firmware rect { fill: #f8f1e6; stroke: var(--line); }
.node--firmware text { font-size: 11.5px; }
.node--center rect { fill: var(--brand); stroke: var(--brand); }
.node--center .n-title { fill: #fff; font-size: 20px; }
.node--center .n-sub { fill: rgba(255, 255, 255, .72); font-size: 10px; letter-spacing: .16em; }
.node--center:hover rect { fill: var(--brand); stroke: var(--brand); }

.flow path {
  stroke-dasharray: 5 15;
  animation: flow 1.7s linear infinite;
  opacity: .85;
}
@keyframes flow { to { stroke-dashoffset: -40; } }

.canvas-caption {
  margin-top: 14px;
  font-size: .78rem;
  color: var(--muted);
  text-align: right;
  letter-spacing: .02em;
}

/* ========================= 信任条 ========================= */

.trust {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 32px 0;
}
.trust-grid li {
  padding: 4px 28px;
  border-left: 1px solid var(--line);
}
.trust-grid li:first-child {
  border-left: 0;
  padding-left: 0;
}
.trust-grid strong {
  display: block;
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.trust-grid span {
  display: block;
  margin-top: 2px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-2);
}
.trust-grid small {
  display: block;
  margin-top: 4px;
  font-size: .74rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ========================= 关于我们 ========================= */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 64px;
  align-items: start;
}
.about-copy h2 { max-width: 16em; }
.about-copy > p {
  margin-top: 18px;
  max-width: 42em;
  font-size: .98rem;
  line-height: 1.95;
  color: var(--ink-2);
}

.dossier {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: var(--shadow-1);
}
.dossier h3 {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--brand);
  text-transform: uppercase;
}
.dossier dl { margin: 20px 0 0; }
.dossier dl > div {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.dossier dl > div:first-child {
  padding-top: 0;
  border-top: 0;
}
.dossier dt {
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--muted);
}
.dossier dd {
  margin: 4px 0 0;
  font-size: .87rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}
.dossier dd a { color: var(--brand); word-break: break-all; }
.dossier dd a:hover { text-decoration: underline; }

.product-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(201, 74, 43, .12);
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  flex: none;
}
.product-icon--warm {
  background: var(--warm-soft);
  border-color: rgba(255, 143, 60, .18);
  color: #d9701c;
}
.product-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========================= 愿景与理念 ========================= */

.vision-quote {
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  padding: 32px 40px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-1);
}
.vision-quote::before {
  content: "“";
  position: absolute;
  top: -16px;
  right: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7rem;
  line-height: 1;
  color: rgba(47, 125, 91, .12);
  pointer-events: none;
}
.quote-label {
  display: block;
  margin-bottom: 12px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--brand);
}
.vision-quote p {
  position: relative;
  max-width: 26em;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -.01em;
  color: var(--ink);
}

.balance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.balance-card {
  padding: 34px 30px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fffdf8;
}
.balance-card--plus {
  position: relative;
  overflow: hidden;
  border-color: transparent;
  background:
    radial-gradient(420px 240px at 100% 0%, rgba(255, 255, 255, .22), transparent 60%),
    linear-gradient(140deg, #2f7d5b 0%, #256349 100%);
  color: #fff;
  box-shadow: 0 24px 50px -30px rgba(201, 74, 43, .75);
}

.balance-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.balance-op {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  flex: none;
}
.balance-card--plus .balance-op {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.balance-head h3 { font-size: 1.18rem; line-height: 1.3; }
.balance-head p { font-size: .82rem; color: var(--muted); }
.balance-card--plus .balance-head h3 { color: #fff; }
.balance-card--plus .balance-head p { color: rgba(255, 255, 255, .72); }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}
.tag-list li {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: .85rem;
  color: var(--ink-2);
}
.balance-card--plus .tag-list li {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-weight: 500;
}

.philosophy-note {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 960px;
  font-size: 1rem;
  line-height: 1.95;
  color: var(--ink-2);
}

.stage-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.stage-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 20px 22px;
  border: 1px solid rgba(212, 219, 232, .8);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}
.stage-item span {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--brand);
}
.stage-item strong {
  margin-top: 2px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}
.stage-item small {
  font-size: .8rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ========================= 发展历程 ========================= */

.history-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}
.history-copy .lead {
  margin-top: 16px;
  max-width: 26em;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink-2);
}

.timeline {
  position: relative;
  padding-left: 36px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line-strong);
}
.tl-item {
  position: relative;
  padding-bottom: 30px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 4px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  background: #fff;
}
.tl-item:first-child::before { background: var(--brand); }
.tl-date {
  display: block;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--brand);
}
.tl-item h3 {
  margin-top: 7px;
  font-size: 1.04rem;
  line-height: 1.45;
}
.tl-item p {
  margin-top: 5px;
  max-width: 42em;
  font-size: .88rem;
  line-height: 1.8;
  color: var(--ink-2);
}

/* ========================= 合作伙伴 ========================= */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}
.partner-card {
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.partner-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 125, 91, .35);
  box-shadow: var(--shadow-2);
}
.partner-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}
.partner-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.partner-card h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
  line-height: 1.45;
}
.partner-card p {
  flex: 1;
  font-size: .85rem;
  line-height: 1.75;
  color: var(--ink-2);
}
.partner-card a {
  margin-top: 18px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand);
}
.partner-card a:hover { text-decoration: underline; }

.partner-spotlight {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fffdf8;
}
.partner-logo {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  background: var(--brand);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .08em;
  flex: none;
}
.partner-info h3 {
  margin: 10px 0 6px;
  font-size: 1.25rem;
  line-height: 1.4;
}
.partner-info p {
  max-width: 44em;
  font-size: .92rem;
  line-height: 1.8;
  color: var(--ink-2);
}
.partner-info h3 small {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
}
.partner-link {
  display: inline-block;
  margin-top: 10px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand);
}
.partner-link:hover { text-decoration: underline; }
.build-grid { margin-top: 40px; }
.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
}
.project-tag {
  align-self: flex-start;
  margin-top: 16px;
}
.project-grid .partner-card h3 { margin-top: 10px; }

/* ========================= 开源社区 ========================= */

.open {
  position: relative;
  overflow: hidden;
  background: #3b3733;
  color: #fff;
}
.open::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(820px 420px at 88% 0%, rgba(47, 125, 91, .28), transparent 62%),
    radial-gradient(600px 340px at 0% 100%, rgba(201, 74, 43, .16), transparent 60%);
}
.open::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .35;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 80%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 80%);
}
.open-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}
.open h2 { color: #fff; }
.open-copy p {
  margin-top: 18px;
  max-width: 35em;
  font-size: .98rem;
  line-height: 1.9;
  color: #cfc3b6;
}
.open-copy .btn { margin-top: 28px; }
.open-url {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .04em;
  color: #9c8f80;
}
.open-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.open-tags li {
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  font-size: .74rem;
  color: #cfc3b6;
}

.open-panel {
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .045);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.repo-group + .repo-group {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.repo-label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: #b7a99a;
}
.repo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.repo-list li {
  position: relative;
  padding-left: 14px;
  font-family: var(--mono);
  font-size: .77rem;
  line-height: 1.55;
  color: var(--line);
  word-break: break-all;
}
.repo-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: var(--brand);
}
.repo-org {
  font-family: var(--font);
  font-size: .7rem;
  color: #b7a99a;
}
.open-stat {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.open-stat:last-child { border-bottom: 0; }
.open-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.open-stat strong em {
  font-style: normal;
  font-size: 1rem;
  font-weight: 600;
  color: var(--line);
  letter-spacing: .04em;
}
.open-stat span {
  display: block;
  margin-top: 3px;
  font-size: .86rem;
  color: #cfc3b6;
}
.open-stat small {
  display: block;
  margin-top: 2px;
  font-size: .72rem;
  color: #9c8f80;
}

/* ========================= 产品线入口 ========================= */

.products-teaser {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.teaser-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.teaser-copy h2 {
  margin-top: 10px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.teaser-names {
  flex: 1;
  min-width: 240px;
  font-size: .85rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ========================= 联系我们 ========================= */

.contact { padding-bottom: 110px; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: 56px;
  align-items: center;
}
.contact-copy { max-width: 540px; }
.contact-copy .lead {
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink-2);
}

.channel {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px dashed var(--line-strong);
}
.channel-label {
  display: block;
  margin-bottom: 6px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
}
.channel a {
  font-size: .92rem;
  font-weight: 600;
  color: var(--brand);
}
.channel a:hover { text-decoration: underline; }

.contact-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.contact-card h3 {
  font-size: 1.15rem;
  line-height: 1.4;
}
.form-sub {
  margin-top: 6px;
  font-size: .84rem;
  color: var(--muted);
}

.contact-mail {
  display: block;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fffdf8;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-mail:hover,
.contact-mail:focus-visible {
  border-color: var(--wood);
  box-shadow: 0 0 0 3px rgba(47, 125, 91, .14);
}
.contact-mail-label {
  display: block;
  font-size: .78rem;
  color: var(--muted);
}
.contact-mail-address {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand);
  word-break: break-all;
}

/* ========================= 页脚 ========================= */

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 40px 0;
}
.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand .brand-mark { width: 32px; height: 32px; flex: none; }
.footer-brand strong {
  display: block;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.footer-brand small {
  display: block;
  margin-top: 2px;
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: .84rem;
  color: var(--ink-2);
}
.footer-links a { transition: color .2s ease; }
.footer-links a:hover { color: var(--brand); }
.footer-meta {
  text-align: right;
  font-size: .8rem;
  color: var(--ink-2);
}
.footer-meta p { font-weight: 600; letter-spacing: .03em; }
.footer-meta small {
  display: block;
  margin-top: 4px;
  font-size: .72rem;
  color: var(--muted);
}
.footer-meta .icp a { color: inherit; }
.footer-meta .icp a:hover { color: var(--brand); }

/* ========================= 产品页 ========================= */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 138px 0 60px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(820px 420px at 85% 0%, rgba(47, 125, 91, .10), transparent 62%),
    radial-gradient(620px 360px at 0% 10%, rgba(201, 74, 43, .07), transparent 60%);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(107, 98, 90, .15) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .45;
  -webkit-mask-image: linear-gradient(180deg, transparent 4%, rgba(0, 0, 0, .8) 35%, transparent 92%);
  mask-image: linear-gradient(180deg, transparent 4%, rgba(0, 0, 0, .8) 35%, transparent 92%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 {
  margin-top: 16px;
  max-width: 18em;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: -.025em;
}
.page-hero h1 .en {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: .4em;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  vertical-align: .45em;
}
.page-lead {
  margin-top: 18px;
  max-width: 40em;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--ink-2);
}
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.detail-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.detail-card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 125, 91, .35);
  box-shadow: var(--shadow-2);
}
.detail-card h3 {
  margin: 18px 0 3px;
  font-size: 1.1rem;
  line-height: 1.4;
}
.detail-en {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-card > p {
  flex: 1;
  margin-top: 10px;
  font-size: .9rem;
  line-height: 1.8;
  color: var(--ink-2);
}
.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.detail-meta li {
  position: relative;
  padding-left: 12px;
  font-size: .76rem;
  line-height: 1.6;
  color: var(--muted);
}
.detail-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}
.card-link {
  margin-top: 18px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand);
}
.card-link:hover { text-decoration: underline; }
.detail-card .card-link { margin-top: auto; padding-top: 18px; }
.agent-card .card-link { margin-top: auto; padding-top: 18px; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 56px;
  align-items: start;
}
.detail-layout h2 { font-size: 1.65rem; line-height: 1.35; }
.detail-main > p {
  margin-top: 14px;
  font-size: .96rem;
  line-height: 1.95;
  color: var(--ink-2);
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.feature-list li {
  position: relative;
  padding-left: 26px;
  font-size: .92rem;
  line-height: 1.75;
  color: var(--ink-2);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--warm-soft);
  border: 1px solid rgba(47, 125, 91, .22);
}
.feature-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
}
.spec-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf8;
}
.spec-panel h3 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--brand);
  text-transform: uppercase;
}
.spec-list { margin-top: 16px; }
.spec-list > div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.spec-list > div:first-child { padding-top: 0; border-top: 0; }
.spec-list dt {
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--muted);
}
.spec-list dd {
  margin: 4px 0 0;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--ink);
}
.spec-list dd a { color: var(--brand); word-break: break-all; }
.spec-list dd a:hover { text-decoration: underline; }
.spec-note {
  margin-top: 16px;
  font-size: .74rem;
  line-height: 1.7;
  color: var(--muted);
}
.vendor-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(47, 125, 91, .18);
  border-radius: 12px;
  background: var(--warm-soft);
  font-size: .85rem;
  line-height: 1.75;
  color: var(--ink-2);
}
.vendor-note a { color: var(--brand); font-weight: 600; }
.vendor-note > span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  font-style: normal;
  flex: none;
}
.product-sub {
  margin-top: 8px;
  font-size: 1rem;
  letter-spacing: .03em;
  color: var(--muted);
}
.product-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.agent-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, #fffdf8 0%, #f6ede0 100%);
}
.agent-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.agent-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .68rem;
  font-weight: 600;
  color: var(--muted);
}
.badge--dev {
  border-color: #ffdfc2;
  background: var(--warm-soft);
  color: #b25e16;
}
.agent-card h3 {
  margin: 18px 0 0;
  font-size: 1.25rem;
  line-height: 1.35;
}
.agent-card h3 small {
  margin-left: 4px;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted);
}
.agent-card .agent-tagline {
  margin-top: 10px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--brand);
}
.agent-card > p {
  margin-top: 6px;
  font-size: .9rem;
  line-height: 1.8;
  color: var(--ink-2);
}
.agent-card .detail-meta { margin-top: 18px; margin-bottom: 22px; }
.agent-card .btn {
  align-self: flex-start;
  margin-top: auto;
}
.agent-note {
  margin-top: 20px;
  font-size: .76rem;
  color: var(--muted);
}
.nav-links a.is-active { color: var(--brand); }

/* ========================= 滚动显现 ========================= */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.2, .65, .3, 1), transform .7s cubic-bezier(.2, .65, .3, 1);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ========================= 响应式 ========================= */

@media (max-width: 1024px) {
  .hero { padding-top: 118px; }
  .hero-grid { gap: 40px; }
  .about-grid { gap: 40px; }
  .history-grid { gap: 40px; }
  .open-grid { gap: 40px; }
  .contact-grid { gap: 40px; }
  .partner-grid { gap: 16px; }
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-2);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: .92rem; }
  .nav-links a::after { display: none; }
  .nav-item--has-menu::before { display: none; }
  .nav-menu { display: none; }
  .nav-toggle { display: inline-flex; }

  .hero { padding: 104px 0 52px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero-copy { max-width: 640px; }
  .hero-visual { max-width: 620px; width: 100%; margin: 0 auto; }
  .canvas-caption { text-align: left; }

  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .dossier { max-width: 560px; }

  .history-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .history-copy .lead { max-width: 34em; }

  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }

  .open-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .contact-copy { max-width: 640px; }

  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .agent-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .page-hero { padding: 110px 0 48px; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }

  .section { padding: 72px 0; }
  .section-head .lead { font-size: .95rem; line-height: 1.85; }

  .about-copy > p { font-size: .94rem; }
  .dossier { padding: 24px 22px; }

  .vision-quote { padding: 26px 24px 30px; }
  .vision-quote::before { font-size: 5rem; right: 18px; top: -8px; }
  .balance-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .balance-card { padding: 28px 24px; }

  .stage-row { grid-template-columns: minmax(0, 1fr); }
  .stage-item { padding: 18px 20px; }

  .products-teaser { padding: 40px 0; }
  .teaser-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .teaser-names { min-width: 0; }

  .agent-grid { gap: 16px; margin-top: 34px; }
  .agent-card { padding: 26px 24px; }

  .partner-spotlight {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 26px 24px;
  }
  .partner-logo { width: 76px; height: 76px; font-size: 1.2rem; }

  .partner-grid { margin-top: 34px; }
  .partner-card { padding: 24px 22px; }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 22px 0;
  }
  .trust-grid li { padding: 14px 20px; }
  .trust-grid li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trust-grid li:nth-child(even) { border-left: 1px solid var(--line); }
  .trust-grid li:nth-child(n+3) {
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .trust-grid strong { font-size: 1.6rem; }

  .open { padding: 72px 0; }
  .open-panel { padding: 8px 24px; }

  .contact { padding-bottom: 76px; }
  .contact-card { padding: 26px 22px; }

  .footer-grid { flex-direction: column; gap: 24px; }
  .footer-meta { text-align: left; }
}

@media (max-width: 600px) {
  .partner-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }

  .node .n-title { font-size: 20px; }
  .node:has(.n-sub) .n-title { transform: translateY(6px); }
  .node .n-sub { display: none; }
  .node--firmware { display: none; }
  .canvas-body { padding: 10px 12px 6px; }
}

@media (max-width: 480px) {
  .brand-text small { display: none; }
  .hero { padding-top: 96px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-slogan span { font-size: .7rem; letter-spacing: .04em; }
  .canvas-head { gap: 8px; padding: 10px 12px; }
  .canvas-file { font-size: .68rem; }
  .canvas-state { font-size: .66rem; padding: 2px 8px; }
  .repo-list li { font-size: .72rem; }
  .stage-item strong { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .flow path { animation: none; }
  .btn:hover,
  .partner-card:hover,
  .detail-card:hover { transform: none; }
}

/* =========================================================
   暖色方案落地
   暖米白为底、木绿为骨、珊瑚橙为神、深暖灰为字
   ========================================================= */

body { background: var(--bg); }

.site-header { background: rgba(247, 241, 230, .84); }
.site-header.is-scrolled {
  background: rgba(255, 251, 244, .96);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 34px -30px rgba(59, 55, 51, .45);
}
.nav-links a { color: var(--ink-2); }
.nav-links a::after { background: var(--brand); }
.nav-links a:hover {
  color: var(--wood);
  background: rgba(47, 125, 91, .07);
}
.nav-links a.is-active { color: var(--brand); }
.nav-toggle { background: var(--surface); border-color: var(--line); }
.nav-toggle span { background: var(--ink); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--wood);
  color: var(--wood);
}
.btn--ghost:hover {
  background: var(--wood);
  border-color: var(--wood);
  color: #fff;
}
.btn--light { background: var(--surface); color: var(--ink); }
.btn--light:hover { background: #fff; }

.kicker { color: var(--wood); }
.kicker--light { color: var(--wood-light); }

.hero { background: var(--bg); }
.hero::before {
  background:
    radial-gradient(900px 460px at 82% 4%, rgba(47, 125, 91, .10), transparent 62%),
    radial-gradient(720px 420px at 4% 0%, rgba(201, 74, 43, .07), transparent 58%),
    radial-gradient(600px 300px at 50% 100%, rgba(239, 226, 204, .55), transparent 70%);
}
.hero::after {
  background-image: radial-gradient(rgba(107, 98, 90, .16) 1px, transparent 1px);
  opacity: .45;
}
.eyebrow {
  background: rgba(255, 251, 244, .88);
  border-color: var(--line);
  color: var(--ink-2);
}
.hero-slogan { border-left-color: rgba(201, 74, 43, .35); }
.hero-slogan strong { color: var(--wood); }

.canvas-card { background: var(--surface); border-color: var(--line); }
.canvas-head { background: #fffdf8; border-bottom-color: var(--line); }
.canvas-file {
  font-family: var(--font);
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--muted);
}
.canvas-state {
  background: var(--warm-soft);
  border-color: rgba(47, 125, 91, .22);
  color: var(--wood);
}
.canvas-state i { background: var(--wood); }
.canvas-body {
  background-color: #fffdf8;
  background-image: radial-gradient(rgba(107, 98, 90, .12) 1px, transparent 1px);
}
.node rect { stroke: var(--line); }
.node .n-title { fill: var(--ink); }
.node .n-sub { fill: var(--muted); }
.node:hover rect { stroke: var(--brand); fill: #fffdf8; }
.node--center:hover rect { fill: var(--brand); stroke: var(--brand); }
.node--firmware rect { fill: #f8f1e6; stroke: var(--line); }
.node--center rect { fill: var(--brand); stroke: var(--brand); }
.node--center .n-title { fill: #fff; }
.node--center .n-sub { fill: rgba(255, 255, 255, .76); }

.trust { background: var(--surface-alt); border-color: var(--line); }
.trust-grid li { border-left-color: rgba(59, 55, 51, .14); }
.trust-grid strong { color: var(--brand); }
.trust-grid span { color: var(--ink); }
.trust-grid small { color: var(--muted); }

.section--tint { background: linear-gradient(180deg, #f3e8d7 0%, #f7f1e6 100%); }
.dossier { background: #fffdf8; border-color: var(--line); }
.dossier h3 { color: var(--wood); }
.dossier dd a { color: var(--wood); }

.vision-quote { background: var(--surface); border-color: var(--line); }
.vision-quote::before { color: rgba(47, 125, 91, .16); }
.quote-label { color: var(--wood); }
.balance-card { background: #fffdf8; border-color: var(--line); }
.balance-card--plus {
  background:
    radial-gradient(420px 240px at 100% 0%, rgba(255, 255, 255, .18), transparent 60%),
    linear-gradient(140deg, #2f7d5b 0%, #256349 100%);
  box-shadow: 0 24px 50px -30px rgba(47, 125, 91, .55);
}
.balance-card--plus .balance-op {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12);
}
.philosophy-note { border-top-color: var(--line); }

.timeline::before { background: var(--line); }
.tl-item::before {
  border-color: var(--wood);
  background: var(--surface);
}
.tl-item:first-child::before {
  background: var(--brand);
  border-color: var(--brand);
}
.tl-date { color: var(--brand); }

.partner-spotlight { background: #fffdf8; border-color: var(--line); }
.partner-logo { background: var(--wood); color: #fff; }
.partner-info .badge {
  background: var(--warm-soft);
  border-color: rgba(47, 125, 91, .2);
  color: var(--wood);
}
.partner-link,
.partner-card a { color: var(--wood); }
.partner-card { background: var(--surface); border-color: var(--line); }
.partner-card:hover { border-color: rgba(47, 125, 91, .35); }
.partner-icon {
  background: var(--warm-soft);
  border-color: rgba(47, 125, 91, .16);
  color: var(--wood);
}
.badge {
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted);
}
.badge--dev,
.project-tag {
  background: #fbf0dd;
  border-color: #ead2ae;
  color: #7a4a16;
}
.project-grid .partner-icon {
  background: var(--brand-soft);
  border-color: rgba(201, 74, 43, .16);
  color: var(--primary, var(--brand));
}

.open { background: #2b2724; }
.open::before {
  background:
    radial-gradient(820px 420px at 88% 0%, rgba(47, 125, 91, .28), transparent 62%),
    radial-gradient(620px 340px at 0% 100%, rgba(201, 74, 43, .16), transparent 60%);
}
.open::after {
  background-image: radial-gradient(rgba(247, 241, 230, .14) 1px, transparent 1px);
}
.open-copy p { color: #cfc3b6; }
.open-url { color: #9c8f80; }
.repo-label { color: #b7a99a; }
.repo-list li { color: #e7dccd; }
.repo-list li::before { background: var(--wood-light); }
.repo-org { color: #a5968a; }
.repo-desc {
  margin-top: 8px;
  font-size: .82rem;
  line-height: 1.7;
  color: #cfc3b6;
}
.repo-link {
  display: inline-block;
  margin-top: 20px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--wood-light);
}
.repo-link:hover { text-decoration: underline; }

/* 开源社区中的技术共建卡片 */
.open .build-grid {
  position: relative;
  z-index: 1;
  margin-top: 48px;
}
.open .build-grid .partner-card {
  background: rgba(255, 251, 244, .05);
  border-color: rgba(247, 241, 230, .14);
}
.open .build-grid .partner-card:hover {
  background: rgba(255, 251, 244, .08);
  border-color: rgba(62, 142, 110, .55);
  box-shadow: 0 20px 45px -28px rgba(0, 0, 0, .6);
}
.open .build-grid .partner-card h3 { color: #fff8ee; }
.open .build-grid .partner-card p { color: #cfc3b6; }
.open .build-grid .partner-icon {
  background: rgba(62, 142, 110, .18);
  border-color: rgba(62, 142, 110, .35);
  color: #9fd8bd;
}
.open-tags li {
  border-color: rgba(247, 241, 230, .18);
  background: rgba(247, 241, 230, .06);
  color: #cfc3b6;
}

.channel a { color: var(--wood); }

.site-footer { background: #2b2724; border-top: 1px solid rgba(201, 74, 43, .45); }
.footer-brand strong { color: #fff8ee; }
.footer-brand small { color: #b7a99a; }
.footer-links a { color: #d9ccbc; }
.footer-links a:hover { color: #e85d3a; }
.footer-meta { color: #d9ccbc; }
.footer-meta small { color: #a5968a; }
.footer-meta .icp a { color: inherit; }
.footer-meta .icp a:hover { color: #e85d3a; }

/* 产品页 */
.page-hero::before {
  background:
    radial-gradient(820px 420px at 85% 0%, rgba(47, 125, 91, .10), transparent 62%),
    radial-gradient(620px 360px at 0% 10%, rgba(201, 74, 43, .07), transparent 60%);
}
.page-hero::after {
  background-image: radial-gradient(rgba(107, 98, 90, .15) 1px, transparent 1px);
  opacity: .4;
}
.products-teaser { background: var(--surface); border-color: var(--line); }
.detail-card { background: var(--surface); border-color: var(--line); }
.detail-card:hover { border-color: rgba(47, 125, 91, .35); }
.card-link { color: var(--wood); }
.agent-card {
  background: linear-gradient(160deg, #fffdf8 0%, #f6ede0 100%);
  border-color: var(--line);
}
.agent-card h3 small { color: var(--muted); }
.spec-panel { background: #fffdf8; border-color: var(--line); }
.spec-panel h3 { color: var(--wood); }
.spec-list dd a { color: var(--wood); }
.feature-list li::before {
  background: var(--warm-soft);
  border-color: rgba(47, 125, 91, .22);
}
.feature-list li::after { background: var(--wood); }
.vendor-note {
  background: var(--warm-soft);
  border-color: rgba(47, 125, 91, .18);
}
.vendor-note > span { background: var(--wood); }
.vendor-note a { color: var(--wood); }

/* 长仓库名与两列产品卡 */
.page-hero h1.repo {
  font-family: var(--mono);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  letter-spacing: -.01em;
  word-break: break-all;
  overflow-wrap: anywhere;
}
.detail-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-card--repo h3 {
  font-size: .95rem;
  line-height: 1.5;
  word-break: break-all;
}
.detail-card--repo .detail-en { margin-top: 6px; }

@media (max-width: 900px) {
  .detail-grid--two { grid-template-columns: minmax(0, 1fr); }
}

