:root {
  --ink: #111318;
  --muted: #626870;
  --canvas: #f4f5f2;
  --paper: #ffffff;
  --green: #05d66f;
  --green-dark: #008f4b;
  --lilac: #d9c8ff;
  --blue: #bfe8ff;
  --line: #d9ddd9;
  --line-dark: #b8beb9;
  --shadow: 0 18px 48px rgba(17, 19, 24, .1);
  --font: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --container: 1240px;
  --reading: 780px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--canvas); font-family: var(--font); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
p, h1, h2, h3 { margin-top: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid rgba(5, 214, 111, .42); outline-offset: 3px; }
.container { width: min(calc(100% - 28px), var(--container)); margin-inline: auto; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid var(--line-dark); background: rgba(244, 245, 242, .94); backdrop-filter: blur(14px); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 900; letter-spacing: -.04em; }
.brand img { width: 30px; height: 32px; object-fit: contain; }
.brand span { display: none; }
.primary-nav { position: absolute; top: 68px; right: 14px; left: 14px; display: none; padding: 10px; border: 1px solid var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.primary-nav.is-open { display: grid; }
.primary-nav a { padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 750; }
.primary-nav a:last-child { border-bottom: 0; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--green-dark); background: #effff7; }
.visit-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 15px; border: 1px solid var(--ink); background: var(--green); font-size: 13px; font-weight: 850; box-shadow: 4px 4px 0 var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.visit-link:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.menu-toggle { position: relative; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ink); background: var(--paper); cursor: pointer; }
.menu-toggle::before, .menu-toggle::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink); content: ""; transition: transform .2s ease; }
.menu-toggle::before { top: 16px; }
.menu-toggle::after { top: 25px; }
.menu-toggle[aria-expanded="true"]::before { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { top: 21px; transform: rotate(-45deg); }

.hero { position: relative; padding: 44px 0 58px; border-bottom: 1px solid var(--line-dark); overflow: hidden; }
.hero::after { position: absolute; right: -70px; bottom: -90px; width: 230px; height: 230px; border-radius: 50%; background: var(--lilac); content: ""; filter: blur(1px); opacity: .58; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 34px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--green-dark); font-size: 12px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { width: 12px; height: 12px; background: var(--green); content: ""; transform: rotate(45deg); }
.hero h1 { max-width: 12ch; margin-bottom: 18px; font-size: clamp(34px, 8vw, 64px); line-height: 1.08; letter-spacing: -.055em; }
.hero-copy > p:not(.eyebrow) { max-width: 38em; margin-bottom: 24px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-actions .visit-link { min-height: 52px; padding-inline: 22px; }
.hero-hint { max-width: 19em; color: var(--muted); font-size: 12px; }
.canvas-window { position: relative; padding: 18px; border: 1px solid var(--ink); background: var(--paper); box-shadow: 9px 9px 0 var(--lilac); }
.canvas-window::before { display: block; height: 13px; margin: -5px 0 14px; background: radial-gradient(circle at 6px 6px, var(--green) 0 4px, transparent 5px), radial-gradient(circle at 24px 6px, var(--lilac) 0 4px, transparent 5px), radial-gradient(circle at 42px 6px, var(--blue) 0 4px, transparent 5px); content: ""; }
.canvas-window img { width: 100%; background: #111; }
.canvas-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 12px; }

.mode-bar { padding: 16px 0; border-bottom: 1px solid var(--line-dark); background: var(--paper); }
.mode-controls { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; }
.filter-chip { flex: 0 0 auto; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-dark); background: var(--paper); cursor: pointer; font-size: 13px; font-weight: 750; }
.filter-chip:hover, .filter-chip.is-active { border-color: var(--ink); background: var(--green); }

.section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section.paper { background: var(--paper); }
.section-heading { display: grid; gap: 12px; margin-bottom: 30px; }
.section-heading h2 { max-width: 18ch; margin-bottom: 0; font-size: clamp(27px, 5vw, 42px); line-height: 1.18; letter-spacing: -.04em; }
.section-heading p { max-width: 48em; margin-bottom: 0; color: var(--muted); }
.function-grid { display: grid; gap: 14px; }
.function-card { position: relative; min-height: 220px; padding: 24px; border: 1px solid var(--line-dark); background: var(--paper); overflow: hidden; }
.function-card::after { position: absolute; right: -28px; bottom: -28px; width: 95px; height: 95px; border: 14px solid var(--lilac); border-radius: 50%; content: ""; }
.function-card:nth-child(2)::after { border-color: var(--blue); border-radius: 0; transform: rotate(22deg); }
.function-card:nth-child(3)::after { border-color: var(--green); border-width: 24px 10px; }
.card-no { display: block; margin-bottom: 36px; color: var(--green-dark); font-size: 12px; font-weight: 900; }
.function-card h3 { margin-bottom: 8px; font-size: 20px; letter-spacing: -.02em; }
.function-card p { position: relative; z-index: 1; margin-bottom: 0; color: var(--muted); }
.text-link { color: var(--green-dark); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.interface-split { display: grid; align-items: center; gap: 30px; }
.interface-copy h2 { font-size: clamp(27px, 5vw, 42px); line-height: 1.18; letter-spacing: -.04em; }
.interface-copy p { color: var(--muted); }
.interface-frame { padding: 12px; border: 1px solid var(--ink); background: #0d0e12; box-shadow: 8px 8px 0 var(--green); }
.interface-frame img { width: 100%; }
.annotation-list { display: grid; gap: 0; margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.annotation-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.annotation-list b { color: var(--green-dark); }

.path-grid { display: grid; gap: 14px; }
.path-card { padding: 22px; border-left: 6px solid var(--green); background: var(--paper); }
.path-card:nth-child(2) { border-left-color: #8c70db; }
.path-card:nth-child(3) { border-left-color: #268fc5; }
.path-card h3 { margin-bottom: 8px; }
.path-card p { margin-bottom: 0; color: var(--muted); }

.notice { display: grid; gap: 18px; padding: 28px; border: 1px solid var(--ink); background: linear-gradient(135deg, #effff7, #f3efff); }
.notice strong { font-size: 21px; }
.notice p { margin-bottom: 0; color: var(--muted); }

.breadcrumb { padding-top: 24px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--green-dark); font-weight: 750; }
.page-title { max-width: 900px; padding: 40px 0 54px; }
.page-title h1 { margin-bottom: 16px; font-size: clamp(32px, 7vw, 56px); line-height: 1.1; letter-spacing: -.05em; }
.page-title > p:not(.eyebrow) { max-width: 46em; margin-bottom: 0; color: var(--muted); font-size: 18px; }
.article-body { width: min(calc(100% - 28px), var(--reading)); margin-inline: auto; padding-bottom: 70px; }
.content-section { padding: 46px 0; border-top: 1px solid var(--line-dark); }
.content-section h2 { margin-bottom: 18px; font-size: clamp(24px, 4vw, 32px); line-height: 1.25; letter-spacing: -.035em; }
.content-section h3 { margin-bottom: 8px; }
.content-section p, .content-section li { color: var(--muted); }
.content-section ul, .content-section ol { display: grid; gap: 8px; padding-left: 22px; }
.content-image { margin: 28px 0; padding: 10px; border: 1px solid var(--ink); background: #101116; }
.content-image figcaption { padding: 10px 4px 2px; color: #c6cac7; font-size: 12px; }
.mini-grid { display: grid; gap: 12px; margin-top: 22px; }
.mini-card { padding: 18px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); }
.mini-card strong { display: block; margin-bottom: 5px; color: var(--ink); }
.note { margin: 22px 0; padding: 20px; border-left: 5px solid var(--green); background: #ecfff5; color: var(--muted); }
.faq-group { padding: 38px 0; border-top: 1px solid var(--line-dark); }
.faq-group h2 { margin-bottom: 18px; font-size: 26px; }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 18px 40px 18px 0; cursor: pointer; font-weight: 800; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { position: absolute; top: 50%; right: 5px; width: 25px; height: 25px; border: 1px solid var(--ink); content: "+"; text-align: center; line-height: 23px; transform: translateY(-50%); }
details[open] summary::after { content: "−"; background: var(--green); }
details p { padding: 0 40px 18px 0; color: var(--muted); }

.site-footer { padding: 38px 0; color: #d7dad7; background: var(--ink); }
.footer-inner { display: grid; gap: 10px; }
.footer-brand { color: var(--paper); font-size: 18px; font-weight: 900; }
.site-footer p { max-width: 760px; margin-bottom: 0; color: #aeb4ae; font-size: 13px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .canvas-window { animation: rise .55s both; }
  .canvas-window { animation-delay: .1s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 760px) {
  .container { width: min(calc(100% - 64px), var(--container)); }
  .header-inner { min-height: 76px; }
  .brand span { display: inline; }
  .menu-toggle { display: none; }
  .primary-nav { position: static; display: flex; justify-content: center; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .primary-nav a { padding: 10px 11px; border: 0; }
  .hero { padding: 78px 0 88px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 7vw; }
  .section { padding: 88px 0; }
  .section-heading { grid-template-columns: 1fr 1fr; align-items: end; }
  .function-grid, .path-grid { grid-template-columns: repeat(3, 1fr); }
  .interface-split { grid-template-columns: .82fr 1.18fr; gap: 7vw; }
  .interface-split.reverse .interface-copy { order: 2; }
  .interface-split.reverse .interface-frame { order: 1; }
  .notice { grid-template-columns: .7fr 1.3fr; align-items: center; }
  .page-title { padding: 54px 0 70px; }
  .content-section { padding: 58px 0; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1120px) {
  .primary-nav a { padding-inline: 15px; }
}

@media (max-width: 420px) {
  .header-inner { grid-template-columns: auto auto 1fr; }
  .menu-toggle { grid-column: 2; grid-row: 1; }
  .visit-link { justify-self: end; padding-inline: 10px; font-size: 11px; }
  .hero { padding-top: 34px; }
  .canvas-window { padding: 10px; box-shadow: 6px 6px 0 var(--lilac); }
}
