/* RawYu Darkroom — Apple 风格产品页 */
:root {
  --rx-ink: #101214;
  --rx-muted: #6b7280;
  --rx-line: rgba(16, 18, 20, .10);
  --rx-bg: #fbfbfd;
  --rx-mint: #7fffd4;
  --rx-mint-ink: #0b6b55;
  --rx-pad: clamp(24px, 5vw, 64px);
}

body {
  margin: 0;
  background: var(--rx-bg);
  color: var(--rx-ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 导航 */
.rx-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 253, .82);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--rx-line);
}

.rx-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--rx-pad);
  height: 52px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.rx-brand { font-weight: 650; letter-spacing: -.01em; }
.rx-nav-links { display: flex; gap: 22px; font-size: 13px; color: var(--rx-muted); flex: 1; justify-content: center; }
.rx-nav-links a, .rx-nav-back { text-decoration: none; color: inherit; }
.rx-nav-links a:hover { color: var(--rx-ink); }
.rx-nav-right { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.rx-nav-buy { padding: 5px 13px; border-radius: 999px; background: var(--rx-mint); color: var(--rx-mint-ink); text-decoration: none; font-weight: 600; }
.rx-nav-back { color: var(--rx-muted); text-decoration: none; }

/* Hero */
.rx-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) var(--rx-pad) 0;
  text-align: center;
}

.rx-kicker {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rx-muted);
}

.rx-h1 {
  margin: 18px 0 0;
  font-size: clamp(52px, 9.4vw, 116px);
  line-height: .94;
  letter-spacing: -.045em;
  font-weight: 700;
}

.rx-tagline {
  margin: 22px 0 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -.02em;
  font-weight: 600;
}

.rx-hero-sub {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--rx-muted);
  font-size: clamp(14.5px, 1.6vw, 17px);
}

.rx-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

.rx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--rx-line);
  background: #fff;
  color: var(--rx-ink);
  font-size: 14.5px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.rx-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(16, 18, 20, .10); }
.rx-btn--fill { background: var(--rx-mint); border-color: var(--rx-mint); color: var(--rx-mint-ink); font-weight: 650; }
.rx-btn--wide { width: 100%; }

.rx-hero-note { margin: 16px 0 0; font-size: 12.5px; color: var(--rx-muted); }

/* 产品大图 */
.rx-visual { padding: clamp(40px, 6vw, 72px) var(--rx-pad) 0; display: flex; justify-content: center; }

.rx-laptop {
  width: 100%;
  max-width: 940px;
  filter: drop-shadow(0 50px 70px rgba(6, 21, 18, .22)) drop-shadow(0 6px 14px rgba(6, 21, 18, .10));
}

.rx-laptop-lid {
  padding: 12px 12px 14px;
  border-radius: 22px 22px 5px 5px;
  background: linear-gradient(180deg, #17191a 0%, #0b0d0d 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
}

.rx-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px 14px 3px 3px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 20% 6%, #d6ebff 0%, #a8c4e7 40%, #5d7bab 100%);
}

.rx-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }

.rx-notch {
  position: absolute;
  top: 1.2%;
  left: 50%;
  width: 4.5%;
  height: 1.9%;
  transform: translateX(-50%);
  background: #05070a;
  border-radius: 999px;
}

.rx-dock {
  position: absolute;
  left: 50%;
  bottom: 2.4%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .30);
  backdrop-filter: blur(8px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}

.rx-dock i { width: 13px; height: 10px; border-radius: 3px; background: #fff; opacity: .9; }
.rx-dock i:nth-child(1) { background: #7fffd4; }
.rx-dock i:nth-child(2) { background: #5aa9ff; }
.rx-dock i:nth-child(3) { background: #ff9f6b; }
.rx-dock i:nth-child(4) { background: #c58bff; }
.rx-dock i:nth-child(5) { background: #ffd166; }
.rx-dock i:nth-child(6) { background: #8ee6a0; }

.rx-laptop-base {
  height: 15px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #eef2f0 0%, #cfd6d3 36%, #a9b2af 74%, #8b9492 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}

/* 通用区块 */
.rx-section { max-width: 1120px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--rx-pad); }
.rx-section--alt { background: #fff; max-width: none; }
.rx-section--alt > * { max-width: 1120px; margin-left: auto; margin-right: auto; }

.rx-h2 {
  margin: 14px 0 0;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 700;
  max-width: 15em;
}

.rx-lede { max-width: 640px; margin: 18px 0 0; color: var(--rx-muted); font-size: clamp(15px, 1.5vw, 16.5px); }

/* 数据 */
.rx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.rx-stats div { padding-top: 18px; border-top: 1px solid var(--rx-line); }
.rx-stats strong { display: block; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.03em; }
.rx-stats span { display: block; margin-top: 6px; color: var(--rx-muted); font-size: 13.5px; }

/* 功能卡 */
.rx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.rx-card { padding: 26px 24px 24px; border-radius: 22px; background: var(--rx-bg); border: 1px solid var(--rx-line); }
.rx-num { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .12em; color: var(--rx-mint-ink); }
.rx-card h3 { margin: 12px 0 8px; font-size: 17.5px; letter-spacing: -.01em; }
.rx-card p { margin: 0; color: var(--rx-muted); font-size: 13.5px; }

/* 对比 */
.rx-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 46px; }
.rx-plan { padding: 30px 28px; border-radius: 26px; background: #fff; border: 1px solid var(--rx-line); display: flex; flex-direction: column; }
.rx-plan--pro { border-color: rgba(11, 107, 85, .30); box-shadow: 0 24px 50px rgba(11, 107, 85, .12); }
.rx-plan-tag { margin: 0 0 10px; font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .12em; color: var(--rx-muted); }
.rx-plan h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.rx-plan h3 sup { font-size: 11px; color: var(--rx-mint-ink); margin-left: 3px; }
.rx-price { margin: 14px 0 6px; font-size: 40px; letter-spacing: -.03em; font-weight: 700; }
.rx-price small { font-size: 13px; color: var(--rx-muted); font-weight: 400; margin-left: 4px; }
.rx-plan ul { margin: 16px 0 26px; padding: 0; list-style: none; font-size: 14px; color: var(--rx-muted); }
.rx-plan li { padding: 6px 0; border-top: 1px solid var(--rx-line); }
.rx-plan .rx-btn { margin-top: auto; }

/* 要求 */
.rx-reqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.rx-reqs h4 { margin: 0 0 6px; font-size: 15px; }
.rx-reqs p { margin: 0; color: var(--rx-muted); font-size: 13.5px; }
.rx-fine { margin-top: 30px; font-size: 12.5px; color: var(--rx-muted); max-width: 640px; }

/* 页脚 */
.rx-footer { border-top: 1px solid var(--rx-line); background: #f5f5f7; }
.rx-footer-inner { max-width: 1120px; margin: 0 auto; padding: 28px var(--rx-pad) 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--rx-muted); }
.rx-footer-links a { color: inherit; }

@media (max-width: 900px) {
  .rx-nav-links { display: none; }
  .rx-grid, .rx-compare, .rx-reqs, .rx-stats { grid-template-columns: 1fr; }
  .rx-hero, .rx-section { text-align: left; }
  .rx-hero-cta { justify-content: flex-start; }
}

/* ===== 二级菜单（下载） ===== */
.rx-menu { position: relative; display: inline-flex; }

.rx-menu-btn {
  appearance: none; border: 0; background: none; padding: 0;
  font: inherit; font-size: 13px; color: var(--rx-muted); cursor: pointer;
}
.rx-menu-btn:hover { color: var(--rx-ink); }

.rx-menu-panel {
  position: absolute; top: 150%; right: 0; display: none;
  min-width: 210px; padding: 8px; border-radius: 14px;
  background: #fff; border: 1px solid var(--rx-line);
  box-shadow: 0 18px 40px rgba(16,18,20,.14); z-index: 60;
}
.rx-menu.is-open .rx-menu-panel { display: block; }
.rx-menu-panel a {
  display: block; padding: 8px 10px; border-radius: 9px;
  font-size: 13px; color: var(--rx-ink); text-decoration: none;
}
.rx-menu-panel a:hover { background: #f3f8f6; }

/* 推广条 */
.rx-promo { border-top: 1px solid var(--rx-line); border-bottom: 1px solid var(--rx-line); background: #f5f5f7; }
.rx-wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--rx-pad); }
.rx-promo-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px var(--rx-pad); max-width: 1120px; }
.rx-promo-h { margin: 6px 0 4px; font-size: 21px; letter-spacing: -.02em; }
.rx-promo-p { margin: 0; font-size: 13.5px; color: var(--rx-muted); }

/* Hero 精简版：Apple 中国站的居中大字 */
.rx-hero { padding: clamp(48px, 7vw, 84px) var(--rx-pad) 0; text-align: center; }
.rx-h1 { font-size: clamp(46px, 7.4vw, 88px); line-height: 1; letter-spacing: -.04em; }
.rx-tagline { margin: 16px 0 0; font-size: clamp(20px, 2.6vw, 30px); }
.rx-hero-cta { margin-top: 26px; }

/* FAQ */
.rx-faq { margin-top: 42px; border-top: 1px solid var(--rx-line); }
.rx-faq details { border-bottom: 1px solid var(--rx-line); padding: 18px 0; }
.rx-faq summary { cursor: pointer; font-size: 16px; font-weight: 600; letter-spacing: -.01em; list-style: none; }
.rx-faq summary::-webkit-details-marker { display: none; }
.rx-faq summary::after { content: "+"; float: right; color: var(--rx-muted); font-weight: 400; }
.rx-faq details[open] summary::after { content: "−"; }
.rx-faq p { margin: 12px 0 0; color: var(--rx-muted); font-size: 14px; max-width: 680px; }

.rx-footer-help { padding-top: 0; }
@media (max-width: 900px) {
  .rx-promo-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== 与主页统一：品牌、页脚、按钮对齐 ===== */
.rx-brand { display: inline-flex; align-items: baseline; color: var(--rx-ink); text-decoration: none; }
.rx-dot { color: var(--rx-mint-ink); }
.rx-crumb {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--rx-line);
  font-size: 13px;
  color: var(--rx-muted);
}

/* 按钮对齐：等高等基线 */
.rx-hero-cta { align-items: center; }
.rx-btn { height: 44px; min-height: 44px; padding: 0 22px; line-height: 1; }
.rx-btn span[aria-hidden] { display: inline-block; transform: translateY(-0.5px); }
.rx-nav-buy { line-height: 1; }

/* 页脚复用主页样式 */
.hx-foot { background: #f5f5f7; border-top: 1px solid var(--rx-line); }
.hx-foot-inner {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 28px 0 18px;
}
.hx-foot-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.hx-foot-links a { color: var(--rx-muted); text-decoration: none; }
.hx-foot-links a:hover { color: var(--rx-ink); }
.hx-foot-mono {
  margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; letter-spacing: .06em; color: var(--rx-muted);
}
.hx-foot-help {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  padding: 0 0 34px; font-size: 12px; color: var(--rx-muted);
  border-top: 1px solid var(--rx-line); padding-top: 16px;
}
.hx-foot-help a { color: var(--rx-muted); }

/* ===== 笔电外观对齐此前定稿 ===== */
.rx-laptop { max-width: 940px; }
.rx-laptop-lid {
  padding: 7px 7px 9px;
  border-radius: 27px 27px 4px 4px;
  background: linear-gradient(180deg, #151818 0%, #0b0d0d 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10), inset 0 1px 0 rgba(255, 255, 255, .13);
}
.rx-screen { border-radius: 19px 19px 3px 3px; }
.rx-screen img { border-radius: 19px 19px 0 0; }
.rx-notch {
  top: calc(1.7% - 2px);
  width: 3%;
  height: 1.9%;
  max-height: 9px;
  border-radius: 999px;
}
.rx-dock {
  bottom: 3.2%;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 8px;
}
.rx-dock i { width: 19px; height: 15px; border-radius: 4.5px; }
.rx-laptop-base {
  position: relative;
  height: 21px;
  border-radius: 0 0 15px 15px;
  background: linear-gradient(180deg, #eef2f0 0%, #cfd6d3 34%, #a9b2af 72%, #8b9492 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}
.rx-laptop-base::before {
  content: "";
  position: absolute; top: 0; left: 50%; width: 120px; height: 8px;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #b9c1bf 0%, #a2aaa8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}

/* ===== 功能叙事（Apple 式左右交替） ===== */
.rx-feature {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--rx-line);
}
.rx-feature:first-of-type { border-top: 0; padding-top: 44px; }
.rx-feature--flip { direction: rtl; }
.rx-feature--flip > * { direction: ltr; }

.rx-feature-copy h3 {
  margin: 10px 0 14px;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.12;
  letter-spacing: -.03em;
}
.rx-feature-copy p { margin: 0 0 16px; color: var(--rx-muted); font-size: 15px; }
.rx-list { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--rx-muted); }
.rx-list li { padding: 7px 0; border-top: 1px solid var(--rx-line); }

.rx-feature-visual { min-width: 0; }

.rx-panel {
  position: relative;
  padding: 18px;
  border-radius: 20px;
  background: #0f1214;
  box-shadow: 0 26px 50px rgba(6, 21, 18, .20);
}
.rx-panel-title {
  margin: 0 0 12px;
  font-family: ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .45);
}
.rx-curve { display: block; width: 100%; height: auto; border-radius: 10px; }

.rx-sliders { display: grid; gap: 10px; margin-top: 14px; }
.rx-sliders span { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.rx-sliders i {
  position: relative; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .12);
}
.rx-sliders i::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v, 50%);
  border-radius: 999px; background: #7fffd4;
}
.rx-sliders em { font-style: normal; font-size: 11.5px; color: rgba(255, 255, 255, .5); }

.rx-panel--photo { padding: 0; overflow: hidden; }
.rx-panel--photo img { display: block; width: 100%; height: auto; }
.rx-mask {
  position: absolute; left: 34%; top: 22%; width: 34%; aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(127, 255, 212, .9), inset 0 0 40px rgba(127, 255, 212, .18);
  background: radial-gradient(circle, rgba(127,255,212,.14) 0%, rgba(127,255,212,.02) 62%, transparent 72%);
}
.rx-mask-label {
  position: absolute; left: 14px; bottom: 12px;
  font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .12em;
  color: #9ff6d8;
}

.rx-queue { display: grid; gap: 9px; }
.rx-q-row {
  display: grid; grid-template-columns: 1fr 90px auto; align-items: center; gap: 10px;
  font-size: 11.5px; color: rgba(255, 255, 255, .72);
}
.rx-q-row em { font-style: normal; font-family: ui-monospace, monospace; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-q-row i { position: relative; height: 4px; border-radius: 999px; background: rgba(255,255,255,.12); }
.rx-q-row i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: 999px; background: #7fffd4; }
.rx-q-row b { font-weight: 500; font-size: 11px; color: #9ff6d8; }
.rx-q-row--wait b { color: rgba(255,255,255,.45); }

@media (max-width: 900px) {
  .rx-feature, .rx-feature--flip { grid-template-columns: 1fr; direction: ltr; }
  .rx-feature-visual { order: -1; }
}

/* =====================================================================
   深浅色主题 + 滚动渐显 + 情绪区块
   ===================================================================== */
:root {
  --bg: #fbfbfd;
  --bg-alt: #ffffff;
  --bg-deep: #000000;
  --ink: #101214;
  --ink-soft: #6b7280;
  --line: rgba(16, 18, 20, .10);
  --card: #ffffff;
  --mint: #7fffd4;
  --mint-ink: #0b6b55;
  --nav-bg: rgba(251, 251, 253, .80);
  --code-bg: #0f1214;
  --code-ink: #e8f1ee;
  transition: background-color .45s ease, color .45s ease;
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #0b0c0e;
  --bg-deep: #000000;
  --ink: #f5f5f7;
  --ink-soft: #9aa3a1;
  --line: rgba(255, 255, 255, .12);
  --card: #141618;
  --mint: #7fffd4;
  --mint-ink: #7fffd4;
  --nav-bg: rgba(0, 0, 0, .72);
}

/* 旧变量名映射，保证既有规则跟着变 */
:root, [data-theme="dark"] {
  --rx-bg: var(--bg);
  --rx-ink: var(--ink);
  --rx-muted: var(--ink-soft);
  --rx-line: var(--line);
  --rx-mint: var(--mint);
  --rx-mint-ink: var(--mint-ink);
}

body { background: var(--bg); color: var(--ink); transition: background-color .45s ease, color .45s ease; }

.rx-nav { background: var(--nav-bg); border-bottom-color: var(--line); transition: background-color .45s ease, box-shadow .3s ease; }
.rx-nav.is-stuck { box-shadow: 0 10px 30px rgba(0, 0, 0, .10); }
.rx-nav-links a, .rx-nav-back, .rx-menu-btn { color: var(--ink-soft); }
.rx-brand { color: var(--ink); }
.rx-crumb { border-left-color: var(--line); }

.rx-btn { background: var(--card); color: var(--ink); border-color: var(--line); }
.rx-btn--fill { background: var(--mint); color: #04241c; border-color: var(--mint); }
.rx-nav-buy { background: var(--mint); color: #04241c; }

.rx-promo { background: var(--bg-alt); border-color: var(--line); }
.rx-section--alt { background: var(--bg-alt); }
.rx-section--dark { background: var(--bg-deep); color: #f5f5f7; }
.rx-section--dark .rx-lede, .rx-section--dark .rx-kicker { color: #9aa3a1; }
.rx-section--dark .rx-plan { background: #131518; border-color: rgba(255,255,255,.14); color: #f5f5f7; }
.rx-section--dark .rx-plan--pro { border-color: rgba(127,255,212,.36); box-shadow: 0 26px 60px rgba(127,255,212,.10); }
.rx-section--dark .rx-plan ul, .rx-section--dark .rx-price small, .rx-section--dark .rx-plan-tag { color: #9aa3a1; }
.rx-section--dark .rx-plan li { border-top-color: rgba(255,255,255,.12); }
.rx-section--dark .rx-btn { background: transparent; color: #f5f5f7; border-color: rgba(255,255,255,.24); }
.rx-section--dark .rx-btn--fill { background: var(--mint); color: #04241c; border-color: var(--mint); }

.rx-card, .rx-faq details, .rx-reqs { border-color: var(--line); }
.rx-card { background: var(--card); }
.rx-faq { border-top-color: var(--line); }
.rx-faq details { border-bottom-color: var(--line); }
.rx-stats div { border-top-color: var(--line); }

/* 下载区（沿用 darkroom.css 的浅色组件，深色下覆盖） */
[data-theme="dark"] .dr-gate,
[data-theme="dark"] .dr-card,
[data-theme="dark"] .dr-section {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}
[data-theme="dark"] .dr-gate-phone,
[data-theme="dark"] .dr-gate-answer,
[data-theme="dark"] .dr-gate-code {
  background: #1b1e20;
  border-color: rgba(255,255,255,.16);
  color: var(--ink);
}
[data-theme="dark"] .dr-gate-code-wrap,
[data-theme="dark"] .dr-btn:not(.dr-btn--primary) {
  background: #1b1e20; color: var(--ink); border-color: rgba(255,255,255,.18);
}
[data-theme="dark"] .dr-cards.is-locked { opacity: .5; }
[data-theme="dark"] .dr-specs li, [data-theme="dark"] .dr-card-specs li { color: #9aa3a1; }

/* 主题切换按钮 */
.rx-theme {
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  display: inline-grid; place-items: center; cursor: pointer;
}
.rx-theme-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint) 45%, transparent);
  transition: background-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
[data-theme="dark"] .rx-theme-dot { background: var(--mint); transform: scale(1.1); }

/* 滚动渐显 */
.rx-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.rx-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rx-reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== 对齐参考实拍：屏幕下巴 + 更接近真机的边框 ===== */
.rx-laptop-lid {
  padding: 7px 7px 0;
  border-radius: 26px 26px 6px 6px;
  background: linear-gradient(180deg, #111314 0%, #050607 100%);
}

.rx-screen {
  border-radius: 18px 18px 2px 2px;
}

.rx-screen img { border-radius: 18px 18px 0 0; }

/* 下巴：型号条 */
.rx-chin {
  margin: 0;
  padding: 0.95% 0 1.15%;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .34);
  user-select: none;
}

/* 底座：更薄、带前缘高光 */
.rx-laptop-base {
  height: 17px;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(180deg, #f2f5f4 0%, #d3dad7 30%, #b3bcb9 64%, #98a19e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 1px rgba(0, 0, 0, .16),
    0 1px 0 rgba(0, 0, 0, .06);
}

.rx-laptop-base::before {
  width: 132px;
  height: 7px;
  border-radius: 0 0 9px 9px;
  background: linear-gradient(180deg, #bcc4c1 0%, #a5adaa 100%);
}

/* 深色模式下机身仍是金属色，但投影收敛 */
[data-theme="dark"] .rx-laptop {
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .55)) drop-shadow(0 6px 14px rgba(0, 0, 0, .35));
}

/* 视差的过渡：滚动时不要有缓动延迟 */
[data-parallax] { will-change: transform; }

/* ===== 屏幕内改成窗口（照参考实拍：浏览器/应用窗口悬浮在桌面上） ===== */
.rx-screen {
  background:
    radial-gradient(120% 90% at 18% 8%, #d7ecff 0%, #a9c7ea 38%, #6f8fc4 66%, #455a86 100%);
}

.rx-window {
  position: absolute;
  left: 3.2%;
  right: 3.2%;
  top: 9.5%;
  bottom: 15%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 9px;
  background: #fff;
  box-shadow:
    0 22px 44px rgba(4, 10, 20, .38),
    0 2px 6px rgba(4, 10, 20, .22),
    0 0 0 1px rgba(255, 255, 255, .28);
}

.rx-titlebar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 26px;
  padding: 0 10px;
  background: linear-gradient(180deg, #f7f8f8 0%, #eef0f1 100%);
  border-bottom: 1px solid rgba(0, 0, 0, .10);
}

.rx-lights { display: flex; gap: 5px; }
.rx-lights i { width: 7px; height: 7px; border-radius: 50%; background: #ff5f57; }
.rx-lights i:nth-child(2) { background: #febc2e; }
.rx-lights i:nth-child(3) { background: #28c840; }

.rx-tabs {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-left: 6px;
}
.rx-tabs b { font-size: 10px; font-weight: 600; color: #2b3230; }
.rx-tabs em {
  font-style: normal;
  font-size: 9px;
  color: #8a9391;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rx-tools { display: flex; gap: 6px; }
.rx-tools i {
  width: 12px; height: 8px; border-radius: 2px;
  background: #dfe4e2;
}

.rx-window img {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  display: block;
  box-shadow: none;
}

/* Dock 放到桌面层、窗口之下 */
.rx-dock { z-index: 2; }

/* 窗口内：应用截图铺满内容区（截图本身无系统边框） */
.rx-window { top: 8%; bottom: 13.5%; }
.rx-titlebar { height: 22px; }
.rx-window img { object-position: center top; }

/* ===== 对比区对齐修正：两卡统一栅格，逐行对齐 ===== */
.rx-compare { align-items: stretch; }
.rx-plan {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  align-content: start;
  row-gap: 10px;
  padding: 30px 28px 28px;
}
.rx-plan-tag { margin: 0; }
.rx-plan h3 { margin: 0; }
.rx-plan-line {
  margin: 0;
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.rx-price { margin: 6px 0 4px; }
.rx-plan ul { margin: 0 0 22px; }
.rx-plan li:first-child { border-top: 0; padding-top: 0; }
.rx-plan .rx-btn { align-self: end; margin-top: 0; }

/* 文字精简后收紧区块间距 */
.rx-section--dark .rx-h2 { margin-bottom: 34px; }

@media (max-width: 900px) {
  .rx-plan { row-gap: 8px; }
}

/* ===== 两卡严格等高对齐 ===== */
.rx-compare { align-items: stretch; }
.rx-plan {
  box-sizing: border-box;
  height: 100%;
  display: grid;
  grid-template-rows: 18px auto auto 58px 1fr auto;
  align-content: stretch;
  row-gap: 12px;
  padding: 30px 28px 28px;
}
.rx-plan-tag { line-height: 18px; margin: 0; }
.rx-plan h3 { margin: 0; line-height: 1.25; }
.rx-plan-line { margin: 0; }
.rx-price { margin: 0; line-height: 1; display: flex; align-items: flex-end; }
.rx-plan ul { margin: 0; align-content: start; }
.rx-plan .rx-btn { align-self: end; margin: 0; }

/* ===== 笔电：机身加厚、边框加厚、Dock 复原 ===== */
.rx-laptop-lid {
  padding: 11px 11px 0;
  border-radius: 24px 24px 6px 6px;
}

.rx-screen { border-radius: 14px 14px 2px 2px; }
.rx-screen img { border-radius: 14px 14px 0 0; }

.rx-chin { padding: 1.25% 0 1.5%; font-size: 9px; }

.rx-laptop-base {
  height: 30px;
  border-radius: 0 0 18px 18px;
}

.rx-laptop-base::before {
  width: 148px;
  height: 9px;
}

.rx-dock {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 10px;
}

.rx-dock i {
  flex: 0 0 auto;
  display: block;
  width: 17px;
  height: 17px;
  border-radius: 4px;
}

/* ===== 修正三处 ===== */

/* 1) 纯黑区块要通铺到左右边缘（浅色下不再露白边） */
.rx-section--dark {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: var(--rx-pad);
  padding-right: var(--rx-pad);
  background: #000;
}
.rx-section--dark > * {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
[data-theme="dark"] .rx-section--dark { background: #000; }

/* 2) 两卡硬锁同一高度，彻底消除错位 */
.rx-compare { align-items: start; }
.rx-plan {
  height: 400px;
  min-height: 400px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .rx-plan { height: auto; min-height: 0; }
}

/* 3) 机型名保留原始大小写：FXeM */
.rx-chin {
  text-transform: none;
  letter-spacing: .05em;
  font-weight: 550;
}

/* ===== 卡片内按钮：水平撑满并居中，消除偏移 ===== */
.rx-plan { padding-left: 28px; padding-right: 28px; }

.rx-plan .rx-btn,
.rx-plan .rx-btn--wide {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  align-self: end;
  margin: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* 清单与价格同样左对齐到统一内边距，避免视觉上“按钮偏左” */
.rx-plan ul,
.rx-plan .rx-price,
.rx-plan .rx-plan-tag,
.rx-plan h3,
.rx-plan .rx-plan-line {
  margin-left: 0;
  margin-right: 0;
}

/* 视差生效所需的起点（不干扰布局） */
.rx-h1[data-parallax] { will-change: transform; }
.rx-laptop[data-parallax] { transform-origin: 50% 60%; }

/* ===== 笔电缩小 + 不再压住文字 ===== */
.rx-hero { position: relative; z-index: 2; }
.rx-visual {
  position: relative;
  z-index: 1;
  padding-top: clamp(28px, 4vw, 52px);
}
.rx-laptop { max-width: 800px; }
.rx-laptop-lid { padding: 9px 9px 0; }
.rx-laptop-base { height: 24px; }

@media (max-width: 1100px) {
  .rx-laptop { max-width: 100%; }
}

/* 首屏文字整体下移，给顶部留呼吸 */
.rx-hero {
  padding-top: clamp(84px, 12vw, 150px);
  padding-bottom: clamp(20px, 3vw, 34px);
}
.rx-h1 { margin-top: clamp(10px, 2vw, 22px); }

/* 回滚下移，并在原基础上再往上提一点 */
.rx-hero {
  padding-top: clamp(32px, 4.6vw, 58px);
  padding-bottom: clamp(24px, 3vw, 36px);
}
.rx-h1 { margin-top: 14px; }

/* 推广条：去掉描述后下移，留出与首屏的呼吸 */
.rx-promo {
  margin-top: clamp(56px, 8vw, 120px);
  border-top: 0;
}
.rx-promo-inner { padding-top: 30px; padding-bottom: 30px; }

/* ===== 三条产品线（RyD / RyR / RyS） ===== */
.rx-lineup {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
  align-items: stretch;
}

.rx-tier {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  color: var(--ink);
}

.rx-tier--mid {
  border-color: rgba(11, 107, 85, .30);
  box-shadow: 0 22px 48px rgba(11, 107, 85, .10);
}

.rx-tier--heavy {
  background: linear-gradient(160deg, #0d1012 0%, #05070a 100%);
  border-color: rgba(255, 255, 255, .16);
  color: #f2f6f5;
}

.rx-tier--heavy .rx-tier-code { color: var(--mint); }
.rx-tier--heavy .rx-tier-line,
.rx-tier--heavy dt,
.rx-tier--heavy .rx-tier-specs dd { color: #9aa3a1; }

.rx-tier-code {
  margin: 0 0 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--mint-ink);
}

.rx-tier-name {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.02em;
}

.rx-tier-name sup {
  font-size: 11px;
  color: var(--mint-ink);
  margin-left: 2px;
}

.rx-tier-line {
  margin: 8px 0 18px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.rx-tier-specs {
  margin: 0 0 22px;
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.rx-tier-specs > div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.rx-tier--heavy .rx-tier-specs > div { border-top-color: rgba(255,255,255,.12); }

.rx-tier-specs dt { color: var(--ink-soft); }
.rx-tier-specs dd { margin: 0; }

.rx-tier .rx-btn { margin-top: auto; }

/* 对比表 */
.rx-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 36px;
  font-size: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.rx-table th,
.rx-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.rx-table th {
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

.rx-table tr:last-child td { border-bottom: 0; }
.rx-table td:first-child { color: var(--ink-soft); }
.rx-table .rx-y { color: var(--mint-ink); font-weight: 600; }

@media (max-width: 900px) {
  .rx-lineup { grid-template-columns: 1fr; }
  .rx-table { font-size: 13px; }
  .rx-table th, .rx-table td { padding: 10px 12px; }
}

/* ===== 修正：产品卡按钮居中 ===== */
.rx-tier .rx-btn,
.rx-tier .rx-btn--wide {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: auto;
  padding: 0 16px;
}

/* ===== 修正：下载卡等高、按钮统一贴底 ===== */
.dr-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 1200px) {
  .dr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.dr-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.dr-card .dr-btn,
.dr-card .dr-card-alt {
  margin-top: auto;
}

.dr-card-specs {
  flex: 0 0 auto;
}

.dr-card-file {
  min-height: 1.6em;
}

@media (max-width: 900px) {
  .dr-cards { grid-template-columns: 1fr; }
}

/* ===== 统一亮色底 + Apple 黑白分镜 ===== */
[data-theme="light"] { color-scheme: light; }

/* 不再全大写：小标签保持原有大小写 */
.rx-kicker,
.rx-table th,
.rx-tier-code {
  text-transform: none;
  letter-spacing: .02em;
}

.rx-kicker { font-size: 12px; font-family: inherit; }

/* 纯黑分镜：内容与表格反色 */
.rx-section--dark {
  background: #000;
  color: #f5f5f7;
  max-width: none;
  padding-left: var(--rx-pad);
  padding-right: var(--rx-pad);
}
.rx-section--dark > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.rx-section--dark .rx-kicker { color: #86868b; }
.rx-section--dark .rx-h2 { color: #f5f5f7; }

.rx-section--dark .rx-table {
  background: transparent;
  border-color: rgba(255, 255, 255, .14);
}
.rx-section--dark .rx-table th { color: #86868b; border-color: rgba(255,255,255,.14); }
.rx-section--dark .rx-table td { border-color: rgba(255,255,255,.14); color: #f5f5f7; }
.rx-section--dark .rx-table td:first-child { color: #a1a1a6; }
.rx-section--dark .rx-table .rx-y { color: var(--mint); }

/* 规格定义列表：Apple 风格，标签灰、值黑 */
.rx-tier-specs > div {
  grid-template-columns: 52px 1fr;
  border-top-color: rgba(0, 0, 0, .08);
}
.rx-tier-specs dt { color: #86868b; }
.rx-tier-specs dd { color: var(--ink); }
.rx-tier--heavy .rx-tier-specs dt { color: #86868b; }
.rx-tier--heavy .rx-tier-specs dd { color: #f5f5f7; }

/* 隐藏可能残留的切换按钮 */
.rx-theme { display: none !important; }

/* =====================================================================
   RawYu 暗房页 · 纯黑分镜（对标 apple.com.cn/logic-pro）
   ===================================================================== */
html.rx-dark, body.rx-dark {
  --rx-bg: #000;
  --rx-ink: #f5f5f7;
  --rx-muted: #86868b;
  --rx-line: rgba(255, 255, 255, .12);
  --rx-card: #16171a;
  --bg: #000;
  --bg-alt: #0b0b0d;
  --ink: #f5f5f7;
  --ink-soft: #86868b;
  --line: rgba(255, 255, 255, .12);
  --card: #16171a;
  --mint-ink: #7fffd4;
  color-scheme: dark;
}

body.rx-dark {
  background: #000;
  color: #f5f5f7;
}

/* 导航：黑底毛玻璃 */
.rx-dark .rx-nav {
  background: rgba(0, 0, 0, .72);
  backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.rx-dark .rx-brand, .rx-dark .rx-nav-buy + * { color: #f5f5f7; }
.rx-dark .rx-crumb { color: #86868b; border-left-color: rgba(255,255,255,.16); }
.rx-dark .rx-nav-links a, .rx-dark .rx-menu-btn { color: #a1a1a6; }
.rx-dark .rx-nav-links a:hover, .rx-dark .rx-menu-btn:hover { color: #f5f5f7; }
.rx-dark .rx-menu-panel {
  background: #1c1c1e;
  border-color: rgba(255,255,255,.12);
}
.rx-dark .rx-menu-panel a { color: #f5f5f7; }
.rx-dark .rx-menu-panel a:hover { background: rgba(255,255,255,.08); }

/* 大标题：渐变白字 */
.rx-dark .rx-h1 {
  background: linear-gradient(180deg, #ffffff 0%, #b9bcc2 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.045em;
}
.rx-dark .rx-tagline { color: #d2d2d7; }
.rx-dark .rx-kicker { color: #86868b; }

/* 按钮 */
.rx-dark .rx-btn {
  background: transparent;
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, .22);
}
.rx-dark .rx-btn:hover { background: rgba(255, 255, 255, .08); }
.rx-dark .rx-btn--fill {
  background: var(--mint, #7fffd4);
  color: #04241c;
  border-color: var(--mint, #7fffd4);
}
.rx-dark .rx-btn--fill:hover { background: #9effdd; }

/* 区块 */
.rx-dark .rx-section { background: #000; }
.rx-dark .rx-section--alt { background: #060607; }
.rx-dark .rx-section--dark { background: #000; }
.rx-dark .rx-h2 { color: #f5f5f7; }
.rx-dark .rx-lede { color: #86868b; }

/* 产品卡 */
.rx-dark .rx-tier {
  background: #16171a;
  border-color: rgba(255, 255, 255, .10);
  color: #f5f5f7;
}
.rx-dark .rx-tier--mid { border-color: rgba(127, 255, 212, .28); }
.rx-dark .rx-tier--heavy {
  background: linear-gradient(165deg, #101215 0%, #000 100%);
  border-color: rgba(255, 255, 255, .18);
}
.rx-dark .rx-tier-line { color: #a1a1a6; }
.rx-dark .rx-tier-code { color: #7fffd4; }
.rx-dark .rx-tier-specs dt { color: #86868b; }
.rx-dark .rx-tier-specs dd { color: #f5f5f7; }
.rx-dark .rx-tier-specs > div { border-top-color: rgba(255,255,255,.10); }

/* 表格 */
.rx-dark .rx-table {
  background: transparent;
  border-color: rgba(255,255,255,.14);
}
.rx-dark .rx-table th { color: #86868b; border-color: rgba(255,255,255,.14); }
.rx-dark .rx-table td { color: #f5f5f7; border-color: rgba(255,255,255,.14); }
.rx-dark .rx-table td:first-child { color: #a1a1a6; }
.rx-dark .rx-table .rx-y { color: #7fffd4; }

/* 下载区（darkroom.css 的浅色组件在黑底下的覆盖） */
.rx-dark .dr-section { background: #000; color: #f5f5f7; }
.rx-dark .dr-gate,
.rx-dark .dr-card {
  background: #16171a;
  border-color: rgba(255,255,255,.10);
  color: #f5f5f7;
}
.rx-dark .dr-gate-phone,
.rx-dark .dr-gate-answer,
.rx-dark .dr-gate-code {
  background: #1c1c1e;
  border-color: rgba(255,255,255,.16);
  color: #f5f5f7;
}
.rx-dark .dr-btn:not(.dr-btn--primary) {
  background: rgba(255,255,255,.06);
  color: #f5f5f7;
  border-color: rgba(255,255,255,.18);
}
.rx-dark .dr-card-specs li,
.rx-dark .dr-note { color: #86868b; }
.rx-dark .dr-card-file code { color: #a1a1a6; }
.rx-dark .dr-section-title, .rx-dark .dr-section-desc { color: #f5f5f7; }

/* 规格 & FAQ */
.rx-dark .rx-reqs h4 { color: #f5f5f7; }
.rx-dark .rx-reqs p, .rx-dark .rx-fine { color: #86868b; }
.rx-dark .rx-faq { border-top-color: rgba(255,255,255,.12); }
.rx-dark .rx-faq details { border-bottom-color: rgba(255,255,255,.12); }
.rx-dark .rx-faq summary { color: #f5f5f7; }
.rx-dark .rx-faq p { color: #86868b; }
.rx-dark .rx-faq summary::after { color: #86868b; }

/* 页脚 */
.rx-dark .hx-foot { background: #0a0a0c; border-top: 1px solid rgba(255,255,255,.10); }
.rx-dark .hx-foot-links a, .rx-dark .hx-foot-mono, .rx-dark .hx-foot-help,
.rx-dark .hx-foot-help a { color: #86868b; }
.rx-dark .hx-foot-links a:hover { color: #f5f5f7; }

/* ===== Apple 式动效 ===== */

/* 1. 渐显：位移 + 轻微模糊 + 透明度 */
.rx-reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(6px);
  transition:
    opacity .9s cubic-bezier(.22,.61,.36,1),
    transform .9s cubic-bezier(.22,.61,.36,1),
    filter .9s cubic-bezier(.22,.61,.36,1);
}
.rx-reveal.is-in { opacity: 1; transform: none; filter: blur(0); }
.rx-stagger:nth-of-type(2) { transition-delay: .08s; }
.rx-stagger:nth-of-type(3) { transition-delay: .16s; }

/* 2. 卡片悬停微浮起 + 光影 */
.rx-tier { transition: transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s ease, border-color .3s ease; }
.rx-tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
  border-color: rgba(255, 255, 255, .22);
}
.rx-dark .rx-tier:hover { box-shadow: 0 30px 60px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255,255,255,.06); }

/* 3. 按钮微交互 */
.rx-btn { transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease; }
.rx-btn:hover { transform: translateY(-1px); }
.rx-btn:active { transform: translateY(0) scale(.99); }

/* 4. 大标题逐字入场 */
.rx-hero .rx-h1,
.rx-hero .rx-tagline,
.rx-hero .rx-kicker,
.rx-hero .rx-hero-cta {
  animation: rx-rise .9s cubic-bezier(.22,.61,.36,1) both;
}
.rx-hero .rx-kicker { animation-delay: .05s; }
.rx-hero .rx-h1 { animation-delay: .12s; }
.rx-hero .rx-tagline { animation-delay: .26s; }
.rx-hero .rx-hero-cta { animation-delay: .38s; }

@keyframes rx-rise {
  from { opacity: 0; transform: translateY(26px); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* 5. 滚动驱动：笔电随进入视口略微放大（Apple 产品图手法） */
@supports (animation-timeline: view()) {
  .rx-visual .rx-laptop {
    animation: rx-shrink linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 55%;
  }
  @keyframes rx-shrink {
    from { transform: scale(.94); }
    to   { transform: scale(1); }
  }
}

/* 6. 首屏标题随滚动淡出 */
@supports (animation-timeline: scroll()) {
  .rx-hero {
    animation: rx-fade-out linear both;
    animation-timeline: scroll();
    animation-range: 0 70vh;
  }
  @keyframes rx-fade-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: .15; transform: translateY(-40px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .rx-reveal, .rx-hero .rx-h1, .rx-hero .rx-tagline, .rx-hero .rx-kicker,
  .rx-hero .rx-hero-cta, .rx-visual .rx-laptop, .rx-hero {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ===== 修正：区块间距过大的问题 ===== */
#family { padding-bottom: clamp(24px, 3vw, 40px); }
#compare { padding-top: clamp(32px, 4vw, 56px); }
#download { padding-top: clamp(40px, 5vw, 72px); }

/* ===== 修正：黑底下的算术题与刷新按钮 ===== */
.rx-dark .dr-gate-q,
.rx-dark .dr-gate-q span,
.rx-dark [data-dr-question] {
  background: #1c1c1e;
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, .18);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
}

.rx-dark .dr-gate-refresh {
  background: #1c1c1e;
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, .20);
}

.rx-dark .dr-gate-refresh:hover {
  background: #2a2c30;
  color: #ffffff;
}

.rx-dark .dr-gate-captcha { color: #a1a1a6; }

.rx-dark .dr-gate-answer::placeholder,
.rx-dark .dr-gate-phone::placeholder { color: #6e6e73; }

.rx-dark .dr-gate-phone-wrap { background: transparent; }

.rx-dark .dr-gate-title,
.rx-dark .dr-gate-ok { color: #f5f5f7; }
.rx-dark .dr-gate-desc,
.rx-dark .dr-gate-ok-desc { color: #86868b; }

/* 保底：即使动画未触发，内容也不能不可见 */
.rx-reveal { will-change: opacity, transform; }

/* ===== 薄荷绿按钮：改深薄荷，白字清晰不刺眼 ===== */
.rx-dark .rx-btn--fill,
.rx-dark .rx-nav-buy,
.rx-dark .dr-btn--primary,
.rx-dark .rx-gate-done .rx-btn {
  background: #0e8f72;
  border-color: #0e8f72;
  color: #ffffff;
  font-weight: 600;
}

.rx-dark .rx-btn--fill:hover,
.rx-dark .rx-nav-buy:hover,
.rx-dark .dr-btn--primary:hover {
  background: #12a184;
  border-color: #12a184;
  color: #ffffff;
}

.rx-dark .rx-btn--fill:active,
.rx-dark .dr-btn--primary:active {
  background: #0a7a61;
}

/* 深色卡片（Studio）里的按钮同步 */
.rx-dark .rx-tier--heavy .rx-btn--fill {
  background: #0e8f72;
  border-color: #0e8f72;
  color: #ffffff;
}

/* 次级薄荷文字保持亮薄荷，用于对勾与强调，不用于按钮底色 */
.rx-dark .rx-table .rx-y,
.rx-dark .rx-tier-code,
.rx-dark .rx-tier-name sup {
  color: #4ee0b8;
}

/* ===== 回滚：主题色 #7fffd4 保留，只把其上文字压深 ===== */
.rx-dark .rx-btn--fill,
.rx-dark .rx-nav-buy,
.rx-dark .dr-btn--primary,
.rx-dark .rx-tier--heavy .rx-btn--fill {
  background: #7fffd4;
  border-color: #7fffd4;
  color: #063a30;          /* 深墨绿，不是白字 */
  font-weight: 650;
}

.rx-dark .rx-btn--fill:hover,
.rx-dark .rx-nav-buy:hover,
.rx-dark .dr-btn--primary:hover {
  background: #9bffdf;
  border-color: #9bffdf;
  color: #042e26;
}

.rx-dark .rx-btn--fill:active,
.rx-dark .dr-btn--primary:active {
  background: #6fe8c2;
  color: #042e26;
}

/* 页脚法律提示 */
.hx-foot-legal {
  max-width: 1120px;
  margin: 0 auto 16px;
  padding: 0 var(--rx-pad);
  font-size: 11.5px;
  line-height: 1.6;
  color: #86868b;
}

/* ===== 价格区块（按权益档位） ===== */
.rx-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
  align-items: stretch;
}

.rx-price-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  background: var(--card, #16171a);
  color: var(--ink, #f5f5f7);
}

.rx-price-card--accent {
  border-color: rgba(127, 255, 212, .38);
  box-shadow: 0 24px 50px rgba(127, 255, 212, .08);
}

.rx-price-tag {
  margin: 0 0 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: .02em;
  color: #7fffd4;
}

.rx-price-card h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.rx-price-num {
  margin: 14px 0 16px;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -.03em;
  font-weight: 650;
}

.rx-price-num small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: #86868b;
}

.rx-price-card ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: #a1a1a6;
}

.rx-price-card li {
  padding: 7px 0;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.rx-price-card li:first-child { border-top: 0; padding-top: 0; }
.rx-price-card .rx-btn { margin-top: auto; }

@media (max-width: 1100px) {
  .rx-pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .rx-pricing { grid-template-columns: 1fr; }
}

/* ===== 胶囊按钮统一：撑满且居中（每次新增卡片都要遵守） ===== */
.rx-btn,
.rx-btn--wide,
.rx-btn--fill,
.rx-tier .rx-btn,
.rx-plan .rx-btn,
.rx-price-card .rx-btn {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  justify-content: center;
  text-align: center;
  margin-left: 0;
  margin-right: 0;
}

/* 卡片里按钮贴底 */
.rx-tier .rx-btn,
.rx-plan .rx-btn,
.rx-price-card .rx-btn {
  margin-top: auto;
  align-self: stretch;
}

/* ===== 语言选择器 ===== */
.rx-lang {
  appearance: none;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
  color: #f5f5f7;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.rx-lang:focus-visible { outline: 2px solid #7fffd4; outline-offset: 2px; }

/* ===== Hero：小胶囊 + 文字链接 ===== */
.rx-btn--sm {
  width: auto !important;
  height: 40px;
  min-height: 40px;
  padding: 0 22px !important;
  font-size: 14px;
}

.rx-hero-cta { gap: 22px; }

.rx-textlink {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  color: #7fffd4;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.rx-textlink:hover { border-bottom-color: currentColor; color: #9bffdf; }

/* ===== 白底分镜：选哪一条线 + 按需解锁 ===== */
#compare,
#pricing {
  background: #ffffff;
  color: #1d1d1f;
  max-width: none;
  padding-left: var(--rx-pad);
  padding-right: var(--rx-pad);
}
#compare > *,
#pricing > * { max-width: 1120px; margin-left: auto; margin-right: auto; }

#compare .rx-kicker,
#pricing .rx-kicker { color: #6e6e73; }
#compare .rx-h2,
#pricing .rx-h2 { color: #1d1d1f; }
#compare .rx-lede,
#pricing .rx-lede { color: #6e6e73; }

/* 白色区块里的表格 */
#compare .rx-table {
  background: #fff;
  border-color: #d2d2d7;
}
#compare .rx-table th { color: #6e6e73; border-color: #d2d2d7; }
#compare .rx-table td { color: #1d1d1f; border-color: #d2d2d7; }
#compare .rx-table td:first-child { color: #6e6e73; }
#compare .rx-table .rx-y { color: #0b6b55; }

/* 白色区块里的价格卡 */
#pricing .rx-price-card {
  background: #f5f5f7;
  border-color: #e3e3e6;
  color: #1d1d1f;
}
#pricing .rx-price-card--accent {
  background: #fff;
  border-color: rgba(14, 143, 114, .45);
  box-shadow: 0 20px 44px rgba(14, 143, 114, .12);
}
#pricing .rx-price-tag { color: #0b6b55; }
#pricing .rx-price-card h3 { color: #1d1d1f; }
#pricing .rx-price-num small { color: #6e6e73; }
#pricing .rx-price-card ul { color: #6e6e73; }
#pricing .rx-price-card li { border-top-color: #e3e3e6; }
#pricing .rx-price-card .rx-btn {
  background: #fff;
  border-color: #d2d2d7;
  color: #1d1d1f;
}
#pricing .rx-price-card .rx-btn--fill {
  background: #7fffd4;
  border-color: #7fffd4;
  color: #063a30;
  font-weight: 650;
}

/* 产品卡底部的次级链接 */
.rx-tier-link {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: #7fffd4;
  text-decoration: none;
}
.rx-tier-link:hover { text-decoration: underline; }

/* 产品线区块底部：技术支持入口 */
.rx-lineup-help {
  margin: 34px 0 0;
  text-align: center;
  font-size: 14px;
  color: #a1a1a6;
}
.rx-lineup-help a {
  color: #7fffd4;
  text-decoration: none;
  margin-left: 4px;
}
.rx-lineup-help a:hover { text-decoration: underline; }

/* =========================================================================
   笔电示意图：容器查询尺寸固化
   内部所有 px 尺寸改为 cqw（相对机身宽度），让 16 寸笔电在手机上等比缩小，
   不再出现「机身变小、内部元素不变 → 看起来像 10 寸平板」的失真。
   ========================================================================= */
.rx-laptop { container-type: inline-size; }

@supports (container-type: inline-size) {
  /* 机身外框 */
  .rx-laptop-lid { padding: 0.74cqw 0.74cqw 0; border-radius: 2.77cqw 2.77cqw 0.64cqw 0.64cqw; }
  .rx-screen { border-radius: 1.91cqw 1.91cqw 0.21cqw 0.21cqw; }
  .rx-screen img { border-radius: 1.91cqw 1.91cqw 0 0; }
  .rx-notch { top: calc(1.7% - 0.21cqw); height: 1.9%; max-height: 0.96cqw; }
  .rx-chin { padding: 0.95% 0 1.15%; font-size: 0.9cqw; }

  /* Dock */
  .rx-dock { bottom: 3.2%; gap: 0.64cqw; padding: 0.53cqw 0.96cqw; border-radius: 0.85cqw; }
  .rx-dock i { width: 2.02cqw; height: 1.6cqw; border-radius: 0.48cqw; }

  /* 底座 */
  .rx-laptop-base { height: 1.81cqw; border-radius: 0 0 1.7cqw 1.7cqw; }
  .rx-laptop-base::before { width: 14.04cqw; height: 0.74cqw; border-radius: 0 0 0.96cqw 0.96cqw; }

  /* 屏内窗口 */
  .rx-window { border-radius: 0.96cqw; }
  .rx-titlebar { height: 2.34cqw; padding: 0 1.06cqw; gap: 1.06cqw; }
  .rx-lights { gap: 0.53cqw; }
  .rx-lights i { width: 0.74cqw; height: 0.74cqw; }
  .rx-tabs { gap: 1.06cqw; padding-left: 0.64cqw; }
  .rx-tabs b { font-size: 1.06cqw; }
  .rx-tabs em { font-size: 0.96cqw; }
  .rx-tools { gap: 0.64cqw; }
  .rx-tools i { width: 1.28cqw; height: 0.85cqw; border-radius: 0.21cqw; }

  /* 投影随比例缩放 */
  .rx-laptop { filter: drop-shadow(0 5.3cqw 7.4cqw rgba(6,21,18,.22)) drop-shadow(0 0.64cqw 1.5cqw rgba(6,21,18,.10)); }
  [data-theme="dark"] .rx-laptop { filter: drop-shadow(0 4.3cqw 6.4cqw rgba(0,0,0,.55)) drop-shadow(0 0.64cqw 1.5cqw rgba(0,0,0,.35)); }
}
