/* PPP体育 APP 下载页 — 纯静态 H5 落地页，PC 亦居中手机宽度 */
:root {
  --primary: #1890ff;
  --primary-hover: #40a9ff;
  --primary-dark: #096dd9;
  --accent: #ff4d4f;
  --accent-soft: rgba(255, 77, 79, 0.18);
  --bg: #0d0e12;
  --bg-card: #181a20;
  --bg-elevated: #22242c;
  --text: #ffffff;
  --muted: #9aa0ab;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --h5-width: 430px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: #050608;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: var(--h5-width);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 100px rgba(0, 0, 0, 0.65);
  overflow-x: hidden;
}

.app-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 50% at 50% -5%, rgba(24, 144, 255, 0.24), transparent 55%),
    radial-gradient(ellipse 50% 30% at 100% 30%, rgba(255, 77, 79, 0.07), transparent 50%),
    linear-gradient(180deg, #0d0e12 0%, #12141a 100%);
}

.app-bg__grid {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255,255,255,0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}

.app-bg__ball {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  animation: floatBall 8s ease-in-out infinite;
}

.app-bg__ball--1 {
  width: 200px;
  height: 200px;
  top: 5%;
  right: -40px;
  background: rgba(24, 144, 255, 0.18);
}

.app-bg__ball--2 {
  width: 160px;
  height: 160px;
  bottom: 20%;
  left: -30px;
  background: rgba(255, 77, 79, 0.1);
  animation-delay: -3s;
}

@keyframes floatBall {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.app-page {
  position: relative;
  z-index: 1;
  padding: 16px 20px 40px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.app-brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(24, 144, 255, 0.25);
}

.app-brand__text strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.app-brand__text span {
  font-size: 11px;
  color: var(--muted);
}

.app-topbar__link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.app-topbar__link:hover {
  color: var(--primary-hover);
  border-color: rgba(24, 144, 255, 0.3);
}

.app-hero {
  text-align: center;
  margin-bottom: 32px;
}

.app-hero__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 22px;
  object-fit: cover;
  display: block;
  box-shadow: 0 16px 40px rgba(24, 144, 255, 0.35);
}

.app-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(24, 144, 255, 0.12);
  border: 1px solid rgba(24, 144, 255, 0.25);
  color: #69c0ff;
  font-size: 12px;
  margin-bottom: 16px;
}

.app-hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #52c41a;
  box-shadow: 0 0 8px rgba(82, 196, 26, 0.8);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.app-hero__title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, #b8d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-hero__desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 24px;
  padding: 0 8px;
}

.app-platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 13px;
  margin-bottom: 16px;
}

.app-platform-tag svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.app-platform-tag--android { border-color: rgba(61, 220, 132, 0.3); color: #7dffb8; }
.app-platform-tag--ios { border-color: rgba(160, 174, 255, 0.3); color: #b8c4ff; }
.app-platform-tag--other { border-color: var(--border); color: var(--muted); }

.app-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
  color: #fff;
}

.app-download-btn:active { transform: scale(0.98); }

.app-download-btn--android {
  background: linear-gradient(135deg, #3ddc84 0%, #2bb56a 100%);
  box-shadow: 0 10px 28px rgba(61, 220, 132, 0.35);
}

.app-download-btn--ios {
  background: linear-gradient(135deg, #5b7cff 0%, #3d5afe 100%);
  box-shadow: 0 10px 28px rgba(91, 124, 255, 0.35);
}

.app-download-btn svg {
  width: 20px;
  height: 20px;
}

.app-meta {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.app-meta span + span::before {
  content: " · ";
}

.app-hero__alt {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.app-hero__alt a {
  color: var(--primary);
  text-decoration: none;
}

.app-hero__alt a:hover { text-decoration: underline; }

.app-dual-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.app-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.app-feature__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: rgba(24, 144, 255, 0.12);
}

.app-feature__body {
  text-align: left;
  min-width: 0;
}

.app-feature__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.app-feature__desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.app-leagues {
  text-align: center;
  margin-bottom: 32px;
}

.app-leagues__title {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.app-leagues__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.app-leagues__tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.app-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.app-footer__sub {
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.85;
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.app-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.app-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.app-modal__panel {
  position: relative;
  width: 100%;
  max-width: var(--h5-width);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.5);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-modal.is-open .app-modal__panel {
  transform: translateY(0);
}

.app-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 0;
}

.app-modal__head h2 {
  font-size: 17px;
  font-weight: 700;
}

.app-modal__close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.app-modal__body {
  padding: 16px 20px 28px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

.app-modal__intro {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

.app-steps {
  list-style: none;
  counter-reset: step;
}

.app-steps li {
  position: relative;
  padding-left: 40px;
  padding-bottom: 20px;
  counter-increment: step;
}

.app-steps li:last-child { padding-bottom: 0; }

.app-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.app-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 30px;
  bottom: 4px;
  width: 2px;
  background: rgba(24, 144, 255, 0.25);
}

.app-steps__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.app-steps__desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.app-modal__action {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.app-modal__action--android {
  background: linear-gradient(135deg, #3ddc84 0%, #2bb56a 100%);
}

.app-modal__action--ios {
  background: linear-gradient(135deg, #5b7cff 0%, #3d5afe 100%);
}

.app-modal__tip {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 77, 79, 0.2);
  font-size: 11px;
  color: #ffb4b5;
  line-height: 1.55;
}

@media (min-width: 480px) {
  body {
    padding: 24px 0;
  }

  .app-shell {
    min-height: calc(100vh - 48px);
    border-radius: 24px;
    overflow: hidden;
  }
}
