:root {
  --ink: #13241c;
  --ink-soft: #3d5248;
  --brand: #0f5c45;
  --brand-deep: #0a3d2e;
  --mist: #e7f1ec;
  --paper: #f4f8f6;
  --sand: #d8c4a0;
  --line: rgba(15, 61, 46, 0.12);
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(10, 61, 46, 0.12);
  --radius: 18px;
  --font-display: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  --font-body: "Noto Sans SC", "DM Sans", system-ui, sans-serif;
  --font-latin: "DM Sans", "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--paper);
  min-height: 100vh;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.section-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.topbar,
main > section:not(.hero),
footer {
  position: relative;
  z-index: 1;
}

.topbar {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2.5rem));
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(10, 40, 30, 0.28);
  backdrop-filter: blur(14px);
  color: #f4f8f6;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: rgba(244, 248, 246, 0.86);
}

.nav a:hover,
.topbar-cta:hover {
  color: #f3e7cf;
}

.topbar-cta {
  font-size: 0.9rem;
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f4f8f6;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  transform: scale(1.05);
  animation: drift 14s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 32, 24, 0.88) 0%, rgba(8, 32, 24, 0.72) 34%, rgba(8, 32, 24, 0.28) 62%, rgba(8, 32, 24, 0.18) 100%),
    linear-gradient(180deg, rgba(8, 32, 24, 0.2) 0%, rgba(8, 32, 24, 0.55) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 8.5rem 0 4.5rem;
  animation: rise 0.9s ease both;
}

.brand-mark {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0.14em;
  color: #f3e7cf;
}

.hero h1,
.about h2,
.catalog h2,
.featured h2,
.notice h2,
.contact h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.hero h1 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  max-width: 14em;
  color: #f7faf8;
}

.hero-lead,
.about-text {
  margin: 1rem 0 0;
  color: rgba(244, 248, 246, 0.86);
  font-size: 1.05rem;
  max-width: 32em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-latin);
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: #f3e7cf;
  color: var(--brand-deep);
}

.btn-primary:hover {
  background: #fff4df;
}

.btn-ghost {
  border-color: rgba(243, 231, 207, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #f4f8f6;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6f877b;
  font-family: var(--font-latin);
}

.about,
.featured,
.catalog,
.notice,
.contact {
  padding: 4.5rem 0 0;
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(15, 92, 69, 0.08), transparent 55%),
    radial-gradient(700px 360px at 100% 10%, rgba(216, 196, 160, 0.18), transparent 50%),
    var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: end;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.about-text {
  color: var(--ink-soft);
}

.about h2,
.catalog h2,
.featured h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--brand-deep);
}

.section-head {
  margin-bottom: 1.5rem;
}

.catalog-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
}

.search input {
  width: min(320px, 100%);
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  color: var(--ink);
  outline: none;
}

.search input:focus {
  border-color: rgba(15, 92, 69, 0.45);
  box-shadow: 0 0 0 4px rgba(15, 92, 69, 0.1);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.filter-btn {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn[aria-selected="true"],
.filter-btn:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: var(--white);
}

.result-meta {
  margin: 0 0 1.25rem;
  color: #6f877b;
  font-size: 0.92rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: rise 0.55s ease both;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(15, 92, 69, 0.28);
  box-shadow: var(--shadow);
  outline: none;
}

.product-card .thumb {
  aspect-ratio: 1;
  background:
    linear-gradient(160deg, rgba(231, 241, 236, 0.9), rgba(255, 255, 255, 0.9)),
    var(--mist);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.product-card .thumb img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.product-card:hover .thumb img {
  transform: scale(1.05);
}

.product-card .body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem 1.15rem;
  flex: 1;
}

.product-card .cat {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #6f877b;
}

.product-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.product-card .desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.product-card .price {
  margin-top: auto;
  padding-top: 0.55rem;
  font-family: var(--font-latin);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.featured-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.featured-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(231, 241, 236, 0.7));
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.featured-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.featured-card h3 {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.15rem;
}

.featured-card .price {
  margin: 0;
  font-family: var(--font-latin);
  font-weight: 700;
  color: var(--brand-deep);
}

.notice {
  padding-bottom: 0;
}

.notice .section-inner {
  padding: 1.5rem 1.4rem;
  border-radius: 22px;
  background: rgba(15, 61, 46, 0.05);
  border: 1px solid var(--line);
}

.notice h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--brand-deep);
}

.notice ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.contact {
  padding-bottom: 4rem;
}

.contact-panel {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 196, 160, 0.35), transparent 50%),
    linear-gradient(160deg, #0f5c45, #0a3d2e);
  color: #f4f8f6;
  box-shadow: var(--shadow);
  animation: rise 0.8s ease both;
}

.contact-panel .brand-mark {
  color: #f3e7cf;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.contact-panel h2 {
  color: #f7faf8;
}

.contact-panel p {
  margin: 0.75rem auto 1.4rem;
  max-width: 28em;
  color: rgba(244, 248, 246, 0.82);
}

.contact-panel .btn-primary {
  background: #f3e7cf;
  color: var(--brand-deep);
}

.footer {
  padding: 2rem 0 3rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  background: var(--paper);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.footer strong {
  color: var(--brand-deep);
}

.footer a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.source {
  max-width: 38em;
  margin: 0;
}

dialog {
  border: none;
  border-radius: 24px;
  padding: 0;
  width: min(520px, calc(100vw - 2rem));
  background: var(--white);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(10, 30, 22, 0.45);
  backdrop-filter: blur(4px);
}

.dialog-shell {
  position: relative;
  margin: 0;
}

.dialog-shell img {
  width: 100%;
  aspect-ratio: 1.1;
  object-fit: contain;
  background: var(--mist);
  padding: 1.5rem;
}

.dialog-body {
  padding: 0 1.35rem 1.5rem;
}

.dialog-cat {
  margin: 0;
  color: #6f877b;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.dialog-body h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.3rem;
}

.dialog-desc,
.dialog-meta {
  margin: 0.25rem 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.dialog-price {
  margin: 0.9rem 0 0;
  font-family: var(--font-latin);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.dialog-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.empty {
  grid-column: 1 / -1;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: scale(1.05) translateY(0);
  }
  to {
    transform: scale(1.1) translateY(-1.8%);
  }
}

@media (max-width: 900px) {
  .about-grid,
  .product-grid,
  .featured-row {
    grid-template-columns: 1fr 1fr;
  }

  .featured-card {
    grid-template-columns: 120px 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    width: calc(100% - 1.25rem);
    padding: 0.75rem 0.9rem;
  }

  .nav {
    display: none;
  }

  .hero-copy,
  .section-inner {
    width: calc(100% - 1.25rem);
  }

  .hero-copy {
    padding: 7.5rem 0 3.25rem;
  }

  .about-grid,
  .product-grid,
  .featured-row {
    grid-template-columns: 1fr;
  }

  .featured-card {
    grid-template-columns: 100px 1fr;
  }

  .about,
  .featured,
  .catalog,
  .notice,
  .contact {
    padding-top: 3rem;
  }
}

.footer-icp {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.25rem;
  padding-top: 1rem;
  white-space: nowrap;
}

.footer-gongan {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.footer-gongan img {
  width: 16px;
  height: 16px;
  flex: none;
}
