:root {
  --bg-deep: #07050f;
  --bg-base: #0c0a18;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-soft: #64748b;
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --accent: #c084fc;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--purple-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Header ── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(7, 5, 15, 0.78);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
}

.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.brand-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.brand-copy span {
  font-size: 12px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
}

.nav-links a:hover { color: var(--text); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #6366f1);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.45);
  color: #fff;
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

/* ── Hero cinematic ── */
.hero-cinematic {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  margin-top: var(--header-h);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 5, 15, 0.92) 0%, rgba(7, 5, 15, 0.72) 42%, rgba(7, 5, 15, 0.35) 100%),
    linear-gradient(to top, rgba(7, 5, 15, 0.95) 0%, transparent 45%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 72px 0 88px;
}

.hero-kicker {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.14);
  color: var(--purple-light);
  font-size: 13px;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 640px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #fff 0%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 17px;
  color: rgba(241, 245, 249, 0.82);
  max-width: 560px;
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.meta-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: var(--text-muted);
}

.meta-chip strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-scan {
  flex-shrink: 0;
}

.mp-scan--hero {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 20px 18px;
  border-radius: 22px;
  background: rgba(12, 10, 24, 0.55);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* ── Scan cards (shared) ── */
.mp-scan {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mp-scan-visual { position: relative; flex-shrink: 0; }

.mp-scan-glow {
  position: absolute;
  inset: -10px;
  border-radius: 24px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 70%);
  filter: blur(8px);
  z-index: 0;
}

.mp-scan-frame {
  position: relative;
  z-index: 1;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f4f4f5 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.mp-scan-frame img {
  width: 112px;
  height: 112px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.mp-scan-visual--lg .mp-scan-frame img {
  width: 148px;
  height: 148px;
}

.mp-scan-label {
  display: inline-flex;
  padding: 4px 10px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(167, 139, 250, 0.25);
  color: var(--purple-light);
  font-size: 12px;
  font-weight: 600;
}

.mp-scan-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.mp-scan-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.mp-scan-copy--center { text-align: center; margin-top: 14px; }
.mp-scan-copy--center .mp-scan-label { margin-left: auto; margin-right: auto; }

/* ── Section heads ── */
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.section-kicker {
  color: var(--purple-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}

.story-intro {
  padding: 88px 0 24px;
}

/* ── Story acts ── */
.story-act {
  padding: 32px 0 64px;
}

.story-act-media {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.story-act-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.story-act-badge {
  position: absolute;
  left: 20px;
  top: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(7, 5, 15, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: var(--purple-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.story-act-body {
  display: flex;
  justify-content: center;
}

.story-act-copy {
  max-width: 720px;
  padding: 0 8px;
}

.story-act-copy h3 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.story-act-tagline {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--purple-light);
  font-weight: 600;
}

.story-act-copy > p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
}

.story-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.story-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-soft);
}

.story-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
}

/* ── About ── */
.about {
  padding: 88px 0;
  background: linear-gradient(180deg, transparent, rgba(30, 27, 75, 0.22) 50%, transparent);
}

.about-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.6), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.about-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.about-panel p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.info-table { display: grid; gap: 14px; }

.info-row {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}

.info-row dt {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.info-row dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  word-break: break-all;
}

/* ── Contact ── */
.contact {
  padding: 88px 0 100px;
}

.contact-head { margin-bottom: 40px; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.contact-card {
  padding: 28px 24px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.contact-card--service {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.08), rgba(124, 58, 237, 0.1));
  border-color: rgba(124, 58, 237, 0.18);
}

.mp-scan--contact {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── WeChat service QR ── */
.wx-service-scan {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.wx-service-visual { position: relative; }

.wx-service-glow {
  position: absolute;
  inset: -14px -18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.42), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(124, 58, 237, 0.38), transparent 58%);
  filter: blur(14px);
  z-index: 0;
}

.wx-service-frame {
  position: relative;
  z-index: 1;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(56, 189, 248, 0.18), 0 10px 32px rgba(124, 58, 237, 0.14);
}

.wx-service-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.65), rgba(124, 58, 237, 0.75));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.wx-service-frame img {
  width: 168px;
  height: 168px;
  border-radius: 12px;
  object-fit: contain;
}

.wx-service-copy { margin-top: 18px; }

.wx-service-label {
  display: inline-flex;
  padding: 4px 12px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(124, 58, 237, 0.18));
  border: 1px solid rgba(129, 140, 248, 0.28);
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 600;
}

.wx-service-title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.wx-service-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Footer ── */
.site-footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-base);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.footer-brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.footer-brand strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.footer-brand span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
}

.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

.footer-divider {
  height: 1px;
  margin: 24px 0 20px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.footer-note {
  margin: 0 0 20px;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 880px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-soft);
}

.footer-icp { color: var(--text-soft); white-space: nowrap; }
.footer-icp:hover { color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    padding: 48px 0 64px;
  }

  .hero-scan {
    justify-self: start;
    max-width: 280px;
  }

  .about-panel,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .wx-service-desc {
    white-space: normal;
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 32px);
  }

  .story-act-media {
    width: calc(100% - 32px);
    border-radius: var(--radius);
  }

  .about-panel {
    padding: 28px 22px;
  }

  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
}
