/* ============================================================
   蜜语直播 官网全局样式
   Design System: 深空黑 × 蜜金渐变 · 高端质感
   ============================================================ */

:root {
  --c-bg: #0b0a10;
  --c-bg-soft: #12101a;
  --c-card: rgba(255, 255, 255, 0.04);
  --c-card-border: rgba(255, 255, 255, 0.08);
  --c-text: #f2eff7;
  --c-text-dim: #a49fb3;
  --c-gold: #f6c76b;
  --c-gold-deep: #e89a3c;
  --c-rose: #f0699b;
  --c-violet: #8b5cf6;
  --grad-brand: linear-gradient(135deg, #f6c76b 0%, #f0699b 55%, #8b5cf6 100%);
  --grad-gold: linear-gradient(135deg, #ffe3a3 0%, #f6c76b 40%, #e89a3c 100%);
  --shadow-glow: 0 8px 40px rgba(240, 105, 155, 0.25);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-main: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, "Segoe UI", sans-serif;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ---------- 背景光斑 ---------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-orbs::before,
.bg-orbs::after {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.22;
}
.bg-orbs::before {
  background: #8b5cf6;
  top: -240px;
  right: -160px;
}
.bg-orbs::after {
  background: #e89a3c;
  bottom: -280px;
  left: -200px;
  opacity: 0.15;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(11, 10, 16, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.brand-name em {
  font-style: normal;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.95rem;
}
.nav-links a {
  color: var(--c-text-dim);
  transition: color 0.25s;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--c-text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}
.nav-cta {
  padding: 10px 24px !important;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff !important;
  font-weight: 600;
  box-shadow: var(--shadow-glow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(240, 105, 155, 0.4);
}
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 38px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 56px rgba(240, 105, 155, 0.45);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-text);
  border: 1px solid var(--c-card-border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--nav-h) + 90px) 0 110px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(246, 199, 107, 0.1);
  border: 1px solid rgba(246, 199, 107, 0.28);
  color: var(--c-gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.hero h1 .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin: 26px 0 40px;
  font-size: 1.12rem;
  color: var(--c-text-dim);
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 52px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.stat b {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span {
  font-size: 0.88rem;
  color: var(--c-text-dim);
}

/* ---------- 手机模型 ---------- */
.phone-wrap {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}
.phone {
  width: 290px;
  height: 590px;
  border-radius: 44px;
  background: linear-gradient(160deg, #1c1926, #0e0c15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 80px rgba(139, 92, 246, 0.18);
  padding: 12px;
  transform: rotateY(-10deg) rotateX(3deg);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: rotateY(-10deg) rotateX(3deg) translateY(0); }
  50% { transform: rotateY(-10deg) rotateX(3deg) translateY(-16px); }
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(200deg, #241a3a 0%, #3a1330 55%, #14101f 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 18px;
}
.phone-screen::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #0b0a10;
  border-radius: 999px;
}
.live-tag {
  position: absolute;
  top: 52px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(240, 62, 92, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.live-tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.2s infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }
.phone-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--grad-brand);
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  box-shadow: 0 0 60px rgba(240, 105, 155, 0.5);
}
.phone-bar {
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}
.phone-msgs {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phone-msgs span {
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.85);
}
.phone-msgs span b { color: var(--c-gold); font-weight: 600; }

/* ---------- 区块通用 ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--c-bg-soft); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-head .kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--c-gold);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
}
.section-head p {
  margin-top: 16px;
  color: var(--c-text-dim);
  font-size: 1.02rem;
}

/* ---------- 卡片网格 ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--c-card);
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(246, 199, 107, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
  background: rgba(246, 199, 107, 0.12);
  border: 1px solid rgba(246, 199, 107, 0.22);
}
.card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.card p {
  color: var(--c-text-dim);
  font-size: 0.94rem;
}

/* ---------- 步骤 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 40px 30px 34px;
  border-radius: var(--radius-lg);
  background: var(--c-card);
  border: 1px solid var(--c-card-border);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -18px;
  left: 26px;
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.9;
}
.step h3 { font-size: 1.1rem; margin: 12px 0 10px; }
.step p { color: var(--c-text-dim); font-size: 0.93rem; }

/* ---------- 评价 ---------- */
.quote-card .stars { color: var(--c-gold); letter-spacing: 3px; margin-bottom: 16px; }
.quote-card p { font-size: 0.96rem; color: var(--c-text); }
.quote-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.quote-user .ava {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}
.quote-user b { display: block; font-size: 0.92rem; }
.quote-user span { font-size: 0.8rem; color: var(--c-text-dim); }

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  border-radius: var(--radius-lg);
  padding: 70px 40px;
  text-align: center;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(246, 199, 107, 0.18), transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(139, 92, 246, 0.25), transparent 55%),
    var(--c-bg-soft);
  border: 1px solid var(--c-card-border);
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.cta-banner p {
  color: var(--c-text-dim);
  margin-bottom: 34px;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  background: var(--c-card);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 20px 26px;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--c-gold);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 26px 22px;
  color: var(--c-text-dim);
  font-size: 0.94rem;
}

/* ---------- 下载页 ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 860px;
  margin: 0 auto;
}
.dl-card {
  text-align: center;
  padding: 48px 34px;
}
.dl-card .card-icon {
  margin: 0 auto 22px;
  width: 68px;
  height: 68px;
  font-size: 2rem;
}
.dl-card .btn { margin-top: 26px; width: 100%; }
.dl-meta {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--c-text-dim);
}
.qr-box {
  width: 150px;
  height: 150px;
  margin: 28px auto 0;
  border-radius: var(--radius-md);
  background: #fff;
  display: grid;
  place-items: center;
  color: #333;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 10px;
  text-align: center;
}

/* ---------- 关于页 ---------- */
.about-hero-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.values-grid { margin-top: 10px; }
.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-gold), var(--c-violet));
  opacity: 0.5;
}
.timeline-item {
  position: relative;
  padding-bottom: 40px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 16px rgba(240, 105, 155, 0.6);
}
.timeline-item time {
  font-weight: 700;
  color: var(--c-gold);
  font-size: 0.95rem;
}
.timeline-item h3 { font-size: 1.1rem; margin: 6px 0; }
.timeline-item p { color: var(--c-text-dim); font-size: 0.93rem; }

/* ---------- 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.contact-info .card { margin-bottom: 20px; }
.contact-info .card h3 { display: flex; align-items: center; gap: 10px; }
.contact-form {
  background: var(--c-card);
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-lg);
  padding: 42px 38px;
}
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 9px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-card-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--c-text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(246, 199, 107, 0.15);
}
.form-hint { font-size: 0.85rem; color: var(--c-text-dim); margin-top: 14px; }

/* ---------- 法务页 ---------- */
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 70px) 0 90px;
}
.legal-wrap h1 { font-size: 2.1rem; font-weight: 800; margin-bottom: 8px; }
.legal-date { color: var(--c-text-dim); font-size: 0.9rem; margin-bottom: 40px; }
.legal-wrap h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 42px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--c-gold);
}
.legal-wrap p, .legal-wrap li {
  color: var(--c-text-dim);
  font-size: 0.96rem;
  margin-bottom: 10px;
}
.legal-wrap ul { padding-left: 22px; list-style: disc; }

/* ---------- 页面头部（内页） ---------- */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 70px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
}
.page-hero h1 .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero p {
  margin: 18px auto 0;
  max-width: 620px;
  color: var(--c-text-dim);
  font-size: 1.05rem;
}

/* ---------- 404 ---------- */
.err-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
}
.err-page .code {
  font-size: clamp(6rem, 18vw, 10rem);
  font-weight: 800;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.err-page h1 { font-size: 1.6rem; margin: 18px 0 12px; }
.err-page p { color: var(--c-text-dim); margin-bottom: 32px; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--c-card-border);
  background: var(--c-bg-soft);
  padding: 70px 0 34px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 54px;
}
.footer-brand p {
  color: var(--c-text-dim);
  font-size: 0.92rem;
  margin-top: 16px;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--c-text);
}
.footer-col a {
  display: block;
  color: var(--c-text-dim);
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--c-gold); }
.footer-bottom {
  border-top: 1px solid var(--c-card-border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--c-text-dim);
}

/* ---------- 滚动入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .cards-grid, .cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .phone-wrap { margin-top: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(11, 10, 16, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    font-size: 1.15rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; }
  .cards-grid, .cards-grid.cols-4, .cards-grid.cols-2, .dl-grid {
    grid-template-columns: 1fr;
  }
  .section { padding: 68px 0; }
  .hero { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 70px; }
  .hero-stats { gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .phone { width: 250px; height: 510px; }
}
