/* ========= 辣椒直播官网 全局样式 ========= */
:root {
  --primary: #ff3b30;
  --primary-dark: #d92c22;
  --primary-light: #ff6b5e;
  --accent: #ffb100;
  --bg: #ffffff;
  --bg-soft: #fff7f5;
  --bg-dark: #1a1114;
  --text: #22181a;
  --text-sub: #6b5e60;
  --border: #f0e2df;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(255, 59, 48, .12);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 800; color: var(--text);
}
.logo .logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center;
  color: #fff; font-size: 20px;
}
.logo em { font-style: normal; color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  padding: 8px 16px; border-radius: 10px;
  font-size: 15px; color: var(--text-sub); font-weight: 500;
  transition: all .2s;
}
.main-nav a:hover { color: var(--primary); background: var(--bg-soft); }
.main-nav a.active { color: var(--primary); font-weight: 700; }
.main-nav a.nav-cta {
  color: #fff; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 4px 14px rgba(255, 59, 48, .35);
}
.main-nav a.nav-cta:hover { transform: translateY(-1px); background: var(--primary-dark); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 10px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; margin: 5px auto;
  background: var(--text); border-radius: 2px; transition: all .3s;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 177, 0, .18), transparent),
    radial-gradient(800px 400px at 10% 110%, rgba(255, 59, 48, .12), transparent),
    var(--bg-soft);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px;
  align-items: center; padding: 84px 0 96px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border);
  padding: 6px 16px; border-radius: 999px;
  font-size: 13px; color: var(--primary); font-weight: 600;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 46px; line-height: 1.25; font-weight: 800;
  letter-spacing: -.5px; margin-bottom: 18px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub {
  font-size: 18px; color: var(--text-sub); max-width: 540px; margin-bottom: 34px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 14px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: all .25s; border: 0;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 8px 24px rgba(255, 59, 48, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 59, 48, .45); }
.btn-ghost {
  color: var(--text); background: #fff; border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.hero-stats { display: flex; gap: 40px; margin-top: 44px; }
.hero-stats .stat b { font-size: 28px; font-weight: 800; color: var(--text); display: block; }
.hero-stats .stat span { font-size: 13px; color: var(--text-sub); }

/* 手机模型 */
.phone-mock {
  width: 300px; height: 610px; margin: 0 auto;
  border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2b1d20, #17090b);
  box-shadow: 0 30px 80px rgba(30, 8, 8, .35), inset 0 0 0 2px rgba(255,255,255,.08);
  position: relative;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background: linear-gradient(170deg, #ff5646 0%, #ff8a3d 45%, #ffb100 100%);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 52px 20px 26px; color: #fff; position: relative;
}
.phone-screen::before {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; border-radius: 999px; background: #17090b;
}
.live-tag {
  align-self: flex-start; background: rgba(0,0,0,.35);
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.live-tag i {
  width: 8px; height: 8px; border-radius: 50%; background: #4cff7a;
  animation: pulse 1.4s infinite;
}
@keyframes pulse { 50% { opacity: .35; } }
.phone-title { font-size: 26px; font-weight: 800; line-height: 1.4; }
.phone-title small { display: block; font-size: 13px; font-weight: 500; opacity: .9; }
.phone-bar {
  background: rgba(255,255,255,.2); border-radius: 12px; padding: 10px 14px;
  font-size: 13px; backdrop-filter: blur(4px);
}

/* ---------- 通用 Section ---------- */
.section { padding: 90px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .kicker {
  color: var(--primary); font-weight: 700; font-size: 14px;
  letter-spacing: 2px; text-transform: uppercase;
}
.section-head h2 { font-size: 34px; font-weight: 800; margin: 10px 0 14px; }
.section-head p { color: var(--text-sub); font-size: 16px; }

/* 特性卡片 */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 28px; transition: all .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card .icon {
  width: 54px; height: 54px; border-radius: 14px; font-size: 26px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(255,59,48,.12), rgba(255,177,0,.12));
}
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-sub); font-size: 14.5px; }

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step-card {
  position: relative; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border); padding: 40px 28px 32px;
}
.step-card::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -18px; left: 24px;
  font-size: 15px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 6px 14px; border-radius: 999px;
}
.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { color: var(--text-sub); font-size: 14.5px; }

/* 数据横幅 */
.stats-band {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 55%, var(--accent));
  color: #fff; border-radius: 24px; padding: 52px 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stats-band b { font-size: 36px; font-weight: 800; display: block; }
.stats-band span { font-size: 14px; opacity: .9; }

/* CTA 区块 */
.cta-block {
  text-align: center; background: var(--bg-dark); color: #fff;
  border-radius: 24px; padding: 72px 32px; position: relative; overflow: hidden;
}
.cta-block::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% -20%, rgba(255,59,48,.4), transparent);
}
.cta-block > * { position: relative; }
.cta-block h2 { font-size: 32px; font-weight: 800; margin-bottom: 14px; }
.cta-block p { color: rgba(255,255,255,.72); margin-bottom: 30px; }

/* ---------- 下载页 ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 860px; margin: 0 auto; }
.dl-card {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 40px 32px; text-align: center; transition: all .3s;
}
.dl-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.dl-card .os-icon { font-size: 46px; margin-bottom: 14px; }
.dl-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.dl-card .ver { color: var(--text-sub); font-size: 13px; margin-bottom: 22px; }
.dl-meta {
  display: flex; justify-content: center; gap: 28px; margin-top: 20px;
  color: var(--text-sub); font-size: 13px;
}
.qr-box {
  margin: 26px auto 0; width: 132px; height: 132px; border-radius: 14px;
  border: 1px dashed #e3cfcb; display: grid; place-items: center;
  color: var(--text-sub); font-size: 12px; text-align: center; padding: 8px;
  background: var(--bg-soft);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; margin-bottom: 14px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 22px; color: var(--primary); transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 20px; color: var(--text-sub); font-size: 15px; }

/* ---------- 内容页（关于/法务） ---------- */
.page-hero {
  background: var(--bg-soft); text-align: center; padding: 72px 24px;
}
.page-hero h1 { font-size: 38px; font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: var(--text-sub); max-width: 640px; margin: 0 auto; }
.breadcrumb {
  font-size: 13px; color: var(--text-sub); margin-bottom: 16px;
}
.breadcrumb a:hover { color: var(--primary); }

.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 24px; font-weight: 800; margin: 40px 0 14px; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 26px 0 10px; }
.prose p, .prose li { color: #4a3f41; font-size: 15.5px; margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.prose ul li { list-style: disc; }
.prose .updated { color: var(--text-sub); font-size: 13px; }

/* 价值观卡片 */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--bg-dark); color: rgba(255,255,255,.65);
  padding: 64px 0 32px; margin-top: 0; font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-grid a { display: block; padding: 5px 0; transition: color .2s; }
.footer-grid a:hover { color: var(--primary-light); }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { max-width: 300px; font-size: 13.5px; }
.footer-bottom {
  padding-top: 26px; display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; font-size: 13px;
}

/* 回到顶部 */
.reveal { opacity: 0; transform: translateY(26px); transition: all .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 60px 0 70px; }
  .hero .sub { margin: 0 auto 30px; }
  .hero-cta, .hero-stats { justify-content: center; }
  .phone-mock { display: none; }
  .feature-grid, .steps, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 26px; }
  .feature-grid, .steps, .dl-grid, .value-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 68px 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 14px 20px 20px;
    transform: translateY(-130%); transition: transform .3s ease;
  }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 12px 14px; }
  body.nav-locked { overflow: hidden; }
  .hero-stats { gap: 24px; }
}
