:root {
  color-scheme: dark;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #161310;
  color: #f7f0e5;
  --muted: #c3b5a6;
  --accent: #edbd81;
  --line: #40352b;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.frame { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.masthead, .footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.masthead { min-height: 72px; border-bottom: 1px solid var(--line); }
.brand { font-size: 22px; font-weight: 700; letter-spacing: .09em; text-decoration: none; }
.nav, .footer, .caption { font-size: 14px; color: var(--muted); }
.nav { text-underline-offset: .28em; }
.hero { margin-block: clamp(32px, 7vw, 84px) 48px; }
.intro { max-width: 37rem; margin-bottom: 32px; }
.intro .product { margin: 0 0 14px; color: var(--accent); font-weight: 600; }
h1 { margin: 0; font-size: clamp(30px, 5.7vw, 66px); line-height: 1.13; letter-spacing: -.045em; }
.intro p:last-child { max-width: 28rem; color: var(--muted); line-height: 1.75; margin: 18px 0 0; }
.comparison { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); gap: 4px; border-radius: 16px; overflow: hidden; background: #2d2119; }
figure { position: relative; margin: 0; min-width: 0; }
img { display: block; width: 100%; height: clamp(175px, 39vw, 535px); object-fit: cover; }
figcaption { position: absolute; bottom: 12px; left: 12px; padding: 6px 10px; border-radius: 5px; background: #161310ed; font-size: 13px; }
.caption { margin: 12px 0 0; }
.footer { padding-block: 22px 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer a { text-underline-offset: .22em; }

@media (max-width: 480px) {
  .frame { width: calc(100% - 32px); }
  .masthead { min-height: 56px; }
  .comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 10px; }
  .comparison figure:nth-child(2) img { object-position: 60% center; }
  figcaption { bottom: 7px; left: 7px; }
}
