:root {
  color-scheme: dark;
  --bg: #07090d;
  --surface: #0e131b;
  --ink: #c6c9ce;
  --muted: #aab3c2;
  --faint: #7d8799;
  --line: rgba(148, 163, 184, .14);
  --line-strong: rgba(148, 163, 184, .3);
  --accent: #ffffff;
  --header-bg: rgba(7, 9, 13, .86);
  --hover-bg: rgba(148, 163, 184, .1);
  --selection-bg: rgba(255, 255, 255, .18);
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", Georgia, "Times New Roman", serif;
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: #e9edf2;
  --ink: #252a33;
  --muted: #596474;
  --faint: #657182;
  --line: rgba(37, 42, 51, .14);
  --line-strong: rgba(37, 42, 51, .28);
  --accent: #171b23;
  --header-bg: rgba(245, 246, 248, .88);
  --hover-bg: rgba(37, 42, 51, .06);
  --selection-bg: rgba(59, 104, 180, .18);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Noto Sans SC", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--selection-bg); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
  background: var(--header-bg);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
}
.site-header-inner {
  max-width: 1080px;
  height: 80px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  direction: ltr;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
  direction: ltr;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: block;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background-color: currentColor;
  -webkit-mask: url("/brand-mark.svg") center / contain no-repeat;
  mask: url("/brand-mark.svg") center / contain no-repeat;
}
.brand-tagline {
  margin-left: 4px;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--hover-bg); color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-icon { width: 18px; height: 18px; }
.theme-icon-moon { display: none; }
:root[data-theme='light'] .theme-icon-sun { display: none; }
:root[data-theme='light'] .theme-icon-moon { display: block; }

.product-main {
  width: 100%;
  max-width: 1080px;
  flex: 1;
  margin: 0 auto;
  padding: 56px 24px 80px;
  overflow-wrap: break-word;
}
/* 正文保持原阅读宽度，但与页头品牌共用同一条左边缘；截图条占满容器 */
.product-main > :not(.shots) { max-width: 712px; }
/* 创意页头图：原图 1600×900 的 1/2（800×450），窄屏按容器收缩 */
.product-main > .hero { max-width: none; width: 800px; max-width: 100%; margin: 30px 0 6px; }
.hero img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}
h1 {
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .02em;
}
h2 { margin: 44px 0 14px; font-size: 20px; font-weight: 600; line-height: 1.4; }
h3 { margin: 28px 0 10px; font-size: 16px; font-weight: 600; line-height: 1.5; }
p, li { font-size: 15px; }
p { margin: 0 0 16px; }
ul { margin: 0 0 20px; padding-inline-start: 1.4em; }
li + li { margin-top: 6px; }
strong { color: var(--ink); font-weight: 600; }
.meta { color: var(--muted); font-size: 13px; }
.tagline { margin-top: -8px; color: var(--accent); font-size: 17px; }
.platform-note { margin: -6px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.badge { display: inline-block; margin: 8px 0 4px; }
.badge img { display: block; width: auto; height: 44px; }
.shots {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  padding-bottom: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--line-strong) transparent;
}
.shots img {
  flex: 0 0 auto;
  width: 240px;
  max-width: 78%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  scroll-snap-align: start;
}
table { width: 100%; margin: 16px 0 24px; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; border: 1px solid var(--line); text-align: start; vertical-align: top; }
th { background: var(--surface); color: var(--ink); }
td { color: var(--muted); }

.foot {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 32px 24px 28px; }
.footer-legal { color: var(--muted); }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover, .langs a:hover { color: var(--accent); }
.footer-legal + .langs { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  direction: ltr;
  text-align: left;
}
.langs a, .langs strong { color: var(--muted); font-size: 12px; font-weight: 400; white-space: nowrap; }
.langs strong { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (max-width: 640px) {
  .site-header-inner { height: 70px; padding: 0 18px; }
  .brand { gap: 8px; font-size: 19px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-tagline { margin-left: 0; padding-left: 10px; font-size: 10px; letter-spacing: .08em; }
  .product-main { padding: 40px 18px 64px; }
  h1 { margin-bottom: 20px; padding-bottom: 16px; }
  h2 { margin-top: 36px; }
  .footer-inner { padding: 28px 24px 24px; }
  .langs { gap: 10px 14px; }
  th, td { padding: 8px; }
}
