:root {
  color-scheme: light;
  --ink: #10231f;
  --muted: #60706b;
  --paper: #f3f6f1;
  --white: #ffffff;
  --green: #123f35;
  --green-2: #1c5c4c;
  --green-3: #d9e8df;
  --lime: #b8db42;
  --line: #d8e1db;
  --amber: #e7ad3a;
  --red: #d25a4b;
  --shadow: 0 18px 60px rgba(18, 63, 53, .09);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.site-header { height: 76px; padding: 0 5vw; display: flex; align-items: center; gap: 34px; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; flex: 0 0 auto; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--green); color: var(--lime); font: 800 21px/1 Georgia, serif; }
.brand strong, .brand small { display: block; letter-spacing: .08em; }
.brand small { color: var(--muted); font-size: 8px; margin-top: 2px; }
nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
nav a { padding: 27px 0 24px; border-bottom: 3px solid transparent; white-space: nowrap; }
nav a:hover, nav a.active { color: var(--green-2); border-bottom-color: var(--lime); }
.header-cta, .button { border: 0; cursor: pointer; border-radius: 9px; padding: 11px 16px; background: var(--green); color: white; font-weight: 750; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.header-cta:hover, .button:hover { background: var(--green-2); }
.button:disabled { opacity: .55; cursor: wait; }
.button.accent { background: var(--lime); color: var(--ink); }
.button.accent:hover { background: #c8e55d; }
.button.ghost { background: transparent; border: 1px solid rgba(255,255,255,.28); }
.button.secondary { background: var(--white); color: var(--green); border: 1px solid var(--line); }
.button.small { padding: 8px 11px; font-size: 12px; }
.menu-button { display: none; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); padding: 9px 12px; }
.hero { min-height: 590px; padding: 96px 7vw 70px; position: relative; overflow: hidden; background: var(--green); color: white; }
.hero::after { content: ""; position: absolute; width: 540px; height: 540px; border: 1px solid rgba(184,219,66,.28); border-radius: 50%; right: -80px; top: 16px; box-shadow: 0 0 0 70px rgba(184,219,66,.05), 0 0 0 150px rgba(184,219,66,.035); pointer-events: none; }
.eyebrow { color: var(--lime); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { max-width: 870px; margin: 22px 0; font: 500 clamp(44px, 6.3vw, 86px)/1.03 Georgia, "Songti SC", serif; letter-spacing: -.045em; }
.hero > p { max-width: 690px; color: #d4e1dc; font-size: 18px; line-height: 1.8; position: relative; z-index: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; position: relative; z-index: 2; }
.hero-stats { margin-top: 58px; display: flex; gap: 46px; position: relative; z-index: 2; }
.hero-stat strong { display: block; color: var(--lime); font: 500 32px/1 Georgia, serif; }
.hero-stat span { display: block; color: #aebfb9; font-size: 11px; margin-top: 7px; letter-spacing: .08em; }
.section { padding: 72px 7vw 88px; }
.section.white { background: var(--white); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font: 500 clamp(30px, 4vw, 42px)/1.1 Georgia, "Songti SC", serif; }
.section-heading p { margin: 0; color: var(--muted); }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.capability-card { min-height: 205px; padding: 25px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.capability-card:hover { transform: translateY(-3px); border-color: #9ab29f; box-shadow: var(--shadow); }
.capability-card .num { color: var(--green-2); font: 700 12px/1 monospace; }
.capability-card h3 { margin: 36px 0 10px; font-size: 20px; }
.capability-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.flow-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: white; }
.flow-step { padding: 22px; min-height: 120px; border-right: 1px solid var(--line); position: relative; }
.flow-step:last-child { border: 0; }
.flow-step::after { content: "→"; position: absolute; right: -12px; top: 46px; z-index: 2; width: 24px; height: 24px; display: grid; place-items: center; background: var(--lime); border-radius: 50%; font-weight: 800; }
.flow-step:last-child::after { display: none; }
.flow-step small { color: var(--green-2); font-weight: 800; }
.flow-step strong { display: block; margin-top: 15px; }
.page-hero { padding: 72px 7vw 58px; background: var(--green); color: white; }
.page-hero h1 { margin: 16px 0 14px; font-size: clamp(39px, 5vw, 64px); }
.page-hero p { max-width: 720px; margin: 0; color: #c9d8d2; line-height: 1.75; font-size: 17px; }
.page-body { padding: 48px 7vw 84px; }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.solution-card, .result-card, .panel { background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 35px rgba(18,63,53,.045); }
.solution-card { padding: 26px; display: flex; flex-direction: column; }
.solution-card .tag, .tag { width: fit-content; border-radius: 999px; padding: 6px 9px; background: #edf4ea; color: var(--green-2); font-size: 11px; font-weight: 800; }
.solution-card h2 { font-size: 21px; margin: 18px 0 9px; }
.solution-card > p { margin: 0 0 20px; color: var(--muted); line-height: 1.65; }
.mini-flow { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.mini-flow span { background: var(--paper); border-radius: 7px; padding: 7px 9px; font-size: 11px; }
.risk-list { margin: 20px 0 0; padding: 18px 0 0 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.65; }
.tool-layout { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(420px, 1.25fr); gap: 22px; align-items: start; }
.panel { padding: 26px; }
.panel.sticky { position: sticky; top: 98px; }
.panel h2, .panel h3 { margin-top: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.panel-heading h2 { margin: 0; font-size: 20px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { color: #31443e; font-size: 13px; font-weight: 750; }
input, select, textarea { width: 100%; border: 1px solid #cbd7d0; border-radius: 9px; background: #fbfcfa; padding: 12px 13px; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(28,92,76,.1); }
textarea { min-height: 145px; resize: vertical; line-height: 1.5; }
.field-note, .empty-state { color: var(--muted); font-size: 12px; line-height: 1.6; }
.empty-state { min-height: 330px; display: grid; place-items: center; text-align: center; border: 1px dashed #c7d4cc; border-radius: 10px; padding: 30px; background: #fafcf9; }
.empty-state strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 8px; }
.results-stack { display: grid; gap: 12px; }
.result-card { padding: 20px; box-shadow: none; }
.result-top { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.part-number { font: 750 18px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--green); }
.manufacturer { color: var(--muted); font-size: 12px; margin-top: 5px; }
.result-card p { color: var(--muted); line-height: 1.6; }
.parameter-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0; }
.parameter-list span { border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; font-size: 11px; background: var(--paper); }
.reason { border-left: 3px solid var(--lime); padding-left: 12px; color: #40564e !important; font-size: 13px; }
.risk { border-radius: 999px; padding: 5px 8px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.risk.low { background: #e3f2e5; color: #27603b; }
.risk.medium { background: #fff0d1; color: #855c0b; }
.risk.high { background: #fbe0dc; color: #993c31; }
.block-diagram { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 10px 0 24px; }
.block { background: var(--green); color: white; border-radius: 9px; padding: 14px 16px; font-size: 13px; font-weight: 700; text-align: center; }
.arrow { color: var(--green-2); font-weight: 900; }
.code-block { position: relative; background: #0c2721; color: #d8e7e0; border-radius: 10px; padding: 18px; overflow: auto; font: 12px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre; }
.code-block .copy { position: sticky; float: right; top: 0; border: 1px solid #43665c; border-radius: 6px; background: #173b32; color: white; padding: 5px 8px; cursor: pointer; }
.notice { margin-top: 16px; border-radius: 9px; padding: 13px 14px; background: #f4f8e8; border: 1px solid #dce8af; color: #4c5d20; font-size: 12px; line-height: 1.6; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.metric { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.metric strong { display: block; font: 500 25px/1 Georgia, serif; }
.metric span { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.confidence { font: 600 16px/1 Georgia, serif; color: var(--green-2); }
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 30px; }
.docs-nav { position: sticky; top: 100px; display: grid; gap: 5px; align-self: start; }
.docs-nav a { padding: 9px 12px; border-left: 2px solid var(--line); color: var(--muted); font-size: 13px; }
.docs-nav a:hover { border-color: var(--lime); color: var(--ink); }
.docs-content { min-width: 0; }
.docs-section { margin-bottom: 42px; scroll-margin-top: 100px; }
.docs-section h2 { font: 500 30px/1.2 Georgia, "Songti SC", serif; }
.endpoint { display: grid; grid-template-columns: 70px minmax(160px, 250px) 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: center; font-size: 13px; }
.method { width: fit-content; color: var(--green-2); font-size: 10px; font-weight: 900; }
.endpoint code { font-family: ui-monospace, Consolas, monospace; }
.endpoint span:last-child { color: var(--muted); }
.loading { height: 10px; border-radius: 99px; background: linear-gradient(90deg, #edf2ee, #dce7df, #edf2ee); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; background: var(--ink); color: white; padding: 11px 15px; border-radius: 8px; font-size: 12px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }
footer { padding: 24px 5vw; display: flex; justify-content: space-between; color: var(--muted); background: white; border-top: 1px solid var(--line); font-size: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 1100px) { nav { gap: 14px; } .solution-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 960px) {
  .site-header { gap: 14px; }
  .site-header nav { display: none; position: absolute; left: 0; right: 0; top: 75px; padding: 10px 5vw 20px; background: white; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-header nav.open { display: grid; grid-template-columns: repeat(3, 1fr); }
  nav a { padding: 12px; border: 0; background: var(--paper); border-radius: 8px; }
  .menu-button { display: block; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .tool-layout { grid-template-columns: 1fr; }
  .panel.sticky { position: static; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 680px) {
  .site-header { padding: 0 20px; }
  .brand small { display: none; }
  .header-cta { display: none; }
  .site-header nav.open { grid-template-columns: 1fr 1fr; padding: 10px 20px 20px; }
  .hero { padding: 70px 24px 56px; min-height: 560px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stat { width: 40%; }
  .section, .page-body { padding: 52px 24px; }
  .page-hero { padding: 56px 24px 44px; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .capability-grid, .solution-grid, .flow-strip { grid-template-columns: 1fr; }
  .flow-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-step::after { right: 50%; top: auto; bottom: -12px; transform: rotate(90deg); }
  .field-row { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .docs-nav { grid-template-columns: 1fr 1fr; }
  .endpoint { grid-template-columns: 55px 1fr; }
  .endpoint span:last-child { grid-column: 2; }
  footer { gap: 12px; flex-direction: column; }
}
