@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700;800;900&display=swap");

/* Pixel UI · 可复用视觉层。业务结构与下载逻辑仍由原 site.js 维护。 */
:root {
  color-scheme: dark;
  --px-bg: #050907;
  --px-surface: #0d1712;
  --px-raised: #14231b;
  --px-green: #79ff9b;
  --px-green-strong: #42e77a;
  --px-green-deep: #153c25;
  --px-text: #e9f8ee;
  --px-muted: #8fa89a;
  --px-line: rgba(180, 255, 202, 0.13);
  --px-glass: rgba(13, 23, 18, 0.66);
  --px-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --px-radius: 24px;
  --px-display: "Chakra Petch", "Noto Sans SC", sans-serif;
  --px-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  --color-primary: #79ff9b;
  --color-primary-content: #07130b;
  --color-secondary: #42e77a;
  --color-secondary-content: #07130b;
  --color-accent: #51d98a;
  --color-accent-content: #07130b;
  --color-base-100: #050907;
  --color-base-200: #0d1712;
  --color-base-300: #14231b;
  --color-base-content: #e9f8ee;
  --color-neutral: #0a110d;
  --color-neutral-content: #e9f8ee;
  --color-success: #79ff9b;
  --color-success-content: #07130b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--px-bg);
  scrollbar-color: var(--px-green-deep) var(--px-bg);
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(58, 191, 105, 0.1), transparent 28rem),
    radial-gradient(circle at 8% 38%, rgba(80, 255, 142, 0.045), transparent 32rem),
    var(--px-bg) !important;
  color: var(--px-text);
  font-family: var(--px-body);
  font-feature-settings: "ss01", "tnum";
}

body::before,
main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(121, 255, 155, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 255, 155, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 12%, black, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

::selection {
  background: var(--px-green);
  color: #061009;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--px-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--px-green-deep);
  border: 3px solid var(--px-bg);
  border-radius: 99px;
}

main,
footer {
  position: relative;
  z-index: 1;
}

main {
  background:
    radial-gradient(circle at 78% 8%, rgba(58, 191, 105, 0.1), transparent 28rem),
    radial-gradient(circle at 8% 38%, rgba(80, 255, 142, 0.045), transparent 32rem),
    var(--px-bg) !important;
}

main > section {
  position: relative;
  z-index: 1;
  scroll-margin-top: 96px;
}

[data-parallax] {
  translate: 0 var(--px-parallax, 0px);
  will-change: translate;
}

h1,
h2,
h3,
.font-display,
.font-mono {
  font-family: var(--px-display);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--px-green);
  outline-offset: 4px;
}

/* ── 固定氛围层 ───────────────────────────── */
.px-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
}

.px-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 2px;
  pointer-events: none;
  background: rgba(121, 255, 155, 0.06);
}

.px-scroll-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--px-green);
  box-shadow: 0 0 14px rgba(121, 255, 155, 0.65);
}

.px-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 110;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 1px solid rgba(121, 255, 155, 0.58);
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: width 180ms var(--px-ease), height 180ms var(--px-ease),
    margin 180ms var(--px-ease), border-color 180ms, opacity 180ms;
  mix-blend-mode: screen;
}

.px-cursor.is-visible {
  opacity: 1;
}

.px-cursor.is-active {
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-color: var(--px-green);
}

/* ── 导航：深色玻璃胶囊 ───────────────────── */
header.fixed {
  z-index: 60;
}

header .navbar {
  --mx: 50%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 62px;
  color: var(--px-text);
  background:
    radial-gradient(circle 260px at var(--mx) var(--my), rgba(121, 255, 155, 0.1), transparent 68%),
    radial-gradient(circle at 12% 120%, rgba(121, 255, 155, 0.1), transparent 42%),
    radial-gradient(circle at 88% -60%, rgba(103, 205, 255, 0.07), transparent 40%),
    rgba(7, 14, 10, 0.78) !important;
  border: 1px solid rgba(211, 255, 224, 0.18) !important;
  border-radius: 18px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(103, 205, 255, 0.04),
    0 18px 55px rgba(0, 0, 0, 0.36) !important;
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}

header .navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 320 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23dcffe8' stroke-opacity='.2' stroke-width='.7'%3E%3Cpath d='M0 44L52 18 96 48 142 27 190 66 246 31 320 52M52 18L70 91 24 132M96 48l22 65-48 47M142 27l26-27M190 66l-20 75 72 19M246 31l28 72 46 29'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size: 320px 160px, 160px 160px;
  opacity: 0.24;
  mix-blend-mode: screen;
}

header .navbar-start,
header .navbar-end {
  width: auto;
  min-width: 0;
  position: relative;
}

header .navbar-start { justify-self: start; z-index: 3; }
header .navbar-center { justify-self: center; min-width: 0; z-index: 1; }
header .navbar-end { justify-self: end; z-index: 4; }
header .navbar-center .menu { flex-wrap: nowrap; padding: 0; }

/* app.css 是旧的编译产物，不含 md:flex / md:hidden，这里用原生断点接管导航显隐 */
header .navbar-center { display: none; }
header .navbar-end > .dropdown { display: inline-block; }

@media (min-width: 768px) {
  header .navbar-center { display: flex; }
  header .navbar-end > .dropdown { display: none; }
}


/* 导航内元素必须可点击，且不受中间菜单溢出层影响 */
header .navbar a,
header .navbar button,
header .navbar summary {
  pointer-events: auto;
}

header .navbar-start img,
footer img[alt="像素播放器"] {
  border: 1px solid rgba(121, 255, 155, 0.25);
  box-shadow: 0 0 24px rgba(121, 255, 155, 0.12);
}

header .menu a,
header .menu summary {
  min-height: 38px;
  border-radius: 10px;
  color: rgba(233, 248, 238, 0.66);
  font-size: 14px;
  transition: color 220ms, background 220ms;
}

header .menu a:hover,
header .menu summary:hover,
header .menu .menu-active {
  color: var(--px-green) !important;
  background: rgba(121, 255, 155, 0.08);
}

.dropdown-content.menu {
  color: var(--px-text);
  background: rgba(10, 20, 14, 0.94) !important;
  border: 1px solid var(--px-line) !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(24px);
}

/* ── 按钮、徽章、图标 ─────────────────────── */
.btn {
  min-height: 44px;
  height: auto;
  padding-block: 10px;
  border-radius: 12px;
  font-family: var(--px-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 300ms var(--px-ease), box-shadow 300ms var(--px-ease),
    color 220ms, background 220ms, border-color 220ms;
}

.btn-primary {
  color: #06130a !important;
  background: var(--px-green) !important;
  border: 1px solid var(--px-green) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 8px 30px rgba(74, 239, 126, 0.16);
}

.btn-primary:hover {
  color: #030805 !important;
  background: #9bffaf !important;
  border-color: #b9ffca !important;
  box-shadow: 0 12px 38px rgba(74, 239, 126, 0.28);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-ghost,
.btn-outline {
  color: var(--px-text) !important;
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(233, 248, 238, 0.13) !important;
}

.btn-ghost:hover,
.btn-outline:hover {
  color: var(--px-green) !important;
  background: rgba(121, 255, 155, 0.07) !important;
  border-color: rgba(121, 255, 155, 0.34) !important;
}

.badge {
  min-height: 26px;
  padding-inline: 11px;
  border-radius: 7px;
  font-family: var(--px-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.badge-primary,
.badge-success,
.badge-soft {
  color: var(--px-green) !important;
  background: rgba(121, 255, 155, 0.08) !important;
  border: 1px solid rgba(121, 255, 155, 0.18) !important;
}

.badge-outline {
  color: rgba(121, 255, 155, 0.78) !important;
  background: rgba(121, 255, 155, 0.035);
  border-color: rgba(121, 255, 155, 0.2) !important;
}

.icon-chip {
  position: relative;
  color: var(--px-green);
  background:
    linear-gradient(145deg, rgba(121, 255, 155, 0.15), rgba(121, 255, 155, 0.025));
  border: 1px solid rgba(121, 255, 155, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.icon-chip::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 7px;
  height: 7px;
  background: var(--px-green);
  box-shadow: 0 0 12px rgba(121, 255, 155, 0.55);
}

/* ── 冰花像素宝石：杂色光斑 × 切面 × 碎纹 × 雾化颗粒 ── */
.glass-card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  color: var(--px-text);
  background:
    radial-gradient(circle 340px at var(--mx) var(--my), rgba(184, 255, 207, 0.14), transparent 58%),
    radial-gradient(circle at 8% 112%, rgba(90, 255, 145, 0.16), transparent 42%),
    radial-gradient(circle at 96% 4%, rgba(99, 205, 255, 0.095), transparent 38%),
    radial-gradient(circle at 76% 116%, rgba(255, 190, 105, 0.055), transparent 34%),
    radial-gradient(circle at 40% -28%, rgba(204, 135, 255, 0.04), transparent 36%),
    conic-gradient(from 218deg at 0% 0%, rgba(255, 255, 255, 0.1), transparent 12%, rgba(121, 255, 155, 0.035) 24%, transparent 38%),
    linear-gradient(128deg, rgba(255, 255, 255, 0.065), transparent 26%, rgba(121, 255, 155, 0.022) 52%, rgba(108, 205, 255, 0.025) 76%, transparent),
    rgba(9, 20, 14, 0.76) !important;
  border: 1px solid rgba(211, 255, 224, 0.19);
  border-radius: var(--px-radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 1px 0 0 rgba(181, 255, 207, 0.07),
    inset 0 -1px 0 rgba(103, 205, 255, 0.07),
    inset 0 0 32px rgba(189, 255, 216, 0.025),
    0 24px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(22px) saturate(145%) contrast(104%);
  -webkit-backdrop-filter: blur(22px) saturate(145%) contrast(104%);
  transition: transform 360ms var(--px-ease), border-color 300ms,
    box-shadow 360ms var(--px-ease), background 300ms;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 420 420' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23e2ffec' stroke-width='.75'%3E%3Cpath stroke-opacity='.3' d='M-20 88L62 46 132 104 207 35 286 82 362 28 440 68M62 46L85 158 18 224M132 104l42 92-73 83-83-55M207 35l28-55M207 35l29 125-62 36M286 82l-50 78 91 72 93-62M362 28l35 108-70 96M85 158l89 38 62-36M18 224l-38 94M101 279l-16 111 123 50M174 196l-8 113 98-56 63-21M264 253l-12 127 115-52 53-98M327 232l40 96 73 24'/%3E%3Cpath stroke-opacity='.12' d='M-10 316L85 158 174 196 236 160 362 28M85 390l81-81 86 71 115-52M132 104L18 224l83 55 73-83 90 57 63-21 70-96'/%3E%3C/g%3E%3Cg fill='%23d9ffe6' fill-opacity='.025'%3E%3Cpath d='M62 46l70 58 42 92-89-38zM207 35l79 47-50 78-62 36zM236 160l91 72-63 21-90-57zM101 279l65 30 86 71-167 10z'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='ice'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.055 .14' numOctaves='4' seed='17' stitchTiles='stitch' result='noise'/%3E%3CfeDiffuseLighting in='noise' lighting-color='white' surfaceScale='2.2' diffuseConstant='.72'%3E%3CfeDistantLight azimuth='225' elevation='38'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23ice)' opacity='.62'/%3E%3C/svg%3E"),
    repeating-linear-gradient(117deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px);
  background-size: 420px 420px, 220px 220px, auto;
  opacity: 0.43;
  mix-blend-mode: screen;
}

.glass-card:not(.rounded-full)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(132deg, rgba(255, 255, 255, 0.46), transparent 19%, rgba(121, 255, 155, 0.1) 43%, transparent 66%, rgba(103, 205, 255, 0.22) 88%, rgba(255, 255, 255, 0.12)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

a.glass-card:hover,
button.glass-card:hover,
article.glass-card:hover {
  border-color: rgba(177, 255, 201, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(103, 205, 255, 0.09),
    inset 0 0 42px rgba(121, 255, 155, 0.035),
    0 30px 90px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(121, 255, 155, 0.035);
  transform: translateY(-5px);
}

article.glass-card h3,
a.glass-card h3 {
  color: var(--px-text);
}

/* ── 背景纹理 ─────────────────────────────── */
.starfield {
  opacity: 0.45 !important;
  background-image:
    radial-gradient(circle, rgba(168, 255, 192, 0.7) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(121, 255, 155, 0.35) 0 1px, transparent 1.5px) !important;
  background-position: 0 0, 27px 31px !important;
  background-size: 83px 83px, 117px 117px !important;
  mask-image: linear-gradient(black, transparent 82%);
}

.grid-lines {
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(121, 255, 155, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 255, 155, 0.055) 1px, transparent 1px) !important;
  background-size: 72px 72px !important;
  mask-image: radial-gradient(ellipse at center, black, transparent 74%);
}

.aurora {
  pointer-events: none;
  border-radius: 50%;
  background: rgba(67, 226, 120, 0.18) !important;
  filter: blur(90px);
  opacity: 0.55;
}

.glow-text,
.text-primary {
  text-shadow: 0 0 28px rgba(121, 255, 155, 0.13);
}

.marker-highlight {
  position: relative;
  color: var(--px-green);
  background: none !important;
}

.marker-highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.09em;
  background: var(--px-green);
  opacity: 0.45;
  box-shadow: 0 0 18px rgba(121, 255, 155, 0.3);
}

/* ── 首页：非对称像素声学舞台 ─────────────── */
#hero.home-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.home-hero-grid {
  position: relative;
  width: min(100%, 84rem);
  margin-inline: auto;
  padding: 9.5rem 2rem 6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 4rem);
}

.hero-copy {
  position: relative;
  z-index: 4;
  text-align: left;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--px-green);
  font-family: var(--px-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--px-green);
  box-shadow: 0 0 16px rgba(121, 255, 155, 0.7);
  animation: px-blink 2.4s steps(2, end) infinite;
}

.hero-title {
  max-width: 760px;
  margin: 0;
  color: var(--px-text);
  text-align: left;
  font-family: var(--px-display);
  font-size: clamp(4rem, 7vw, 6.9rem) !important;
  font-weight: 700 !important;
  line-height: 0.96 !important;
  letter-spacing: -0.07em !important;
}

/* 标题由 site.js 逐字拆分：必须保持块级行 + 行内字符，避免竖排 */
.hero-title .hero-line {
  display: block;
  width: auto;
  white-space: nowrap;
}

.hero-title .hero-line .motion-char {
  display: inline-block;
}

.hero-title .hero-line-top {
  position: relative;
  padding-left: 0;
  color: rgba(233, 248, 238, 0.94);
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.15;
}

.hero-title .hero-line-main {
  margin-top: 0.06em;
  margin-left: 0;
}

.hero-pixel {
  display: inline-block;
  width: 0.12em;
  height: 0.12em;
  margin-left: 0.26em;
  background: var(--px-green);
  box-shadow: 0.18em -0.18em 0 rgba(121, 255, 155, 0.32), 0 0 18px rgba(121, 255, 155, 0.45);
}

.hero-title .text-primary {
  position: relative;
  display: inline-block;
  color: var(--px-green);
  text-shadow: 0 0 45px rgba(121, 255, 155, 0.2);
}

.hero-stop {
  color: rgba(121, 255, 155, 0.36);
  font-weight: 400;
}

.hero-signature {
  max-width: 540px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(143, 168, 154, 0.64);
  font-family: var(--px-display);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.hero-signature i {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--px-green), transparent);
}

.hero-lede {
  max-width: 590px;
  margin-top: 30px !important;
  color: var(--px-muted) !important;
  font-size: clamp(15px, 1.35vw, 18px) !important;
  line-height: 1.9 !important;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions .btn {
  min-height: 50px;
  padding-inline: 24px;
}

.hero-metrics {
  max-width: 530px;
  margin-top: 46px;
  padding-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--px-line);
}

.hero-metric {
  position: relative;
  padding-left: 18px;
}

.hero-metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  background: rgba(121, 255, 155, 0.55);
}

.hero-metric strong {
  display: block;
  color: var(--px-text);
  font-family: var(--px-display);
  font-size: 26px;
  line-height: 1;
}

.hero-metric span {
  display: block;
  margin-top: 8px;
  color: var(--px-muted);
  font-size: 12px;
}

.hero-stage {
  --rx: -2deg;
  --ry: -8deg;
  position: relative;
  z-index: 3;
  min-height: 640px;
  perspective: 1200px;
}

.hero-orbit {
  position: absolute;
  left: 50%;
  top: 49%;
  width: min(39vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(121, 255, 155, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 54px rgba(121, 255, 155, 0.018),
    0 0 0 55px rgba(121, 255, 155, 0.045),
    inset 0 0 80px rgba(121, 255, 155, 0.035);
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  background: rgba(121, 255, 155, 0.18);
}

.hero-orbit::before {
  left: 50%;
  top: -14%;
  width: 1px;
  height: 128%;
}

.hero-orbit::after {
  top: 50%;
  left: -14%;
  width: 128%;
  height: 1px;
}

.hero-device {
  position: absolute;
  left: 51%;
  top: 48%;
  z-index: 3;
  width: min(310px, 68%);
  transform: translate(-50%, -50%) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 500ms var(--px-ease);
}

.hero-device .phone-frame {
  width: 100% !important;
}

.hero-float {
  position: absolute;
  z-index: 5;
  padding: 14px 17px;
  border-radius: 15px;
  pointer-events: none;
}

.hero-float small {
  display: block;
  color: var(--px-muted);
  font-family: var(--px-display);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-float strong {
  display: block;
  margin-top: 5px;
  color: var(--px-green);
  font-family: var(--px-display);
  font-size: 13px;
  font-weight: 600;
}

.hero-float-a {
  left: -2%;
  top: 21%;
  transform: translateZ(50px) rotate(-4deg);
}

.hero-float-b {
  right: -2%;
  bottom: 21%;
  transform: translateZ(50px) rotate(3deg);
}

.hero-eq {
  position: absolute;
  left: 1%;
  bottom: 10%;
  z-index: 4;
  width: 142px;
  padding: 14px;
  border-radius: 15px;
}

.hero-eq-head {
  display: flex;
  justify-content: space-between;
  color: var(--px-muted);
  font-family: var(--px-display);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.hero-eq-bars {
  height: 36px;
  margin-top: 11px;
  display: flex;
  align-items: end;
  gap: 5px;
}

.hero-eq-bars i {
  flex: 1;
  height: 40%;
  background: var(--px-green);
  box-shadow: 0 0 8px rgba(121, 255, 155, 0.24);
  animation: px-eq 1.1s ease-in-out infinite alternate;
}

.hero-eq-bars i:nth-child(2) { animation-delay: -0.65s; }
.hero-eq-bars i:nth-child(3) { animation-delay: -0.2s; }
.hero-eq-bars i:nth-child(4) { animation-delay: -0.85s; }
.hero-eq-bars i:nth-child(5) { animation-delay: -0.4s; }
.hero-eq-bars i:nth-child(6) { animation-delay: -0.72s; }

.hero-coordinate {
  position: absolute;
  right: 0;
  top: 10%;
  color: rgba(143, 168, 154, 0.55);
  font-family: var(--px-display);
  font-size: 9px;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.scroll-cue {
  position: absolute;
  left: 2rem;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(143, 168, 154, 0.7);
  font-family: var(--px-display);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.scroll-cue::before {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--px-green);
  animation: px-cue 1.8s var(--px-ease) infinite;
  transform-origin: left;
}

/* ── 设备与截图 ───────────────────────────── */
.phone-frame {
  position: relative;
  padding: 6px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(220, 255, 230, 0.18), rgba(121, 255, 155, 0.025)) !important;
  border: 1px solid rgba(199, 255, 215, 0.18) !important;
  border-radius: 35px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 38px 100px rgba(0, 0, 0, 0.52),
    0 0 70px rgba(74, 239, 126, 0.07) !important;
}

.phone-frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  pointer-events: none;
  border-radius: 28px;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.14), transparent 20%, transparent 70%, rgba(121, 255, 155, 0.04));
  mix-blend-mode: screen;
}

.phone-frame img {
  border-radius: 28px;
}

#showcase [data-carousel-track] figure > div {
  background:
    linear-gradient(145deg, rgba(121, 255, 155, 0.065), rgba(255, 255, 255, 0.012)),
    rgba(10, 19, 14, 0.68) !important;
  border: 1px solid var(--px-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

[data-carousel-prev],
[data-carousel-next] {
  color: var(--px-green) !important;
  background: rgba(10, 22, 14, 0.86) !important;
  border: 1px solid rgba(121, 255, 155, 0.2) !important;
  backdrop-filter: blur(18px);
}

[data-carousel-prev]:hover,
[data-carousel-next]:hover {
  background: rgba(121, 255, 155, 0.12) !important;
}

[data-carousel-dots] button {
  min-width: 8px;
  border: 0;
}

/* ── 区块、功能卡、技术区 ─────────────────── */
main > section:not(:first-child) h2 {
  letter-spacing: -0.045em;
}

.stack-card {
  border-color: rgba(121, 255, 155, 0.13);
}

.stack-card:hover {
  transform: none;
}

#tech {
  background:
    radial-gradient(circle at 12% 88%, rgba(121, 255, 155, 0.08), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.018), transparent),
    #07100b !important;
  border-top: 1px solid var(--px-line);
  border-bottom: 1px solid var(--px-line);
}

#tech .rounded-3xl {
  background: rgba(10, 24, 15, 0.58) !important;
  border-color: rgba(121, 255, 155, 0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 30px 80px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

#tech .rounded-xl {
  border-color: rgba(121, 255, 155, 0.15) !important;
}

.bg-neutral {
  color: var(--px-text) !important;
  background:
    radial-gradient(circle at 50% 115%, rgba(121, 255, 155, 0.15), transparent 50%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.045), transparent),
    #0a140e !important;
  border: 1px solid rgba(121, 255, 155, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 32px 90px rgba(0, 0, 0, 0.36);
}

[data-qq-group] {
  color: var(--px-green) !important;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 40px rgba(121, 255, 155, 0.18);
}

/* iOS 截图卡让图片成为材质的一部分 */
article.glass-card.overflow-hidden img {
  transition: transform 600ms var(--px-ease), filter 400ms;
}

article.glass-card.overflow-hidden:hover img {
  transform: scale(1.025);
  filter: saturate(1.08);
}

/* ── 下载、表格与动态抽屉 ─────────────────── */
.table {
  color: var(--px-text);
}

.table :where(th, td) {
  border-color: rgba(121, 255, 155, 0.09);
}

.table thead th {
  color: var(--px-muted);
  font-family: var(--px-display);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.table tbody tr:hover {
  background: rgba(121, 255, 155, 0.035);
}

#android-sheet [data-sheet-panel] > div {
  color: var(--px-text);
  background: rgba(12, 23, 16, 0.97) !important;
  border: 1px solid rgba(121, 255, 155, 0.18) !important;
  box-shadow: 0 -30px 100px rgba(0, 0, 0, 0.58) !important;
  backdrop-filter: blur(30px);
}

#android-sheet [data-sheet-grid] .btn {
  color: var(--px-text);
  background: rgba(121, 255, 155, 0.055);
}

#android-sheet details {
  background: rgba(121, 255, 155, 0.04) !important;
}

#android-sheet details code,
#android-sheet details p.font-mono {
  background: rgba(0, 0, 0, 0.24) !important;
  border-color: var(--px-line) !important;
}

/* ── 支付弹窗 ─────────────────────────────── */
.modal::backdrop,
.modal-backdrop {
  background: rgba(1, 6, 3, 0.76);
  backdrop-filter: blur(8px);
}

.modal-box {
  color: var(--px-text);
  background: #0d1712 !important;
  border: 1px solid rgba(121, 255, 155, 0.2);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65);
}

/* ── 页脚 ────────────────────────────────── */
.footer-dark {
  margin-top: 2rem;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(121, 255, 155, 0.1), transparent 52%),
    #040705 !important;
  border-top: 1px solid rgba(121, 255, 155, 0.09);
}

.footer-dark .footer-headline {
  color: var(--px-text);
  font-family: var(--px-display);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.footer-dark .footer-title {
  color: var(--px-green);
  font-family: var(--px-display);
  letter-spacing: 0.1em;
}

.footer-dark .link {
  color: rgba(233, 248, 238, 0.55);
  text-decoration: none;
  transition: color 200ms;
}

.footer-dark .link:hover {
  color: var(--px-green);
}

.footer-dark .footer-socials a {
  color: var(--px-green);
  background: rgba(121, 255, 155, 0.055);
  border: 1px solid rgba(121, 255, 155, 0.14);
}

.footer-watermark {
  color: var(--px-green) !important;
  opacity: 0.022 !important;
  font-family: var(--px-display);
  font-weight: 700;
  letter-spacing: -0.07em;
}

/* ── TUI：实时下载与交互终端 ───────────────── */
.tui-hero-grid,
.terminal-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.tui-title {
  margin: 0;
  max-width: 650px;
  font-family: var(--px-display);
  font-size: clamp(3.4rem, 6.2vw, 6.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.tui-cursor {
  display: inline-block;
  width: 0.12em;
  height: 0.82em;
  margin-left: 0.12em;
  background: var(--px-green);
  box-shadow: 0 0 22px rgba(121, 255, 155, 0.42);
  animation: px-blink 1.15s steps(2, end) infinite;
}

.terminal-shell {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.48), 0 0 70px rgba(121, 255, 155, 0.055);
}

.terminal-bar,
.terminal-body {
  position: relative;
  z-index: 2;
}

.terminal-bar {
  min-height: 48px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: rgba(233, 248, 238, 0.48);
  background: rgba(2, 8, 4, 0.4);
  border-bottom: 1px solid rgba(197, 255, 215, 0.12);
  font-family: var(--px-display);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots i {
  width: 8px;
  height: 8px;
  background: rgba(121, 255, 155, 0.2);
  border: 1px solid rgba(121, 255, 155, 0.28);
}

.terminal-dots i:first-child { background: rgba(255, 190, 105, 0.45); }
.terminal-dots i:nth-child(2) { background: rgba(103, 205, 255, 0.35); }
.terminal-dots i:last-child { background: rgba(121, 255, 155, 0.65); }

.terminal-live {
  justify-self: end;
  color: var(--px-green);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.terminal-body {
  background:
    linear-gradient(rgba(121, 255, 155, 0.018) 1px, transparent 1px),
    rgba(1, 7, 3, 0.48);
  background-size: 100% 28px;
}

.terminal-output {
  height: 300px;
  padding: 20px;
  overflow-y: auto;
  color: rgba(222, 244, 229, 0.8);
  font-family: var(--px-display);
  font-size: 12px;
  line-height: 1.75;
  scrollbar-width: thin;
}

.terminal-line {
  min-height: 1.75em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.terminal-command { margin-top: 8px; color: var(--px-green); }
.terminal-success { color: #8dffad; }
.terminal-muted { color: rgba(202, 227, 210, 0.64); }
.terminal-dim { color: rgba(143, 168, 154, 0.46); font-size: 10px; }
.terminal-error { color: #ffb792; }

.terminal-shortcuts {
  padding: 0 20px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.terminal-shortcuts button {
  min-width: 48px;
  padding: 5px 9px;
  color: rgba(121, 255, 155, 0.72);
  background: rgba(121, 255, 155, 0.045);
  border: 1px solid rgba(121, 255, 155, 0.14);
  border-radius: 5px;
  font-family: var(--px-display);
  font-size: 10px;
  cursor: pointer;
  transition: color 180ms, background 180ms, border-color 180ms;
}

.terminal-shortcuts button:hover {
  color: #07130b;
  background: var(--px-green);
  border-color: var(--px-green);
}

.terminal-form {
  min-height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(4, 13, 7, 0.72);
  border-top: 1px solid rgba(121, 255, 155, 0.12);
  font-family: var(--px-display);
  font-size: 12px;
}

.terminal-prompt {
  flex: none;
  color: var(--px-green);
}

.terminal-form input {
  min-width: 0;
  flex: 1;
  color: var(--px-text);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
}

.terminal-form input::placeholder { color: rgba(143, 168, 154, 0.38); }

.terminal-form button {
  flex: none;
  padding: 5px 7px;
  color: rgba(121, 255, 155, 0.66);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.terminal-form:focus-within { box-shadow: inset 0 1px 0 rgba(121, 255, 155, 0.42); }

.home-terminal-section {
  background:
    radial-gradient(circle at 88% 40%, rgba(103, 205, 255, 0.04), transparent 26rem),
    linear-gradient(135deg, rgba(121, 255, 155, 0.025), transparent 48%);
  border-block: 1px solid rgba(121, 255, 155, 0.07);
}

.terminal-section-copy h2 {
  margin-top: 20px;
  font-family: var(--px-display);
  font-size: clamp(2.7rem, 4.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.tui-download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.tui-download-card {
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
}

.tui-file-meta {
  margin-top: 26px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--px-line);
}

.tui-file-meta > div {
  min-width: 0;
  padding-block: 12px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  border-bottom: 1px solid rgba(121, 255, 155, 0.075);
  font-size: 12px;
}

.tui-file-meta dt { color: var(--px-muted); }
.tui-file-meta dd { min-width: 0; color: rgba(233, 248, 238, 0.75); overflow-wrap: anywhere; }

.tui-sha-row code {
  display: block;
  max-height: 3.8em;
  overflow: hidden;
  color: rgba(121, 255, 155, 0.65);
  font-family: var(--px-display);
  font-size: 10px;
  line-height: 1.8;
}

.tui-sha-row button {
  margin-top: 6px;
  padding: 0;
  color: var(--px-green);
  background: none;
  border: 0;
  font-size: 11px;
  cursor: pointer;
}

a[data-tui-download].is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none !important;
}

.tui-data-section {
  background: rgba(121, 255, 155, 0.018);
  border-block: 1px solid rgba(121, 255, 155, 0.07);
}

.tui-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tui-data-grid .glass-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tui-data-grid span { color: var(--px-muted); font-size: 12px; }
.tui-data-grid code { color: var(--px-green); font-family: var(--px-display); font-size: 14px; overflow-wrap: anywhere; }

.tui-changelog {
  display: grid;
  gap: 16px;
}

.tui-release {
  padding: 24px 26px;
  background: rgba(10, 22, 14, 0.54);
  border: 1px solid var(--px-line);
  border-radius: 18px;
}

.tui-release-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.tui-release-head h3 { font-size: 18px; }
.tui-release-head time { color: var(--px-muted); font-family: var(--px-display); font-size: 12px; }

.tui-release-list {
  margin-top: 16px;
  display: grid;
  gap: 9px;
  color: rgba(233, 248, 238, 0.65);
  font-size: 14px;
}

.tui-release-list li { position: relative; padding-left: 18px; }
.tui-release-list li::before { content: "+"; position: absolute; left: 0; color: var(--px-green); }

.tui-inline-download {
  margin-top: 24px;
  padding: clamp(22px, 3vw, 32px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.tui-inline-download h2 { font-size: clamp(24px, 3vw, 34px); }
.tui-inline-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.tui-inline-meta { margin-top: 8px; color: var(--px-muted); font-family: var(--px-display); font-size: 11px; }

/* ── 动效 ────────────────────────────────── */
@keyframes px-blink {
  0%, 42% { opacity: 1; }
  43%, 58% { opacity: 0.25; }
  59%, 100% { opacity: 1; }
}

@keyframes px-eq {
  from { height: 18%; opacity: 0.45; }
  to { height: 100%; opacity: 1; }
}

@keyframes px-cue {
  0% { transform: scaleX(0); opacity: 0; }
  35% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1) translateX(18px); opacity: 0; }
}

/* ── 响应式 ───────────────────────────────── */
@media (min-width: 768px) and (max-width: 900px) {
  header .navbar {
    gap: 6px;
    padding-inline: 10px !important;
  }

  header .navbar-start a > span {
    display: none;
  }

  header .menu a,
  header .menu summary {
    padding-inline: 9px;
    font-size: 13px;
  }
}

@media (max-width: 1100px) {
  .home-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr);
  }

  .hero-title {
    font-size: clamp(3.8rem, 7vw, 5.8rem) !important;
  }

  .hero-stage {
    min-height: 580px;
  }

  .hero-float-a { left: -5%; }
  .hero-float-b { right: -5%; }
}

@media (max-width: 1000px) {
  .tui-hero-grid,
  .terminal-section-grid {
    grid-template-columns: 1fr;
  }

  .terminal-section-copy {
    max-width: 650px;
  }

  .tui-inline-download {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tui-inline-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 800px) {
  .tui-download-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  #hero.home-hero {
    min-height: auto;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
    padding-top: 9rem;
    gap: 10px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-title {
    font-size: clamp(3.8rem, 12vw, 6.5rem) !important;
  }

  .hero-title .hero-line-main {
    margin-left: 0;
  }

  .hero-stage {
    width: min(100%, 560px);
    min-height: 610px;
    margin-inline: auto;
  }

  .hero-orbit {
    width: min(78vw, 480px);
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --px-radius: 20px;
  }

  body::before {
    background-size: 40px 40px;
  }

  header .navbar {
    min-height: 56px;
    border-radius: 15px !important;
  }

  .home-hero-grid {
    padding: 7.8rem 1.25rem 3rem;
  }

  .hero-eyebrow {
    margin-bottom: 20px;
    font-size: 10px;
    letter-spacing: 0.17em;
  }

  .hero-title {
    font-size: clamp(3.2rem, 16vw, 5rem) !important;
    line-height: 0.98 !important;
  }

  .hero-signature {
    margin-top: 16px;
    gap: 8px;
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .hero-signature i {
    width: 20px;
  }

  .hero-lede {
    margin-top: 24px !important;
    line-height: 1.8 !important;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 140px;
    padding-inline: 16px;
  }

  .hero-metrics {
    margin-top: 36px;
  }

  .hero-metric {
    padding-left: 11px;
  }

  .hero-metric strong {
    font-size: 22px;
  }

  .hero-metric span {
    font-size: 10px;
  }

  .hero-stage {
    min-height: 525px;
  }

  .hero-device {
    width: min(270px, 69%);
  }

  .hero-float {
    padding: 11px 13px;
  }

  .hero-float-a {
    left: 0;
    top: 17%;
  }

  .hero-float-b {
    right: 0;
    bottom: 19%;
  }

  .hero-float strong {
    font-size: 11px;
  }

  .hero-eq,
  .hero-coordinate {
    display: none;
  }

  .glass-card {
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
  }

  .glass-card::before {
    background-size: 340px 340px, 180px 180px, auto;
    opacity: 0.36;
  }

  .tui-title {
    font-size: clamp(3rem, 14vw, 4.7rem);
  }

  .terminal-bar {
    padding-inline: 12px;
  }

  .terminal-output {
    height: 270px;
    padding: 15px;
    font-size: 11px;
  }

  .terminal-shortcuts {
    padding-inline: 15px;
  }

  .terminal-form {
    padding-inline: 12px;
    gap: 7px;
    font-size: 11px;
  }

  .tui-inline-download {
    grid-template-columns: 1fr;
  }

  .tui-inline-actions {
    grid-column: auto;
  }

  .tui-inline-actions .btn {
    flex: 1;
  }

  .tui-data-grid {
    grid-template-columns: 1fr;
  }

  .tui-release {
    padding: 20px;
  }

  .tui-release-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .px-cursor {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .px-cursor {
    display: none;
  }

  a.glass-card:hover,
  button.glass-card:hover,
  article.glass-card:hover {
    transform: none;
  }
}

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

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

  .px-particles,
  .px-cursor {
    display: none;
  }

  .hero-device {
    transform: translate(-50%, -50%) rotate(-3deg);
  }

  .reveal,
  .js-reveal,
  .js-reveal [style*="--ri"] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
