:root {
  --zph-bg: #0a0818;
  --zph-bg-soft: #12102a;
  --zph-surface: rgba(255, 255, 255, 0.055);
  --zph-border: rgba(255, 255, 255, 0.1);
  --zph-primary: #ff5e62;
  --zph-secondary: #6e4bff;
  --zph-accent: #1ee8c0;
  --zph-warm: #ffb347;
  --zph-text: #f2f0fa;
  --zph-muted: #9a94b3;
  --zph-header-h: 58px;
  --zph-dl-h: 0px;
  --zph-radius: 18px;
  --zph-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --zph-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--zph-font);
  background: var(--zph-bg);
  color: var(--zph-text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}

body.zph-dl-pad {
  padding-top: var(--zph-dl-h);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--zph-accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--zph-warm);
}

.zph-wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Top ads */
.zph-dl-top {
  background: linear-gradient(90deg, #1a1238 0%, #2a1850 50%, #1a1238 100%);
  border-bottom: 1px solid var(--zph-border);
  padding: 10px 0 8px;
}

.zph-dl-top-head {
  text-align: center;
  font-size: 0.82rem;
  color: var(--zph-muted);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.zph-ad-cell {
  width: 72px;
  text-align: center;
}

.zph-ad-cell figure {
  margin: 0;
}

.zph-ad-cell img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  margin: 0 auto;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.zph-ad-cell img:hover {
  transform: scale(1.06);
}

.zph-ad-cell figcaption {
  font-size: 10px;
  color: var(--zph-muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Header */
.zph-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10, 8, 24, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--zph-border);
  height: var(--zph-header-h);
}

.zph-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--zph-header-h);
  position: relative;
}

.zph-nav-wrap {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.zph-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--zph-text);
  font-weight: 700;
  font-size: 1.05rem;
}

.zph-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.zph-nav-toggle {
  background: var(--zph-surface);
  border: 1px solid var(--zph-border);
  color: var(--zph-text);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
}

.zph-nav-panel ul {
  list-style: none;
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #16132e;
  border: 1px solid var(--zph-border);
  border-radius: var(--zph-radius);
  padding: 10px 0;
  min-width: 160px;
  box-shadow: var(--zph-shadow);
  z-index: 210;
}

.zph-nav-panel.zph-nav-open ul {
  display: block;
}

.zph-nav-panel li a {
  display: block;
  padding: 10px 20px;
  color: var(--zph-text);
  font-size: 0.92rem;
}

.zph-nav-panel li a[aria-current="page"] {
  color: var(--zph-primary);
  background: rgba(255, 94, 98, 0.08);
}

@media (min-width: 860px) {
  .zph-nav-wrap {
    margin-left: 0;
  }

  .zph-nav-toggle {
    display: none;
  }

  .zph-nav-panel ul {
    display: flex !important;
    position: static;
    top: auto;
    right: auto;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 6px;
    z-index: auto;
  }

  .zph-nav-panel li a {
    padding: 8px 14px;
    border-radius: 999px;
  }

  .zph-nav-panel li a:hover {
    background: var(--zph-surface);
  }
}

/* Sticky download bar */
#zph-dl-bar {
  position: fixed;
  top: var(--zph-header-h);
  left: 0;
  right: 0;
  z-index: 190;
  background: rgba(18, 16, 42, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--zph-border);
  padding: 8px 12px;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

#zph-dl-bar.zph-dl-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#zph-dl-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 1120px;
  margin: 0 auto;
}

.zph-dl-cell {
  width: calc(25% - 6px);
  max-width: 88px;
}

.zph-dl-cell a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--zph-muted);
  font-size: 10px;
}

.zph-dl-cell img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .zph-dl-cell {
    width: calc(12.5% - 7px);
  }
}

/* Hero */
.zph-hero {
  position: relative;
  padding: 52px 0 64px;
  overflow: hidden;
}

.zph-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(110, 75, 255, 0.35), transparent),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(255, 94, 98, 0.25), transparent);
  pointer-events: none;
}

.zph-hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--zph-bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.zph-hero-grid {
  position: relative;
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 900px) {
  .zph-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.zph-hero-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 94, 98, 0.2), rgba(110, 75, 255, 0.2));
  border: 1px solid var(--zph-border);
  font-size: 0.8rem;
  color: var(--zph-accent);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.zph-hero h1 {
  font-size: clamp(1.65rem, 4.5vw, 2.5rem);
  line-height: 1.3;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #fff 30%, var(--zph-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.zph-hero-lead {
  color: var(--zph-muted);
  font-size: 1.02rem;
  margin-bottom: 22px;
}

.zph-hero-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--zph-shadow), 0 0 40px rgba(110, 75, 255, 0.2);
  transform: rotate(-2deg);
}

.zph-hero-frame img {
  width: 100%;
}

/* Sections */
.zph-section {
  padding: 56px 0;
}

.zph-section-alt {
  background: var(--zph-bg-soft);
}

.zph-section-head {
  margin-bottom: 36px;
}

.zph-section-head h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 12px;
  color: #fff;
}

.zph-section-head p {
  color: var(--zph-muted);
  max-width: 720px;
}

.zph-section h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
  color: #fff;
}

.zph-section p {
  color: var(--zph-muted);
  margin-bottom: 14px;
}

/* Zigzag */
.zph-zigzag {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
}

@media (min-width: 860px) {
  .zph-zigzag {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .zph-zigzag.zph-reverse .zph-zigzag-text {
    order: 2;
  }

  .zph-zigzag.zph-reverse .zph-zigzag-media {
    order: 1;
  }
}

.zph-shot {
  border-radius: var(--zph-radius);
  overflow: hidden;
  border: 1px solid var(--zph-border);
  box-shadow: var(--zph-shadow);
}

/* Cards */
.zph-card-row {
  display: grid;
  gap: 18px;
  margin: 28px 0;
}

@media (min-width: 640px) {
  .zph-card-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .zph-card-row.zph-triple {
    grid-template-columns: repeat(3, 1fr);
  }
}

.zph-card {
  background: var(--zph-surface);
  border: 1px solid var(--zph-border);
  border-radius: var(--zph-radius);
  padding: 22px 20px;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.zph-card:hover {
  border-color: rgba(30, 232, 192, 0.35);
  transform: translateY(-3px);
}

.zph-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.zph-card p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.zph-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--zph-primary), var(--zph-secondary));
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Pill strip */
.zph-pill-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.zph-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(110, 75, 255, 0.15);
  border: 1px solid rgba(110, 75, 255, 0.3);
  font-size: 0.85rem;
  color: var(--zph-text);
}

/* Prose block */
.zph-prose {
  max-width: 820px;
}

.zph-prose h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--zph-primary);
}

.zph-prose ul {
  margin: 12px 0 18px 20px;
  color: var(--zph-muted);
}

.zph-prose li {
  margin-bottom: 8px;
}

/* CTA link */
.zph-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--zph-primary), var(--zph-secondary));
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 600;
}

.zph-cta-link:hover {
  opacity: 0.9;
  color: #fff !important;
}

/* Breadcrumb */
.zph-crumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--zph-muted);
  border-bottom: 1px solid var(--zph-border);
  margin-bottom: 28px;
}

.zph-crumb a {
  color: var(--zph-muted);
}

.zph-crumb span {
  color: var(--zph-text);
}

/* Legal / sub pages */
.zph-page-hero {
  padding: 36px 0 20px;
}

.zph-page-hero h1 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin-bottom: 10px;
}

.zph-legal h2 {
  font-size: 1.15rem;
  margin: 32px 0 12px;
  color: #fff;
}

.zph-legal h3 {
  font-size: 1rem;
  margin: 20px 0 8px;
  color: var(--zph-accent);
}

.zph-legal p,
.zph-legal li {
  color: var(--zph-muted);
  margin-bottom: 12px;
}

.zph-legal ul,
.zph-legal ol {
  margin-left: 22px;
  margin-bottom: 16px;
}

/* Footer */
.zph-footer {
  background: #080612;
  border-top: 1px solid var(--zph-border);
  padding: 44px 0 28px;
  margin-top: 20px;
}

.zph-footer-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 32px;
}

@media (min-width: 700px) {
  .zph-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.zph-footer h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: #fff;
}

.zph-footer p,
.zph-footer li {
  font-size: 0.88rem;
  color: var(--zph-muted);
}

.zph-footer ul {
  list-style: none;
}

.zph-footer li {
  margin-bottom: 8px;
}

.zph-footer li a {
  color: var(--zph-muted);
}

.zph-footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: #5e5878;
  padding-top: 20px;
  border-top: 1px solid var(--zph-border);
}

/* Error pages */
.zph-error {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.zph-error h1 {
  font-size: 4rem;
  background: linear-gradient(135deg, var(--zph-primary), var(--zph-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

/* Reveal animation */
.zph-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.zph-reveal.zph-inview {
  opacity: 1;
  transform: translateY(0);
}

/* DY page */
.zph-dy-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
}

.zph-dy-page h1 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.zph-dy-page p {
  color: var(--zph-muted);
  margin-bottom: 16px;
}
