:root {
  color-scheme: light;
  --paper: #fbf8f0;
  --surface: #fffdf8;
  --ink: #23201b;
  --muted: #71685c;
  --line: #e7dccb;
  --coffee: #5b3927;
  --tea: #2f6f56;
  --orange: #d9782d;
  --red: #a8202c;
  --gold: #bf8a37;
  --shadow: 0 16px 45px rgba(54, 39, 25, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(47, 111, 86, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(168, 32, 44, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px max(18px, env(safe-area-inset-left)) 10px max(18px, env(safe-area-inset-left));
  background: rgba(251, 248, 240, 0.92);
  border-bottom: 1px solid rgba(91, 57, 39, 0.12);
  backdrop-filter: blur(16px);
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: max-content;
  color: var(--coffee);
}

.brand-mark span {
  font-size: 18px;
  font-weight: 800;
}

.brand-mark small {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a {
  min-width: max-content;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
}

.top-nav a:hover {
  border-color: var(--line);
  color: var(--coffee);
  background: rgba(255, 253, 248, 0.8);
}

.hero,
.section {
  padding: 68px max(18px, calc((100vw - 1120px) / 2)) 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 1.1fr);
  gap: 36px;
  align-items: center;
  min-height: 0;
  padding-top: 44px;
  padding-bottom: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

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

h1 {
  margin-bottom: 8px;
  color: var(--coffee);
  font-size: clamp(48px, 9vw, 96px);
  line-height: 0.95;
}

h2 {
  margin-bottom: 16px;
  color: var(--coffee);
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.28;
}

p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-subtitle {
  margin-bottom: 14px;
  color: var(--tea);
  font-size: 24px;
  font-weight: 700;
}

.hero-text {
  max-width: 520px;
  font-size: 17px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 7px;
  font-weight: 800;
}

.primary-button {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 24px rgba(168, 32, 44, 0.22);
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.86);
  color: var(--coffee);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 520px;
  margin: 32px 0 0;
}

.hero-stats div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.8);
}

.hero-stats dt {
  color: var(--coffee);
  font-size: 22px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  max-height: 58vh;
  object-fit: cover;
  border: 1px solid rgba(91, 57, 39, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-caption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(35, 32, 27, 0.72);
  color: #fff;
  font-size: 12px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.intro-section {
  padding-top: 28px;
  border-top: 1px solid rgba(91, 57, 39, 0.14);
}

.section-heading p:last-child {
  font-size: 16px;
}

.intro-grid,
.brand-grid,
.product-grid,
.process-grid {
  display: grid;
  gap: 14px;
}

.intro-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.brand-card,
.product-card,
.process-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 10px 28px rgba(54, 39, 25, 0.08);
}

.feature-card {
  padding: 20px;
}

.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--tea);
  color: #fff;
  font-weight: 800;
}

.story-strip,
.social-proof,
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 22px;
}

.story-strip {
  padding: 18px;
  border-top: 2px solid var(--coffee);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
}

.story-strip img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.social-proof {
  padding-top: 28px;
}

.note-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.note-placeholder,
.qr-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(91, 57, 39, 0.34);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.54);
  color: var(--muted);
}

.note-placeholder {
  min-height: 150px;
}

.service-section,
.process-section {
  background: rgba(255, 253, 248, 0.52);
}

.brand-grid {
  grid-template-columns: repeat(5, 1fr);
}

.brand-card {
  min-height: 178px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.brand-card:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 32, 44, 0.32);
  box-shadow: var(--shadow);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--coffee);
  color: #fff;
  font-weight: 900;
}

.brand-card:nth-child(2n) .brand-logo {
  background: var(--tea);
}

.brand-card:nth-child(3n) .brand-logo {
  background: var(--orange);
}

.brand-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.controls {
  position: sticky;
  top: 56px;
  z-index: 10;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid rgba(231, 220, 203, 0.9);
  border-radius: var(--radius);
  background: rgba(251, 248, 240, 0.94);
  backdrop-filter: blur(16px);
}

.tab-group,
.filter-group {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-group {
  margin-top: 10px;
}

.tab-group::-webkit-scrollbar,
.filter-group::-webkit-scrollbar {
  display: none;
}

.control-button,
.filter-button {
  min-width: max-content;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--coffee);
  cursor: pointer;
}

.control-button.is-active,
.filter-button.is-active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

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

.product-card {
  overflow: hidden;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.product-body {
  padding: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(47, 111, 86, 0.1);
  color: var(--tea);
  font-size: 12px;
  font-weight: 800;
}

.tag.budget {
  background: rgba(217, 120, 45, 0.12);
  color: #9b541f;
}

.tag.new {
  background: rgba(168, 32, 44, 0.1);
  color: var(--red);
}

.product-card h3 {
  margin-bottom: 8px;
}

.product-meta {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 34px 18px;
  border: 1px dashed rgba(91, 57, 39, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.76);
  text-align: center;
}

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

.process-card {
  padding: 22px;
}

.process-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 9px;
  border-radius: 5px;
  background: rgba(191, 138, 55, 0.14);
  color: #8a5d1e;
  font-size: 13px;
  font-weight: 800;
}

.process-card ol {
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.9;
}

.gallery-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.gallery-row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.contact-section {
  padding-bottom: 110px;
}

.contact-panel {
  padding: 26px;
  border: 1px solid rgba(168, 32, 44, 0.22);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.qr-placeholder {
  justify-self: end;
  flex-direction: column;
  width: min(100%, 260px);
  aspect-ratio: 1;
  gap: 8px;
}

.qr-placeholder span {
  color: var(--coffee);
  font-size: 22px;
  font-weight: 900;
}

.qr-placeholder small {
  color: var(--muted);
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 18;
  padding: 10px max(16px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 248, 240, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 7px;
  background: var(--coffee);
  color: #fff;
  font-weight: 900;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 32, 27, 0.48);
}

.modal-card {
  position: relative;
  width: min(680px, 100%);
  max-height: min(780px, 88vh);
  overflow: auto;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(35, 32, 27, 0.32);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--coffee);
  cursor: pointer;
}

.modal-product-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.brand-strength {
  margin-bottom: 16px;
}

.brand-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0 20px;
}

.brand-facts span {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 12px;
  border: 1px solid rgba(168, 32, 44, 0.16);
  border-radius: var(--radius);
  background: rgba(168, 32, 44, 0.06);
  color: var(--coffee);
  font-weight: 800;
  line-height: 1.45;
}

.modal-subtitle {
  margin-top: 8px;
  font-size: 18px;
}

.modal-product {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 248, 240, 0.62);
}

.modal-product strong {
  display: block;
  margin-bottom: 6px;
  color: var(--coffee);
}

.modal-note {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 38px;
    padding-bottom: 46px;
  }

  .hero-media img {
    max-height: none;
    aspect-ratio: 4 / 5;
  }

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

  .story-strip,
  .social-proof,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .qr-placeholder {
    justify-self: stretch;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero,
  .section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero {
    padding-top: 28px;
    gap: 24px;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

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

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .brand-grid,
  .product-grid,
  .process-grid,
  .gallery-row,
  .brand-facts,
  .modal-product-list {
    grid-template-columns: 1fr;
  }

  .brand-card {
    min-height: 0;
  }

  .controls {
    top: 54px;
    margin-right: -16px;
    margin-left: -16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .note-wall {
    grid-template-columns: 1fr 1fr;
  }

  .note-placeholder {
    min-height: 118px;
    font-size: 13px;
  }

  .contact-panel {
    padding: 20px;
  }
}
