:root {
  --ink: #1e2428;
  --muted: #66727a;
  --line: #d8ded9;
  --paper: #f7f6f1;
  --surface: #ffffff;
  --leaf: #315f4b;
  --gold: #b28b43;
  --red: #8b3434;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.top-warning {
  background: var(--red);
  color: #fff;
  padding: 8px 18px;
  text-align: center;
  font-size: 14px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(16px, 5vw, 56px);
  background: rgba(247,246,241,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand { font-weight: 800; letter-spacing: 0; color: var(--leaf); }
.site-header nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
main { min-height: 68vh; }
.hero {
  min-height: 480px;
  display: grid;
  align-items: end;
  padding: 72px clamp(18px, 7vw, 84px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(22,35,30,.92), rgba(22,35,30,.50)),
    url("https://images.unsplash.com/photo-1510812431401-41d2bd2722f3?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.hero > div { max-width: 760px; }
.hero h1 { margin: 0 0 12px; font-size: clamp(36px, 7vw, 72px); line-height: 1.05; }
.hero p { font-size: 18px; max-width: 720px; }
.eyebrow { color: #e6c56f; text-transform: uppercase; font-weight: 700; }
.hero-note { border-left: 4px solid var(--gold); padding-left: 14px; }
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  padding: 48px clamp(18px, 5vw, 64px);
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    padding: 0 clamp(18px, 6vw, 72px);
}
.section-grid .card-grid {
    padding: 0;
}
.product-card, .list-item, .article-list article, .stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.product-card a { display: block; padding: 14px; }
.thumb {
  aspect-ratio: 4 / 3;
  background: #e9ebe4;
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card h3 { margin: 12px 0 4px; font-size: 18px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card p, .article-link small, .meta, .source { color: var(--muted); }
.product-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.product-spec { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #f7f8f4; }
.product-spec span { color: var(--muted); font-size: 12px; }
.product-spec strong { color: var(--ink); font-size: 15px; font-weight: 800; }
.reading-panel {
  background: #edf1ea;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  align-self: start;
}
.article-link { display: block; padding: 12px 0; border-top: 1px solid var(--line); }
.article-link span, .article-link small { display: block; }
.knowledge-band {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 32px clamp(18px, 5vw, 64px);
  background: #243c34;
  color: #fff;
}
.knowledge-band a, .button, button {
  border: 0;
  border-radius: 6px;
  background: var(--leaf);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
}
.button.ghost, button.ghost, .ghost { background: transparent; color: var(--leaf); border: 1px solid var(--leaf); }
.page-title, .notice-panel, .static-page, .article-detail { padding: 44px clamp(18px, 6vw, 72px); }
.brand-intro { display: flex; align-items: center; gap: 24px; padding: 36px clamp(18px, 6vw, 72px) 24px; }
.brand-intro-logo { width: 112px; height: 112px; flex: 0 0 112px; object-fit: contain; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(23, 42, 34, .08); }
.brand-intro h1 { margin: 0 0 8px; }
.brand-intro p { max-width: 900px; color: var(--muted); line-height: 1.75; }
.brand-intro .brand-origin { margin: 0 0 10px; color: var(--ink); font-weight: 700; }
@media (max-width: 640px) {
  .brand-intro { align-items: flex-start; gap: 14px; }
  .brand-intro-logo { width: 76px; height: 76px; flex-basis: 76px; padding: 8px; }
  .product-specs { grid-template-columns: 1fr; }
}
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 0 clamp(18px, 6vw, 72px) 24px;
  align-items: end;
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 120px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 32px; }
.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
  gap: 36px;
  padding: 32px clamp(18px, 6vw, 72px);
}
.main-product-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e9ebe4;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.thumb-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.thumb-row img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.trade-note { display: inline-block; background: #fff3d8; border: 1px solid #e1c477; border-radius: 6px; padding: 8px 10px; }
.param-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.param-table th, .param-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.param-table th { width: 140px; color: var(--muted); background: #f1f3ee; }
.content-body { padding: 20px clamp(18px, 6vw, 72px) 48px; max-width: 980px; }
.breadcrumb { padding: 24px clamp(18px, 6vw, 72px) 0; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.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) 48px;
}
.list-item, .article-list article { padding: 18px; }
.list-item .brand-logo {
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: cover;
    margin: 0 auto 16px;
    display: block;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.list-grid .list-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.sitemap-cols a { display: block; margin: 8px 0; color: var(--leaf); }
.site-footer { padding: 28px clamp(18px, 5vw, 64px); background: #16231e; color: #dfe6df; }
.site-footer a { color: #fff; }
.site-footer .eeta-notice { margin-top: 12px; font-size: 13px; color: #9aaa9c; }
.language-switcher { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.language-switcher select { width: auto; min-width: 120px; padding: 6px 10px; font-size: 14px; }
.translation-note { display: inline-block; background: #ffeaea; border: 1px solid #e1a0a0; color: #8b3434; border-radius: 6px; padding: 8px 10px; margin: 8px 0; }
.age-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(9, 16, 13, .72);
}
.age-modal.show { display: grid; }
.age-dialog {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 8px;
  padding: 26px;
  box-shadow: 0 20px 80px rgba(0,0,0,.35);
}
.age-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-body { background: #eef0ed; }
.admin-side {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  overflow: auto;
  padding: 18px;
  background: #172720;
  color: #fff;
}
.admin-side a { display: block; padding: 9px 10px; border-radius: 6px; }
.admin-side a:hover { background: rgba(255,255,255,.08); }
.admin-main { margin-left: 230px; padding: 28px; }
.admin-login { max-width: 420px; margin: 10vh auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.stat-card { padding: 20px; }
.stat-card strong { display: block; font-size: 34px; color: var(--leaf); }
.settings-panel, .table-wrap, .admin-form {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.admin-form label, .settings-panel label, .admin-login label { display: block; margin-bottom: 14px; font-weight: 600; }
.admin-title { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: 9px; text-align: left; vertical-align: top; }
.error { color: var(--red); }
@media (max-width: 840px) {
  .site-header, .section-grid, .product-detail { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
  .section-grid { display: block; }
  .reading-panel { margin-top: 24px; }
  .filters { grid-template-columns: 1fr; }
  .product-detail { display: block; }
  .detail-copy { margin-top: 20px; }
  .admin-side { position: static; width: auto; }
  .admin-main { margin-left: 0; padding: 16px; }
  .table-wrap { overflow-x: auto; }
}
