:root {
  color-scheme: light;
  --paper: #fbf8f0;
  --white: #fffdf7;
  --ink: #15234a;
  --muted: #515977;
  --blue: #18378f;
  --blue-deep: #12265f;
  --blue-soft: #e0e7ff;
  --orange: #ff7847;
  --orange-soft: #ffdfd0;
  --cream: #fff4db;
  --line: #d0cddd;
  --section-gap: clamp(66px, 7.6vw, 112px);
  --display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Heiti SC", sans-serif;
  --body: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --motion: cubic-bezier(.2,.7,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.7 var(--body); overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl { margin: 0; }
button[hidden] { display: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
::selection { background: var(--orange-soft); color: var(--ink); }

.wrap { width: min(100% - 104px, 1280px); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.12em; height: 1.12em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; z-index: 5; inset: .7rem auto auto .7rem; padding: .6rem 1rem; transform: translateY(-150%); background: var(--white); color: var(--blue); border: 1px solid currentColor; border-radius: 4px; }
.skip:focus { transform: none; }

.header { position: sticky; top: 0; z-index: 4; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-layout { min-height: 69px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 25px; }
.brand { display: inline-flex; gap: 9px; align-items: center; width: fit-content; font-weight: 800; line-height: 1.25; white-space: nowrap; color: var(--ink); }
.brand img { object-fit: contain; border-radius: 5px; }
.brand-secondary { font-weight: 550; margin-inline-start: .35em; }
.nav { display: flex; align-items: center; gap: clamp(20px, 3.5vw, 46px); font-size: .91rem; font-weight: 650; }
.nav a, .header-link { display: inline-flex; align-items: center; min-height: 44px; }
.nav a:hover, .footer a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .22em; }
.header-link { justify-self: end; gap: 8px; padding: .36rem .8rem; border: 1px solid var(--blue); border-radius: 4px; color: var(--blue); font-size: .88rem; font-weight: 750; transition: background .18s var(--motion); white-space: nowrap; }
.header-link:hover { background: var(--blue-soft); }

.hero { margin-top: 27px; }
.hero-panel { display: grid; grid-template-columns: .81fr 1.19fr; position: relative; overflow: hidden; isolation: isolate; background: var(--blue); color: var(--cream); border-radius: 6px; }
.hero-copy { padding: clamp(40px, 5.8vw, 83px) 0 clamp(40px, 5.9vw, 85px) clamp(30px, 5.3vw, 76px); align-self: center; position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 750; letter-spacing: .12em; }
.eyebrow::before { content: ""; display: inline-block; width: 13px; height: 13px; background: var(--orange); transform: rotate(-10deg); border-radius: 2px; flex: none; }
.hero h1 { margin-block: 16px 20px; font: 850 clamp(4.1rem, 7.15vw, 7.4rem)/1.04 var(--display); letter-spacing: -.092em; }
.hero h1 span { display: block; white-space: nowrap; }
.hero-description span { white-space: nowrap; }
.hero-description { max-width: 23em; font-size: clamp(1rem, 1.38vw, 1.22rem); color: #f7eedb; }
.hero-actions, .platform-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero-actions { margin-top: 27px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: .64rem .99rem; border: 1px solid transparent; border-radius: 4px; font-weight: 750; line-height: 1.25; white-space: nowrap; transition: background .18s var(--motion), transform .18s var(--motion), border-color .18s var(--motion); }
.button:active, .copy:active { transform: translateY(2px); }
.button-primary { background: var(--orange); border-color: var(--orange); color: #152043; }
.button-primary:hover { background: #ff9a74; border-color: #ff9a74; }
.button-outline { border-color: var(--blue); color: var(--blue); }
.button-outline:hover { background: var(--blue-soft); }
.hero-panel .button-outline { border-color: #c7d3ff; color: var(--cream); }
.hero-panel .button-outline:hover { background: #243f93; }
.cover-art { position: relative; overflow: hidden; min-width: 0; min-height: 100%; }
.cover-art img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.cover-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), #18378f45 13%, transparent 30%); pointer-events: none; }
.hero-panel :focus-visible { outline-color: var(--cream); }

.section-heading { margin-bottom: 24px; }
.section-heading h2, .detail-block h2 { font: 810 clamp(2rem, 3.95vw, 3.55rem)/1.16 var(--display); letter-spacing: -.065em; }
.section-heading p { color: var(--muted); margin-top: .55rem; }
.resources { padding-block: clamp(45px, 5.4vw, 72px) 0; }
.resources .section-heading { margin-bottom: 15px; }
.resources h2 { font-size: clamp(1.4rem, 2.45vw, 2.05rem); }
.resource-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0; list-style: none; border-block: 1px solid var(--line); background: #edf0ff; }
.resource-grid li + li { border-left: 1px solid var(--line); }
.resource-grid a { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 133px; padding: 8px 8px 12px; color: var(--ink); font-weight: 750; transition: background .2s var(--motion); }
.resource-grid a:hover { background: var(--blue-soft); }
.resource-art { width: clamp(70px, 7vw, 93px); height: auto; }
.resource-grid a:hover .resource-art { transform: translateY(-3px); }
.resource-art { transition: transform .22s var(--motion); }

.guides { padding-block: var(--section-gap); }
.guide-grid { display: grid; grid-template-columns: 1.23fr 1fr 1fr; gap: clamp(15px, 2.1vw, 29px); list-style: none; padding: 0; }
.guide-grid li { min-width: 0; }
.guide-card { display: block; border-bottom: 1px solid var(--line); }
.guide-art { overflow: hidden; height: clamp(180px, 19vw, 274px); border-radius: 4px; }
.guide-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--motion); }
.guide-art-reports { background: var(--blue-soft); }
.guide-art-community { background: var(--orange-soft); }
.guide-art-harness { background: var(--cream); }
.guide-card:hover .guide-art img { transform: scale(1.055); }
.guide-caption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 15px 2px 17px; }
.guide-caption span { color: var(--blue); font-size: .88rem; font-weight: 720; }
.guide-caption h3 { font-size: clamp(1.1rem, 1.75vw, 1.48rem); line-height: 1.38; letter-spacing: -.035em; }
.guide-caption .arrow { width: 24px; height: 24px; color: var(--blue); transition: transform .23s var(--motion); }
.guide-card:hover .arrow { transform: translateX(4px); }

.install-section { padding-block: clamp(46px, 6.5vw, 96px); border-block: 1px solid #bac8ee; background: #e8edff; }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 30px); }
.platform { padding: clamp(22px, 3vw, 42px); border: 1px solid #bdc9eb; border-radius: 5px; background: var(--white); min-width: 0; }
.platform-heading { display: flex; align-items: center; gap: clamp(10px, 1vw, 18px); margin-bottom: 15px; }
.platform-icon { width: clamp(51px, 5.6vw, 76px); height: auto; flex: none; }
.platform-heading h3 { font-size: clamp(1.35rem, 2.47vw, 2.2rem); font-weight: 800; line-height: 1.18; letter-spacing: -.05em; }
.platform-heading p { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.platform-links { margin-bottom: 22px; border-bottom: 1px solid var(--line); padding-bottom: 15px; align-items: flex-start; flex-direction: column; }
.platform h4 { font-size: 1.04rem; margin-bottom: 10px; }
.steps { list-style: none; padding: 0; counter-reset: install; }
.steps li { display: grid; grid-template-columns: 1.65em 1fr; align-items: baseline; gap: .45em; counter-increment: install; }
.steps li + li { margin-top: 7px; }
.steps li::before { content: counter(install); color: var(--blue); background: var(--blue-soft); border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; font-size: .84rem; font-weight: 800; line-height: 1.16; }
.compatibility, .install-note { color: var(--muted); font-size: .91rem; }
.compatibility code, .detail-install code { white-space: nowrap; }
.install-note { margin-top: 16px; }
.text-link { width: fit-content; color: var(--blue); text-decoration: underline; text-underline-offset: .21em; font-weight: 650; font-size: .94rem; }
.text-link:hover { text-decoration-thickness: 2px; }
.install-reference { display: inline-block; margin-top: 13px; }

.faq { padding-block: var(--section-gap); display: grid; grid-template-columns: .4fr 1fr; gap: 24px; }
.faq .section-heading { margin: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 61px; cursor: pointer; list-style: none; font-weight: 750; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq summary .icon { color: var(--blue); transition: transform .22s var(--motion); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 28px 16px 0; max-width: 45em; }

.detail-hero { color: var(--ink); border-bottom: 1px solid var(--line); background: var(--hero-paper); }
.detail-hero-inner { min-height: clamp(390px, 34vw, 490px); display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); align-items: center; column-gap: clamp(26px, 4.6vw, 66px); }
.detail-copy { min-width: 0; padding-block: clamp(42px, 4.4vw, 68px); }
.detail-hero h1 { font: 850 clamp(2.9rem, 6.2vw, 6.25rem)/1.07 var(--display); letter-spacing: -.09em; margin-block: 14px 18px; }
.detail-hero h1 span { display: block; }
.detail-intro { max-width: 26em; color: var(--muted); font-size: 1.07rem; }
.detail-art { display: grid; place-items: center; min-width: 0; padding-block: clamp(27px, 3.3vw, 48px); }
.detail-art img { width: min(100%, 560px); height: auto; max-height: 385px; object-fit: contain; }
.detail-hero-reports { --hero-paper: #e8edff; }
.detail-hero-community { --hero-paper: #fff0e8; }
.detail-hero-harness { --hero-paper: #fff3de; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 305px); gap: clamp(26px, 5.8vw, 83px); align-items: start; padding-block: clamp(44px, 6.5vw, 86px) var(--section-gap); }
.detail-main { min-width: 0; }
.detail-block + .detail-block { margin-top: clamp(48px, 6vw, 80px); }
.detail-block h2 { font-size: clamp(1.95rem, 3.5vw, 3rem); margin-bottom: 13px; }
.detail-block > p { color: var(--muted); max-width: 47em; margin-block: .65em; }
.detail-block :is(ul, ol, dl) { margin-top: 16px; }
.detail-facts { border-top: 1px solid var(--line); }
.detail-facts > div:target { background: var(--blue-soft); }
.command-context { display: none; }
.detail-facts > div:target .command-context { display: inline; color: var(--ink); font-size: .85rem; font-weight: 750; }
.detail-facts > div { display: grid; grid-template-columns: minmax(100px, 23%) 1fr; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.detail-facts dt { display: flex; align-items: center; gap: 8px; font-weight: 820; }
.detail-facts dd { color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .74em; }
.article-icon { width: 55px; height: auto; flex: none; }
.detail-block code { color: var(--blue); font-family: "Cascadia Code", Consolas, "Microsoft YaHei", monospace; font-size: .92em; }
.detail-steps, .detail-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; padding: 0; list-style: none; }
.detail-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: journey; }
.detail-steps li, .detail-card { border: 1px solid var(--line); background: var(--white); padding: 16px 19px 18px; border-radius: 4px; min-width: 0; }
.detail-steps li { counter-increment: journey; }
.detail-steps li::before { content: counter(journey, decimal-leading-zero); display: block; color: var(--blue); font-weight: 800; font-size: .85rem; padding-bottom: 4px; }
.detail-steps .article-icon, .detail-card .article-icon { width: 62px; }
.detail-steps strong, .detail-card h3 { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1.4; }
.detail-steps span, .detail-card p { display: block; color: var(--muted); font-size: .94rem; margin-top: 6px; }
.detail-card-visual { display: flex; align-items: center; gap: 9px; }
.detail-card details, .terminal-option { margin-top: 12px; }
.detail-card summary, .terminal-option summary { cursor: pointer; color: var(--blue); font-weight: 700; width: fit-content; padding-block: 4px; }
.detail-install { position: sticky; top: 93px; border-color: #bbc9ef; background: #ebefff; display: flex; flex-direction: column; align-items: flex-start; gap: 11px; padding: 23px; }
.detail-install h2 { font-size: clamp(1.32rem, 2vw, 1.66rem); line-height: 1.3; letter-spacing: -.045em; }
.detail-install p, .terminal-option p { color: var(--muted); font-size: .92rem; }
.detail-install .button { margin-block: 3px; }
.terminal-option p { margin-block: 8px; }
.code-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: start; padding: 10px; border: 1px solid #c5cfee; border-radius: 5px; background: #eff2ff; }
.code-panel code { padding-block: 6px; overflow-wrap: anywhere; }
.copy { display: inline-grid; place-items: center; min-width: 55px; min-height: 42px; cursor: pointer; background: var(--white); color: var(--blue); border: 1px solid #a7b9ee; padding-inline: 9px; border-radius: 4px; font-size: .92rem; }
.copy:hover { background: var(--blue-soft); }
.copy-feedback:not(:empty) { grid-column: 1 / -1; color: var(--blue); font-size: .88rem; }

.footer { border-top: 1px solid var(--line); background: var(--paper); color: var(--muted); }
.footer-layout { min-height: 74px; display: flex; gap: 10px 22px; justify-content: space-between; align-items: center; font-size: .9rem; padding-block: 11px; }
.footer-links { display: flex; flex-wrap: wrap; column-gap: 18px; color: var(--blue); font-weight: 650; }
.footer-links a, .footer-top { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 1020px) {
  .wrap { width: calc(100% - 64px); }
  .hero-copy { padding-left: 34px; }
  .hero h1 { font-size: clamp(3.7rem, 8.1vw, 6rem); }
  .detail-layout { gap: 26px; }
  .detail-steps li, .detail-card { padding-inline: 12px; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 16px; }
  .wrap { width: calc(100% - 32px); }
  .header { position: relative; }
  .header-layout { grid-template-columns: 1fr auto; column-gap: 10px; padding-top: 5px; }
  .header-link { grid-column: 2; grid-row: 1; min-height: 39px; }
  .nav { grid-column: 1 / -1; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); margin-top: 5px; }
  .nav a { padding-inline: 4px; }
  .hero { margin-top: 16px; }
  .hero-panel { grid-template-columns: 1fr; }
  .hero-copy { padding: 26px 20px 0; }
  .hero h1 { font-size: clamp(3.55rem, 10.6vw, 6.25rem); margin-block: 12px 12px; }
  .hero-description { font-size: 1rem; }
  .hero-actions { margin-top: 18px; }
  .hero .button, .detail-hero .button { min-height: 44px; padding-inline: .77rem; font-size: .9rem; }
  .cover-art { aspect-ratio: 1.53; }
  .cover-art img { object-position: 57% 54%; }
  .cover-art::after { background: linear-gradient(180deg, var(--blue), #18378f32 20%, transparent 40%); }
  .resources { padding-top: 35px; }
  .resources .section-heading { margin-bottom: 10px; }
  .resource-grid a { min-height: 86px; padding: 6px 1px; font-size: .85rem; }
  .resource-art { width: min(59px, 100%); }
  .section-heading { margin-bottom: 17px; }
  .guide-grid, .platform-grid, .detail-layout { grid-template-columns: 1fr; }
  .guide-grid { gap: 20px; }
  .guide-art { height: auto; aspect-ratio: 1.68; }
  .guide-caption { padding-block: 10px 12px; }
  .faq { display: block; }
  .faq .section-heading { margin-bottom: 18px; }
  .detail-hero-inner { min-height: 0; grid-template-columns: 1fr; }
  .detail-copy { padding: 30px 1px 0; }
  .detail-hero h1 { font-size: clamp(2.8rem, 10vw, 5rem); margin-block: 12px 13px; }
  .detail-intro { font-size: 1rem; }
  .detail-art { padding-block: 20px 25px; }
  .detail-art img { width: min(92%, 438px); max-height: clamp(185px, 53vw, 286px); }
  .detail-layout { gap: 36px; }
  .detail-install { position: static; }
  .detail-steps, .detail-cards:not(.report-grid) { grid-template-columns: 1fr; }
  .detail-facts > div { grid-template-columns: minmax(77px, 26%) 1fr; gap: 10px; }
  .article-icon { width: 42px; }
  .detail-facts dt { gap: 4px; }
  .footer-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 14px; }
  .footer-layout > span { grid-column: 1 / -1; grid-row: 2; }
  .footer-links { grid-column: 1; grid-row: 3; }
  .footer-top { grid-column: 2; grid-row: 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
