/* ================= PongPai 官网样式 ================= */
:root {
  --bg: #f8f3ef;
  --ink: #26202b;
  --muted: #837b88;
  --green: #31c193;
  --blue: #3d8fd6;
  --grad: linear-gradient(120deg, #2fbf8f 10%, #3d8fd6 90%);
  --card: rgba(255, 255, 255, 0.66);
  --line: rgba(38, 32, 43, 0.08);
  --radius: 26px;
  --shadow: 0 20px 50px -18px rgba(38, 32, 43, 0.22);
  --font: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "HONOR Sans CN", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 极光背景光斑 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(640px 420px at 10% 6%, rgba(49, 193, 147, 0.20), transparent 65%),
    radial-gradient(720px 480px at 92% 14%, rgba(61, 143, 214, 0.18), transparent 65%),
    radial-gradient(900px 620px at 50% 108%, rgba(255, 176, 128, 0.14), transparent 65%),
    radial-gradient(500px 380px at 78% 62%, rgba(160, 120, 255, 0.10), transparent 65%);
}

img { display: block; max-width: 100%; }
b { font-weight: 700; }

::selection { background: rgba(49, 193, 147, 0.28); }

/* ---------- 通用 ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-grad {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(49, 143, 214, 0.55);
}
.btn-grad:hover { box-shadow: 0 18px 34px -10px rgba(49, 143, 214, 0.6); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.85); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 44px; font-size: 18px; }
/* 「敬请期待」状态按钮：保留品牌渐变但不可点击，带呼吸光晕 */
.btn-soon {
  cursor: default;
  opacity: .82;
  animation: pulse 2.6s ease-in-out infinite;
}
.btn-soon:hover, .btn-soon:active { transform: none; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 12px 28px -10px rgba(49, 143, 214, 0.45); }
  50%      { box-shadow: 0 12px 40px -6px rgba(49, 193, 147, 0.65); }
}

.section { max-width: 1120px; margin: 0 auto; padding: 96px 24px 20px; }
.section.narrow { max-width: 800px; }

.sec-head { text-align: center; margin-bottom: 48px; }
.sec-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--blue);
  background: rgba(61, 143, 214, 0.10);
  border: 1px solid rgba(61, 143, 214, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.sec-head h2 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; letter-spacing: .01em; }
.sec-head p { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, 94vw);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 10px 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px -14px rgba(38, 32, 43, 0.18);
  transition: box-shadow .3s ease, background .3s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 40px -14px rgba(38, 32, 43, 0.26);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
}
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand span b { font-size: 16px; letter-spacing: .02em; }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(38, 32, 43, 0.05); }
.nav-cta { flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero { padding: 150px 20px 40px; text-align: center; }
.hero-inner { max-width: 1120px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 8px 18px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -12px rgba(38, 32, 43, 0.2);
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(40px, 7vw, 74px);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.12;
}
.hero-sub {
  margin: 20px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.8;
}
.hero-cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Hero 手机展示 */
.hero-phones {
  position: relative;
  margin-top: 64px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(16px, 3vw, 48px);
}
.phone {
  border-radius: 44px;
  box-shadow: 0 40px 80px -30px rgba(38, 32, 43, 0.35);
}
.phone.main {
  position: relative;
  width: min(330px, 76vw);
  animation: float 6s ease-in-out infinite alternate;
}
.phone.side {
  width: min(250px, 30vw);
  opacity: .92;
  margin-bottom: 26px;
}
.phone.side.left { transform: rotate(-6deg) translateY(6px); }
.phone.side.right { transform: rotate(6deg) translateY(6px); }

/* 悬浮信息胶囊 */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px -14px rgba(38, 32, 43, 0.28);
  white-space: nowrap;
}
.chip b { color: var(--blue); }
.chip-a { top: 14%; left: -8%; animation: float 5s ease-in-out infinite alternate; }
.chip-b { top: 38%; right: -12%; animation: float 7s ease-in-out .6s infinite alternate; }
.chip-c { bottom: 12%; left: -10%; animation: float 6s ease-in-out 1.2s infinite alternate; }

@keyframes float {
  from { transform: translateY(-6px); }
  to   { transform: translateY(8px); }
}
.phone.side.left { animation: none; }
.phone.side.right { animation: none; }
.phone.main { animation-name: float-main; }
@keyframes float-main {
  from { transform: translateY(-4px); }
  to   { transform: translateY(6px); }
}

/* ---------- 功能卡片 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  padding: 26px 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px -22px rgba(38, 32, 43, 0.18);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 54px -22px rgba(38, 32, 43, 0.26);
}
.card h3 { font-size: 17px; font-weight: 700; margin: 16px 0 8px; }
.card p { font-size: 14px; line-height: 1.75; color: var(--muted); }
.card p b { color: var(--ink); }

.icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(38, 32, 43, 0.35);
}
.icon svg { width: 22px; height: 22px; }
.ic-blue   { background: linear-gradient(135deg, #4a8df0, #2f6fd8); }
.ic-purple { background: linear-gradient(135deg, #a06bff, #7c4fd8); }
.ic-pink   { background: linear-gradient(135deg, #f06bb0, #d84f92); }
.ic-yellow { background: linear-gradient(135deg, #f2b63c, #e09a20); }
.ic-red    { background: linear-gradient(135deg, #ef5f6b, #d84552); }
.ic-green  { background: linear-gradient(135deg, #43cf7a, #2aa75e); }
.ic-orange { background: linear-gradient(135deg, #f2873c, #e06a20); }
.ic-teal   { background: linear-gradient(135deg, #2fc4b2, #1e9c92); }

/* ---------- 截图画廊 ---------- */
.gal-wrap { position: relative; }
.gal {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px max(calc(50% - 560px), 20px) 10px;
  scrollbar-width: none;
  /* 两侧邻图淡出，避免生硬的切块和白边 */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 clamp(28px, 7vw, 100px), #000 calc(100% - clamp(28px, 7vw, 100px)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 clamp(28px, 7vw, 100px), #000 calc(100% - clamp(28px, 7vw, 100px)), transparent 100%);
}
.gal::-webkit-scrollbar { display: none; }
.gal figure {
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: center;
  text-align: center;
}
.gal img {
  width: 100%;
  border-radius: 38px;
  box-shadow: 0 30px 60px -28px rgba(38, 32, 43, 0.35);
  transition: transform .3s ease;
}
.gal figure:hover img { transform: translateY(-6px); }
.gal figcaption {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}
.gal-btn {
  position: absolute;
  top: 42%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -12px rgba(38, 32, 43, 0.3);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.gal-btn:hover { transform: scale(1.08); background: #fff; }
.gal-btn.prev { left: 6px; }
.gal-btn.next { right: 6px; }
.gal-hint { text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ---------- 播放器特写 ---------- */
.player-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 34px;
  align-items: center;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 30px;
  padding: 30px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.player-media img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 26px 60px -26px rgba(38, 32, 43, 0.4);
}
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--blue);
  background: rgba(61, 143, 214, 0.10);
  border: 1px solid rgba(61, 143, 214, 0.28);
  padding: 6px 13px;
  border-radius: 999px;
}
.player-list { margin-top: 22px; list-style: none; }
.player-list li {
  position: relative;
  padding: 9px 0 9px 28px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.player-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--grad);
}
.player-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 21px;
  width: 6px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ---------- 视频演示 ---------- */
.demo-wrap {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: center;
}
.demo-video video {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 620px;
  margin: 0 auto;
  border-radius: 34px;
  box-shadow: 0 40px 80px -30px rgba(38, 32, 43, 0.38);
}
.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 30px 58px;
}
.steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, rgba(49,193,147,.5), rgba(61,143,214,.5));
  border-radius: 2px;
}
.steps li::after {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 22px -8px rgba(61, 143, 214, 0.55);
}
.steps b { display: block; font-size: 17px; margin-top: 6px; }
.steps span { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ---------- 下载 ---------- */
.dl-card {
  text-align: center;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 34px;
  padding: 64px 24px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.dl-logo { width: 84px; height: 84px; margin: 0 auto 20px; object-fit: contain; }
.dl-card h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.dl-sub { margin: 10px 0 30px; color: var(--muted); font-size: 16px; }
.dl-meta {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
}
.dl-meta b { color: var(--ink); }
.dl-meta i { width: 4px; height: 4px; border-radius: 50%; background: rgba(38, 32, 43, 0.25); }
.dl-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); opacity: .8; }

/* ---------- FAQ ---------- */
.faq-list details {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -20px rgba(38, 32, 43, 0.18);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
  transition: transform .25s ease;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}
.faq-list details p b { color: var(--ink); }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 90px;
  padding: 60px 24px 46px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.footer img { width: 52px; height: 52px; margin: 0 auto 14px; object-fit: contain; }
.footer p { font-size: 15px; }
.foot-note {
  margin-top: 14px;
  font-size: 12.5px !important;
  color: var(--muted);
  line-height: 1.9;
  opacity: .85;
}

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.grid .card { transition-delay: 0s; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .phone.side { display: none; }
  .player-card { grid-template-columns: 1fr; padding: 22px; }
  .demo-wrap { grid-template-columns: 1fr; gap: 40px; }
  .demo-video { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .hero { padding-top: 120px; }
  .chip-a { left: 2%; top: 8%; }
  .chip-b { right: 2%; top: 34%; }
  .chip-c { left: 0; bottom: 8%; }
  .chip { font-size: 12px; padding: 8px 13px; }
  .gal figure { width: 250px; }
  .gal-btn { display: none; }
  .section { padding-top: 72px; }
  .btn { padding: 13px 24px; font-size: 15px; }
  .dl-card { padding: 48px 18px; }
}
