:root {
  color-scheme: light;
  --paper: #f8f6f0;
  --surface: #fffdf8;
  --ink: #172c3d;
  --muted: #4c5b61;
  --line: #dfd9ca;
  --display: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 2px solid #386188; outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }

.frame { width: min(1056px, 100% - 64px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .brand, .site-header nav { display: flex; align-items: center; }
.header-inner { justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { gap: 12px; font-weight: 700; font-size: 20px; letter-spacing: .08em; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.site-header nav { gap: clamp(12px, 3vw, 32px); }
.site-header nav a { padding-block: 14px; text-decoration: none; font-size: 15px; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; }

main { padding-block: clamp(32px, 5vw, 62px); }
h1 { font: 700 clamp(36px, 5vw, 62px)/1.16 var(--display); margin: 0; }
.collection h1 { margin-bottom: 28px; }
.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); }
.product-card { display: block; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.card-media { overflow: hidden; background: #eae3d5; }
.card-media img { aspect-ratio: 1; transition: transform .35s ease; }
.product-card:hover { transform: translateY(-2px); border-color: #a69c85; }
.product-card:hover img { transform: scale(1.025); }
.card-info { padding: 18px 20px 16px; }
.card-info h2 { margin: 0 0 8px; font-size: clamp(17px, 2vw, 22px); line-height: 1.4; }
.card-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price { font-weight: 650; font-variant-numeric: tabular-nums; }
.card-action { color: var(--muted); font-size: 14px; text-decoration: underline; }

.product-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(26px, 6vw, 72px); }
.detail-media { overflow: hidden; border-radius: 10px; background: #eae3d5; }
.product-summary h1 { font-size: clamp(32px, 4.7vw, 54px); line-height: 1.2; }
.product-summary p, .about p { color: var(--muted); font-size: 17px; line-height: 1.85; }
.detail-price { margin: 20px 0; font-size: 30px; }
.buy { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 140px; padding: 10px 24px; border-radius: 7px; background: var(--ink); color: white; text-decoration: none; font-weight: 650; transition: transform .18s ease, background .18s ease; }
.buy:hover { transform: translateY(-2px); background: #234458; }
.buy:active { transform: translateY(0); }
.detail-story { width: min(100%, 820px); margin: clamp(38px, 7vw, 76px) auto 0; }
.detail-story h2, .about h2 { font-size: 23px; margin: 0 0 18px; }
.detail-images { overflow: hidden; border-radius: 10px; }

.about { max-width: 660px; padding-block: 8px 24px; }
.about p { margin: 18px 0; }
.about h2 { margin-top: 36px; }
.about-link { display: inline-block; padding-block: 12px; font-weight: 650; }
.site-footer { border-top: 1px solid var(--line); padding: 20px 0 28px; color: var(--muted); text-align: center; font-size: 14px; line-height: 1.55; }
.site-footer p { margin: 0 0 8px; }
[data-enter] { animation: enter .32s ease-out both; }
@keyframes enter { from { opacity: .65; transform: translateY(5px); } }

@media (max-width: 620px) {
  .frame { width: calc(100% - 32px); }
  .header-inner { min-height: 66px; }
  .brand { gap: 7px; font-size: 17px; letter-spacing: 0; }
  .brand img { width: 32px; height: 32px; }
  .site-header nav a { font-size: 13px; }
  .collection h1 { margin-bottom: 20px; }
  .catalog, .product-intro { grid-template-columns: minmax(0, 1fr); }
  .card-info { padding-inline: 16px; }
  .product-summary p { margin: 14px 0; }
  .buy { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
