/* ==========================================================================
   珀界 PortGem · 下载落地页
   移动优先，独立于官网主样式，避免与长页面版式互相干扰
   ========================================================================== */

:root {
  --violet-700: #3d32a8;
  --violet-600: #5548d6;
  --violet-500: #6b5ce7;
  --violet-400: #8b7ef0;
  --violet-100: #efecff;
  --violet-50: #f7f5ff;

  --amber: #f59e0b;
  --amber-100: #fff4e0;

  --ink: #1e1b2e;
  --ink-3: #4a4560;
  --muted: #6e6a85;
  --muted-2: #9c98b0;

  --bg: #fbfaff;
  --card: #ffffff;
  --line: #ebe7f6;

  --r-sm: 12px;
  --r: 16px;
  --r-lg: 24px;

  --shadow-sm: 0 4px 14px rgba(61, 50, 168, .07);
  --shadow-md: 0 14px 34px rgba(61, 50, 168, .13);
  --shadow-btn: 0 12px 26px rgba(85, 72, 214, .32);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --pad: 20px;
  --maxw: 560px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

/* 保证 [hidden] 始终生效（避免被 display:flex 等覆盖） */
[hidden] { display: none !important; }

.dl-body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--violet-500); outline-offset: 3px; border-radius: 6px; }

/* ---------- 微信提示条 ---------- */
.dl-wxbar {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px var(--pad);
  background: #fff8e6;
  border-bottom: 1px solid #ffe6b0;
  color: #7a5200; font-size: 12.5px; line-height: 1.6;
}
.dl-wxbar svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: #d99a00; }
.dl-wxbar b { font-weight: 800; }

/* ---------- 顶栏 ---------- */
.dl-bar {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px var(--pad);
}
.dl-brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; }
.dl-brand img { width: 30px; height: 30px; border-radius: 9px; }
.dl-brand span { font-size: 15.5px; font-weight: 800; letter-spacing: .01em; display: inline-flex; align-items: baseline; gap: 6px; }
.dl-brand em {
  font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  opacity: .62; text-transform: uppercase;
}
.dl-bar-link {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 13px; color: rgba(255, 255, 255, .78);
  padding: 5px 4px; transition: color .2s ease;
}
.dl-bar-link svg { width: 15px; height: 15px; }
.dl-bar-link:hover { color: #fff; }

/* ---------- 首屏 ---------- */
.dl-hero {
  position: relative;
  margin-top: -58px;
  padding: 92px 0 44px;
  background: linear-gradient(168deg, #1f1a45 0%, #3d32a8 48%, #5a4cdd 100%);
  overflow: hidden;
}
.dl-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.dl-orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.dl-orb--1 {
  width: 320px; height: 320px; top: -120px; right: -100px;
  background: radial-gradient(circle, rgba(139, 126, 240, .55), transparent 68%);
}
.dl-orb--2 {
  width: 260px; height: 260px; bottom: -110px; left: -90px;
  background: radial-gradient(circle, rgba(245, 158, 11, .28), transparent 68%);
}
.dl-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: .5;
}

.dl-hero-inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad);
  text-align: center;
}

.dl-icon {
  width: 84px; height: 84px; margin: 0 auto 18px;
  border-radius: 21px; overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .3), 0 0 0 1px rgba(255, 255, 255, .16);
  animation: dl-rise .6s var(--ease) both;
}
.dl-icon img { width: 100%; height: 100%; object-fit: cover; }

.dl-title {
  font-size: 27px; font-weight: 800; letter-spacing: -.02em;
  color: #fff; line-height: 1.25;
  animation: dl-rise .6s var(--ease) .05s both;
}
.dl-slogan {
  margin-top: 7px;
  font-size: 13px; font-weight: 700; letter-spacing: .34em;
  color: rgba(255, 255, 255, .62); text-indent: .34em;
  animation: dl-rise .6s var(--ease) .1s both;
}
.dl-intro {
  margin: 14px auto 0; max-width: 320px;
  font-size: 13.5px; line-height: 1.85; color: rgba(255, 255, 255, .72);
  animation: dl-rise .6s var(--ease) .15s both;
}

/* ---------- 按钮 ---------- */
.dl-cta {
  margin-top: 26px;
  display: grid; gap: 10px;
  animation: dl-rise .6s var(--ease) .2s both;
}
.dl-btn {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 13px 16px;
  border-radius: var(--r); text-align: left;
  transition: transform .2s var(--ease), box-shadow .25s ease, background-color .2s ease;
}
.dl-btn:active { transform: scale(.985); }
.dl-btn-ico {
  flex: none; width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
}
.dl-btn-ico svg { width: 18px; height: 18px; opacity: .95; }
.dl-btn-body { display: grid; gap: 1px; min-width: 0; }
.dl-btn-body b { font-size: 15.5px; font-weight: 800; letter-spacing: .01em; }
.dl-btn-body small { font-size: 11.5px; font-weight: 500; opacity: .72; line-height: 1.5; }

.dl-btn--primary {
  background: linear-gradient(135deg, #ffb020, #f59e0b 62%, #e08a00);
  color: #fff;
  box-shadow: 0 14px 30px rgba(224, 138, 0, .34);
}
.dl-btn--primary .dl-btn-ico { background: rgba(255, 255, 255, .26); }
.dl-btn--primary:hover { box-shadow: 0 18px 38px rgba(224, 138, 0, .42); }

.dl-btn--weapp {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  backdrop-filter: blur(8px);
}
.dl-btn--weapp .dl-btn-ico { background: rgba(255, 255, 255, .18); }
.dl-btn--weapp:hover { background: rgba(255, 255, 255, .16); }

.dl-btn--ghost {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  box-shadow: var(--shadow-sm); justify-content: center;
}
.dl-btn--ghost .dl-btn-ico { background: var(--violet-100); color: var(--violet-600); width: 28px; height: 28px; border-radius: 9px; }
.dl-btn--ghost .dl-btn-ico svg { width: 15px; height: 15px; }
.dl-btn--ghost .dl-btn-body b { font-size: 14px; }
.dl-btn--ghost:hover { border-color: #d9d3fb; box-shadow: var(--shadow-md); }

.dl-btn--sm { padding: 11px 14px; justify-content: center; }
.dl-btn--sm .dl-btn-body b { font-size: 14.5px; }

.dl-meta {
  margin-top: 14px;
  font-size: 11.5px; color: rgba(255, 255, 255, .6); letter-spacing: .01em;
  animation: dl-rise .6s var(--ease) .25s both;
}

.dl-stores {
  margin-top: 8px;
  font-size: 11px; letter-spacing: .04em;
  color: rgba(255, 255, 255, .5);
  animation: dl-rise .6s var(--ease) .28s both;
}

/* 桌面端提示（仅宽屏显示） */
.dl-pc-tip {
  display: none;
  align-items: flex-start; gap: 11px;
  margin-top: 4px; padding: 14px 16px;
  background: #fff8e6; border: 1px solid #ffe6b0; border-radius: var(--r);
}
.dl-pc-tip svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: #d99a00; }
.dl-pc-tip p { font-size: 12.5px; line-height: 1.72; color: #7a5200; }
.dl-pc-tip b { font-weight: 800; }

/* ---------- 主体 ---------- */
.dl-main {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px var(--pad) 0;
}

/* iOS 说明 */
.dl-ios {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin-top: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.dl-ios-badge {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: #f1f0f6; color: var(--ink-3);
}
.dl-ios-badge svg { width: 18px; height: 18px; }
.dl-ios-body { min-width: 0; flex: 1; }
.dl-ios-body b { display: block; font-size: 13.5px; font-weight: 800; }
.dl-ios-body span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.55; margin-top: 1px; }
.dl-ios-go {
  flex: none; font-size: 12.5px; font-weight: 700; color: var(--violet-600);
  padding: 6px 12px; border-radius: 999px; background: var(--violet-100);
  transition: background-color .2s ease;
}
.dl-ios-go:hover { background: #e3ddff; }

/* 区块 */
.dl-sec { margin-top: 34px; }
.dl-sec--tight { margin-top: 30px; }
.dl-h2 {
  font-size: 17.5px; font-weight: 800; letter-spacing: -.01em;
  margin-bottom: 14px;
}
.dl-overline {
  display: inline-block; margin-bottom: 8px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--violet-500);
}

/* 功能 */
.dl-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-feat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px 14px 14px;
}
.dl-feat-ico {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; margin-bottom: 9px;
}
.dl-feat-ico svg { width: 16px; height: 16px; }
.dl-feat-ico--v { background: var(--violet-100); color: var(--violet-600); }
.dl-feat-ico--a { background: var(--amber-100); color: #d98600; }
.dl-feat b { display: block; font-size: 13.5px; font-weight: 800; letter-spacing: -.005em; }
.dl-feat p { font-size: 11.5px; line-height: 1.62; color: var(--muted); margin-top: 3px; }

/* 截图 */
.dl-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dl-shot { text-align: center; }
.dl-shot-frame {
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.dl-shot-frame img { width: 100%; height: auto; display: block; }
.dl-shot figcaption { margin-top: 8px; font-size: 11.5px; color: var(--muted-2); }

/* 小程序 */
.dl-mini {
  margin-top: 34px; padding: 24px 20px 22px;
  background: linear-gradient(170deg, #ffffff, #f7f5ff);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 16px;
}
.dl-mini-head { text-align: center; }
.dl-mini-head p {
  margin-top: 8px; font-size: 12.5px; line-height: 1.75; color: var(--muted);
  max-width: 318px; margin-left: auto; margin-right: auto;
}
.nowrap { white-space: nowrap; }
.dl-qr { margin-top: 18px; text-align: center; }
.dl-qr-box {
  display: inline-block; padding: 8px;
  background: #fff; border-radius: 20px;
  box-shadow: 0 10px 26px rgba(61, 50, 168, .1), 0 0 0 1px var(--line);
}
.dl-qr-box img { width: 176px; height: 176px; display: block; border-radius: 13px; }
.dl-qr-hint {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 12px; font-size: 11.5px; color: var(--muted-2);
}
.dl-qr-hint svg { width: 13px; height: 13px; }

.dl-mini-actions { display: grid; gap: 8px; margin-top: 18px; }
.dl-steps {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px dashed #ddd6f2;
  display: grid; gap: 7px;
  counter-reset: dlstep;
}
.dl-steps li {
  counter-increment: dlstep;
  position: relative; padding-left: 24px;
  font-size: 12px; line-height: 1.7; color: var(--muted);
}
.dl-steps li::before {
  content: counter(dlstep);
  position: absolute; left: 0; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--violet-100); color: var(--violet-600);
  font-size: 9.5px; font-weight: 800;
  display: grid; place-items: center;
}
.dl-steps b { color: var(--ink-3); font-weight: 700; }

/* 安装说明 */
.dl-notes { display: grid; gap: 0; }
.dl-note { padding: 13px 0; border-top: 1px solid var(--line); }
.dl-note:first-child { border-top: 0; padding-top: 0; }
.dl-note dt { font-size: 13px; font-weight: 800; }
.dl-note dd { font-size: 12px; line-height: 1.72; color: var(--muted); margin-top: 3px; }

/* 备用 */
.dl-alt {
  margin-top: 26px; padding: 16px;
  border: 1px dashed #d9d3fb; border-radius: var(--r);
  background: rgba(239, 236, 255, .45);
  text-align: center;
}
.dl-alt p { font-size: 12px; color: var(--muted); }
.dl-alt-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--violet-600);
}
.dl-alt-link svg { width: 15px; height: 15px; }
.dl-alt-link:hover { color: var(--violet-700); }

/* ---------- 页脚 ---------- */
.dl-foot {
  max-width: var(--maxw); margin: 40px auto 0;
  padding: 22px var(--pad) 26px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 11.5px; color: var(--muted-2); line-height: 1.9;
}
.dl-foot-links { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 6px 0; }
.dl-foot-links a { color: var(--muted); }
.dl-foot-links a:hover { color: var(--violet-600); }
.dl-foot-copy { font-size: 10.5px; opacity: .82; }

/* ---------- 吸底 ---------- */
.dl-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 8px;
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .32s var(--ease);
}
.dl-sticky.is-on { transform: translateY(0); }
.dl-sticky .dl-btn { flex: 1; }
.dl-sticky .dl-btn--primary { flex: 1.55; box-shadow: 0 8px 18px rgba(224, 138, 0, .3); }
.dl-sticky .dl-btn--weapp {
  background: var(--violet-100); border-color: transparent; color: var(--violet-700);
}
.dl-sticky .dl-btn--weapp:hover { background: #e3ddff; }

/* ---------- Toast ---------- */
.dl-toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 60;
  transform: translate(-50%, 14px);
  padding: 9px 18px; border-radius: 999px;
  background: rgba(30, 27, 46, .92); color: #fff;
  font-size: 12.5px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .24s ease, transform .24s var(--ease);
}
.dl-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 动画 ---------- */
@keyframes dl-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 小屏适配 ---------- */
@media (max-width: 359px) {
  .dl-feats { grid-template-columns: 1fr; }
  .dl-title { font-size: 24px; }
  .dl-qr-box img { width: 154px; height: 154px; }
}

/* ---------- 桌面 ---------- */
@media (min-width: 720px) {
  .dl-body { padding-bottom: 0; }
  .dl-sticky { display: none; }
  .dl-pc-tip { display: flex; }
  .dl-bar, .dl-hero-inner, .dl-main, .dl-foot { max-width: 620px; }
  .dl-hero { margin-top: -62px; padding: 108px 0 56px; }
  .dl-hero-inner { padding: 0 32px; }
  .dl-icon { width: 96px; height: 96px; border-radius: 24px; }
  .dl-title { font-size: 32px; }
  .dl-intro { font-size: 14.5px; max-width: 360px; }
  .dl-cta { grid-template-columns: 1fr 1fr; }
  .dl-btn { padding: 14px 16px; }
  .dl-main { padding: 24px 32px 0; }
  .dl-feats { gap: 12px; }
  .dl-qr-box img { width: 196px; height: 196px; }
  .dl-foot { padding: 24px 32px 30px; }
}
