:root {
  --ink: #17233a;
  --ink-soft: #46536a;
  --paper: #f7f4ed;
  --paper-2: #ebe5d8;
  --wood: #5a2f21;
  --wood-dark: #301811;
  --copper: #b8874d;
  --green: #657a57;
  --red: #a63e32;
  --line: rgba(23, 35, 58, 0.14);
  --shadow: 0 22px 60px rgba(24, 24, 24, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 52px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(247, 244, 237, 0.94);
  box-shadow: 0 10px 30px rgba(23, 35, 58, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 156px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-family: KaiTi, STKaiti, serif;
  font-size: 24px;
  line-height: 1;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.78;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: 14px;
}

.nav a {
  opacity: 0.86;
}

.nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 112px clamp(22px, 6vw, 76px) 64px;
  color: #fff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(15, 20, 26, 0.74), rgba(15, 20, 26, 0.3) 48%, rgba(15, 20, 26, 0.08)),
    linear-gradient(0deg, rgba(15, 20, 26, 0.42), rgba(15, 20, 26, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: KaiTi, STKaiti, serif;
  font-size: clamp(52px, 10vw, 116px);
  font-weight: 700;
  line-height: 0.95;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: clamp(18px, 2vw, 25px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 700;
}

.primary-action {
  color: var(--wood-dark);
  background: #f6dfb8;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.hero-notes {
  position: absolute;
  right: clamp(18px, 4vw, 52px);
  bottom: 58px;
  z-index: 2;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 320px;
  justify-content: flex-end;
}

.hero-notes span {
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 13px;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #fffaf0;
}

.quick-strip a {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 14px 10px;
  border-right: 1px solid var(--line);
  color: var(--wood-dark);
  font-weight: 700;
}

.quick-strip a:hover {
  background: #efe3ce;
}

.section {
  padding: clamp(64px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2,
.craft-copy h2,
.contact h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.12;
}

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

.feature-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.feature-panel img {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
}

.feature-panel div {
  padding: 22px;
}

.feature-panel span,
.product-meta span {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.feature-panel h3,
.product-meta h3 {
  margin: 6px 0 8px;
  line-height: 1.25;
}

.feature-panel p,
.product-meta p,
.craft-copy p,
.contact p {
  margin: 0;
  color: var(--ink-soft);
}

.craft {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  background: var(--ink);
  color: #fff;
}

.craft-copy p {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 22px;
  font-size: 17px;
}

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

.craft-points div {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.craft-points strong {
  color: var(--copper);
  font-size: 15px;
}

.craft-points span {
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.25;
}

.gallery-section {
  background: #fbfaf6;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  color: #fff;
  border-color: var(--wood);
  background: var(--wood);
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(23, 35, 58, 0.13);
}

.product-card.hidden {
  display: none;
}

.image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.image-button img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}

.product-meta {
  padding: 18px;
}

.product-meta h3 {
  font-size: 20px;
}

.product-meta p {
  font-size: 14px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: 36px;
  align-items: start;
  background:
    linear-gradient(90deg, rgba(247, 244, 237, 0.92), rgba(247, 244, 237, 0.7)),
    url("assets/optimized/02_Rk6rNb_1685439936542-hero.webp") center/cover;
}

.contact p {
  max-width: 720px;
  margin-top: 18px;
}

.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.contact-panel dl {
  margin: 0;
}

.contact-panel div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.contact-panel div:last-child {
  border-bottom: 0;
}

.contact-panel dt {
  color: var(--ink-soft);
}

.contact-panel dd {
  margin: 0;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--wood-dark);
  font-size: 14px;
}

.mobile-cta {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 30;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(48, 24, 17, 0.96);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.mobile-cta-item {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-cta-item:last-child {
  border-right: 0;
}

.mobile-cta-item:active {
  background: rgba(255, 255, 255, 0.1);
}

.cta-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: var(--wood-dark);
  background: #f6dfb8;
  font-size: 13px;
  line-height: 1;
}

.wechat-dialog {
  width: min(420px, calc(100vw - 30px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.wechat-dialog::backdrop {
  background: rgba(5, 7, 10, 0.62);
}

.wechat-box {
  padding: 28px;
  text-align: center;
}

.qr-placeholder {
  width: min(240px, 72vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border: 1px dashed rgba(90, 47, 33, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(90, 47, 33, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(90, 47, 33, 0.08) 1px, transparent 1px),
    #f7f1e6;
  background-size: 18px 18px;
  color: var(--wood);
  font-weight: 800;
}

.qr-placeholder span,
.qr-placeholder small {
  grid-column: 1;
  grid-row: 1;
}

.qr-placeholder small {
  margin-top: 42px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 400;
}

.wechat-box h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.wechat-box p {
  margin: 10px 0 18px;
  color: var(--ink-soft);
}

.wechat-box dl {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
}

.wechat-box dl div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.wechat-box dl div:last-child {
  border-bottom: 0;
}

.wechat-box dt {
  color: var(--ink-soft);
}

.wechat-box dd {
  margin: 0;
  font-weight: 700;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.lightbox {
  width: min(1120px, calc(100vw - 30px));
  max-height: calc(100svh - 30px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(5, 7, 10, 0.78);
}

.lightbox img {
  width: 100%;
  max-height: calc(100svh - 92px);
  object-fit: contain;
  background: #111;
}

.lightbox p {
  margin: 0;
  padding: 12px 18px 16px;
  font-weight: 700;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    max-width: 360px;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .hero {
    min-height: 74svh;
  }

  .hero-notes {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 2;
    margin-top: 34px;
    justify-content: flex-start;
  }

  .intro-grid,
  .product-grid,
  .craft,
  .contact {
    grid-template-columns: 1fr;
  }

  .quick-strip {
    grid-template-columns: repeat(5, minmax(132px, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 82px;
  }

  .mobile-cta {
    display: grid;
  }

  .site-header {
    padding: 12px 14px;
  }

  .brand {
    min-width: auto;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 21px;
  }

  .brand small {
    display: none;
  }

  .nav {
    gap: 8px 12px;
    font-size: 12px;
  }

  .hero {
    min-height: 72svh;
    padding: 106px 18px 36px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .section {
    padding: 54px 16px;
  }

  .craft-points {
    grid-template-columns: 1fr;
  }

  .feature-panel div,
  .product-meta {
    padding: 16px;
  }

  .site-footer {
    flex-direction: column;
  }
}
