/* PikPak-style landing — 全本地资源，系统字体 */
:root {
  --bg-deep: #0a0e1a;
  --bg-card: rgba(18, 24, 42, 0.72);
  --accent: #6b5cff;
  --accent-2: #00c9ff;
  --accent-glow: rgba(107, 92, 255, 0.45);
  --text: #e8eaf2;
  --text-muted: #9aa3b8;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 背景光晕 — 纯 CSS，无图片 */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, var(--accent-glow), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(0, 201, 255, 0.2), transparent),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(107, 92, 255, 0.15), transparent),
    var(--bg-deep);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 70%);
  pointer-events: none;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10, 14, 26, 0.75);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo svg {
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b7cff);
  color: #fff;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 10px 40px var(--accent-glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(10, 14, 26, 0.96);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-wrap.is-open {
    max-height: 320px;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
  }

  .nav a {
    text-align: center;
  }

  .header-cta .btn-ghost {
    display: none;
  }
}

/* Hero */
.hero {
  padding: 72px 0 88px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(107, 92, 255, 0.15);
  border: 1px solid rgba(107, 92, 255, 0.35);
  color: #c4b8ff;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #fff 0%, #b8c0d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  backdrop-filter: blur(8px);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 600px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(107, 92, 255, 0.35);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--accent-2);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Flow diagram */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 768px) {
  .flow {
    grid-template-columns: 1fr;
  }
}

.flow-step {
  position: relative;
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.flow-step-num {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 8px;
}

.code-inline {
  font-size: 0.85em;
  color: var(--accent-2);
}

.legal-card {
  max-width: 720px;
  margin: 0 auto;
}

.legal-text {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.flow-arrow {
  position: absolute;
  top: 50%;
  right: -18px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.25rem;
  z-index: 1;
}

@media (max-width: 768px) {
  .flow-arrow {
    display: none;
  }
}

/* Platforms */
.platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .platforms {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .platforms {
    grid-template-columns: 1fr;
  }
}

.platform {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.2s;
}

.platform:hover {
  border-color: rgba(0, 201, 255, 0.35);
}

.platform svg {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  color: var(--accent);
}

.platform h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.platform p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Download zone */
.download-zone {
  background: linear-gradient(180deg, rgba(107, 92, 255, 0.12), transparent);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  margin-top: 24px;
}

.download-zone h3 {
  text-align: center;
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.download-zone > p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.download-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(107, 92, 255, 0.4);
}

.download-item svg {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--accent-2);
}

.download-item span strong {
  display: block;
  font-size: 0.95rem;
}

.download-item span small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.download-hint {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Compare / pricing teaser */
.compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .compare {
    grid-template-columns: 1fr;
  }
}

.compare-col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-card);
}

.compare-col.featured {
  border-color: rgba(107, 92, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(107, 92, 255, 0.2);
}

.compare-col h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.compare-col .tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.compare-col ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.compare-col li {
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
}

.compare-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 48px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}
