:root{
  --bg:#0b1020;
  --card: rgba(255,255,255,.08);
  --card2: rgba(255,255,255,.06);
  --text:#eaf0ff;
  --muted: rgba(234,240,255,.72);
  --border: rgba(255,255,255,.12);
  --shadow: 0 12px 50px rgba(0,0,0,.35);
  --primary: #7c5cff;
  --primary2:#2ee9a6;
  --radius: 18px;
  --max: 1120px;
}

html[data-theme="light"]{
  --bg:#f7f8fc;
  --card: rgba(0,0,0,.04);
  --card2: rgba(0,0,0,.03);
  --text:#0a0f1f;
  --muted: rgba(10,15,31,.70);
  --border: rgba(0,0,0,.10);
  --shadow: 0 12px 40px rgba(10,15,31,.10);
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(124,92,255,.35), transparent 60%),
    radial-gradient(800px 400px at 80% 20%, rgba(46,233,166,.22), transparent 55%),
    radial-gradient(700px 350px at 55% 90%, rgba(124,92,255,.18), transparent 55%),
    var(--bg);
  min-height:100vh;
}

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.92; }
img{ max-width:100%; display:block; }

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,0));
  border-bottom: 1px solid var(--border);
}
html[data-theme="light"] .topbar{
  background: linear-gradient(to bottom, rgba(255,255,255,.70), rgba(255,255,255,.20));
}

.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
}

.brand{ display:flex; align-items:center; gap:10px; }
.brand__logo{ width:28px; height:28px; }
.brand__name{ font-weight:700; letter-spacing:.2px; }

.nav{ display:flex; align-items:center; gap:14px; }
.nav__link{
  padding:10px 12px;
  border-radius: 12px;
  color: var(--muted);
}
.nav__link:hover{ background: var(--card); color: var(--text); }
.nav__link--cta{
  background: linear-gradient(135deg, rgba(124,92,255,.85), rgba(46,233,166,.75));
  color: white;
  box-shadow: var(--shadow);
}

.actions{ display:flex; gap:10px; align-items:center; }
.nav__burger{ display:none; }

.btn{
  border:1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 14px;
  padding:10px 14px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.btn--primary{
  border:none;
  background: linear-gradient(135deg, #7c5cff, #2ee9a6);
  color:white;
  box-shadow: var(--shadow);
}
.btn--secondary{
  background: transparent;
  border: 1px solid var(--border);
}
.btn--ghost{
  background: transparent;
  border: 1px solid var(--border);
}

main{ width:100%; }
.section, .hero, .page, .doc{
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px;
}

.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items:center;
  padding-top: 34px;
}
.badge{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background: var(--card2);
  color: var(--muted);
  font-weight:600;
}
.hero__title{ font-size: clamp(28px, 4vw, 48px); margin: 14px 0 10px; }
.hero__desc{ color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0 0 16px; }
.hero__cta{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 16px; }
.hero__meta{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.metaCard{
  padding:12px 14px;
  border-radius: var(--radius);
  border:1px solid var(--border);
  background: var(--card2);
}
.metaCard__k{ color:var(--muted); font-size: 12px; }
.metaCard__v{ font-weight:700; margin-top: 4px; }

.hero__visual{ display:flex; justify-content:flex-end; }
.glassCard{
  width: min(380px, 100%);
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.glassCard__top{
  display:flex; align-items:center; gap:8px;
  padding: 12px 14px;
  border-bottom:1px solid var(--border);
}
.dot{ width:10px; height:10px; border-radius:999px; display:inline-block; opacity:.85; }
.dot--r{ background:#ff5c5c; }
.dot--y{ background:#ffcc4a; }
.dot--g{ background:#3bd671; }
.glassCard__title{ margin-left:auto; color:var(--muted); font-weight:700; font-size:12px; letter-spacing:.4px; }
.glassCard__body{ padding: 16px 14px 18px; }

.skeleton{
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.18), rgba(255,255,255,.06));
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.skeleton.short{ width: 70%; }
.divider{ height:1px; background: var(--border); margin: 16px 0; }
.pillRow{ display:flex; gap:8px; flex-wrap:wrap; }
.pill{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card2);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

@keyframes shimmer{
  0%{ background-position: 0% 0; }
  100%{ background-position: 200% 0; }
}

.section__head h2{ margin:0 0 8px; font-size: 24px; }
.section__head p{ margin:0; color: var(--muted); line-height:1.7; }

.section--alt{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  border-radius: 26px;
}

.grid2{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid4{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.card{
  border:1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.card--soft{ background: var(--card2); }
.card h3{ margin: 0 0 10px; }
.card p{ margin:0 0 10px; color: var(--muted); line-height:1.7; }
.card__actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px; }

.list{ margin: 10px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.75; }
.hint{ margin-top: 12px; color: var(--muted); font-size: 12px; }

.mini{
  border:1px solid var(--border);
  background: var(--card2);
  border-radius: var(--radius);
  padding: 14px;
}
.mini__icon{ font-size: 22px; }
.mini__title{ font-weight: 800; margin-top: 10px; }
.mini__desc{ color: var(--muted); margin-top: 6px; line-height: 1.7; }

.faq__item{
  border:1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.faq__item summary{
  cursor:pointer;
  font-weight: 800;
}
.faq__content{ color: var(--muted); margin-top: 10px; line-height: 1.75; }

.form{ display:flex; flex-direction:column; gap: 12px; }
.field{ display:flex; flex-direction:column; gap: 6px; }
.field span{ font-weight: 700; }
input, textarea, select{
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 11px 12px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline:none;
}
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select{
  background: rgba(255,255,255,.85);
}

.error{ color: #ff6b6b; min-height: 16px; font-size: 12px; }

.footer{
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 18px 26px;
}
.footer__grid{
  display:grid; grid-template-columns: 1.4fr .8fr .8fr;
  gap: 16px;
  border-top:1px solid var(--border);
  padding-top: 18px;
}
.footer__brand{ display:flex; gap:10px; align-items:center; }
.footer__logo{ width:28px; height:28px; }
.footer__name{ font-weight: 900; }
.footer__tag{ color: var(--muted); font-size: 12px; margin-top: 2px; }
.footer__desc{ color: var(--muted); line-height: 1.7; margin-top: 10px; }
.footer__title{ font-weight: 900; margin-bottom: 10px; }
.footer__grid a{ display:block; color: var(--muted); padding: 6px 0; }
.footer__grid a:hover{ color: var(--text); }
.footer__muted{ color: var(--muted); }
.footer__bottom{
  display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap;
  border-top:1px solid var(--border);
  margin-top: 16px;
  padding-top: 14px;
  color: var(--muted);
}
.footer--simple .footer__bottom{ border-top:1px solid var(--border); }

.page__head{
  padding-top: 28px;
  padding-bottom: 10px;
}
.page__head h1{ margin:0 0 8px; font-size: 34px; }
.page__head p{ margin:0; color: var(--muted); line-height:1.7; }
.page__actions{ display:flex; gap:10px; margin-top: 14px; flex-wrap:wrap; }

.doc{
  max-width: 880px;
  padding-top: 28px;
}
.doc h1{ margin:0 0 12px; font-size: 34px; }
.doc h2{ margin: 22px 0 10px; }
.doc p{ color: var(--muted); line-height: 1.9; }
.doc__footer{ margin-top: 18px; display:flex; gap:10px; flex-wrap:wrap; }

.drawer{ display:none; }
.toast{
  position: fixed;
  left: 18px; right: 18px; bottom: 16px;
  padding: 12px 12px;
  border-radius: 16px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(14px);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  box-shadow: var(--shadow);
  transform: translateY(140%);
  transition: transform .35s ease;
}
html[data-theme="light"] .toast{ background: rgba(255,255,255,.82); }
.toast.show{ transform: translateY(0); }
.toast__text{ color: var(--muted); line-height: 1.6; }
.toast__text a{ text-decoration: underline; }

@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .hero__visual{ justify-content:flex-start; }
  .hero__meta{ grid-template-columns: 1fr; }
  .grid4{ grid-template-columns: repeat(2, 1fr); }
  .grid3{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .footer__grid{ grid-template-columns: 1fr; }
  .nav{ display:none; }
  .nav__burger{ display:inline-flex; }
  .drawer{ display:block; }
}
