:root {
  color-scheme: light;
  --paper: #f8f4ed;
  --white: #fffdf9;
  --ink: #221c1b;
  --muted: #625653;
  --red: #cb071d;
  --line: #e5d9cf;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid #ef7a2a; outline-offset: 3px; }

.shell { max-width: 600px; margin: auto; padding: 0 18px; padding-bottom: env(safe-area-inset-bottom); }
.site-header { height: 66px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: 19px; }
.brand img { display: block; border-radius: 7px; }
.site-link { display: flex; gap: 6px; align-items: center; min-height: 44px; color: #ae0d21; font-weight: 650; font-size: 13px; }

.hero { padding: 23px 2px 17px; }
.eyebrow { margin: 0 0 9px; color: #ad1323; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.eyebrow span { display: inline-block; height: 7px; width: 7px; border-radius: 50%; background: var(--red); }
h1 { margin: 0; letter-spacing: -0.06em; line-height: 1.14; font-size: clamp(32px, 9.1vw, 52px); font-weight: 800; }
h1 em { color: var(--red); font-style: normal; }
.intro { max-width: 34em; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.case-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 1px 0 15px; }
.case-nav a { display: grid; place-items: center; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; color: #4b3b38; font-size: 13px; font-weight: 650; padding: 3px; }
.case-nav a[aria-current] { color: var(--white); background: var(--red); border-color: var(--red); }

.comparison { border: 1px solid var(--line); background: var(--white); border-radius: 19px; padding: 12px; scroll-margin-top: 10px; }
.comparison-head { padding: 0 2px; }
h2 { margin: 0; font-size: 20px; font-weight: 780; letter-spacing: -0.035em; }
.comparison-head p { margin: 4px 0 11px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.versions { padding: 3px; border-radius: 10px; background: #f3ece5; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-bottom: 9px; }
.versions button { min-height: 39px; padding: 3px 8px; border: 0; border-radius: 7px; background: transparent; color: #4b3b38; cursor: pointer; font-size: 13px; font-weight: 700; }
.versions button[aria-pressed=true] { color: #a80016; background: #fff; box-shadow: 0 1px 4px #3a120b1c; }
.screen { background: #171010; overflow: hidden; border-radius: 11px; display: flex; justify-content: center; align-items: center; }
.screen video { display: block; width: 100%; height: min(480px, 57vh); min-height: 300px; object-fit: contain; }
.screen[data-shape=landscape] video { width: 100%; height: auto; min-height: initial; aspect-ratio: 3 / 2; }
.status { color: #a31222; font-size: 13px; margin: 9px 0 1px; }

.cases { padding: 23px 0; }
.cases h2 { margin-bottom: 11px; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.case-card { display: block; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.case-card[aria-current] { border-color: #d34d59; }
.thumb-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; overflow: hidden; border-radius: 7px; margin-bottom: 7px; }
.thumb-pair img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; background: #ebdfd2; }
.thumb-pair[data-shape=landscape] img { object-position: 56% 35%; }
.tile-text { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 0 1px 2px; }
.tile-text strong { font-size: 13px; }
.tile-text span { color: #a31222; }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0 12px; border-top: 1px solid var(--line); color: #5a4846; font-size: 12px; }
.site-footer a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: #ad1323; font-weight: 700; }
@media (min-width: 500px) {
  .shell { padding-left: 25px; padding-right: 25px; }
  .hero { padding-top: 32px; }
  .case-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
