:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-alt: #f4efe8;
  --text: #171513;
  --muted: #6f675c;
  --line: #e2dcd3;
  --accent: #7a5c45;
  --brand: #1a5160;
  --brand-soft: rgba(26, 81, 96, 0.08);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.06);
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; }
body {
  font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; object-fit: cover; }
.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 220, 211, 0.8);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 24px; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--brand);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-logo { width: auto; height: 52px; max-width: 210px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 550; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); font-weight: 760; }
.lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 3px;
  border: 1px solid rgba(26, 81, 96, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 18px rgba(23, 21, 19, 0.06);
  white-space: nowrap;
}
.lang a { min-height: 30px; padding: 0 10px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 760; display: inline-flex; align-items: center; }
.lang a[aria-current="page"] { color: #fff; background: var(--brand); }

.note-strip {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  background: #fff8ea;
  color: #5d4a32;
  font-size: 13px;
  font-weight: 650;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.breadcrumb a { color: var(--brand); }
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 42px;
  align-items: start;
  padding: 18px 0 58px;
}
.product-hero > *, .content-grid > * {
  min-width: 0;
}
.gallery {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
}
.main-image {
  min-height: 490px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.main-image img {
  width: 100%;
  height: 100%;
  min-height: 490px;
  object-fit: contain;
  padding: 20px;
  background: #faf8f4;
}
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 12px;
}
.thumb, .image-placeholder {
  min-height: 138px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.thumb {
  position: relative;
  cursor: pointer;
  padding: 0;
  color: inherit;
  text-align: left;
  appearance: none;
}
.thumb.is-active {
  border-color: rgba(26, 81, 96, 0.42);
  box-shadow: 0 0 0 2px rgba(26, 81, 96, 0.08);
}
.thumb img { width: 100%; height: 138px; object-fit: cover; }
.thumb span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 20px);
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}
.image-placeholder {
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 650;
  background: repeating-linear-gradient(135deg, #fff, #fff 12px, #f5efe7 12px, #f5efe7 24px);
}
.detail-panel {
  width: 100%;
  min-width: 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid rgba(26, 81, 96, 0.14);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
h1 {
  color: var(--brand);
  font-size: clamp(32px, 3.35vw, 44px);
  line-height: 1.08;
  font-weight: 780;
  letter-spacing: 0;
  margin-bottom: 12px;
  overflow-wrap: break-word;
  text-wrap: balance;
}
h1 span { display: block; }
h1 .blend-line {
  font-size: 0.88em;
  line-height: 1.12;
}
.code {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  margin-bottom: 22px;
}
.lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 24px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.badges span {
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: #fbfaf7;
  font-size: 12px;
  font-weight: 730;
}
.spec-card {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 26px;
}
.spec-row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.spec-row strong { color: var(--text); font-size: 14px; font-weight: 650; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 760;
}
.btn.primary { color: #fff; background: var(--text); }
.btn.secondary { color: var(--text); border-color: var(--line); background: transparent; }
[hidden] { display: none !important; }
.sample-list-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(26, 81, 96, 0.22);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font: inherit;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.sample-list-btn:hover {
  background: rgba(26, 81, 96, 0.14);
  border-color: rgba(26, 81, 96, 0.38);
}
.sample-list-btn.is-selected {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.actions .detail-sample-btn {
  min-height: 48px;
  padding: 0 22px;
  color: #fff;
  background: var(--text);
  border-color: var(--text);
  font-size: 14px;
}
.actions .detail-sample-btn.is-selected {
  background: var(--brand);
  border-color: var(--brand);
}
.sample-list-bar {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 140;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}
.sample-list-bar.is-visible { display: flex; }
.sample-list-bar button,
.sample-list-drawer button {
  font: inherit;
  cursor: pointer;
}
.sample-list-bar-main {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 760;
}
.sample-list-bar-cta,
.sample-list-primary {
  min-height: 40px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 780;
}
.sample-list-bar-cta:disabled,
.sample-list-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.sample-list-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(31, 26, 23, 0.34);
  backdrop-filter: blur(2px);
}
.sample-list-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 160;
  width: min(440px, calc(100% - 28px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 26px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 50px rgba(31, 26, 23, 0.18);
}
.sample-list-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.sample-list-drawer h2 {
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 8px;
}
.sample-list-drawer p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.sample-list-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}
.sample-list-items {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}
.sample-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.sample-list-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 4px;
}
.sample-list-item span,
.sample-list-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.sample-list-remove,
.sample-list-secondary {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 740;
}
.sample-list-empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
  background: var(--bg);
}
.sample-list-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  padding-bottom: 70px;
}
.section {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.section + .section { margin-top: 22px; }
h2 {
  color: var(--brand);
  font-size: 26px;
  line-height: 1.18;
  margin-bottom: 18px;
  font-weight: 760;
}
h3 {
  color: var(--text);
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 8px;
}
.text-list {
  display: grid;
  gap: 16px;
  color: var(--muted);
  font-size: 15px;
}
.text-list p { line-height: 1.7; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature {
  min-height: 142px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fbfaf7;
}
.feature p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.side-stack {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}
.checklist {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.checklist li {
  list-style: none;
  padding-left: 24px;
  position: relative;
  line-height: 1.55;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.data-note {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #fff8ea;
  border: 1px solid #ead7b7;
  color: #5d4a32;
  font-size: 14px;
  line-height: 1.65;
}
.product-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.comparison-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.comparison-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
}
.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table th {
  color: var(--muted);
  background: #fbfaf7;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.comparison-table strong { color: var(--brand); font-weight: 800; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.related-card {
  display: grid;
  grid-template-rows: 142px 1fr;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 81, 96, 0.28);
  box-shadow: var(--shadow-sm);
}
.related-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  border-radius: inherit;
}
.related-card-link:focus-visible {
  outline: 3px solid rgba(26, 81, 96, 0.35);
  outline-offset: 3px;
}
.related-card img {
  width: 100%;
  height: 142px;
  object-fit: contain;
  padding: 10px;
  background: #faf8f4;
  border-bottom: 1px solid var(--line);
}
.related-card > div {
  display: flex;
  flex-direction: column;
  padding: 16px;
}
.related-code-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.related-code-row h3 {
  min-width: 0;
  font-size: 18px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.related-code-row span {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}
.related-card small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.related-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 8px;
}
.related-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  position: relative;
  z-index: 3;
}
.related-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}
.related-actions .related-sample-btn {
  border-color: rgba(26, 81, 96, 0.22);
  background: var(--brand-soft);
  font-size: 12px;
  flex: 1 1 auto;
}
.footer {
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
@media (max-width: 980px) {
  .nav { justify-content: flex-start; padding-right: 108px; }
  .brand-logo { max-width: 190px; }
  .nav-links { display: none; }
  .site-header .lang {
    position: fixed;
    top: 16px;
    right: 14px;
    z-index: 120;
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: 0;
    transform: none;
  }
  .product-hero, .content-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
  .detail-panel, .gallery, .section { max-width: 100%; }
  .side-stack { position: static; }
  .main-image, .main-image img { min-height: 360px; }
  .feature-grid, .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 14px;
  }
  .nav { gap: 10px; padding-right: 96px; }
  .brand-logo { height: 42px; max-width: 165px; }
  .lang { min-height: 32px; }
  .lang a { min-height: 26px; padding: 0 8px; font-size: 12px; }
  .product-hero { gap: 18px; padding: 12px 0 34px; }
  .detail-panel, .section { padding: 22px; }
  .main-image, .main-image img { min-height: 300px; }
  .thumb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thumb, .image-placeholder { min-height: 120px; }
  .thumb img { height: 120px; }
  .comparison-table { min-width: 680px; table-layout: auto; }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  h1 { font-size: 28px; }
  h1 .blend-line { font-size: 0.96em; }
  .sample-list-bar {
    left: 50%;
    right: auto;
    bottom: 14px;
    width: max-content;
    max-width: calc(100% - 28px);
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    transform: translateX(-50%);
  }
  .sample-list-bar-main { padding: 0 8px; }
  .sample-list-bar-cta { padding: 0 14px; }
  .sample-list-drawer {
    width: 100%;
    padding: 22px;
  }
}
