/* ==========================================================================
   柳如烟官网统一样式 — 与 App 品牌一致（暗紫底 / 玻璃卡片 / 紫+荧光绿强调）
   纯静态、无外部依赖，适配 PC 与手机
   ========================================================================== */

:root {
  --bg: #0f0a1a;
  --bg-soft: #151022;
  --card: rgba(255, 255, 255, 0.045);
  --card-strong: #1a1428;
  --line: rgba(255, 255, 255, 0.09);
  --purple: #7c3aed;
  --purple-light: #a855f7;
  --lime: #a3e635;
  --text: #f5f3fa;
  --muted: #9ca3af;
  --radius: 16px;
  --grad: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

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

a { color: var(--purple-light); text-decoration: none; }
a:hover { color: var(--lime); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 10, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #fff;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45);
  flex-shrink: 0;
}
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.brand-sub { font-size: 11.5px; color: var(--muted); letter-spacing: 0.5px; }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: ""; display: block;
  width: 18px; height: 2px;
  background: var(--text);
  position: relative;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle-label span::before { position: absolute; top: -6px; }
.nav-toggle-label span::after { position: absolute; top: 6px; }

.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted);
  font-size: 14.5px;
  padding: 8px 13px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.site-nav a.active {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

/* ---------------- 首屏 Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(620px 380px at 12% -10%, rgba(124, 58, 237, 0.28), transparent 65%),
    radial-gradient(520px 360px at 88% 8%, rgba(163, 230, 53, 0.10), transparent 60%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--lime);
  border: 1px solid rgba(163, 230, 53, 0.35);
  background: rgba(163, 230, 53, 0.10);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

.hero h1 {
  font-size: 58px;
  line-height: 1.15;
  letter-spacing: 4px;
  margin-bottom: 6px;
  background: linear-gradient(120deg, #fff 20%, #c4b5fd 60%, #a3e635 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .slogan-en {
  color: var(--purple-light);
  font-size: 15px;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero .lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 34px;
}
.hero .lead strong { color: var(--text); }

.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 13px 30px;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 14px 34px rgba(124, 58, 237, 0.6); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }

.hero-qr {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13.5px;
}
.hero-qr img {
  width: 92px; height: 92px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 5px;
}

/* Hero 手机样机 */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 300px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, #241a3a, #171126);
  padding: 12px;
  box-shadow: var(--shadow), 0 0 80px rgba(124, 58, 237, 0.25);
}
.phone-screen { border-radius: 30px; overflow: hidden; }
.phone-screen img { width: 100%; }

/* ---------------- 通用区块 ---------------- */
.section { padding: 76px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head .kicker {
  color: var(--lime);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 32px; letter-spacing: 1px; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* 功能卡片 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(168, 85, 247, 0.45); background: rgba(255, 255, 255, 0.07); }
.card .icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.card h3 { font-size: 18.5px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* 三步流程 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
}
.step-no {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* 应用截图 */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shot {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card-strong);
  transition: transform 0.25s, border-color 0.25s;
}
.shot:hover { transform: translateY(-6px); border-color: rgba(163, 230, 53, 0.4); }
.shot img { width: 100%; }
.shot figcaption {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  padding: 12px 8px 14px;
}

/* 场景标签 */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 14px;
}
.chip.hl { border-color: rgba(163, 230, 53, 0.5); color: var(--lime); }

/* 信息表 */
.info-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { padding: 15px 22px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.info-table th { color: var(--muted); width: 160px; font-weight: 500; white-space: nowrap; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.faq details[open] { border-color: rgba(168, 85, 247, 0.4); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--purple-light);
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }

/* 法律文本页 */
.prose { max-width: 860px; margin: 0 auto; }
.prose h1 { font-size: 32px; margin-bottom: 8px; }
.prose .meta { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.prose h2 { font-size: 20px; margin: 34px 0 12px; color: #d8ccf5; }
.prose p, .prose li { color: #c7c3d4; font-size: 15px; margin-bottom: 10px; }
.prose ul { padding-left: 22px; }

/* 联系页卡片 */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.contact-card .label { color: var(--muted); font-size: 13.5px; letter-spacing: 2px; margin-bottom: 8px; }
.contact-card .value { font-size: 20px; font-weight: 600; word-break: break-all; }
.contact-card .note { color: var(--muted); font-size: 13.5px; margin-top: 8px; }

/* CTA 横幅 */
.cta-band {
  background:
    radial-gradient(500px 260px at 20% 0%, rgba(124, 58, 237, 0.35), transparent 65%),
    var(--card-strong);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 22px;
  padding: 52px 40px;
  text-align: center;
}
.cta-band h2 { font-size: 30px; margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 28px; }

/* ---------------- 页脚 ---------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #0b0813;
  padding: 52px 0 34px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-grid h4 { font-size: 15px; margin-bottom: 14px; color: #d8ccf5; }
.footer-grid p, .footer-grid a { color: var(--muted); font-size: 13.5px; display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--lime); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: #6b7280;
  font-size: 12.5px;
  text-align: center;
  line-height: 2;
}
.footer-bottom a { color: #6b7280; }
.footer-bottom a:hover { color: var(--lime); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .phone-wrap { order: -1; }
  .hero h1 { font-size: 44px; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle-label { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(15, 10, 26, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px;
    gap: 2px;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 15px; }

  .hero { padding: 56px 0 52px; }
  .hero h1 { font-size: 40px; letter-spacing: 2px; }
  .hero .lead { font-size: 16px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 26px; }
  .grid-3, .steps, .shots, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-band { padding: 40px 22px; }
  .cta-band h2 { font-size: 24px; }
  .info-table th, .info-table td { display: block; width: auto; padding: 6px 20px; }
  .info-table th { padding-top: 16px; }
  .info-table td { padding-bottom: 16px; }
  .info-table tr { display: block; border-bottom: 1px solid var(--line); }
  .info-table tr:last-child { border-bottom: none; }
}
