:root {
  --ink: #191d23;
  --muted: #555d66;
  --line: #d8dde1;
  --surface: #f2f4f5;
  --brand: #bd2229;
  --rail: 1280px;
  --gutter: clamp(18px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 84px; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  line-height: 1.6;
}

button { font: inherit; }
img { max-width: 100%; }
a { color: inherit; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.site-rail {
  width: min(calc(100% - 2 * var(--gutter)), var(--rail));
  margin-inline: auto;
}

.site-section { padding-block: clamp(42px, 7vw, 100px); }

.site-heading {
  margin: 0;
  font-size: clamp(29px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.22;
}

.site-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 21px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.site-action:hover { background: #9f1820; }

.site-text-link {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
}

.spec-table th, .spec-table td {
  border-block-start: 1px solid var(--line);
  padding: 11px 8px 11px 0;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.spec-table th { width: 26%; }
.spec-table td { color: var(--muted); white-space: pre-wrap; }

.site-header { position: sticky; z-index: 20; top: 0; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { flex: none; }
.brand img { display: block; width: clamp(142px, 16vw, 185px); height: auto; }
.navigation { display: flex; gap: clamp(18px, 4vw, 58px); }
.navigation a { display: flex; align-items: center; min-height: 70px; border-bottom: 2px solid transparent; font-weight: 600; text-decoration: none; white-space: nowrap; }
.navigation a:hover, .navigation .is-current { border-color: var(--brand); }
main.site-section { padding-top: clamp(25px, 4vw, 55px); }
.detail-breadcrumb { display: flex; gap: 8px 12px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--line); color: var(--muted); }
.detail-breadcrumb a { text-underline-offset: 3px; }
.detail-breadcrumb [aria-current] { color: var(--ink); font-weight: 700; }
.catalog-intro { margin: 15px 0 0; max-width: 52em; color: var(--muted); }
.series-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 54px); margin-top: clamp(28px, 5vw, 58px); }
.series-card { display: grid; grid-template-rows: auto 1fr; border-bottom: 1px solid var(--line); text-decoration: none; }
.series-card figure { display: grid; place-items: center; margin: 0; background: var(--surface); padding: clamp(20px, 4vw, 42px); }
.series-card img { display: block; width: 100%; height: clamp(150px, 19vw, 265px); object-fit: contain; }
.series-card img, .detail-image img { mix-blend-mode: multiply; }
.series-card div { padding: 20px 0 24px; }
.series-card h2 { margin: 0; font-size: clamp(22px, 2.6vw, 32px); }
.series-card p { margin: 8px 0 14px; color: var(--muted); }
.series-card:hover h2 { color: var(--brand); }
.catalog-categories { display: flex; flex-wrap: wrap; gap: clamp(12px, 4vw, 46px); margin: 26px 0 35px; border-block: 1px solid var(--line); }
.catalog-categories a { display: inline-flex; align-items: center; min-height: 48px; border-bottom: 2px solid transparent; text-decoration: none; }
.catalog-categories a:hover { color: var(--brand); }
.catalog-categories [aria-current] { border-color: var(--brand); font-weight: 700; }
.platform + .platform { margin-top: clamp(35px, 5vw, 68px); }
.platform h2 { margin: 0 0 14px; font-size: clamp(22px, 2.5vw, 30px); }
.catalog-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.catalog-list li { border-bottom: 1px solid var(--line); }
.catalog-row { display: grid; grid-template-columns: 110px minmax(75px, .24fr) minmax(0, 1fr) auto; gap: 12px clamp(12px, 3vw, 35px); align-items: center; padding: 12px 3px; text-decoration: none; }
.catalog-row:hover, .catalog-row:focus-visible { color: var(--brand); }
.catalog-row strong { font-variant-numeric: tabular-nums; }
.catalog-row small { display: block; margin-top: 2px; color: var(--muted); }
.row-photo { display: grid; height: 58px; place-items: center; }
.row-photo img { display: block; width: 90%; height: 50px; object-fit: contain; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: start; gap: clamp(24px, 4vw, 56px); }
.gallery { margin: 0; background: var(--surface); padding: clamp(12px, 3vw, 32px); }
.compact-gallery { width: min(100%, 420px); justify-self: center; }
.detail-image { display: grid; place-items: center; width: 100%; height: clamp(185px, 26vw, 370px); }
.compact-gallery .detail-image { height: clamp(138px, 20vw, 215px); }
.detail-image img { display: block; width: min(100%, var(--photo-width)); height: 100%; object-fit: contain; }
.gallery-select { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.gallery-select a { display: grid; place-items: center; width: 87px; height: 66px; padding: 4px; border: 1px solid var(--line); background: #fff; }
.gallery-select a:hover { border-color: var(--brand); }
.gallery-select img { width: 100%; height: 100%; object-fit: contain; }
.product-number { margin: 0 0 10px; color: var(--brand); font-size: clamp(30px, 3vw, 38px); line-height: 1.15; font-weight: 700; font-variant-numeric: tabular-nums; }
.spec-note { color: var(--muted); }
.detail-summary .site-heading { text-wrap: balance; }
.detail-summary .site-action { margin-block: 24px; }
.detail-summary .site-text-link { display: inline-block; margin-top: 16px; }
.full-specs { margin-top: clamp(40px, 7vw, 90px); }
.full-specs h2 { font-size: clamp(24px, 3vw, 34px); }
.full-specs h3 { margin: 25px 0 10px; }
.related-models a { margin-inline-start: 8px; }
.site-footer { background: #1b1e23; color: #fff; }
.footer-content { display: grid; grid-template-columns: 1fr 1fr auto; gap: 28px; align-items: start; padding-block: 38px; }
.footer-content p { margin: 5px 0; }
.footer-content address { display: grid; gap: 6px; font-style: normal; }
.footer-qr { margin: 0; text-align: center; font-size: 13px; }
.footer-qr img { display: block; margin: 0 auto 5px; }
.filings { display: flex; gap: 8px 24px; flex-wrap: wrap; padding-block: 14px; border-top: 1px solid #52565b; font-size: 12px; }
.filings a { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.filings a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  html { scroll-padding-top: 115px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 8px; }
  .navigation { flex-wrap: wrap; gap: 0 clamp(11px, 4vw, 30px); }
  .navigation a { min-height: 43px; font-size: 14px; }
  .detail-layout, .series-grid { grid-template-columns: 1fr; }
  .detail-image { height: clamp(172px, 51vw, 345px); }
  .spec-table th { width: 32%; }
  .footer-content { grid-template-columns: 1fr auto; }
  .footer-content address { grid-column: 1; }
  .footer-qr { grid-area: 1 / 2 / 3 / 3; }
}

@media (max-width: 540px) {
  .catalog-row { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 1px 12px; }
  .catalog-row .row-photo { grid-row: 1 / 3; }
  .catalog-row > :nth-child(3) { grid-area: 2 / 2; }
  .catalog-row > :last-child { grid-area: 1 / 3 / 3; }
  .row-photo { height: 48px; }
  .row-photo img { height: 40px; }
}

@media (max-width: 480px) {
  .footer-content { display: flex; flex-direction: column; gap: 18px; }
}
