:root {
  color-scheme: light dark;
  --bg: #0f1419;
  --fg: #e7edf3;
  --muted: #9aa7b2;
  --accent: #3b82f6;
  --card: #1a222c;
  --border: #2a3542;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fb;
    --fg: #0f1419;
    --muted: #5c6b7a;
    --accent: #1d4ed8;
    --card: #ffffff;
    --border: #d8e0ea;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

.site-header,
.site-footer {
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 88%, transparent);
}

.site-footer {
  border-top: 1px solid var(--border);
  border-bottom: none;
  margin-top: 3rem;
}

.site-header .inner,
.site-footer .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--fg);
  text-decoration: none;
  margin-right: auto;
}

.logo img {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
}

.site-footer .inner.footer-inner {
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.footer-nav a {
  color: var(--fg);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-copyright {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-icp {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-main a {
  color: var(--fg);
  text-decoration: none;
  margin-right: 1rem;
}

.nav-main a:hover {
  color: var(--accent);
}

.lang-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.lang-select {
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
}

.site-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  align-items: center;
  margin-top: 1.25rem;
}

.lede {
  color: var(--muted);
  max-width: 52ch;
}

.button {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.page h1 {
  margin-top: 0;
}

.news-index {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-index li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.news-index a {
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}

.news-index a:hover {
  color: var(--accent);
}

.news-index time {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.summary {
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.lang-switch a {
  color: var(--accent);
  text-decoration: none;
}

.lang-switch a[aria-current="page"] {
  font-weight: 700;
}

.lang-switch .missing {
  color: var(--muted);
  cursor: not-allowed;
}

.markdown-body :is(h1, h2, h3) {
  line-height: 1.25;
}

.markdown-body pre {
  overflow: auto;
  padding: 1rem;
  border-radius: 8px;
  background: color-mix(in oklab, var(--card) 90%, transparent);
  border: 1px solid var(--border);
}

.markdown-body img {
  max-width: 100%;
  height: auto;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .sep {
  margin: 0 0.35rem;
}

.product-header h1 {
  margin-top: 0;
}

.annotations {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-actions {
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.product-paragraph {
  margin: 0 0 1rem;
}

.product-block {
  margin: 2rem 0;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.spec-note {
  margin: 0 0 1rem;
}

.product-gallery {
  margin: 0 0 1.25rem;
}

.product-gallery-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.product-gallery-item {
  margin: 0;
}

.product-gallery-item img {
  display: block;
  max-width: min(100%, 420px);
  max-height: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 90%, transparent);
}

.table-scroll {
  overflow-x: auto;
  margin: 0.5rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.spec-table th,
.spec-table td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.spec-table thead th {
  background: color-mix(in oklab, var(--card) 92%, var(--accent));
}

.raw-table td {
  white-space: nowrap;
}

.param-table .nested-param {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.85rem;
}

.param-table .nested-param th,
.param-table .nested-param td {
  border: 1px solid var(--border);
  padding: 0.35rem 0.5rem;
}

.merged-doc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.merged-doc-toc a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.merged-doc-toc a:hover {
  text-decoration: underline;
}

.merged-doc-section {
  margin: 2.25rem 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.merged-doc-toc + .merged-doc-section {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.merged-doc-heading {
  font-size: 1.2rem;
  margin: 0 0 1rem;
  line-height: 1.3;
}

.subvariant-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.subvariant-toc a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.subvariant-toc a:hover {
  text-decoration: underline;
}

.subvariant-card {
  margin: 2rem 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in oklab, var(--card) 96%, transparent);
}

.subvariant-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.equipment-heading {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
}

.product-footer-cta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.series-cards {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.series-card a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  background: var(--card);
}

.series-card a:hover {
  border-color: var(--accent);
}

.series-card-title {
  font-weight: 700;
}

.series-card-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Products index: grouped cards (specs/pages/products.md) */
.product-section {
  margin-top: 2.5rem;
}

.product-section-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}

.product-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.product-card {
  margin: 0;
}

.product-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  background: var(--card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-card-link:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px color-mix(in oklab, var(--accent) 18%, transparent);
}

.product-card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.product-card-media {
  aspect-ratio: 16 / 10;
  background: color-mix(in oklab, var(--border) 35%, var(--card));
  overflow: hidden;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.product-card-thumb--placeholder {
  width: 100%;
  height: 100%;
  min-height: 8rem;
  background: linear-gradient(
    135deg,
    color-mix(in oklab, var(--border) 50%, var(--card)) 0%,
    color-mix(in oklab, var(--accent) 12%, var(--card)) 100%
  );
}

.product-card-body {
  padding: 1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.product-card-title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
}

.product-card-summary {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
  flex: 1;
}

.product-card-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.model-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.model-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.model-list a {
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}

.model-list a:hover {
  color: var(--accent);
}

/* Contact & inquiry (specs/pages/contact.md) */
.contact-page .contact-lede {
  max-width: 60ch;
}

.contact-section-title {
  font-size: 1.15rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.contact-channel-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-whatsapp-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in oklab, var(--card) 96%, transparent);
}

.contact-whatsapp-copy {
  flex: 1 1 200px;
}

.contact-wa-cta {
  margin-top: 0.75rem;
}

.contact-qr {
  margin: 0;
  flex-shrink: 0;
}

.contact-qr img {
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

.contact-card {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.contact-card--row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.contact-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.contact-wechat-phone {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.contact-mail {
  color: var(--accent);
  font-weight: 600;
  word-break: break-all;
}

.contact-company-line {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-inquiry {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.inquiry-anchor-hint {
  margin-top: -0.5rem;
  font-size: 0.9rem;
}

.inquiry-form {
  margin-top: 1rem;
}

.inquiry-fieldset {
  border: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.inquiry-legend {
  font-weight: 700;
  padding: 0;
  margin: 0 0 0.75rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.form-field--inline label {
  margin: 0;
}

.form-field label,
.fake-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
  width: 100%;
  max-width: 32rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  font: inherit;
}

.form-field textarea {
  resize: vertical;
  min-height: 6rem;
}

.checkbox-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.check-label {
  font-weight: normal;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.check-label input {
  margin-top: 0.2rem;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.radio-row--wrap {
  gap: 0.5rem 1rem;
}

.radio-row label {
  font-weight: normal;
  cursor: pointer;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.inquiry-privacy {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 1rem;
}

.inquiry-submit {
  min-width: 10rem;
}

.form-alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.form-alert--error {
  border: 1px solid color-mix(in oklab, #ef4444 55%, var(--border));
  background: color-mix(in oklab, #ef4444 12%, var(--card));
  color: var(--fg);
}

.inquiry-success-card {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in oklab, var(--accent) 8%, var(--card));
  max-width: 40rem;
}

.inquiry-success-card h3 {
  margin-top: 0;
}

.inquiry-success-card .button {
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .contact-whatsapp-card {
    flex-wrap: nowrap;
    align-items: center;
  }
}

/* About (specs/pages/about.md) */
.about-page .about-block {
  margin: 2rem 0;
  padding-top: 0.25rem;
}

.about-page .about-block:first-of-type {
  margin-top: 0.5rem;
}

.about-page h2 {
  font-size: 1.2rem;
  margin: 0 0 0.85rem;
  line-height: 1.3;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.about-trust-points {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-trust-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.about-trust-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.about-product-lines {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
  color: var(--fg);
}

.about-products-note {
  margin: 0 0 1rem;
  max-width: 60ch;
}

.about-products-note a {
  color: var(--accent);
}

.about-warehouse-figure {
  margin: 1rem 0 0;
}

.about-warehouse-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 90%, transparent);
}

.about-warehouse-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.about-cta-lede {
  margin: 0 0 1rem;
  max-width: 52ch;
}

.about-cta-channels {
  margin-bottom: 1rem;
}

.about-cta-channels p {
  margin: 0.35rem 0;
  word-break: break-word;
}

.about-cta-channels a[href^="https://wa.me"] {
  color: var(--accent);
}

.about-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin: 1rem 0;
}

.about-cta-qr img {
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

.about-cta-quote-wrap {
  margin: 1.25rem 0 0;
}

/* Home (specs/pages/home.md) */
.home-page {
  margin-top: 0;
}

.home-hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.home-hero__copy h1 {
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  line-height: 1.18;
  margin: 0 0 0.75rem;
}

.home-hero__sub {
  max-width: 58ch;
  margin: 0;
}

.home-hero__visual {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 92%, transparent);
}

.home-hero__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 420px);
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .home-hero {
    flex-direction: row;
    align-items: stretch;
    gap: 2rem;
  }

  .home-hero__copy {
    flex: 1 1 44%;
    min-width: 0;
  }

  .home-hero__visual {
    flex: 1 1 52%;
    align-self: center;
  }
}

.home-section {
  margin: 2.75rem 0;
  padding-top: 0.25rem;
}

.home-section__title {
  font-size: 1.2rem;
  margin: 0 0 1.15rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.3;
}

.home-section__footer-link {
  margin: 1.25rem 0 0;
}

.home-section__footer-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.home-section__footer-link a:hover {
  text-decoration: underline;
}

.home-products-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .home-products-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-product-card-wrap--featured {
    grid-column: 1 / -1;
  }

  .home-product-card-wrap--featured .product-card-link.home-product-card--featured {
    flex-direction: row;
    align-items: stretch;
  }

  .home-product-card-wrap--featured .product-card-media {
    flex: 0 0 min(46%, 380px);
    aspect-ratio: 16 / 10;
    max-width: 420px;
  }

  .home-product-card-wrap--featured .product-card-body {
    justify-content: center;
  }
}

.home-why-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .home-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem 1.5rem;
  }
}

.home-trust__layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 560px) {
  .home-trust__layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

.home-trust__thumb-link {
  display: block;
  flex-shrink: 0;
  max-width: 280px;
  text-decoration: none;
  color: inherit;
}

.home-trust__thumb {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 90%, transparent);
}

.home-trust__thumb-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.88rem;
}

.home-trust__thumb-link:hover .home-trust__thumb {
  border-color: var(--accent);
}

.home-trust__company {
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.home-contact-cta__lede {
  margin: 0 0 1rem;
  max-width: 52ch;
  color: var(--muted);
}

.home-contact-cta__channels {
  margin-top: 1rem;
  font-size: 0.98rem;
}

.home-contact-cta__channels a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.home-contact-cta__channels a:hover {
  text-decoration: underline;
}

.home-page-footer-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
}

.home-page-footer-meta p {
  margin: 0;
  line-height: 1.5;
}

.home-page-footer-meta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.home-page-footer-meta a:hover {
  text-decoration: underline;
}
