:root {
  color-scheme: light;
  --ink: #172b2d;
  --muted: #4c6161;
  --green: #17483f;
  --line: #d6e1dc;
  --page: #f5f8f6;
  --surface: #fff;
  font: 16px/1.55 system-ui, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
svg { display: block; width: 1.25rem; height: 1.25rem; flex: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #236966; outline-offset: 4px; }
:target { scroll-margin-top: 1rem; }
.shell { width: min(69rem, calc(100% - 3rem)); margin-inline: auto; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 2rem; min-height: 4.25rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: fit-content;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: .12em;
  color: var(--green);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: .4rem;
  background: var(--green);
  color: white;
  letter-spacing: 0;
}
.brand-logo { width: 2.4rem; height: 2.4rem; border-radius: .55rem; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-size: .95rem; font-weight: 750; letter-spacing: .14em; }
.brand-text small { font-size: .62rem; font-weight: 600; letter-spacing: .34em; color: var(--muted); }
.primary-nav { display: flex; gap: .25rem; }
.primary-nav a {
  padding: .55rem .7rem;
  border-radius: .35rem;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.primary-nav a:hover, .primary-nav [aria-current="page"] { background: #eaf2ed; color: var(--green); }
.language { position: relative; flex: 0 0 2.75rem; min-width: 0; margin-left: auto; }
.language summary {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  color: var(--green);
  cursor: pointer;
  list-style: none;
}
.language summary::-webkit-details-marker { display: none; }
.language summary:hover, .language[open] summary { background: #edf4ef; }
.language-options {
  position: absolute;
  z-index: 1;
  top: calc(100% + .4rem);
  right: 0;
  min-width: 9rem;
  padding: .3rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--surface);
  box-shadow: 0 8px 24px #183f3420;
}
.language-options button {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: .35rem .6rem;
  border: 0;
  border-radius: .3rem;
  background: transparent;
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.language-options button:hover, .language-options [aria-pressed="true"] { background: #eaf2ed; color: var(--green); }

main.shell { padding-block: 1.75rem 2rem; }
.hero {
  padding: clamp(1.35rem, 4vw, 2.9rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: .8rem;
  background: var(--surface);
}
.home-hero { background: linear-gradient(115deg, #e5f0e9 0%, #f8fbf8 76%); }
.home-hero .button { --accent: var(--green); margin-top: 1.1rem; }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.5rem); line-height: 1.12; letter-spacing: -.035em; }
.hero > p { max-width: 44rem; margin-top: .75rem; color: var(--muted); font-size: 1.05rem; }
.product-identity {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .8rem;
  color: var(--accent);
  font-size: .95rem;
  font-weight: 700;
}
.product-section { margin-top: 1.55rem; }
.product-section h2 { font-size: 1.3rem; margin-bottom: .65rem; }
.section-description { color: var(--muted); margin-bottom: .8rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.product-card, .feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--surface);
}
.product-card h3 { font-size: 1.18rem; margin-top: .7rem; }
.product-card p, .feature-card p { margin-top: .35rem; color: var(--muted); }
.card-art { display: block; width: calc(100% + 2.3rem); margin: -1.15rem -1.15rem .75rem; border-radius: .65rem .65rem 0 0; aspect-ratio: 2 / 1; object-fit: cover; }
.glance-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.card-art, .glance-tile img { height: auto; }
.glance-tile { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); color: var(--accent); font-weight: 700; text-decoration: none; }
.glance-tile img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.glance-tile span { display: block; padding: .55rem .7rem; }
.glance-tile:hover { border-color: var(--accent); }
.product-card .category { margin-top: .05rem; color: var(--accent); font-size: .9rem; font-weight: 700; }
.feature-card h3 { font-size: 1rem; }
.indigo { --accent: #43368e; --tint: #eeeafd; }
.blue { --accent: #174b72; --tint: #e8f2fb; }
.green { --accent: #1a5745; --tint: #e6f2ea; }
.slate { --accent: #34495e; --tint: #e9eef3; }
.amber { --accent: #8a4b08; --tint: #fdf0dc; }
.product-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: .53rem;
  background: var(--tint);
  color: var(--accent);
}
.product-hero { border-top-color: var(--accent); }
.card-link, .button {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.75rem;
  font-weight: 700;
  text-decoration: none;
}
.card-link { padding-top: .4rem; margin-top: auto; color: var(--accent); }
.card-link:hover { text-decoration: underline; }
.button {
  margin-top: 1rem;
  padding: .5rem .85rem;
  border-radius: .4rem;
  background: var(--accent);
  color: #fff;
}
.button:hover { filter: brightness(.85); }
.legal-hero .review {
  width: fit-content;
  margin: 0 0 .85rem;
  padding: .4rem .65rem;
  border-radius: .35rem;
  background: #fdf0d2;
  color: #684612;
  font-size: .92rem;
  font-weight: 650;
}

.site-footer { padding-block: 1.4rem; border-top: 1px solid var(--line); background: #eaf1ed; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; }
.footer-grid h2 { margin-bottom: .35rem; font-size: .93rem; }
.footer-grid nav a { display: block; width: fit-content; color: var(--green); }
.footer-grid nav a + a { margin-top: .3rem; }
.footer-grid nav a, .footer-grid dl { font-size: .92rem; }
.footer-grid dl { display: grid; gap: .25rem; color: var(--muted); margin-top: .55rem; }
.footer-grid dl div { display: flex; flex-wrap: wrap; gap: 0 .55rem; }
.footer-grid dd { color: var(--ink); }

@media (max-width: 44rem) {
  .shell { width: calc(100% - 2rem); }
  .header-row { gap: .4rem; min-height: 3.6rem; }
  .header-row .brand { gap: .35rem; font-size: .95rem; }
  .primary-nav a { padding: .65rem .35rem; font-size: .875rem; }
  main.shell { padding-block: 1.1rem 1.35rem; }
  .product-grid { grid-template-columns: 1fr; gap: .65rem; }
  .glance-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-company { grid-column: 1 / -1; }
}
