:root {
  --ink: #20211d;
  --muted: #6f736b;
  --soft: #8b8f85;
  --line: #ded9ce;
  --paper: #f7f3ea;
  --surface: #fffdf8;
  --leaf: #285845;
  --leaf-2: #3d725d;
  --amber: #b7833a;
  --warn: #7e352d;
  --shadow: 0 18px 44px rgba(38, 34, 25, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 260px),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.top-warning {
  padding: 6px 16px;
  background: #33251d;
  color: #f7ead8;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 10px clamp(18px, 5vw, 64px);
  background: rgba(247, 243, 234, .94);
  border-bottom: 1px solid rgba(110, 95, 72, .18);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--leaf);
  font-weight: 850;
  font-size: 20px;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(110, 95, 72, .14);
  border-radius: 8px;
}

.site-header nav a {
  padding: 7px 11px;
  border-radius: 6px;
  color: #3c443d;
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
}

.site-header nav a:hover { background: #eef1ea; color: var(--leaf); }

.language-switcher { margin: 0; }

.language-switcher select {
  width: auto;
  min-width: 118px;
  height: 34px;
  padding: 4px 28px 4px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

main { min-height: 68vh; }

.hero {
  min-height: 360px;
  display: grid;
  align-items: end;
  padding: 56px clamp(18px, 7vw, 86px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(23, 39, 31, .95), rgba(36, 57, 45, .66), rgba(36, 57, 45, .18)),
    url("https://images.unsplash.com/photo-1602928298849-325cec8771c0?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero > div { max-width: 780px; }

.eyebrow {
  margin: 0 0 10px;
  color: #e6c987;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.08;
}

.hero p {
  margin: 0 0 12px;
  max-width: 720px;
  font-size: 18px;
}

.hero-note {
  display: inline-block;
  padding: 8px 12px;
  border-left: 4px solid var(--amber);
  background: rgba(0,0,0,.18);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 38px clamp(18px, 5vw, 64px);
}

.section-grid h2,
.page-title h1,
.score-band h2,
.content-body h2 {
  margin-top: 0;
  line-height: 1.25;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  padding: 0 clamp(18px, 6vw, 72px) 44px;
}

.section-grid .card-grid { padding: 0; }

.product-card,
.list-item,
.article-list article,
.reading-panel,
.param-table,
.score-band div {
  background: var(--surface);
  border: 1px solid rgba(110, 95, 72, .18);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(38, 34, 25, .04);
}

.product-card {
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.product-card a { display: block; padding: 12px; }

.thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #e9e5db;
  border-radius: 6px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card h3 {
  margin: 11px 0 4px;
  font-size: 17px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 46px;
}

.product-card p,
.meta,
.source,
.article-link small,
.list-item small {
  color: var(--muted);
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.product-spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  background: #f2f5ef;
  border: 1px solid #e1e6db;
  border-radius: 6px;
}

.product-spec span { color: var(--muted); font-size: 12px; }
.product-spec strong { color: var(--leaf); font-size: 15px; }

.reading-panel {
  align-self: start;
  position: sticky;
  top: 82px;
  padding: 18px;
  background: #eef2e8;
}

.article-link {
  display: block;
  padding: 12px 0;
  border-top: 1px solid rgba(110, 95, 72, .18);
}

.article-link span { display: block; font-weight: 700; }
.article-link small { display: block; margin-top: 2px; }

.knowledge-band {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 24px clamp(18px, 5vw, 64px);
  background: #e9efe5;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.knowledge-band a,
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 7px;
  background: var(--leaf);
  color: #fff;
  cursor: pointer;
  font: inherit;
  line-height: 1.25;
}

.button.ghost,
.ghost {
  background: transparent;
  color: var(--leaf);
  border: 1px solid var(--leaf);
}

.page-title {
  padding: 34px clamp(18px, 6vw, 72px) 20px;
}

.page-title p {
  max-width: 880px;
  color: var(--muted);
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 110px;
  gap: 10px;
  padding: 0 clamp(18px, 6vw, 72px) 24px;
}

input,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 11px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 500px) minmax(0, 1fr);
  gap: 32px;
  padding: 28px clamp(18px, 6vw, 72px);
  align-items: start;
}

.gallery {
  position: sticky;
  top: 82px;
}

.main-product-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e9e5db;
  border: 1px solid rgba(110, 95, 72, .18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.thumb-button {
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  opacity: .72;
  transition: opacity .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.thumb-button img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.thumb-button:hover,
.thumb-button:focus {
  opacity: 1;
  outline: 2px solid rgba(183, 131, 58, .32);
  outline-offset: 2px;
}

.thumb-button.active {
  opacity: 1;
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(183, 131, 58, .22);
}

.detail-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.trade-note {
  display: inline-block;
  margin: 0 0 12px;
  padding: 7px 10px;
  background: #fff4d9;
  border: 1px solid #dfc57e;
  border-radius: 7px;
  color: #5f4420;
  font-size: 14px;
}

.param-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  overflow: hidden;
}

.param-table th,
.param-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(110, 95, 72, .16);
  text-align: left;
  vertical-align: top;
}

.param-table th {
  width: 150px;
  color: var(--muted);
  background: #f3f0e8;
  font-weight: 650;
}

.param-table td {
  overflow-wrap: anywhere;
}

.score-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 12px;
  padding: 0 clamp(18px, 6vw, 72px) 22px;
}

.score-band h2 { grid-column: 1 / -1; margin-bottom: 0; }

.score-band div {
  padding: 12px;
}

.score-band span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.score-band strong {
  display: block;
  margin-top: 4px;
  color: var(--leaf);
  font-size: 26px;
  line-height: 1;
}

.content-body,
.static-page,
.article-detail {
  max-width: 980px;
  padding: 24px clamp(18px, 6vw, 72px) 50px;
}

.content-body p,
.static-page p,
.article-detail p {
  max-width: 78ch;
}

.english-detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.english-detail-list li {
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px clamp(18px, 6vw, 72px) 0;
  color: var(--muted);
  font-size: 14px;
}

.list-grid,
.article-list,
.sitemap-cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 0 clamp(18px, 6vw, 72px) 46px;
}

.list-item,
.article-list article {
  padding: 18px;
}

.list-item h2,
.article-list h2 {
  margin-top: 0;
  font-size: 20px;
  line-height: 1.3;
}

.sitemap-cols a {
  display: block;
  margin: 7px 0;
  color: var(--leaf);
}

.sitemap-page {
  padding: 0 clamp(18px, 6vw, 72px) 54px;
}

.sitemap-title {
  padding-bottom: 12px;
}

.sitemap-section {
  margin-top: 18px;
}

.sitemap-section h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.25;
}

.sitemap-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.sitemap-link-grid a,
.sitemap-product-links a {
  display: block;
  min-width: 0;
  color: var(--leaf);
  overflow-wrap: anywhere;
}

.sitemap-link-grid a {
  padding: 11px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 650;
}

.sitemap-link-grid a:hover,
.sitemap-product-links a:hover,
.sitemap-brand h3 a:hover {
  color: var(--amber);
}

.sitemap-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.sitemap-brand {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(38, 34, 25, .05);
}

.sitemap-brand header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(110, 95, 72, .14);
}

.sitemap-brand h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.sitemap-brand header span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.sitemap-product-links {
  columns: 2 180px;
  column-gap: 22px;
  padding-top: 10px;
}

.sitemap-product-links a {
  break-inside: avoid;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.45;
}

.site-footer {
  padding: 28px clamp(18px, 5vw, 64px);
  background: #1c2c23;
  color: #dfe7dd;
}

.site-footer a { color: #fff; }
.eeta-notice { color: #adbaaa; font-size: 13px; }

.age-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(13, 18, 15, .72);
}

.age-modal.show { display: grid; }

.age-dialog {
  width: min(520px, 100%);
  padding: 24px;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0,0,0,.35);
}

.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) {
  .section-grid,
  .product-detail {
    display: block;
  }

  .reading-panel,
  .gallery,
  .detail-copy {
    position: static;
    margin-top: 20px;
  }

  .product-detail {
    padding-top: 20px;
  }
}

@media (max-width: 720px) {
  body { font-size: 15px; }

  .top-warning {
    padding: 5px 10px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 7px 10px;
    min-height: 0;
    padding: 7px 10px 8px;
  }

  .brand {
    font-size: 17px;
    line-height: 1.15;
  }

  .language-switcher {
    grid-column: 2;
    grid-row: 1;
  }

  .language-switcher select {
    min-width: 96px;
    max-width: 122px;
    height: 30px;
    padding: 3px 7px;
    font-size: 12px;
  }

  .site-header nav {
    grid-column: 1 / -1;
    width: 100%;
    overflow-x: auto;
    gap: 2px;
    padding: 2px;
    border-radius: 7px;
    scrollbar-width: none;
  }

  .site-header nav::-webkit-scrollbar { display: none; }

  .site-header nav a {
    padding: 6px 9px;
    font-size: 13px;
  }

  .hero {
    min-height: 260px;
    padding: 40px 16px 34px;
  }

  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15px; }

  .section-grid,
  .page-title,
  .product-detail,
  .content-body,
  .static-page,
  .article-detail,
  .sitemap-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-grid { padding-top: 28px; padding-bottom: 26px; }

  .card-grid,
  .list-grid,
  .article-list,
  .sitemap-cols {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .product-card a { padding: 10px; }

  .product-card {
    display: block;
  }

  .product-card h3 {
    min-height: 0;
    font-size: 16px;
  }

  .filters {
    grid-template-columns: 1fr;
    padding-left: 14px;
    padding-right: 14px;
  }

  .thumb-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .param-table th,
  .param-table td {
    display: block;
    width: 100%;
  }

  .param-table th {
    padding-bottom: 3px;
    border-bottom: 0;
  }

  .param-table td {
    padding-top: 3px;
  }

  .score-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 14px;
    padding-right: 14px;
  }

  .sitemap-brand-grid,
  .sitemap-link-grid {
    grid-template-columns: 1fr;
  }

  .sitemap-brand {
    padding: 13px;
  }

  .sitemap-brand header {
    display: block;
  }

  .sitemap-brand header span {
    display: block;
    margin-top: 3px;
  }

  .knowledge-band {
    justify-content: flex-start;
    padding: 18px 14px;
  }
}
