:root {
  --ink: #17251c;
  --muted: #516057;
  --green: #256338;
  --lime: #a9e78e;
  --line: #dce6da;
  --paper: #f5f7f2;
  --dark: #14241b;
  --radius: 1.1rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.65rem; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.75;
  line-break: strict;
  overflow-wrap: anywhere;
}

h1, h2, h3, p, ol, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.22; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.45rem); }
h3 { font-size: 1.15rem; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid #569c55; outline-offset: 4px; }
.container { width: min(72.5rem, calc(100% - 3rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f8faf6f5;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 780; font-size: 1.16rem; }
.brand img { width: 2rem; height: 2rem; border-radius: .52rem; }
.navigation { display: flex; gap: clamp(.7rem, 2.6vw, 1.8rem); margin-inline-start: auto; font-size: .91rem; color: var(--muted); }
.navigation a, .footer nav a { transition: color .18s ease; }
.navigation a:hover, .navigation a:focus-visible { color: var(--green); }

.button, .header-download {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .64rem;
  border-radius: .65rem;
  font-weight: 730;
  white-space: nowrap;
  transition: transform .18s ease, color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.header-download {
  position: relative;
  min-height: 2.25rem;
  padding: .25rem .95rem;
  border: 1px solid #b4cbb4;
  color: #245a35;
  font-size: .89rem;
}
.header-download::after { position: absolute; inset: -.24rem 0; content: ""; }
.header-download:hover { background: #e7f0e4; }
.button-primary {
  min-width: 15rem;
  min-height: 3.5rem;
  padding: .65rem 1.65rem;
  color: #153522;
  background: var(--lime);
  box-shadow: 0 .6rem 1.6rem #101c1240;
}
.button-primary:hover { transform: translateY(-2px); background: #bbeeac; box-shadow: 0 .75rem 1.75rem #10231854; }
.button-primary:active { transform: translateY(0); }

.download-icon {
  width: 1.06rem;
  height: 1.02rem;
  position: relative;
  border-bottom: 2px solid currentColor;
}
.download-icon::before, .download-icon::after { position: absolute; left: 50%; content: ""; }
.download-icon::before { top: 0; width: 2px; height: .7rem; transform: translateX(-50%); background: currentColor; }
.download-icon::after {
  top: .24rem;
  width: .49rem;
  height: .49rem;
  transform: translateX(-50%) rotate(45deg);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.hero {
  color: #f8fff7;
  background:
    radial-gradient(ellipse at 88% 30%, #385741 0%, transparent 53%),
    radial-gradient(ellipse at 61% 100%, #254434 0%, transparent 55%),
    var(--dark);
  padding-block: clamp(3.25rem, 6.3vw, 5.5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  align-items: center;
  gap: clamp(1.8rem, 4.3vw, 3.7rem);
  min-height: 27rem;
}
.hero h1 { font-size: clamp(3.4rem, 6vw, 5.95rem); font-weight: 800; line-height: 1.03; }
.hero-subtitle {
  color: #c5edb3;
  margin-top: 1rem;
  max-width: 24rem;
  font-size: clamp(1.45rem, 2.68vw, 2.22rem);
  line-height: 1.34;
  font-weight: 750;
  text-wrap: balance;
}
.hero-subtitle span, .menu-label { white-space: nowrap; }
.hero-subtitle span { display: inline-block; }
.hero-description { max-width: 25rem; margin-top: 1rem; color: #dce8da; }
.hero .button { margin-top: 1.65rem; }

.gallery {
  min-width: 0;
  padding: 1.15rem 1.15rem 1.02rem;
  border: 1px solid #65846e;
  border-radius: 1.5rem;
  background: #14271dcc;
  box-shadow: 0 1.7rem 4.2rem #0d171354;
}
.gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.gallery-heading h2 { font-size: 1.16rem; }
.gallery-controls { display: flex; gap: .4rem; }
.gallery-controls[hidden] { display: none; }
.gallery-arrow {
  display: grid;
  place-items: center;
  padding: 0;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid #6a9074;
  border-radius: 50%;
  background: #294838;
  color: #f3fff0;
  cursor: pointer;
}
.gallery-arrow::before {
  width: .53rem;
  height: .53rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateX(-1px) rotate(45deg);
  content: "";
}
.gallery-arrow.previous::before { transform: translateX(1px) rotate(-135deg); }
.gallery-arrow:hover:not(:disabled) { background: #3c6149; }
.gallery-arrow:disabled { opacity: .42; cursor: default; }

.screen-track {
  --screen-height: clamp(16rem, 25vw, 23rem);
  display: flex;
  align-items: flex-start;
  gap: .72rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #83ae8b transparent;
  scroll-behavior: smooth;
  padding-bottom: .43rem;
}
.screen-shot {
  flex: 0 0 auto;
  display: block;
  overflow: hidden;
  border: 1px solid #678370;
  border-radius: .76rem;
  scroll-snap-align: start;
  cursor: zoom-in;
}
.screen-shot img { display: block; width: auto; height: var(--screen-height); }
.screen-shot:hover { border-color: var(--lime); }
.screen-shot:focus-visible { outline-color: var(--lime); outline-offset: -4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }

.lightbox {
  max-width: calc(100vw - 1.25rem);
  max-height: calc(100dvh - 1.25rem);
  padding: .68rem;
  color: #f5fff3;
  background: var(--dark);
  border: 1px solid #63806d;
  border-radius: .85rem;
}
.lightbox::backdrop { background: #101c15da; }
.lightbox-inner { display: grid; justify-items: end; gap: .55rem; }
.lightbox-close {
  min-height: 2.6rem;
  padding: .26rem .8rem;
  background: #284734;
  color: #f2fdf0;
  border: 1px solid #698b75;
  border-radius: .56rem;
  cursor: pointer;
}
.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(26rem, calc(100vw - 3rem));
  max-height: calc(100dvh - 5.7rem);
  border-radius: .42rem;
}

.section { padding-block: clamp(3.3rem, 6vw, 5.45rem); }
.section-heading { margin-bottom: 1.8rem; text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.feature {
  padding: 1.48rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-3px); border-color: #a1bf9e; background: #fbfdf8; box-shadow: 0 .65rem 1.4rem #1f412114; }
.feature h3 { margin: .85rem 0 .45rem; }
.feature p, .steps p, .section-intro, .reading-note p, .faq-list p { color: var(--muted); }

.feature-icon {
  display: grid;
  place-items: center;
  position: relative;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: .75rem;
  background: #e7f1e5;
  color: var(--green);
}
.feature-icon::before, .feature-icon::after { content: ""; }
.icon-chart::before {
  width: 1.3rem;
  height: .95rem;
  background: currentColor;
  clip-path: polygon(0 62%, 25% 62%, 43% 10%, 61% 72%, 78% 41%, 100% 41%, 100% 55%, 84% 55%, 58% 98%, 42% 40%, 34% 76%, 0 76%);
}
.icon-chip::before { width: .88rem; height: .88rem; border: 2px solid currentColor; border-radius: .17rem; }
.icon-chip::after { position: absolute; width: .32rem; height: .32rem; background: currentColor; }
.icon-battery::before { width: 1.07rem; height: .62rem; border: 2px solid currentColor; border-radius: .18rem; }
.icon-battery::after { position: absolute; transform: translateX(.61rem); width: .15rem; height: .34rem; background: currentColor; border-radius: 0 .1rem .1rem 0; }
.icon-device::before { width: .66rem; height: 1.15rem; border: 2px solid currentColor; border-radius: .18rem; }
.icon-device::after { position: absolute; width: .26rem; height: 2px; transform: translateY(.34rem); background: currentColor; }
.icon-sensor::before { width: 1rem; height: 1rem; border: 2px dotted currentColor; border-radius: 50%; }
.icon-sensor::after { position: absolute; width: .36rem; height: .36rem; border-radius: 50%; background: currentColor; }
.icon-camera::before { width: 1.14rem; height: .78rem; border: 2px solid currentColor; border-radius: .19rem; }
.icon-camera::after { position: absolute; width: .36rem; height: .36rem; border: 1.5px solid currentColor; border-radius: 50%; }

.guide { background: #edf3e9; border-block: 1px solid var(--line); }
.guide-grid { display: grid; align-items: center; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 7vw, 6rem); }
.section-intro { margin-top: .65rem; }
.steps { margin-top: 1.15rem; list-style: none; padding: 0; counter-reset: step; }
.steps li {
  padding: 1.05rem 0 1.05rem 3.1rem;
  position: relative;
  border-bottom: 1px solid #d8e4d3;
  counter-increment: step;
}
.steps li::before {
  position: absolute;
  top: .95rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.06rem;
  height: 2.06rem;
  background: #d8ead4;
  color: #235c35;
  border-radius: .62rem;
  font-weight: 760;
  content: counter(step);
}
.steps p { margin-top: .42rem; }
.reading-note { padding: clamp(1.3rem, 3vw, 2.25rem); border: 1px solid #c8dcc5; border-radius: var(--radius); background: #f9fcf6; }
.reading-note h3 { font-size: 1.24rem; }
.reading-note dl { margin: .8rem 0 .9rem; }
.reading-note dl div {
  display: grid;
  grid-template-columns: minmax(4.7rem, 1fr) minmax(0, 2.1fr);
  gap: .65rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
}
.reading-note dt { font-weight: 700; color: var(--green); }
.reading-note dd { color: var(--muted); }
.reading-note p { font-size: .94rem; }

.faq { background: #fafbf8; }
.faq-list { margin-inline: auto; max-width: 51rem; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: 1.02rem .15rem;
  list-style: none;
  font-size: 1.06rem;
  font-weight: 700;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  flex: 0 0 auto;
  width: .54rem;
  height: .54rem;
  margin-inline-end: .4rem;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: translateY(-2px) rotate(45deg);
  content: "";
}
.faq-list details[open] summary, .faq-list summary:hover { color: var(--green); }
.faq-list details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq-list p { padding: 0 1.5rem 1.12rem .15rem; }

.download {
  color: #fff;
  padding-block: clamp(2.75rem, 5.1vw, 4.37rem);
  background: radial-gradient(ellipse at 50% 40%, #3c6446, #23412e 72%);
}
.download-inner, .download-brand { display: flex; align-items: center; gap: 1.3rem; }
.download-inner { justify-content: space-between; }
.download-brand img { width: 3.6rem; height: 3.6rem; border-radius: .9rem; }
.footer { background: #15241a; color: #eef5ec; }
.footer-inner { display: grid; justify-items: center; text-align: center; gap: .88rem; padding-block: 2rem; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem 1.25rem; color: #d5e3d4; font-size: .92rem; }
.footer nav a:hover, .footer nav a:focus-visible { color: var(--lime); }
.footer p { font-size: .85rem; color: #b8c9b8; }

@media (max-width: 860px) {
  html { scroll-padding-top: 6.65rem; }
  .container { width: min(39rem, calc(100% - 2rem)); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: .25rem .6rem; padding-top: .6rem; }
  .navigation { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: .3rem; margin-inline-start: 0; }
  .navigation a { display: inline-flex; min-height: 2.66rem; align-items: center; white-space: nowrap; }
  .hero { padding-block: 2.3rem 2rem; }
  .hero-grid, .guide-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-grid { gap: 1.85rem; }
  .hero-subtitle { text-wrap: unset; }
  .hero-description { max-width: 30rem; }
  .hero .button { margin-top: 1.25rem; }
  .button-primary { width: 100%; min-width: 0; }
  .gallery { border: none; border-radius: 0; background: none; box-shadow: none; padding: 0; }
  .screen-track { --screen-height: clamp(13rem, 74vw, 20.5rem); gap: .56rem; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-inner { flex-direction: column; align-items: stretch; }
  .download-brand { justify-content: center; }
}

@media (max-width: 390px) {
  .feature { padding: 1rem .88rem; }
  .feature h3 { font-size: 1.05rem; }
  .feature p { font-size: .94rem; }
  .download-brand { gap: .75rem; }
  .download-brand img { width: 2.85rem; height: 2.85rem; }
  .download-brand h2 { font-size: 1.65rem; }
}

@media (max-width: 360px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .footer nav { column-gap: .55rem; font-size: .85rem; }
}

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