:root {
  --paper: #faf7f2;
  --paper-soft: #f3eee6;
  --paper-warm: #efe5d7;
  --ink: #11100e;
  --muted: #6f685f;
  --faint: rgba(17, 16, 14, 0.12);
  --line: rgba(17, 16, 14, 0.72);
  --orange: #f2a12a;
  --orange-soft: #f8d59b;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Gill Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(17, 16, 14, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.45;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--faint);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: clamp(100px, 12vw, 149px);
  height: auto;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 42px);
  padding-top: 14px;
  color: var(--ink);
  font-size: 15px;
}

.top-nav a {
  position: relative;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
}

.top-nav a::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.top-nav a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
}

main,
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 126px);
  display: flex;
  align-items: end;
  padding: clamp(76px, 12vw, 150px) 0 clamp(54px, 8vw, 92px);
}

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

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1 {
  max-width: 11em;
  margin-bottom: 24px;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  font-size: clamp(48px, 7.2vw, 92px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 500;
  line-height: 1.1;
}

.intro {
  max-width: 660px;
  margin-bottom: 34px;
  color: #302d29;
  font-size: clamp(18px, 2vw, 23px);
}

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

.text-link,
.submit-link {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  font-size: 16px;
}

.text-link::before,
.submit-link::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--ink);
}

.text-link::after {
  left: 19px;
}

.section-block {
  scroll-margin-top: 154px;
  padding: clamp(58px, 8vw, 108px) 0;
  border-top: 1px solid var(--faint);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  margin-bottom: 34px;
}

.section-head .eyebrow {
  margin-bottom: 7px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--faint);
}

.tab {
  min-height: 44px;
  padding: 0 0 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.tab:hover,
.tab.is-active {
  color: var(--ink);
}

.tab.is-active {
  border-bottom-color: var(--ink);
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 34px);
  align-items: flex-start;
}

.product-card {
  display: flex;
  width: min(100%, 340px);
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.product-card.is-disabled {
  cursor: default;
}

.product-media {
  aspect-ratio: 1 / 1;
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid var(--faint);
}

.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.98);
  transition: filter 180ms ease;
}

.product-card:hover .product-media img {
  filter: saturate(1) contrast(1.02);
}

.product-info {
  display: grid;
  gap: 8px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.product-title {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.18;
}

.product-description {
  margin: 0;
  color: #47423c;
  font-size: 15px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 42px 0;
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
  color: var(--muted);
  text-align: center;
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.message-form {
  display: grid;
  gap: 18px;
}

.message-form label {
  display: grid;
  gap: 8px;
}

.message-form span {
  color: var(--muted);
  font-size: 13px;
}

.message-form input,
.message-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
  padding: 12px 0;
  resize: vertical;
}

.message-form textarea {
  min-height: 128px;
}

.message-form input:focus,
.message-form textarea:focus {
  border-bottom-color: var(--orange);
}

.submit-link {
  width: fit-content;
  margin-top: 2px;
}

.messages {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--faint);
}

.message-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--faint);
}

.message-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 500;
}

.message-item p {
  margin-bottom: 9px;
  color: #3b3732;
}

.message-time {
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--faint);
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 820px) {
  .site-header {
    position: relative;
  }

  .section-head,
  .board-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    align-items: start;
    padding-top: 70px;
  }

}

@media (max-width: 540px) {
  .header-inner {
    flex-direction: column;
    gap: 10px;
    padding: 18px 0;
  }

  .brand img {
    width: 120px;
  }

  .top-nav {
    width: 100%;
    justify-content: flex-end;
    padding-top: 0;
  }

  main,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  h1 {
    font-size: 42px;
  }

  .product-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .product-card {
    width: 100%;
  }
}
