/* ============================================================
   声遇语音官网 · 简约浅色主题
   主题色由 js/site.js 注入 --blue 变量(后台可配置)
   ============================================================ */

:root {
  --blue: #5e82ff;
  --blue-deep: #4062e0;
  --blue-soft: rgba(94, 130, 255, .1);
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --bg: #f6f8fc;
  --bg-soft: #eef2f8;
  --line: #e3e9f2;
  --card: #ffffff;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 12px rgba(15, 23, 42, .07);
  --shadow-md: 0 12px 36px rgba(15, 23, 42, .1);
  --shadow-blue: 0 10px 30px rgba(94, 130, 255, .28);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
button { font-family: inherit; }
p, h1, h2, h3 { margin: 0; }

.section-space { margin-top: 96px; }

/* ---------- Reveal ---------- */
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
html.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark { width: 32px; height: 32px; border-radius: 9px; overflow: hidden; background: var(--blue-soft); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-mark.small { width: 34px; height: 34px; border-radius: 10px; }
.brand strong { font-size: 18px; font-weight: 700; letter-spacing: .2px; }

.site-nav { display: flex; gap: 4px; margin-left: 8px; }
.site-nav a {
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ink-2);
  border-radius: 10px;
  transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--blue); background: var(--blue-soft); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.header-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(94, 130, 255, .32);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.header-download:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(94, 130, 255, .4); }

.mobile-menu {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.mobile-menu i { width: 16px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 8px;
  background:
    radial-gradient(720px 420px at 84% 6%, rgba(94, 130, 255, .16), transparent 62%),
    radial-gradient(560px 380px at 4% 70%, rgba(103, 232, 249, .14), transparent 60%),
    linear-gradient(180deg, #edf2ff 0%, var(--bg) 78%);
  overflow: hidden;
}
.hero-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: 56px;
}

.hero-copy .eyebrow { margin-bottom: 22px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.2px;
  color: var(--blue);
}
.eyebrow > i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.eyebrow > b { color: var(--ink-3); font-weight: 600; }
.eyebrow.light { color: rgba(255, 255, 255, .85); }

.hero h1 {
  font-size: 46px;
  line-height: 1.22;
  letter-spacing: .5px;
  font-weight: 800;
}
.hero-description {
  margin-top: 20px;
  max-width: 460px;
  font-size: 16.5px;
  color: var(--ink-2);
}
.hero-actions { margin-top: 32px; display: flex; gap: 14px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 14px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.button b { font-weight: 400; opacity: .75; }
.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 6px 16px rgba(94, 130, 255, .3);
}
.button-primary:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(94, 130, 255, .38); }
.button-ghost {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}
.button-ghost:hover { border-color: rgba(94, 130, 255, .5); color: var(--blue); transform: translateY(-2px); }

/* Hero 展示区 */
.hero-visual { position: relative; padding: 26px 0 40px; }

.room-preview {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 22px 24px 20px;
  transform: rotate(-1.2deg);
}
.room-preview-head { display: flex; align-items: center; gap: 12px; }
.room-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #e5484d;
  background: rgba(229, 72, 77, .08);
  border-radius: 999px;
}
.room-live i { width: 6px; height: 6px; border-radius: 50%; background: #e5484d; animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(229, 72, 77, .4); } 50% { opacity: .6; box-shadow: 0 0 0 5px rgba(229, 72, 77, 0); } }
.room-preview-head strong { font-size: 16px; font-weight: 650; }
.room-online { margin-left: auto; font-size: 13px; color: var(--ink-3); white-space: nowrap; }

.voice-wave {
  height: 118px;
  margin: 14px 0 8px;
}
.voice-wave svg { width: 100%; height: 100%; overflow: visible; }

.room-preview-foot { display: flex; align-items: center; gap: 12px; }
.member-avatars { display: flex; align-items: center; }
.avatar {
  width: 30px;
  height: 30px;
  margin-left: -8px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-style: normal;
  color: #fff;
}
.avatar:first-child { margin-left: 0; }
.a1 { background: #5e82ff; }
.a2 { background: #8b5ef0; }
.a3 { background: #f07b5e; }
.a4 { background: #2fd4a8; }
.member-more {
  margin-left: -8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.voice-caption { margin-left: auto; font-size: 13px; color: var(--ink-3); }

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 10px 16px;
  animation: float-breathe 5.5s ease-in-out infinite;
}
.float-chip b { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.1; display: block; }
.float-chip small { font-size: 12px; color: var(--ink-3); }
.chip-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}
.chip-hifi { top: 0; right: -6px; }
.chip-hifi .chip-icon { background: #5e82ff; }
.chip-fast { bottom: 4px; left: -10px; animation-delay: 1.6s; }
.chip-fast .chip-icon { background: #2fd4a8; }
@keyframes float-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* 公告条 */
.announcement {
  max-width: 1120px;
  margin: 26px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.announcement-tag {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  flex-shrink: 0;
}
.announcement p {
  flex: 1;
  font-size: 14.5px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Stats ---------- */
.stats { border-bottom: 1px solid var(--line); }
.stats-list {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  justify-content: center;
}
.stat-item strong { font-size: 34px; font-weight: 800; letter-spacing: .5px; color: var(--blue); }
.stat-item span { font-size: 14px; color: var(--ink-3); }

/* ---------- Section headings ---------- */
.section-heading {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}
.section-heading h2 {
  margin-top: 16px;
  font-size: 34px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .3px;
}
.section-heading > p {
  max-width: 380px;
  color: var(--ink-2);
  font-size: 15.5px;
}
.section-heading.compact { display: flex; justify-content: space-between; align-items: flex-end; }
.heading-note { color: var(--ink-3); font-size: 14px; padding-bottom: 6px; }

/* ---------- Features ---------- */
.feature-grid {
  max-width: 1120px;
  margin: 44px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(94, 130, 255, .35);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-icon-blue { color: #5e82ff; background: rgba(94, 130, 255, .1); }
.feature-icon-purple { color: #8b5ef0; background: rgba(139, 94, 240, .1); }
.feature-icon-cyan { color: #2fd4a8; background: rgba(47, 212, 168, .1); }
.feature-card h3 { font-size: 19px; font-weight: 700; }
.feature-card p { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
.feature-tag {
  display: inline-block;
  margin-top: 18px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--ink-3);
  background: var(--bg-soft);
  border-radius: 999px;
}

/* ---------- Steps ---------- */
.experience { background: #ffffff; padding: 96px 0 100px; margin-top: 0; }
.experience .section-heading { margin-bottom: 44px; }
.steps {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
  display: flex;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--blue);
  opacity: .35;
  line-height: 1.1;
  flex-shrink: 0;
}
.step-body strong { display: block; font-size: 17px; font-weight: 700; margin-bottom: 7px; }
.step-body p { font-size: 14px; color: var(--ink-2); }

/* ---------- Downloads ---------- */
.download-section { background: linear-gradient(135deg, var(--blue), #3d5ae0); padding: 88px 0; margin-top: 0; }
.download-panel {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.download-copy h2 { margin-top: 16px; font-size: 32px; line-height: 1.3; color: #fff; font-weight: 800; }
.download-copy > p { margin-top: 16px; color: rgba(255, 255, 255, .78); font-size: 15.5px; max-width: 420px; }
.download-meta { margin-top: 24px; display: flex; gap: 22px; flex-wrap: wrap; }
.download-meta span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255, 255, 255, .9); }
.download-meta b { color: #fff; }
.meta-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); }

.download-cards { display: flex; flex-direction: column; gap: 16px; }
.download-card {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: 0 14px 40px rgba(20, 32, 90, .28);
  transition: transform .22s ease, box-shadow .22s ease;
}
.download-card:hover { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(20, 32, 90, .36); }
.download-badge {
  position: absolute;
  top: -11px;
  right: 22px;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #fff;
  background: #f07b5e;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(240, 123, 94, .4);
}
.download-os {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.download-os img { width: 100%; height: 100%; object-fit: cover; }
.download-card strong { font-size: 17.5px; font-weight: 700; }
.download-card small { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-3); }
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border-radius: 10px;
  transition: background .2s, transform .15s;
}
.download-card:hover .download-btn { background: var(--blue-deep); transform: translateY(-1px); }

.mirror-row {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.mirror-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color .2s, border-color .2s, background .2s;
}
.mirror-link b { font-weight: 400; color: var(--ink-3); font-size: 11px; }
.mirror-link:hover { color: var(--blue); border-color: rgba(94, 130, 255, .4); background: var(--blue-soft); }
.download-card.recommended .download-os { color: #f07b5e; background: rgba(240, 123, 94, .1); }

/* ---------- News ---------- */
.news .section-heading { margin-bottom: 44px; }
.news-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(94, 130, 255, .3); }
.news-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.news-tag {
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
}
.news-date { font-size: 13px; color: var(--ink-3); }
.news-card h3 { margin-top: 16px; font-size: 17px; font-weight: 700; line-height: 1.4; }
.news-card p { margin-top: 9px; font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { margin-top: 16px; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; color: var(--ink-3); transition: color .2s; cursor: pointer; user-select: none; }

/* 动态详情弹窗 */
.news-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.news-modal[hidden] { display: none; }
.news-modal-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: modal-fade .2s ease; }
.news-modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: 72vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 34px 34px 30px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
  animation: modal-rise .25s cubic-bezier(.22, .61, .36, 1);
}
.news-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-3);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.news-modal-close:hover { color: var(--ink); border-color: rgba(94, 130, 255, .4); }
.news-modal-card .news-tag { margin-bottom: 14px; }
.news-modal-card h3 { margin-top: 16px; font-size: 22px; font-weight: 800; line-height: 1.4; }
.news-modal-card p { margin-top: 14px; font-size: 15px; line-height: 1.9; color: var(--ink-2); white-space: pre-line; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.news-card:hover .news-more { color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { display: block; font-size: 15.5px; font-weight: 700; }
.footer-brand span { display: block; font-size: 12.5px; color: var(--ink-3); }
.footer-links { display: flex; gap: 18px; margin-left: auto; }
.footer-links a { font-size: 14px; color: var(--ink-2); transition: color .2s; }
.footer-links a:hover { color: var(--blue); }
.footer-copy { font-size: 13px; color: var(--ink-3); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-shell { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 38px; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .feature-grid, .steps, .news-grid { grid-template-columns: 1fr 1fr; }
  .download-panel { grid-template-columns: 1fr; gap: 34px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 900px) {
  .header-inner { height: 60px; }
  .mobile-menu { display: flex; }
  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    flex-direction: column;
    padding: 10px 18px 16px;
    display: none;
  }
  .site-nav.open { display: flex; }
}

@media (max-width: 720px) {
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { justify-content: center; }
  .stats-list { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  .stat-item { justify-content: flex-start; }
  .feature-grid, .steps, .news-grid { grid-template-columns: 1fr; }
  .experience { padding: 64px 0; }
  .download-section { padding: 60px 0; }
  .download-card { grid-template-columns: 50px 1fr; padding: 18px; }
  .download-os { width: 46px; height: 46px; }
  .download-btn { grid-column: 2; justify-self: start; margin-top: 4px; }
  .section-heading.compact { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-links { margin-left: 0; }
}
