:root {
  --bg: #f7f1e8;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #ffffff;
  --text: #161513;
  --muted: #635f58;
  --border: rgba(22, 21, 19, 0.08);
  --border-strong: rgba(22, 21, 19, 0.16);
  --accent: #9a5b41;
  --accent-2: #c79f6f;
  --shadow: 0 20px 60px rgba(56, 38, 22, 0.08);
  --shadow-strong: 0 24px 74px rgba(56, 38, 22, 0.12);
  --frame-gradient: linear-gradient(145deg, rgba(154, 91, 65, 0.34), rgba(255, 255, 255, 0.92) 34%, rgba(199, 159, 111, 0.18));
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(199, 159, 111, 0.16), transparent 24%),
    radial-gradient(circle at 85% 0%, rgba(154, 91, 65, 0.12), transparent 22%),
    linear-gradient(180deg, #fbf7f2 0%, #f4ece3 100%);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(22, 21, 19, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.65;
}

a { color: inherit; text-decoration: none; }
button,
input {
  font: inherit;
}

.site-shell {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #1d1816, #6b4130);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  flex-wrap: wrap;
}

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

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
}

.lang-btn {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.lang-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #1d1816, #6b4130);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px 0 20px;
}

.hero-copy {
  padding: 8px 6px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(154, 91, 65, 0.16);
  background: rgba(154, 91, 65, 0.08);
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.contact-card h2,
.detail-head h1 {
  margin: 14px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  line-height: 0.98;
  max-width: 11ch;
}

.hero p,
.sidebar-note p,
.contact-card p,
.detail-summary,
.catalog-tools input,
.aside-card p,
.detail-breadcrumb,
.catalog-summary,
.detail-meta,
.related-item span {
  color: var(--muted);
  line-height: 1.75;
}

.hero p {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: 1.04rem;
}

.hero-actions,
.contact-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #1d1816, #6b4130);
}

.btn-secondary {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.76);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-pills span,
.meta-chip,
.chip,
.viewer-note {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.76);
}

.hero-pills span {
  padding: 9px 13px;
  color: var(--muted);
}

.hero-visual {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
  min-height: 640px;
}

.hero-visual-main,
.hero-visual-stack img,
.card-media,
.main-shot,
.aside-card,
.contact-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.hero-visual-main {
  min-height: 100%;
}

.hero-visual-main img,
.hero-visual-stack img,
.card-media img,
.main-shot img,
.gallery-item img,
.thumb img,
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.hero-visual-stack {
  display: grid;
  gap: 14px;
}

.featured-strip,
.catalog-section,
.contact-section,
.detail-page {
  margin-top: 56px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.section-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 2.6vw, 3rem);
}

.section-head p {
  margin: 0;
  max-width: 58ch;
}

.featured-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(250px, 26vw, 340px);
  grid-template-rows: 1fr;
  gap: 16px;
  width: max-content;
  min-width: 100%;
}

.featured-carousel {
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.featured-carousel::-webkit-scrollbar {
  height: 10px;
}

.featured-carousel::-webkit-scrollbar-thumb {
  background: rgba(154, 91, 65, 0.24);
  border-radius: 999px;
}

.featured-caption {
  margin: -2px 0 14px;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.75;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.carousel-btn:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: var(--shadow-strong);
}

.featured-card {
  position: relative;
  scroll-snap-align: start;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.82)) padding-box,
    var(--frame-gradient) border-box;
  box-shadow: var(--shadow-strong);
}

.featured-card .card-media {
  aspect-ratio: 1 / 1;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  scroll-snap-align: start;
}

.featured-card .card-body {
  padding: 16px 16px 18px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.catalog-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.sidebar-card,
.aside-card {
  position: relative;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)) padding-box,
    linear-gradient(145deg, rgba(154, 91, 65, 0.22), rgba(255, 255, 255, 0.88) 40%, rgba(199, 159, 111, 0.16)) border-box;
  box-shadow: var(--shadow-strong);
}

.sidebar-card h3,
.aside-title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 800;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  min-height: 42px;
  padding: 0 16px;
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.chip.active {
  color: #fff;
  background: linear-gradient(135deg, #1d1816, #6b4130);
  border-color: transparent;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(154, 91, 65, 0.2);
  color: var(--text);
}

.catalog-tools {
  flex: 0 0 min(420px, 100%);
}

.catalog-tools input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  outline: none;
}

.catalog-tools input:focus {
  border-color: rgba(154, 91, 65, 0.38);
  box-shadow: 0 0 0 4px rgba(154, 91, 65, 0.08);
}

.catalog-summary {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.catalog-summary span:first-child {
  padding: 8px 14px;
  border-radius: 999px;
  background: #1d1816;
  color: #fff;
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: block;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.84)) padding-box,
    var(--frame-gradient) border-box;
  box-shadow: var(--shadow-strong);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 84px rgba(56, 38, 22, 0.16);
}

.card-media {
  aspect-ratio: 1 / 1.04;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: #fff;
}

.card-body {
  padding: 16px 16px 18px;
}

.card-body h3 {
  margin: 0;
  font-size: 1rem;
}

.card-body p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.93rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.meta-chip {
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.82);
}

.card-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.card-link-row span {
  color: var(--accent);
  font-weight: 700;
}

.featured-link {
  color: var(--accent);
  font-weight: 700;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.84)) padding-box,
    linear-gradient(145deg, rgba(154, 91, 65, 0.24), rgba(255, 255, 255, 0.92) 35%, rgba(199, 159, 111, 0.18)) border-box;
  box-shadow: var(--shadow-strong);
}

.detail-breadcrumb {
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.detail-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.detail-head h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.98;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 18px;
  align-items: start;
}

.detail-gallery {
  display: grid;
  gap: 16px;
}

.main-shot {
  aspect-ratio: 1 / 1;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #fff 0%, #f8f6f1 100%) padding-box,
    var(--frame-gradient) border-box;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.thumb {
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 241, 0.96)) padding-box,
    linear-gradient(145deg, rgba(154, 91, 65, 0.22), rgba(255, 255, 255, 0.92) 38%, rgba(199, 159, 111, 0.15)) border-box;
  cursor: pointer;
  overflow: hidden;
}

.thumb.active {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(154, 91, 65, 0.08);
}

.angle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  border: 1px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 241, 0.96)) padding-box,
    linear-gradient(145deg, rgba(154, 91, 65, 0.22), rgba(255, 255, 255, 0.92) 38%, rgba(199, 159, 111, 0.15)) border-box;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.detail-aside {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.info-list {
  display: grid;
  gap: 14px;
}

.info-list span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.info-list strong {
  font-size: 1.03rem;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)) padding-box,
    linear-gradient(145deg, rgba(154, 91, 65, 0.16), rgba(255, 255, 255, 0.92) 42%, rgba(199, 159, 111, 0.12)) border-box;
}

.related-thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.related-item strong {
  display: block;
  margin-bottom: 4px;
}

.empty-state {
  padding: 26px;
  border: 1px dashed var(--border-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}

@media (max-width: 1220px) {
  .hero,
  .detail-layout,
  .catalog-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar,
  .detail-aside {
    position: static;
  }

  .hero-visual {
    min-height: 560px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-grid {
    grid-auto-columns: minmax(240px, 72vw);
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 18px, 1380px);
    padding-top: 10px;
  }

  .topbar {
    top: 8px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    gap: 18px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-visual,
  .product-grid,
  .angle-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    grid-auto-columns: minmax(220px, 84vw);
  }

  .hero-visual {
    min-height: 500px;
  }

  .section-head,
  .detail-head {
    align-items: start;
    flex-direction: column;
  }

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

  .catalog-summary {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
