/* ============================================================
   极易运动会管理系统 · 官网样式
   暖色调、柔和、简洁。适配移动端。
   ============================================================ */

:root {
  --bg: #FFF9F1;            /* 暖米白背景 */
  --surface: #FFFFFF;
  --primary: #EE7B2E;       /* 柔和暖橙（主色） */
  --primary-dark: #D9691E;
  --primary-soft: #FDEEDC;  /* 主色浅底 */
  --pink-soft: #FBE3EE;     /* 柔和浅粉（试用标识） */
  --pink-deep: #B4536B;
  --dark: #29221B;          /* 深色区块底 */
  --text: #332E28;
  --muted: #7A7266;
  --line: #F0E3D1;
  --shadow: 0 10px 30px rgba(122, 74, 28, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- 通用区块 ---------- */
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: 0.5px; text-align: center; }
h2 em, .logo em, .logo-footer em { font-style: normal; color: var(--primary); }
.section-sub { text-align: center; color: var(--muted); margin: 0.6rem 0 2.5rem; }

.eyebrow {
  display: inline-block; font-size: 0.85rem; color: var(--primary-dark);
  background: var(--primary-soft); padding: 0.2rem 0.9rem; border-radius: 999px;
  margin-bottom: 0.9rem; font-weight: 600;
}

section { padding: 4.5rem 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; line-height: 1;
  padding: 0.85rem 1.9rem; border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(238, 123, 46, 0.35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--primary-dark); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-ghost-dark { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.6); }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.12); }
.btn-trial { background: var(--pink-soft); color: var(--pink-deep); }
.btn-trial:hover { transform: translateY(-2px); }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 249, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(122, 74, 28, 0.06); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { display: flex; align-items: center; gap: 0.5rem; font-size: calc(1.2rem * 2); font-weight: 700; color: var(--text); text-decoration: none; }
.logo svg { width: 26px; height: 26px; color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary-dark); }
.nav-login { color: var(--muted) !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { padding: 5rem 0 4.5rem; background:
  radial-gradient(1000px 500px at 85% -10%, var(--primary-soft) 0%, transparent 60%),
  radial-gradient(700px 400px at -10% 110%, #FDEEF7 0%, transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.hero-badge {
  display: inline-block; font-size: 0.85rem; font-weight: 600;
  color: var(--pink-deep); background: var(--pink-soft);
  padding: 0.25rem 1rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.25; margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 2rem; max-width: 34em; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-cta.center { justify-content: center; }
.hero-trust { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.8rem; color: var(--muted); font-size: 0.88rem; }
.hero-trust li { display: flex; align-items: center; gap: 0.4rem; }
.hero-trust li::before { content: "✓"; color: var(--primary); font-weight: 700; }
.hero-figure img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- 痛点 ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.pain-card {
  background: var(--surface); border-radius: var(--radius); padding: 1.6rem 1.4rem;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.pain-ico { font-size: 1.6rem; display: block; margin-bottom: 0.7rem; }
.pain-card h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.pain-card p { color: var(--muted); font-size: 0.9rem; }
.pain-footer { text-align: center; margin-top: 2.2rem; font-size: 1.05rem; font-weight: 600; color: var(--primary-dark); }

/* ---------- 功能特性 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feature-card {
  position: relative; background: var(--surface); border-radius: var(--radius);
  padding: 1.7rem 1.4rem; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-ico {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1rem;
  background: var(--primary-soft); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
}
.feature-ico svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--muted); font-size: 0.88rem; }
.feature-pro { border-color: #F6D8C2; background: linear-gradient(180deg, #FFFDF9 0%, #FDF4E8 100%); }
.feature-pro .feature-ico { background: var(--primary); color: #fff; }
.tag {
  display: inline-block; margin-top: 0.9rem; font-size: 0.75rem; font-weight: 600;
  color: var(--muted); background: #F4EDE2; padding: 0.12rem 0.7rem; border-radius: 999px;
}
.tag-pro { color: var(--primary-dark); background: var(--primary-soft); }

/* ---------- 大屏广播 ---------- */
.broadcast { background: var(--bg); color: var(--text); }
.broadcast-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.broadcast h2 { text-align: left; color: var(--text); }
.broadcast-copy > p { color: var(--muted); margin-bottom: 1.4rem; }
.check-list { list-style: none; display: grid; gap: 0.7rem; color: var(--text); }
.check-list li { display: flex; gap: 0.6rem; align-items: baseline; }
.check-list li::before { content: "✓"; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.broadcast-figure img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- 定价 ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.price-card {
  position: relative; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--line); padding: 2.2rem 1.8rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.price-card h3 { font-size: 1.15rem; margin-bottom: 0.8rem; }
.price { margin-bottom: 1.2rem; }
.price strong { font-size: 2.6rem; color: var(--primary-dark); letter-spacing: -1px; }
.price span { color: var(--muted); font-size: 0.95rem; margin-left: 0.3rem; }
.price-list { list-style: none; display: grid; gap: 0.55rem; margin-bottom: 1.8rem; flex: 1; }
.price-list li { display: flex; gap: 0.55rem; align-items: baseline; font-size: 0.93rem; color: var(--text); }
.price-list li::before { content: "✓"; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.price-card-hot { border: 2px solid var(--primary); }
.hot-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 0.78rem; font-weight: 600;
  padding: 0.25rem 1rem; border-radius: 999px; white-space: nowrap;
}
.price-card-trial { border: 1.5px dashed var(--pink-deep); background: #FFFAFC; }
.trial-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--pink-soft); color: var(--pink-deep); font-size: 0.75rem; font-weight: 700;
  padding: 0.25rem 0.9rem; border-radius: 999px; white-space: nowrap; border: 1px solid #F2CBDD;
}
.pricing-note { text-align: center; margin-top: 2rem; color: var(--muted); font-size: 0.9rem; }
.pricing-note a { color: var(--primary-dark); }

/* ---------- 加群 ---------- */
.group { background: linear-gradient(180deg, var(--bg) 0%, #FDEEDC 140%); }
.group-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }
.group-copy h2 { text-align: left; }
.group-copy > p { color: var(--muted); margin-bottom: 1.2rem; }
.group-qr { text-align: center; }
.qr-box {
  width: 220px; height: 220px; margin: 0 auto;
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: var(--shadow); padding: 12px;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-box.qr-empty::after {
  content: "群二维码位\A（部署时放置 assets/img/qun-qr.png）";
  white-space: pre; color: var(--muted); font-size: 0.82rem; text-align: center; line-height: 1.8;
}
.qr-tip { margin-top: 0.9rem; color: var(--text); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 780px; }
.faq-list { display: grid; gap: 0.8rem; }
.faq-list details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.1rem 1.5rem; box-shadow: var(--shadow);
}
.faq-list summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; font-weight: 400; flex-shrink: 0; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin-top: 0.8rem; color: var(--muted); font-size: 0.94rem; }

/* ---------- 页脚 CTA ---------- */
.cta-band { background: linear-gradient(120deg, #F08A3C 0%, #E5642F 100%); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band > .container > p { margin: 0.7rem 0 1.8rem; color: #FFEBD9; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--dark); color: #B7AC9C; padding: 3.5rem 0 2rem; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.logo-footer { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 0.6rem; }
.footer-desc { max-width: 26em; line-height: 1.8; }
.footer-col { display: grid; gap: 0.6rem; align-content: start; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.4rem; }
.footer-col a { color: #B7AC9C; text-decoration: none; }
.footer-col a:hover { color: #F5A96B; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 1.5rem; font-size: 0.82rem;
}

/* ---------- 弹层 ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.5rem; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(41, 34, 27, 0.55); }
.modal-body {
  position: relative; background: var(--surface); border-radius: 20px;
  padding: 2.2rem 2.5rem; width: min(360px, 100%); text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.modal-body h3 { margin-bottom: 1.2rem; }
.modal-close {
  position: absolute; top: 0.8rem; right: 0.9rem; background: none; border: none;
  font-size: 1.5rem; color: var(--muted); cursor: pointer; line-height: 1;
}
.modal-body .qr-box { width: 200px; height: 200px; }
.modal-body .qr-tip { margin-top: 1rem; font-weight: 600; line-height: 1.8; }
.qr-note { margin-top: 0.8rem; color: var(--muted); font-size: 0.8rem; }

/* ---------- 动画 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-figure, .feature-card, .price-card { animation: rise 0.7s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .pain-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .price-card-hot { order: -1; }
  .hero-grid, .broadcast-grid, .group-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .broadcast h2 { text-align: center; }
  .broadcast-copy > p { text-align: center; }
  .check-list { max-width: 30em; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section { padding: 3.2rem 0; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 1rem; padding: 1.4rem 1.5rem 1.8rem;
    box-shadow: 0 16px 30px rgba(122, 74, 28, 0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links:not(.open) { display: none; }
  .pain-grid, .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- 协议页（法律文档） ---------- */
.legal { padding: 3.5rem 0 4.5rem; }
.legal-wrap { max-width: 800px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.6rem, 4vw, 3.2rem); }
.legal h1 { font-size: 1.8rem; margin-bottom: 0.3rem; }
.legal h2 { text-align: left; font-size: 1.2rem; margin: 2.2rem 0 0.8rem; padding-left: 0.7rem; border-left: 4px solid var(--primary); }
.legal h3 { font-size: 1rem; margin: 1.1rem 0 0.4rem; color: var(--primary-dark); }
.legal .legal-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.2rem; }
.legal .legal-lead { color: var(--muted); background: var(--primary-soft); border-radius: 12px; padding: 1rem 1.2rem; font-size: 0.95rem; }
.legal p { margin-bottom: 0.6rem; }
.legal a { color: var(--primary-dark); }
.legal-list { list-style: none; display: grid; gap: 0.5rem; margin: 0.5rem 0 0.9rem; }
.legal-list li { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.95rem; }
.legal-list li::before { content: "•"; color: var(--primary); flex-shrink: 0; }

/* ---------- 图片加载失败时的装饰性降级 ---------- */
.hero-figure.img-fallback, .broadcast-figure.img-fallback {
  aspect-ratio: 16 / 9; border-radius: var(--radius);
  background:
    radial-gradient(300px 160px at 20% 20%, rgba(255, 255, 255, 0.28) 0%, transparent 60%),
    linear-gradient(135deg, #F6A24B 0%, #E5642F 55%, #C74E2A 100%);
  box-shadow: var(--shadow);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.broadcast-figure.img-fallback {
  background:
    radial-gradient(300px 160px at 80% 20%, rgba(255, 255, 255, 0.28) 0%, transparent 60%),
    linear-gradient(135deg, #F6A24B 0%, #E5642F 55%, #C74E2A 100%);
  box-shadow: var(--shadow);
}
.hero-figure.img-fallback::after, .broadcast-figure.img-fallback::after {
  content: "🏃 \A 运动会现场"; white-space: pre;
  color: rgba(255, 255, 255, 0.92); font-size: 1.15rem; font-weight: 700;
  text-align: center; line-height: 2.4; letter-spacing: 2px;
}

/* ---------- 打印 ---------- */
@media print {
  .site-header, .cta-band, .modal, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
