:root {
  --ink: #26221d;
  --muted: #746b61;
  --paper: #f7f2e8;
  --paper-deep: #ede0cc;
  --moss: #586b46;
  --olive: #8d8a57;
  --clay: #b86f45;
  --sky: #a8bcc0;
  --line: rgba(38, 34, 29, 0.14);
  --shadow: 0 28px 90px rgba(53, 42, 28, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(88, 107, 70, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(88, 107, 70, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand,
.top-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--ink);
  background:
    linear-gradient(90deg, transparent 47%, var(--ink) 48% 52%, transparent 53%),
    linear-gradient(var(--moss), var(--moss));
  background-size: 100% 100%, 9px 100%;
  background-repeat: no-repeat;
  background-position: center, left;
}

.top-nav a {
  text-decoration: none;
  font-size: 13px;
  color: var(--muted);
}

.hero {
  min-height: calc(100svh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
  padding: clamp(32px, 7vw, 96px) clamp(18px, 5vw, 72px) 64px;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2,
.detail-title {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-weight: 700;
}

h1 {
  max-width: 13ch;
  margin-bottom: 24px;
  font-size: clamp(42px, 7.2vw, 94px);
  line-height: 0.98;
}

.hero-lede {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.9;
}

.hero-feature {
  position: relative;
  align-self: stretch;
  min-height: 560px;
}

.hero-feature img {
  height: 100%;
  object-fit: contain;
  border: 1px solid rgba(38, 34, 29, 0.18);
  box-shadow: var(--shadow);
  background: color-mix(in srgb, var(--paper-deep) 82%, white);
}

.feature-caption {
  position: absolute;
  right: -18px;
  bottom: 32px;
  width: 180px;
  padding: 18px;
  background: var(--ink);
  color: var(--paper);
}

.feature-caption span,
.product-id,
.meta-label {
  display: block;
  color: color-mix(in srgb, currentColor 68%, transparent);
  font-size: 12px;
}

.feature-caption strong {
  display: block;
  margin-top: 8px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 24px;
  line-height: 1.15;
}

.catalog-section {
  padding: 32px clamp(18px, 5vw, 72px) 92px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.section-heading h2,
.mood-strip h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.12;
}

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

.product-card {
  position: relative;
  min-height: 540px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(38, 34, 29, 0.16);
  background: #e9dfcf;
  text-decoration: none;
}

.product-card img {
  height: 100%;
  object-fit: contain;
  background: color-mix(in srgb, var(--paper-deep) 74%, white);
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.card-info {
  position: absolute;
  inset: auto 14px 14px;
  padding: 18px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border: 1px solid rgba(38, 34, 29, 0.14);
}

.card-info h3 {
  margin: 8px 0 14px;
  font-size: 19px;
  line-height: 1.42;
}

.card-info p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 9px;
  border: 1px solid rgba(38, 34, 29, 0.16);
  color: var(--muted);
  font-size: 12px;
  background: rgba(247, 242, 232, 0.7);
}

.mood-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: clamp(24px, 5vw, 76px);
  padding: 72px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: var(--paper);
}

.mood-strip .eyebrow {
  color: var(--sky);
}

.mood-strip p:last-child {
  align-self: end;
  margin: 0;
  color: rgba(247, 242, 232, 0.72);
  line-height: 1.9;
}

.detail-shell {
  min-height: 100svh;
}

.detail-page {
  padding-bottom: 80px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(22px, 5vw, 58px) clamp(18px, 5vw, 72px) 54px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.detail-title {
  margin-bottom: 18px;
  font-size: clamp(34px, 5.5vw, 74px);
  line-height: 1.06;
}

.detail-lede {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

button.button {
  font-family: inherit;
}

.mobile-appointment-bar {
  display: none;
}

.price-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
  border: 1px solid var(--line);
}

.meta-cell {
  padding: 16px;
  background: color-mix(in srgb, var(--paper) 88%, white);
}

.meta-cell strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.detail-main-image {
  position: sticky;
  top: 96px;
  border: 1px solid rgba(38, 34, 29, 0.16);
  background: var(--paper-deep);
  box-shadow: var(--shadow);
}

.detail-main-image img {
  aspect-ratio: 9 / 16;
  height: auto;
  object-fit: contain;
  background: color-mix(in srgb, var(--paper-deep) 78%, white);
}

.story-block {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  padding: 54px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.story-kicker {
  position: sticky;
  top: 96px;
}

.story-kicker h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1.08;
}

.story-kicker p,
.gallery-text {
  color: var(--muted);
  line-height: 1.85;
}

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

.benefit {
  min-height: 150px;
  padding: 18px;
  border-top: 3px solid var(--moss);
  background: color-mix(in srgb, var(--paper) 72%, white);
}

.benefit:nth-child(2) {
  border-color: var(--clay);
}

.benefit:nth-child(3) {
  border-color: var(--sky);
}

.benefit h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.benefit p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.image-story.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-card {
  background: color-mix(in srgb, var(--paper) 82%, white);
}

.story-card img {
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: color-mix(in srgb, var(--paper-deep) 78%, white);
  border: 1px solid rgba(38, 34, 29, 0.13);
}

.story-card figcaption {
  padding: 14px 4px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.wide-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wide-gallery img {
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: color-mix(in srgb, var(--paper-deep) 78%, white);
  border: 1px solid rgba(38, 34, 29, 0.13);
}

.material-block {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.62fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: center;
  padding: clamp(34px, 6vw, 78px) clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(88, 107, 70, 0.12), transparent 42%),
    color-mix(in srgb, var(--paper-deep) 68%, var(--paper));
}

.material-copy {
  max-width: 720px;
}

.material-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.8vw, 62px);
  line-height: 1.08;
}

.material-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.material-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.material-points span {
  padding: 10px 12px;
  border: 1px solid rgba(38, 34, 29, 0.18);
  background: rgba(247, 242, 232, 0.62);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.material-hero {
  margin: 0;
}

.material-hero img {
  aspect-ratio: 9 / 13;
  object-fit: contain;
  background: color-mix(in srgb, var(--paper-deep) 78%, white);
  border: 1px solid rgba(38, 34, 29, 0.18);
  box-shadow: var(--shadow);
}

.spec-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.spec-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 16px;
  background: color-mix(in srgb, var(--paper) 88%, white);
}

.spec-row span:first-child {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.appointment-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 1;
  pointer-events: auto;
}

.appointment-modal[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 34, 29, 0.52);
  backdrop-filter: blur(12px);
}

.modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(760px, calc(100svh - 36px));
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(38, 34, 29, 0.2);
  background: var(--paper);
  box-shadow: 0 32px 100px rgba(22, 18, 14, 0.32);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.modal-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.12;
}

.modal-lede {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.75;
}

.appointment-form {
  display: grid;
  gap: 14px;
}

.appointment-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.appointment-form input,
.appointment-form textarea {
  width: 100%;
  border: 1px solid rgba(38, 34, 29, 0.18);
  background: color-mix(in srgb, var(--paper) 74%, white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
}

.appointment-form input {
  min-height: 46px;
  padding: 0 12px;
}

.appointment-form textarea {
  resize: vertical;
  padding: 12px;
}

.appointment-form input:focus,
.appointment-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--moss) 42%, transparent);
  outline-offset: 2px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.form-status[data-state="success"] {
  color: var(--moss);
}

.form-status[data-state="error"] {
  color: #a6422d;
}

body.detail-mode .hero,
body.detail-mode .catalog-section,
body.detail-mode .mood-strip {
  display: none;
}

body.detail-mode .detail-shell {
  display: block;
}

@media (max-width: 900px) {
  .hero,
  .detail-hero,
  .story-block,
  .mood-strip,
  .material-block {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-feature {
    min-height: 420px;
  }

  .product-grid,
  .benefit-grid,
  .image-story,
  .image-story.two-up {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 460px;
  }

  .detail-main-image,
  .story-kicker {
    position: static;
  }

  .price-panel,
  .wide-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body.detail-mode {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

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

  .top-nav {
    display: none;
  }

  h1 {
    max-width: 11ch;
  }

  .hero,
  .catalog-section,
  .detail-hero,
  .story-block,
  .mood-strip,
  .material-block {
    padding-left: 16px;
    padding-right: 16px;
  }

  .detail-hero {
    padding-top: 18px;
    padding-bottom: 32px;
    gap: 22px;
  }

  .detail-title {
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1.12;
  }

  .detail-lede {
    font-size: 16px;
    line-height: 1.82;
  }

  .detail-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .appointment-desktop {
    display: none;
  }

  .button {
    width: 100%;
    min-height: 48px;
  }

  .price-panel {
    margin-top: 22px;
  }

  .detail-main-image {
    margin-left: -16px;
    margin-right: -16px;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .detail-main-image img {
    aspect-ratio: 9 / 16;
  }

  .story-block {
    padding-top: 34px;
    padding-bottom: 38px;
    gap: 18px;
  }

  .story-kicker h2,
  .material-copy h2 {
    font-size: clamp(28px, 8.6vw, 38px);
    line-height: 1.14;
  }

  .benefit {
    min-height: auto;
    padding: 16px;
  }

  .story-card figcaption {
    padding: 12px 2px 4px;
    font-size: 13px;
  }

  .material-block {
    padding-top: 38px;
    padding-bottom: 44px;
  }

  .material-copy p {
    font-size: 15px;
    line-height: 1.85;
  }

  .material-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .material-points span {
    padding: 11px 12px;
  }

  .feature-caption {
    right: 12px;
    bottom: 12px;
  }

  .section-heading {
    display: block;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .mobile-appointment-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(132px, 0.78fr);
    gap: 12px;
    align-items: center;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(38, 34, 29, 0.14);
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(18px);
    box-shadow: 0 -18px 44px rgba(53, 42, 28, 0.16);
  }

  .mobile-appointment-bar span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
  }

  .mobile-appointment-bar strong {
    display: block;
    margin-top: 3px;
    font-size: 15px;
    line-height: 1.25;
  }

  .mobile-appointment-bar .button {
    min-height: 46px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .modal-panel {
    max-height: calc(100svh - 28px);
    padding: 22px 16px;
  }
}
