:root {
  --ink: #1f1a16;
  --muted: #6f665a;
  --paper: #f5efe2;
  --white: #ffffff;
  --line: #dfd0b8;
  --wine: #a22a22;
  --forest: #315b43;
  --blue: #516f62;
  --gold: #b88a3d;
  --wood: #6e4c32;
  --shadow: 0 18px 40px rgba(24, 24, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.36)),
    var(--paper);
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", SimSun, "Microsoft YaHei", serif;
  line-height: 1.6;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(to bottom, rgba(31, 26, 22, 0.72), rgba(31, 26, 22, 0));
}

.brand,
.nav-links,
.header-action,
.hero-actions,
.filter-bar,
.product-meta,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 4px;
  background: rgba(162, 42, 34, 0.82);
  color: #fff4e5;
  box-shadow: none;
}

.brand-mark::before {
  content: "智";
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.nav-links {
  gap: clamp(18px, 4vw, 48px);
  font-size: 15px;
}

.header-action {
  justify-self: end;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero {
  position: relative;
  min-height: 76vh;
  display: flex;
  align-items: end;
  overflow: hidden;
}

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

.hero-media {
  background:
    linear-gradient(rgba(28, 21, 14, 0.16), rgba(28, 21, 14, 0.16)),
    url("assets/hero-chinese-gallery.png") center / cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(31, 26, 22, 0.76), rgba(31, 26, 22, 0.24) 55%, rgba(31, 26, 22, 0.5)),
    linear-gradient(0deg, rgba(31, 26, 22, 0.48), rgba(31, 26, 22, 0) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 clamp(56px, 9vh, 96px);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: #d9ae68;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(54px, 12vw, 132px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy {
  width: min(560px, 100%);
  margin-bottom: 28px;
  font-size: clamp(18px, 2.4vw, 24px);
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.filter-button,
.inquiry-button {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: var(--white);
  background: var(--wine);
  font-weight: 700;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.intro-band div {
  padding: clamp(22px, 4vw, 38px);
  background: var(--white);
}

.intro-band strong {
  display: block;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1;
}

.intro-band span {
  color: var(--muted);
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 4vw, 56px);
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 32px;
}

.section-heading p:not(.eyebrow),
.visit-content p,
.contact-section p {
  color: var(--muted);
}

.narrow {
  width: min(620px, 100%);
}

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

.filter-button {
  padding: 0 16px;
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.filter-button.active {
  color: var(--white);
  background: var(--wood);
  border-color: var(--wood);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(24, 24, 22, 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

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

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

.product-card img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  object-position: center;
  background: var(--paper);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.product-type {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.product-body > p {
  color: var(--muted);
}

.product-meta {
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.product-meta span {
  font-size: 19px;
  font-weight: 700;
}

.inquiry-button {
  padding: 0 16px;
  color: var(--wine);
  background: #fff;
  border-color: rgba(140, 38, 51, 0.35);
  font-weight: 700;
}

.services-section {
  background: #251e17;
  color: var(--white);
}

.services-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.7);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.service-list article {
  padding: clamp(24px, 4vw, 42px);
  background: #2c241c;
}

.service-list span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--gold);
  font-weight: 700;
}

.service-list p {
  color: rgba(255, 255, 255, 0.72);
}

.visit-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  min-height: 620px;
  background: var(--white);
}

.visit-image {
  min-height: 420px;
  background:
    linear-gradient(rgba(60, 40, 20, 0.04), rgba(60, 40, 20, 0.04)),
    url("assets/visit-chinese-room.png") center / cover;
}

.visit-content {
  align-self: center;
  padding: clamp(38px, 6vw, 78px);
}

dl {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
}

dl div {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--forest);
  font-weight: 700;
}

dd {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 7vw, 92px);
  padding: clamp(64px, 9vw, 112px) clamp(18px, 4vw, 56px);
  background: #eee4d2;
}

.contact-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cfd5d1;
  border-radius: 8px;
  background: var(--white);
  padding: 13px 14px;
  color: var(--ink);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(36, 70, 58, 0.14);
}

textarea {
  resize: vertical;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 56px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: min(360px, calc(100vw - 40px));
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--forest);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .product-grid,
  .service-list,
  .visit-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .visit-section {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content {
    padding-bottom: 44px;
  }

  .intro-band {
    grid-template-columns: 1fr;
  }

  .product-meta {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
