/* 泛搭局官网 — 白 + 品牌红 #ff2442，纯静态，PC/手机兼容 */

:root {
  --brand: #ff2442;
  --brand-2: #ff5c7a;
  --brand-soft: #fff0f2;
  --text-1: #1a1a1a;
  --text-2: #555555;
  --text-3: #888888;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --border: #eeeeee;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --max: 1120px;
  --header-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-2);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-1);
  font-weight: 700;
  font-size: 1.125rem;
}

.brand:hover {
  color: var(--text-1);
}

.brand-name {
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-1);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--text-2);
  font-size: 0.9375rem;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--brand);
}

.site-nav .btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border: 2px solid var(--brand);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  color: #fff;
  background: var(--brand-2);
  border-color: var(--brand-2);
}

.btn-outline {
  color: var(--brand);
  background: transparent;
}

.btn-outline:hover {
  color: #fff;
  background: var(--brand);
}

/* Hero */
.hero {
  padding: 48px 0 64px;
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 55%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  font-size: 0.8125rem;
  color: var(--brand);
  background: #fff;
  border-radius: 999px;
  border: 1px solid rgba(255, 36, 66, 0.15);
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-desc {
  margin: 0 0 28px;
  max-width: 32em;
  font-size: 1.0625rem;
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 1.125rem;
  color: var(--brand);
}

.hero-stats span {
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* Phone mock */
.phone-frame {
  max-width: 280px;
  margin: 0 auto;
  padding: 12px;
  background: #1a1a1a;
  border-radius: 36px;
  box-shadow: var(--shadow), 0 24px 48px rgba(255, 36, 66, 0.12);
}

.phone-screen {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
}

.mock-nav {
  padding: 14px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.mock-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background: var(--brand);
  border-radius: 50%;
  vertical-align: middle;
}

.mock-feed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  min-height: 320px;
}

.mock-card {
  height: 100px;
  background: linear-gradient(145deg, #ffe8ec, #fff5f6);
  border-radius: 8px;
}

.mock-card--tall {
  height: 140px;
}

.mock-tab {
  display: flex;
  justify-content: space-around;
  padding: 12px;
  font-size: 0.6875rem;
  color: var(--text-3);
  border-top: 1px solid var(--border);
}

.mock-tab-on {
  color: var(--brand);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head-left {
  text-align: left;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--text-3);
  font-size: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  border-color: rgba(255, 36, 66, 0.25);
  box-shadow: var(--shadow);
}

.feature-icon {
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.65;
}

.scene-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.scene-item {
  padding: 28px;
  background: #fff;
  border-radius: var(--radius);
  border-left: 4px solid var(--brand);
}

.scene-item h3 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
}

.scene-item p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.cta-band {
  background: var(--brand);
  color: #fff;
  padding: 56px 0;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.cta-band p {
  margin: 0;
  opacity: 0.92;
  max-width: 28em;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  padding: 12px 20px;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.about-text {
  margin: 0 0 16px;
  color: var(--text-2);
  line-height: 1.75;
}

.about-values {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-values li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-2);
}

.value-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Footer */
.site-footer {
  padding: 48px 0 24px;
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.footer-brand p {
  margin: 4px 0 0;
}

.footer-links h3 {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  color: #fff;
}

.footer-links p {
  margin: 0 0 6px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-links a:hover {
  color: var(--brand-2);
}

.footer-note {
  font-size: 0.75rem;
  opacity: 0.5;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  margin: 4px 0;
}

.footer-icp {
  font-size: 0.75rem;
  opacity: 0.55;
}

/* Legal pages */
.legal-page {
  padding: calc(var(--header-h) + 40px) 0 64px;
  max-width: 720px;
}

.legal-page h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.legal-page .legal-meta {
  margin: 0 0 32px;
  color: var(--text-3);
  font-size: 0.875rem;
}

.legal-page h2 {
  margin: 32px 0 12px;
  font-size: 1.125rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.legal-page ul {
  padding-left: 1.25em;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

/* Mobile nav open */
body.nav-open {
  overflow: hidden;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .phone-frame {
    max-width: 240px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 32px;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  body.nav-open .site-nav {
    transform: translateX(0);
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  .site-nav .btn-sm {
    margin-top: 16px;
    text-align: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .scene-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .store-badges {
    justify-content: center;
  }
}
