:root {
  color-scheme: light;
  --paper: #f8faf9;
  --ink: #142720;
  --muted: #4c5f56;
  --line: #d8e3dc;
  --accent: #08714e;
  --dark: #172f27;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

* { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #449d74; outline-offset: 5px; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .brand, nav, .actions, .footer { display: flex; align-items: center; }
.header-inner { min-height: 72px; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; padding-block: 12px; }
.brand { gap: 10px; font-weight: 700; }
.brand img { border-radius: 8px; }
nav, .footer { gap: 24px; font-size: .92rem; color: var(--muted); }
.brand, nav a, .footer a { text-decoration: none; }
nav a:hover, .footer a:hover { color: var(--accent); text-decoration: underline; }

.hero { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: clamp(32px, 7vw, 100px); padding-block: clamp(58px, 9vw, 118px); }
.platform { color: var(--accent); font: 650 .85rem/1.5 "Segoe UI", system-ui, sans-serif; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(2.3rem, 5vw, 4.3rem); letter-spacing: -.045em; margin-block: 13px 22px; }
h1 span { display: block; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.45rem); letter-spacing: -.035em; }
h3 { font-size: 1.12rem; }
.intro { max-width: 32em; color: var(--muted); font-size: 1.08rem; }
.actions { flex-wrap: wrap; gap: 14px 22px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 48px; padding: 9px 17px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.primary { color: white; background: var(--accent); }
.primary:hover { background: #065b3f; }
.text-link { color: var(--accent); font-weight: 650; text-underline-offset: 4px; }
.system { margin-top: 12px; color: var(--muted); font-size: .86rem; }

.flow { padding: clamp(22px, 4vw, 40px); border: 1px solid #315447; border-radius: 22px; background: radial-gradient(ellipse at top right, #2b5040, transparent 70%), var(--dark); color: #f4fff8; box-shadow: 0 22px 52px -30px #12382c8c; }
.flow figcaption { display: flex; align-items: center; gap: 10px; padding-bottom: 17px; border-bottom: 1px solid #537064; font-weight: 650; }
.signal { width: 8px; height: 8px; border-radius: 50%; background: #9ce8ba; box-shadow: 0 0 0 4px #9ce8ba28; }
.flow ol { list-style: none; margin: 22px 0 0 5px; padding: 0 0 0 22px; border-left: 1px solid #648e79; }
.flow li { position: relative; padding-bottom: 19px; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before { content: ""; position: absolute; top: .55em; left: -27px; width: 8px; height: 8px; border-radius: 50%; background: #a5e7bf; }
.flow li span { display: block; color: #c2d9cc; font-size: .91rem; margin-top: 3px; }

.features { background: #edf3ef; border-block: 1px solid var(--line); padding-block: clamp(38px, 6vw, 70px); }
.section-intro { max-width: 46em; margin-top: 12px; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.feature-grid article { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.feature-grid p, .guide p, .faq p { color: var(--muted); margin-top: 8px; }
.section { padding-block: clamp(42px, 7vw, 82px); }
.guide, .faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px clamp(24px, 7vw, 100px); }
.guide-links { display: grid; gap: 8px; padding: 0; margin: 16px 0 0; list-style: none; }
.steps p a { color: var(--accent); text-underline-offset: 4px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; counter-increment: step; padding: 0 0 20px 45px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(step); position: absolute; inset: 0 auto auto 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #e2efe7; color: var(--accent); font-weight: 700; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 12px; }
.faq details:first-child { padding-top: 0; }
.faq summary { cursor: pointer; font-weight: 650; }

.download-wrap { scroll-margin-top: 16px; }
.download { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: clamp(20px, 4vw, 44px); background: #eaf3ed; border: 1px solid var(--line); border-radius: 20px; }
.download p { color: var(--muted); margin-top: 8px; }
.download .button { margin-top: 16px; }
.backup { padding: 16px 18px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; scroll-margin-top: 16px; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.copy-row code { background: #eaf3ed; padding: 2px 7px; border-radius: 4px; font-size: 1rem; }
.copy-row button { font: inherit; font-size: .9rem; color: var(--accent); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; cursor: pointer; }
.copy-row button:disabled { opacity: .6; }
#copy-status { min-height: 1.65em; font-size: .85rem; }
.footer { flex-wrap: wrap; padding-block: 24px; }

@media (max-width: 760px) {
  .hero, .feature-grid, .guide, .faq, .download { grid-template-columns: 1fr; }
  .shell { width: calc(100% - 36px); }
  .hero { gap: 30px; }
}
