:root {
  color-scheme: dark;
  --background: #151819;
  --text: #f2f2ee;
  --muted: #bdbfba;
  --border: #3b403d;
  --accent: #e1f5a5;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.frame {
  width: min(100% - 5rem, 78rem);
  margin-inline: auto;
}

.site-header { border-bottom: 1px solid var(--border); }

.header-inner {
  min-height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}

.brand span:first-child { letter-spacing: .12em; }
.brand span:last-child { color: var(--muted); font-size: .875rem; }

nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); font-size: .9375rem; }
nav a { text-decoration: none; }
nav a:hover, footer a:hover { color: var(--accent); }

main { flex: 1; display: grid; align-items: center; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 7.5rem);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.3rem, 7vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: -.06em;
}

.hero-subtitle {
  margin: 1.35rem 0 0;
  font-size: clamp(1.25rem, 2.7vw, 2rem);
  font-weight: 600;
}

.hero-description {
  margin: 1rem 0 1.75rem;
  max-width: 28rem;
  color: var(--muted);
  line-height: 1.9;
}

.product-link {
  display: inline-block;
  padding: .7rem 1.15rem;
  border-radius: .35rem;
  background: var(--accent);
  color: #1b2114;
  font-weight: 650;
  text-decoration: none;
}

.product-link:hover { background: #f0ffc6; }

.product-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: .7rem;
  background: #1d2221;
}

.product-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.product-photo figcaption {
  padding: .65rem 1rem;
  color: var(--muted);
  font-size: .875rem;
}

.site-footer { border-top: 1px solid var(--border); color: var(--muted); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .55rem 1.5rem;
  padding-block: 1.3rem;
  font-size: .875rem;
}

.footer-inner a { text-underline-offset: .2em; }

@media (max-width: 54rem) {
  .frame { width: min(100% - 3rem, 40rem); }
  .hero { grid-template-columns: 1fr; }
}

@media (max-width: 27rem) {
  .frame { width: calc(100% - 2rem); }
  .header-inner { gap: .75rem; }
  .brand, nav { font-size: .875rem; }
  nav { gap: .65rem; }
}
