/* 像素次元 X 官网样式 —— 与 App 品牌紫色渐变一致 */
:root {
  --ink: #2b1b39;
  --muted: #7a6a89;
  --purple: #7b3fa8;
  --purple-deep: #4a2270;
  --pink: #f06fd0;
  --violet: #a855f7;
  --cream: #fbf8ff;
  --line: #ece3f5;
  --shadow: 0 18px 50px rgba(91, 43, 138, .13);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(1140px, 92vw); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(251, 248, 255, .82);
  border-bottom: 1px solid rgba(123, 63, 168, .08);
}
.nav-inner { height: 70px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(145deg, #c084fc, #7b3fa8);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(123, 63, 168, .28);
}
.brand-icon img { width: 28px; height: 28px; border-radius: 6px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: .5px; }
.brand-name span { color: var(--pink); }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--purple); }
.nav-cta {
  padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: linear-gradient(120deg, var(--violet), var(--pink));
  color: #fff; box-shadow: 0 6px 18px rgba(168, 85, 247, .3);
}
.menu-btn { display: none; margin-left: auto; background: none; border: 0; font-size: 24px; color: var(--purple); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(240, 111, 208, .25), transparent 42%),
    radial-gradient(circle at 12% 72%, rgba(168, 85, 247, .22), transparent 45%),
    linear-gradient(180deg, #fdfbff 0%, #f6efff 100%);
  padding: 90px 0 100px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22;
  background-image: radial-gradient(#a855f7 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.pill {
  display: inline-block; padding: 7px 15px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--purple); background: rgba(168, 85, 247, .1); border: 1px solid rgba(168, 85, 247, .2);
}
h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.16; margin: 22px 0 18px; letter-spacing: -1px; }
h1 .grad {
  background: linear-gradient(100deg, var(--purple-deep), var(--violet) 55%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 17px; line-height: 1.9; color: var(--muted); max-width: 480px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 13px; font-size: 15px; font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(120deg, var(--purple-deep), var(--violet)); color: #fff; box-shadow: 0 12px 28px rgba(123, 63, 168, .3); }
.btn-ghost { background: #fff; color: var(--purple); border: 1px solid var(--line); }
.hero-note { margin-top: 20px; font-size: 13px; color: #a294b0; }

/* 手机堆叠 */
.phones { position: relative; height: 500px; display: flex; align-items: center; justify-content: center; }
.phone {
  position: absolute; width: 232px; border-radius: 34px; padding: 7px;
  background: linear-gradient(160deg, #efe6fa, #b99ad8);
  box-shadow: 0 26px 60px rgba(74, 34, 112, .3);
  overflow: hidden;
}
.phone img { border-radius: 28px; width: 100%; height: auto; }
.phone:nth-child(1) { transform: translate(-118px, 22px) rotate(-9deg) scale(.9); z-index: 1; }
.phone:nth-child(2) { transform: translate(0, -6px) rotate(0deg); z-index: 3; }
.phone:nth-child(3) { transform: translate(118px, 26px) rotate(9deg) scale(.9); z-index: 2; }
.glow-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 6px rgba(240, 111, 208, .16); }

/* ---------- 通用区块 ---------- */
section { padding: 92px 0; }
.sec-head { text-align: center; margin-bottom: 54px; }
.sec-kicker { font-size: 13px; font-weight: 800; letter-spacing: 2px; color: var(--pink); text-transform: uppercase; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 12px 0 14px; }
.sec-head p { color: var(--muted); font-size: 16px; max-width: 620px; margin: 0 auto; line-height: 1.8; }

/* 功能卡片 */
.features { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  padding: 30px 26px; border-radius: 20px; background: var(--cream);
  border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(168, 85, 247, .16), rgba(240, 111, 208, .16));
  margin-bottom: 20px; font-size: 24px;
}
.card h3 { margin: 0 0 10px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

/* 三步流程 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; }
.step { position: relative; padding: 22px 26px 22px 86px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; left: 12px; top: 18px; width: 54px; height: 54px;
  border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 20px;
  color: #fff; background: linear-gradient(140deg, var(--violet), var(--pink));
  box-shadow: 0 8px 20px rgba(168, 85, 247, .25);
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

/* 硬件展示 */
.hardware { background: linear-gradient(180deg, #fff, #f9f5ff); border-top: 1px solid var(--line); }
.hw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hw-copy h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 14px 0 18px; line-height: 1.25; }
.hw-copy p { color: var(--muted); line-height: 1.9; font-size: 16px; }
.hw-list { list-style: none; padding: 0; margin: 26px 0 0; }
.hw-list li { padding: 10px 0 10px 30px; position: relative; font-size: 15px; }
.hw-list li::before { content: "◆"; position: absolute; left: 0; color: var(--pink); font-size: 12px; top: 12px; }
.screen-device {
  position: relative; border-radius: 26px; padding: 22px;
  background: linear-gradient(150deg, #3b2354, #1c1129);
  box-shadow: 0 30px 70px rgba(40, 18, 66, .38);
}
.screen-device::before {
  content: "PIXEL DIMENSION  ·  X"; display: block; color: #b99ad8;
  font-size: 10px; letter-spacing: 3px; margin-bottom: 14px; text-align: center;
}
.pixel-panel {
  aspect-ratio: 1 / 1; border-radius: 12px; background: #120b1c;
  display: grid; grid-template-columns: repeat(16, 1fr); grid-template-rows: repeat(16, 1fr);
  gap: 3px; padding: 10px; box-shadow: inset 0 0 40px rgba(0,0,0,.8);
}
.pixel-panel i { border-radius: 2px; background: #241736; transition: background .3s ease; }
.screen-device::after {
  content: ""; display: block; width: 90px; height: 5px; border-radius: 5px;
  background: #6b5288; margin: 16px auto 0;
}

/* 下载 */
.download { text-align: center; background: linear-gradient(160deg, #4a2270, #7b3fa8 60%, #a855f7); color: #fff; }
.download .sec-head p { color: rgba(255,255,255,.78); }
.download .sec-kicker { color: #ffd1f4; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px;
  border-radius: 14px; background: #fff; color: var(--purple-deep); font-weight: 700;
  box-shadow: 0 14px 34px rgba(0,0,0,.2);
}
.store-btn + .store-btn { margin-left: 12px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }

/* ---------- 底部备案 ---------- */
.footer {
  background: linear-gradient(90deg, #4c2c74, #63388c 50%, #4c2c74);
  color: #fff; text-align: center; padding: 30px 20px 28px;
}
.footer p { margin: 0 0 8px; font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.95); }
.footer .filing { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .filing svg { vertical-align: -3px; margin-right: 5px; }
.footer .browser-tip { color: rgba(255,255,255,.68); font-size: 12px; margin-top: 10px; }
.footer .admin-link { color: rgba(255,255,255,.55); font-size: 11px; margin-top: 14px; }

/* 隐私政策 */
.legal { max-width: 820px; margin: 0 auto; padding: 70px 24px 90px; }
.legal h1 { font-size: 32px; margin-bottom: 28px; }
.legal h2 { font-size: 19px; margin: 30px 0 12px; }
.legal p, .legal li { color: var(--muted); line-height: 2; font-size: 15px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; padding: 18px 6vw; gap: 16px; box-shadow: 0 12px 22px rgba(0,0,0,.08);
  }
  .hero-grid, .hw-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 64px 0 70px; }
  .phones { height: 420px; }
  .phone { width: 190px; }
  .phone:nth-child(1) { transform: translate(-92px, 18px) rotate(-8deg) scale(.88); }
  .phone:nth-child(3) { transform: translate(92px, 20px) rotate(8deg) scale(.88); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  section { padding: 68px 0; }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .phones { height: 360px; }
  .phone { width: 156px; }
  .phone:nth-child(1) { transform: translate(-70px, 10px) rotate(-8deg) scale(.85); }
  .phone:nth-child(3) { transform: translate(70px, 12px) rotate(8deg) scale(.85); }
  .store-btn + .store-btn { margin-left: 0; margin-top: 12px; }
}
