/* 页面共享的基础变量：统一三版预览的字体、边界和可访问焦点表现。 */
:root {
  color-scheme: dark;
  --font-body: "Segoe UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-display: "Arial Narrow", "Segoe UI", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

/* 共享的盒模型与页面重置，避免浏览器默认边距改变三版的布局比例。 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

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

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

/* 页面容器控制内容宽度，保证桌面端留白和移动端内边距一致。 */
.page-frame {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.section-frame {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
}

/* 公共导航：保持产品名、版本和下载入口始终清晰可见。 */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  transition: color 180ms var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-download {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
}

/* 公共按钮只承担跳转动作，主次关系由颜色和边界区分。 */
.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

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

.button-secondary {
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--surface-strong);
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  width: 24px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero-title,
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.055em;
}

.hero-title {
  max-width: 720px;
  font-size: clamp(3.5rem, 9vw, 7.2rem);
  line-height: 0.96;
}

.section-title {
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  line-height: 1;
}

.hero-copy,
.section-intro {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.hero-copy {
  max-width: 560px;
  margin: 25px 0 0;
}

.section-intro {
  max-width: 520px;
  margin: 20px 0 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 52px;
}

.section-heading > div {
  min-width: 0;
}

.micro-copy {
  color: var(--muted);
  font-size: 13px;
}

/* 公共示意窗口只表达“窗口被控制”的产品概念，不依赖外部图片资源。 */
.window-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 35px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.7;
}

.window-body {
  min-height: 95px;
  padding: 17px;
}

.window-line {
  height: 8px;
  margin-bottom: 10px;
  border-radius: 99px;
  background: var(--line-strong);
}

.window-line.short {
  width: 58%;
}

.window-line.tiny {
  width: 34%;
}

.quiet-note {
  color: var(--muted);
  font-size: 12px;
}

/* ============================
   版本 A：深色控制台
   用荧光黄和窗口层叠突出“快捷键 + 批量隐藏”。
   ============================ */
.variant-midnight {
  --bg: #101512;
  --ink: #eff5ec;
  --muted: #9ca99b;
  --accent: #d8f36a;
  --accent-ink: #18200d;
  --focus: #d8f36a;
  --surface: #18211a;
  --surface-strong: #243025;
  --line: rgba(231, 247, 225, 0.11);
  --line-strong: rgba(231, 247, 225, 0.24);
  background-image: radial-gradient(circle at 80% 5%, rgba(216, 243, 106, 0.12), transparent 31rem);
}

.midnight-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(50px, 8vw, 130px);
  min-height: calc(100vh - 84px);
  padding: 72px 0 110px;
}

.midnight-hero .hero-title em {
  color: var(--accent);
  font-style: normal;
}

.command-deck {
  position: relative;
  min-height: 430px;
  padding: 30px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, rgba(38, 56, 40, 0.88), rgba(16, 21, 18, 0.6));
  box-shadow: 20px 20px 0 rgba(216, 243, 106, 0.08);
}

.command-deck::before {
  position: absolute;
  top: 22px;
  right: 23px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px 7px rgba(216, 243, 106, 0.23);
  content: "";
}

.deck-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hotkey-display {
  display: flex;
  align-items: end;
  gap: 11px;
  margin-top: 78px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 7vw, 6.2rem);
  font-weight: 850;
  letter-spacing: -0.08em;
  line-height: 0.85;
}

.hotkey-display small {
  padding-bottom: 8px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

.window-stack {
  position: absolute;
  right: 30px;
  bottom: 28px;
  left: 30px;
  display: grid;
  gap: 10px;
}

.window-stack .window-card:nth-child(2) {
  transform: translateX(22px);
  opacity: 0.72;
}

.window-stack .window-card:nth-child(3) {
  transform: translateX(44px);
  opacity: 0.42;
}

.midnight-section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.midnight-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.midnight-step {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(24, 33, 26, 0.58);
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}

.midnight-step:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

.midnight-step.featured {
  background: var(--accent);
  color: var(--accent-ink);
}

.step-index {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 33px;
  font-weight: 800;
}

.featured .step-index {
  color: var(--accent-ink);
}

.midnight-step h3 {
  margin: 38px 0 8px;
  font-size: 19px;
}

.midnight-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.midnight-step.featured p {
  color: rgba(24, 32, 13, 0.72);
}

.match-strip {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  margin-top: 28px;
  padding: 23px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.match-strip strong {
  display: block;
  font-size: 21px;
}

.match-keywords {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent);
  font-size: 13px;
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: 64px;
  padding: 36px;
  background: var(--accent);
  color: var(--accent-ink);
}

.download-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.download-panel p {
  max-width: 540px;
  margin: 12px 0 0;
  color: rgba(24, 32, 13, 0.7);
}

.download-panel .button-primary {
  background: var(--accent-ink);
  color: var(--accent);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

/* ============================
   版本 B：冷静编辑版式
   用网格、蓝黑文字和橙色标记呈现“规则可读、操作明确”。
   ============================ */
.variant-paper {
  --bg: #e9eef1;
  --ink: #10232f;
  --muted: #5e6d74;
  --accent: #ff6548;
  --accent-ink: #fff8f4;
  --focus: #ff6548;
  --surface: rgba(255, 255, 255, 0.67);
  --surface-strong: #ffffff;
  --line: rgba(16, 35, 47, 0.12);
  --line-strong: rgba(16, 35, 47, 0.28);
  color-scheme: light;
  background-image: linear-gradient(rgba(16, 35, 47, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 35, 47, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
}

.paper-nav {
  border-bottom: 1px solid var(--line-strong);
}

.paper-hero {
  padding: 42px 0 118px;
}

.paper-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.paper-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: end;
  gap: 70px;
  padding-top: 86px;
}

.paper-hero .hero-title {
  max-width: 680px;
  color: var(--ink);
  font-size: clamp(4.1rem, 9.5vw, 8.6rem);
  line-height: 0.88;
}

.paper-hero .hero-title span {
  display: block;
  color: var(--accent);
}

.paper-lead-note {
  padding: 22px 0 0 22px;
  border-left: 2px solid var(--accent);
}

.paper-lead-note strong {
  display: block;
  max-width: 300px;
  font-size: 22px;
  line-height: 1.35;
}

.paper-lead-note p {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.rule-demo {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  margin-top: 70px;
  padding: 25px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
}

.rule-demo-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.rule-demo-content {
  min-width: 0;
}

.rule-demo-content h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.rule-demo-content p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.paper-keywords {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.paper-keyword {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 14px;
}

.paper-keyword.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.paper-section {
  padding: 100px 0;
  border-top: 1px solid var(--line-strong);
}

.paper-section .section-heading {
  align-items: start;
}

.paper-section .section-kicker {
  color: var(--accent);
}

.paper-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.paper-step {
  min-height: 250px;
  padding: 25px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.35);
}

.paper-step:nth-child(2) {
  background: rgba(255, 101, 72, 0.09);
}

.paper-step .step-index {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.1em;
}

.paper-step h3 {
  margin: 72px 0 11px;
  font-size: 20px;
}

.paper-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.paper-compatibility {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  margin-top: 46px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.paper-compatibility > div {
  padding: 22px 0;
}

.paper-compatibility > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line-strong);
}

.paper-compatibility strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.paper-compatibility span {
  color: var(--muted);
  font-size: 14px;
}

.paper-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 0 8px;
}

.paper-download h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.paper-download .button-primary {
  border-radius: 3px;
  background: var(--accent);
}

/* ============================
   版本 C：深蓝玻璃质感
   用半透明层和光晕表达“窗口离开桌面，但程序仍在运行”。
   ============================ */
.variant-glass {
  --bg: #091323;
  --ink: #f4f7ff;
  --muted: #9caaca;
  --accent: #8ed8ff;
  --accent-ink: #071322;
  --focus: #8ed8ff;
  --surface: rgba(29, 49, 81, 0.58);
  --surface-strong: rgba(52, 79, 119, 0.8);
  --line: rgba(214, 232, 255, 0.12);
  --line-strong: rgba(214, 232, 255, 0.26);
  background-image: radial-gradient(circle at 75% 10%, rgba(96, 115, 255, 0.33), transparent 27rem), radial-gradient(circle at 16% 37%, rgba(67, 208, 202, 0.11), transparent 23rem);
}

.glass-nav {
  border-bottom: 1px solid var(--line);
}

.glass-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  align-items: center;
  gap: clamp(45px, 8vw, 110px);
  min-height: calc(100vh - 84px);
  padding: 72px 0 108px;
}

.glass-hero .hero-title {
  max-width: 600px;
  font-size: clamp(3.7rem, 8vw, 7.5rem);
}

.glass-hero .hero-title span {
  color: var(--accent);
}

.glass-orbit {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(44, 70, 113, 0.74), rgba(10, 20, 37, 0.52));
  box-shadow: inset 0 0 80px rgba(142, 216, 255, 0.05), 0 25px 90px rgba(0, 0, 0, 0.25);
}

.glass-orbit::before,
.glass-orbit::after {
  position: absolute;
  border: 1px solid rgba(142, 216, 255, 0.22);
  border-radius: 50%;
  content: "";
}

.glass-orbit::before {
  width: 420px;
  height: 420px;
  top: 38px;
  right: -136px;
}

.glass-orbit::after {
  width: 620px;
  height: 620px;
  top: -62px;
  right: -232px;
  border-color: rgba(142, 216, 255, 0.1);
}

.orbit-caption {
  position: absolute;
  top: 27px;
  left: 28px;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.glass-status {
  position: absolute;
  top: 88px;
  right: 38px;
  z-index: 2;
  padding: 11px 14px;
  border: 1px solid rgba(142, 216, 255, 0.32);
  border-radius: 999px;
  background: rgba(7, 19, 34, 0.48);
  color: var(--accent);
  font-size: 13px;
}

.glass-status::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #7ce0ac;
  box-shadow: 0 0 14px #7ce0ac;
  content: "";
}

.glass-window {
  position: absolute;
  z-index: 3;
  top: 172px;
  left: 40px;
  width: min(78%, 410px);
  border: 1px solid rgba(237, 247, 255, 0.32);
  border-radius: 15px;
  background: rgba(12, 27, 49, 0.62);
  box-shadow: 16px 20px 50px rgba(0, 0, 0, 0.22);
  transform: rotate(-5deg);
}

.glass-window .window-bar {
  min-height: 42px;
  padding: 0 15px;
  border-color: var(--line);
}

.glass-window .window-body {
  min-height: 140px;
  padding: 26px;
}

.glass-window .window-line {
  background: rgba(214, 232, 255, 0.2);
}

.glass-hidden-window {
  position: absolute;
  z-index: 2;
  right: 50px;
  bottom: 85px;
  width: 195px;
  padding: 19px;
  border: 1px solid rgba(214, 232, 255, 0.19);
  border-radius: 14px;
  background: rgba(120, 137, 255, 0.13);
  color: var(--muted);
  font-size: 13px;
  transform: rotate(7deg);
}

.glass-hidden-window strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 18px;
}

.glass-hotkey {
  position: absolute;
  right: 38px;
  bottom: 32px;
  z-index: 3;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.glass-section {
  padding: 116px 0;
  border-top: 1px solid var(--line);
}

.glass-section .section-heading {
  align-items: start;
}

.glass-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.glass-steps::before {
  position: absolute;
  top: 45px;
  right: 10%;
  left: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  content: "";
  opacity: 0.45;
}

.glass-step {
  position: relative;
  min-height: 244px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(28, 48, 80, 0.42);
  backdrop-filter: blur(10px);
}

.glass-step:nth-child(2) {
  margin-top: 28px;
}

.glass-step:nth-child(3) {
  margin-top: 56px;
}

.glass-step .step-index {
  display: inline-grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 14px;
}

.glass-step h3 {
  margin: 58px 0 9px;
  font-size: 19px;
}

.glass-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.glass-info-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 68px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.glass-info-row strong {
  color: var(--ink);
}

.glass-download {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 67px;
  padding: 33px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(105deg, rgba(82, 103, 195, 0.35), rgba(39, 180, 198, 0.16));
}

.glass-download h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.07em;
  line-height: 1;
}

.glass-download p {
  max-width: 520px;
  margin: 11px 0 0;
  color: var(--muted);
}

/* 预览索引页：只用于让用户快速比较三版，不参与最终产品首页。 */
.variant-index {
  --bg: #0b111b;
  --ink: #f2f5fa;
  --muted: #9ca8b8;
  --accent: #b4c9ff;
  --accent-ink: #0a1323;
  --focus: #b4c9ff;
  --surface: #131e2f;
  --surface-strong: #1c2b41;
  --line: rgba(242, 245, 250, 0.12);
  --line-strong: rgba(242, 245, 250, 0.25);
  color-scheme: dark;
}

.preview-hero {
  padding: 112px 0 56px;
}

.preview-hero .hero-title {
  max-width: 790px;
  font-size: clamp(3.4rem, 8vw, 7rem);
}

.preview-hero .hero-title span {
  color: var(--accent);
}

.variant-catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding-bottom: 70px;
}

.variant-card {
  display: flex;
  min-height: 410px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}

.variant-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
}

.variant-card h2 {
  margin: 24px 0 10px;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.055em;
  line-height: 1;
}

.variant-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.variant-preview {
  position: relative;
  height: 145px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.variant-preview::before,
.variant-preview::after {
  position: absolute;
  content: "";
}

.variant-preview.midnight-preview {
  background: #101512;
}

.midnight-preview::before {
  top: 21px;
  left: 22px;
  width: 48%;
  height: 7px;
  background: #d8f36a;
  box-shadow: 0 18px 0 rgba(239, 245, 236, 0.25), 0 36px 0 rgba(239, 245, 236, 0.16);
}

.midnight-preview::after {
  right: 17px;
  bottom: 19px;
  width: 33%;
  height: 68px;
  border: 1px solid rgba(216, 243, 106, 0.5);
}

.variant-preview.paper-preview {
  background: #e9eef1;
}

.paper-preview::before {
  top: 27px;
  left: 18px;
  width: 51%;
  height: 30px;
  border-bottom: 5px solid #ff6548;
  background: #10232f;
}

.paper-preview::after {
  right: 18px;
  bottom: 20px;
  width: 30%;
  height: 42px;
  border: 1px solid #10232f;
}

.variant-preview.glass-preview {
  background: radial-gradient(circle at 80% 25%, #5365c3, transparent 35%), #091323;
}

.glass-preview::before {
  top: 28px;
  left: 28px;
  width: 59%;
  height: 81px;
  border: 1px solid rgba(142, 216, 255, 0.55);
  border-radius: 12px;
  transform: rotate(-5deg);
}

.glass-preview::after {
  right: 18px;
  bottom: 18px;
  width: 55px;
  height: 55px;
  border: 1px solid #8ed8ff;
  border-radius: 50%;
}

/* 移动端布局：把双列展示收束为单列，避免标题和功能卡片横向溢出。 */
@media (max-width: 820px) {
  .page-frame,
  .section-frame {
    width: min(100% - 34px, 620px);
  }

  .site-nav {
    min-height: 72px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a:not(.nav-download) {
    display: none;
  }

  .midnight-hero,
  .paper-hero-grid,
  .glass-hero {
    grid-template-columns: 1fr;
    gap: 52px;
    min-height: auto;
    padding-top: 70px;
  }

  .command-deck,
  .glass-orbit {
    min-height: 400px;
  }

  .midnight-steps,
  .paper-steps,
  .glass-steps,
  .variant-catalog {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
    margin-bottom: 32px;
  }

  .section-heading .micro-copy {
    margin-top: 15px;
  }

  .midnight-section,
  .paper-section,
  .glass-section {
    padding: 82px 0;
  }

  .match-strip,
  .paper-compatibility,
  .download-panel,
  .glass-download {
    grid-template-columns: 1fr;
  }

  .paper-hero {
    padding-bottom: 82px;
  }

  .paper-meta {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .paper-lead-note {
    padding-left: 16px;
  }

  .paper-steps {
    display: block;
  }

  .paper-compatibility {
    display: block;
  }

  .paper-compatibility > div + div {
    padding-left: 0;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .paper-download {
    align-items: start;
    flex-direction: column;
    padding-top: 30px;
  }

  .glass-step:nth-child(2),
  .glass-step:nth-child(3) {
    margin-top: 0;
  }

  .glass-steps::before {
    display: none;
  }

  .glass-window {
    left: 25px;
    width: calc(100% - 50px);
  }

  .glass-hidden-window {
    right: 24px;
  }

  .glass-hotkey {
    right: 24px;
  }

  .glass-info-row,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }
}

/* 小屏手机进一步降低装饰元素的占比，只保留能说明功能的内容。 */
@media (max-width: 480px) {
  .page-frame,
  .section-frame {
    width: min(100% - 28px, 620px);
  }

  .hero-title {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .command-deck {
    padding: 23px;
  }

  .window-stack {
    right: 23px;
    left: 23px;
  }

  .window-stack .window-card:nth-child(2) {
    transform: translateX(12px);
  }

  .window-stack .window-card:nth-child(3) {
    transform: translateX(24px);
  }

  .hotkey-display {
    margin-top: 64px;
  }

  .rule-demo {
    grid-template-columns: 1fr;
  }

  .glass-orbit {
    min-height: 360px;
  }

  .glass-status {
    top: 76px;
    right: 20px;
  }

  .glass-window {
    top: 152px;
  }

  .glass-hidden-window {
    right: 20px;
    bottom: 57px;
    width: 152px;
  }

  .glass-hotkey {
    bottom: 22px;
    font-size: 31px;
  }

  .download-panel,
  .glass-download {
    padding: 24px;
  }
}

/* 用户关闭动画时保留完整内容，不依赖动效传达功能含义。 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
