/* ===========================================================================
   Wecha Key — 采用与 videoclean.wecha.ai 统一的 Apple 风格设计系统
   系统字体 + 浅/深色自适应 + 蓝色强调 + 大圆角卡片，mono 仅用于代码/密钥读数
   =========================================================================== */

:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --accent: #0071e3;
  --accent-strong: #0060c0;
  --accent-soft: rgba(0, 113, 227, 0.12);
  --green: #34c759;
  --nav-bg: rgba(251, 251, 253, 0.72);

  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 9999px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 30px 80px -24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);

  --header-height: 52px;
  --maxw: 1120px;
  --pad: max(22px, calc((100vw - var(--maxw)) / 2));

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #0b0b0d;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);
    --accent: #2997ff;
    --accent-strong: #4aa8ff;
    --accent-soft: rgba(41, 151, 255, 0.18);
    --nav-bg: rgba(22, 22, 23, 0.72);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 30px 80px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

svg {
  width: 1em;
  height: 1em;
  stroke-width: 1.8;
}

.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.07;
}

/* 渐变标题/数字 */
.grad {
  background: linear-gradient(90deg, #ff2d55, #ff9500 30%, #34c759 58%, #0a84ff 82%, #bf5af2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad-blue {
  background: linear-gradient(90deg, #0a84ff, #5e5ce6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad-green {
  background: linear-gradient(90deg, #34c759, #30b0c7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  color: var(--bg);
  background: var(--text);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- top strip ---------- */
.privacy-strip {
  position: relative;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  gap: 10px;
  color: var(--text-2);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.privacy-strip span[aria-hidden] {
  color: var(--text-3);
}

.privacy-strip__pulse,
.status-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.16);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: height 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  width: max-content;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #0a84ff, #5e5ce6);
}

.brand__mark svg {
  width: 16px;
  height: 16px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  color: var(--text-2);
}

.desktop-nav a {
  position: relative;
  padding: 6px 0;
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--text);
}

.header-download {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
  min-height: 32px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  color: #fff;
  background: var(--accent);
  font-size: 13px;
  font-weight: 500;
  transition: filter 200ms ease, transform 100ms ease;
}

.header-download:hover {
  filter: brightness(1.08);
}

.header-download:active {
  transform: scale(0.97);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 14px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: color 160ms ease, border-color 160ms ease;
}

.lang-toggle:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.menu-button,
.mobile-nav {
  display: none;
}

/* ---------- shared blocks ---------- */
.eyebrow {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-heading--center {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-heading__lead {
  max-width: 600px;
  margin: 22px auto 0;
  color: var(--text-2);
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  gap: 8px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 500;
  transition: filter 200ms ease, transform 100ms ease, background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.button:active {
  transform: scale(0.98);
}

.button--primary {
  color: #fff;
  background: var(--accent);
}

.button--primary:hover {
  filter: brightness(1.08);
}

.button--dark {
  color: var(--bg);
  background: var(--text);
}

.button--dark:hover {
  filter: brightness(1.1);
}

.button--outline {
  border-color: var(--line-strong);
  background: var(--card);
  color: var(--text);
}

.button--outline:hover {
  border-color: var(--text);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 9vw, 104px) var(--pad) clamp(48px, 6vw, 80px);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(1100px 520px at 50% -12%, var(--accent-soft), transparent 62%),
    radial-gradient(900px 500px at 50% 120%, rgba(52, 199, 89, 0.06), transparent 58%),
    var(--bg);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.hero .eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--card);
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 1.04;
}

.hero__lead {
  margin: 24px auto 0;
  max-width: 50ch;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--card);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-2);
}

/* hero visual: 纯 CSS 密钥读数卡片（无软件截图） */
.hero__shot {
  position: relative;
  z-index: 2;
  margin: clamp(48px, 7vw, 76px) auto 0;
  width: 100%;
  max-width: 540px;
}

.readout {
  position: relative;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  text-align: left;
}

.readout__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}

.readout__dots {
  display: inline-flex;
  gap: 6px;
}

.readout__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-strong);
}

.readout__dots span:first-child { background: #ff5f57; }
.readout__dots span:nth-child(2) { background: #febc2e; }
.readout__dots span:nth-child(3) { background: #28c840; }

.readout__body {
  display: grid;
  gap: 12px;
  padding: 22px 20px;
}

.readout__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

.readout__row span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.readout__row b {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow-wrap: anywhere;
}

.readout__row b em {
  font-style: normal;
  color: var(--accent);
}

.readout__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}

.readout__foot b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 500;
}

.readout__foot b svg {
  width: 14px;
  height: 14px;
}

/* ---------- 背景代码装饰 ---------- */
.code-deco {
  position: absolute;
  top: clamp(70px, 10vw, 150px);
  z-index: 1;
  display: grid;
  gap: 14px;
  width: 230px;
  font-family: var(--mono);
  pointer-events: none;
  user-select: none;
}

.code-deco--left { left: max(12px, calc((100vw - var(--maxw)) / 2 - 210px)); }
.code-deco--right { right: max(12px, calc((100vw - var(--maxw)) / 2 - 210px)); text-align: right; }

.code-deco__tag {
  display: inline-block;
  width: max-content;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text-3);
  background: var(--card);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.code-deco--right .code-deco__tag { justify-self: end; }

.code-deco pre {
  margin: 0;
  color: var(--text-3);
  opacity: 0.45;
  font-size: 11px;
  line-height: 1.7;
  white-space: pre;
}

/* ---------- proof strip ---------- */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 var(--pad);
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.proof-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 34px 8px;
  text-align: center;
}

.proof-strip__item + .proof-strip__item {
  border-left: 1px solid var(--line);
}

.proof-strip__item strong {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.proof-strip__item span {
  color: var(--text-2);
  font-size: 13px;
}

/* ---------- 各 section 间距 ---------- */
.features,
.workflow,
.platforms,
.privacy,
.downloads,
.faq {
  padding: clamp(80px, 10vw, 120px) var(--pad);
  border-top: 1px solid var(--line);
}

.features,
.workflow {
  background: var(--bg);
}

.platforms,
.downloads,
.faq {
  background: var(--bg-alt);
}

/* ---------- feature grid（bento 卡片） ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 32px 30px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
}

.feature-card__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.feature-card--plain h3 {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.feature-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- key ticker ---------- */
.key-ticker {
  overflow: hidden;
  background: #000;
}

.key-ticker__track {
  display: flex;
  width: max-content;
  align-items: center;
  min-height: 58px;
  animation: ticker 24s linear infinite;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: #f5f5f7;
}

.key-ticker__track span,
.key-ticker__track b {
  display: inline-block;
  margin-right: 42px;
}

.key-ticker__track b {
  color: #2997ff;
  font-size: 20px;
  font-weight: 400;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- workflow ---------- */
.workflow__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6vw;
  align-items: start;
  margin-bottom: 56px;
}

.workflow__intro h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.workflow__lead {
  max-width: 440px;
  margin: 22px 0 0;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.6;
}

.workflow__steps {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.workflow__steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  align-items: start;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.workflow__number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
}

.workflow__steps h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.workflow__steps p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- terminal（始终深色代码卡片） ---------- */
.terminal {
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  color: #e9ede8;
  background: #16181a;
  box-shadow: var(--shadow-soft);
}

.terminal__bar,
.terminal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #9aa29b;
}

.terminal__dots {
  display: flex;
  gap: 7px;
}

.terminal__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4a504b;
}

.terminal__dots span:first-child { background: #ff5f57; }
.terminal__dots span:nth-child(2) { background: #febc2e; }
.terminal__dots span:nth-child(3) { background: #28c840; }

.icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #e9ede8;
  background: transparent;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.terminal pre {
  padding: 28px 26px;
  margin: 0;
  overflow: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
}

.terminal__prompt,
.terminal__success {
  color: #4ade80;
}

.terminal__muted {
  color: #808a82;
}

.terminal__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
}

.terminal__footer span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #4ade80;
}

/* ---------- platforms ---------- */
.platforms {
  text-align: center;
}

.platform-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 0 auto 40px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}

.platform-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 8px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  transition: background 160ms ease, color 160ms ease;
}

.platform-tabs button[aria-selected="true"] {
  color: #fff;
  background: var(--accent);
}

.platform-tabs button:hover:not([aria-selected="true"]) {
  color: var(--text);
}

.platform-panels {
  text-align: left;
}

.platform-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.platform-panel[hidden] {
  display: none;
}

.platform-panel__media {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 40px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--bg-alt);
  background-size: 34px 34px;
}

.platform-panel__media::before {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  color: var(--text-3);
  background: var(--card);
  border: 1px solid var(--line);
  content: "READ ONLY";
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.platform-visual {
  width: min(360px, 100%);
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.platform-visual__top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
}

.platform-visual__top svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.platform-visual__rows {
  display: grid;
  gap: 10px;
  padding: 18px 16px;
}

.platform-visual__rows p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
}

.platform-visual__rows p b {
  color: var(--text);
  font-weight: 500;
}

.platform-visual__rows p .ok {
  color: var(--green);
}

.platform-panel__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 42px;
}

.platform-panel__number {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.platform-panel__copy h3 {
  margin: 14px 0 16px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.platform-panel__copy > p:not(.platform-panel__number) {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}

.platform-panel__copy ul {
  display: grid;
  gap: 12px;
  padding: 24px 0;
  margin: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
}

.platform-panel__copy li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.platform-panel__copy li svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.platform-panel__copy > .button {
  align-self: flex-start;
}

.platform-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mac-troubleshooting {
  margin-top: 26px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.mac-troubleshooting__heading {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.mac-troubleshooting__heading svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.platform-panel__copy .mac-troubleshooting > p {
  margin: 12px 0 14px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.7;
}

.mac-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 14px;
  border-radius: 10px;
  color: #e9ede8;
  background: #16181a;
}

.mac-command code {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  user-select: all;
}

.mac-command .icon-button {
  border-color: rgba(255, 255, 255, 0.16);
}

/* linux poster（始终深色） */
.platform-panel__media--terminal {
  background: #16181a;
}

.platform-panel__media--terminal::before {
  color: #9aa29b;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.linux-poster {
  position: relative;
  width: min(400px, 100%);
  min-height: 300px;
  padding: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #eef2ec;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #101312;
  background-size: 26px 26px;
  font-family: var(--mono);
}

.linux-poster__top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #8f988f;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.linux-poster__command {
  margin-top: 30px;
  font-size: 15px;
}

.linux-poster__command span,
.linux-poster__scan p span {
  color: #4ade80;
}

.linux-poster__scan {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  color: #a5ada5;
  font-size: 11px;
}

.linux-poster__scan p {
  display: flex;
  gap: 20px;
  margin: 0;
}

.linux-poster__result {
  position: absolute;
  right: 26px;
  bottom: 44px;
  color: #2997ff;
  font-size: 68px;
  font-weight: 700;
  line-height: 1;
}

.linux-poster__caption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  color: #8f988f;
  font-size: 8px;
  letter-spacing: 0.08em;
}

/* ---------- privacy（统一黑色，对应 videoclean 的隐私区） ---------- */
.privacy {
  --bg: #000000;
  --bg-alt: #0b0b0d;
  --card: #1c1c1e;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: #2997ff;
  --accent-soft: rgba(41, 151, 255, 0.2);
  background: #000;
  color: var(--text);
  border-top-color: var(--line);
}

.privacy .section-heading h2,
.privacy .feature-card {
  color: var(--text);
}

/* ---------- downloads ---------- */
.downloads {
  text-align: center;
}

.download-list {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}

.download-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

a.download-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.download-row__platform {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.download-row__platform svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.download-row__meta {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11px;
}

.download-row__action,
.download-row__choices,
.download-row__choices a {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

.download-row__choices {
  gap: 18px;
}

.download-row__choices a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.download-row__choices a:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.checksums {
  max-width: 860px;
  margin: 32px auto 0;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 11px;
  text-align: left;
}

.checksums summary {
  width: max-content;
  cursor: pointer;
  color: var(--text);
}

.checksums dl {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.checksums dl div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
}

.checksums dt,
.checksums dd {
  margin: 0;
}

.checksums dd {
  overflow-wrap: anywhere;
  color: var(--text-3);
}

/* ---------- faq ---------- */
.faq__list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 160ms ease;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary svg {
  flex: 0 0 auto;
  color: var(--accent);
  transition: transform 200ms ease;
}

.faq details[open] summary svg {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 26px 26px;
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- footer ---------- */
.site-footer {
  padding: 0 var(--pad);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 140px;
  align-items: center;
}

.brand--footer .brand__mark {
  color: #fff;
  background: linear-gradient(135deg, #0a84ff, #5e5ce6);
}

.site-footer__top p {
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
}

.footer-top {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: var(--card);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.footer-top:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.site-footer__bottom {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.footer-langs {
  display: inline-flex;
  gap: 16px;
}

.footer-langs a {
  color: var(--text-3);
  transition: color 160ms ease;
}

.footer-langs a:hover {
  color: var(--text);
}

.footer-langs a[aria-current] {
  color: var(--text-2);
  font-weight: 600;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal--delay-1 { transition-delay: 80ms; }
.reveal--delay-2 { transition-delay: 160ms; }
.reveal--delay-3 { transition-delay: 240ms; }
.reveal--image { transform: translateY(32px); }

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .code-deco { display: none; }
}

@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid--three {
    grid-template-columns: 1fr;
  }

  .workflow__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .platform-panel {
    grid-template-columns: 1fr;
  }

  .platform-panel__media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  :root {
    --pad: 20px;
  }

  .desktop-nav,
  .header-actions {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    height: 56px;
  }

  .menu-button {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
  }

  .menu-button svg {
    width: 22px;
    height: 22px;
  }

  .mobile-nav {
    position: fixed;
    top: 56px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 79;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px 20px;
    background: var(--bg);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav > a {
    display: flex;
    min-height: 56px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    font-size: 20px;
    font-weight: 600;
  }

  .mobile-nav > a:last-child {
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    border: 0;
    border-radius: var(--radius-pill);
    color: #fff;
    background: var(--accent);
    font-size: 15px;
  }

  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-strip__item:nth-child(3) {
    border-left: 0;
  }

  .proof-strip__item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .platform-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    border-radius: var(--radius);
  }

  .platform-tabs button {
    padding: 0 8px;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
  }

  .platform-panel__copy {
    padding: 34px 24px 42px;
  }

  .download-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .download-row__meta {
    grid-row: 2;
    grid-column: 1;
  }

  .download-row__action,
  .download-row__choices {
    grid-row: 1 / span 2;
    grid-column: 2;
  }

  .download-row__choices {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .checksums dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer__top {
    grid-template-columns: 1fr auto;
  }

  .site-footer__top p {
    display: none;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding: 20px 0;
  }
}

@media (max-width: 520px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .button {
    justify-content: center;
  }

  .readout__row {
    grid-template-columns: 100px 1fr;
  }

  .terminal pre {
    padding: 22px 18px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal--image {
    opacity: 1;
    transform: none;
  }
}
