/* ==========================================================
   站点公共样式:主题变量 / 背景 / 导航栏 / 页脚 / 通用组件
   所有页面共用,页面私有样式写在各自 <style> 中
   ========================================================== */
:root {
  --bg: #06070d;
  --text: #eef0f8;
  --muted: #9aa0b8;
  --dim: #565d78;
  --c1: #7c6bff;
  --c2: #c94fd8;
  --c3: #3ec6ff;
  --glass: rgba(22, 25, 40, .55);
  --line: rgba(255, 255, 255, .09);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }

/* ---------- 背景:星空画布 + 极光光斑 ---------- */
#stars { position: fixed; inset: 0; z-index: 0; }
.aurora { position: fixed; z-index: 0; border-radius: 50%; filter: blur(110px); opacity: .22; pointer-events: none; }
.aurora.a { width: 55vw; height: 55vw; top: -22vw; left: -12vw; background: var(--c1); animation: drift1 26s ease-in-out infinite alternate; }
.aurora.b { width: 45vw; height: 45vw; bottom: -18vw; right: -10vw; background: var(--c2); animation: drift2 32s ease-in-out infinite alternate; }
.aurora.c { width: 30vw; height: 30vw; top: 30vh; right: 8vw; background: var(--c3); opacity: .13; animation: drift1 40s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(9vw, 7vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-8vw, -6vh) scale(1.1); } }

/* ---------- 顶部导航 ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: rgba(6, 7, 13, .72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1060px; margin: 0 auto; padding: 0 22px;
  height: 60px; display: flex; align-items: center; gap: 26px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 800; letter-spacing: 1px;
  text-decoration: none; flex-shrink: 0;
}
.brand .logo {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 4px 14px rgba(124, 107, 255, .45);
  font-size: 15px;
}
.brand em {
  font-style: normal;
  background: linear-gradient(110deg, #fff 30%, var(--c3) 60%, var(--c1));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 14px;
  padding: 7px 14px; border-radius: 10px; transition: all .2s; letter-spacing: 1px;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-links a.on { color: #fff; background: rgba(124, 107, 255, .16); font-weight: 600; }
.nav-cta {
  flex-shrink: 0; text-decoration: none; font-size: 13.5px; font-weight: 600; color: #fff;
  padding: 8px 20px; border-radius: 999px; letter-spacing: 2px;
  background: linear-gradient(110deg, var(--c1), var(--c2));
  box-shadow: 0 4px 16px rgba(124, 107, 255, .4);
  transition: transform .15s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(124, 107, 255, .6); }

/* ---------- 内容容器:留出导航高度,footer 贴底 ---------- */
.wrap { position: relative; z-index: 1; max-width: 1060px; margin: 0 auto; padding: 108px 22px 80px; width: 100%; flex: 1; }

/* 二级页统一页头 */
.page-head { text-align: center; margin-bottom: 42px; }
.page-head h1 {
  font-size: clamp(28px, 4.5vw, 40px); font-weight: 800; letter-spacing: 3px;
  background: linear-gradient(115deg, #fff 20%, var(--c3) 45%, var(--c1) 70%, var(--c2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-head p { color: var(--muted); margin-top: 12px; font-size: 14.5px; letter-spacing: 1px; }

/* ---------- 通用玻璃卡片(渐变描边) ---------- */
.card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: 20px; padding: 1px;
  background: linear-gradient(140deg, rgba(124, 107, 255, .55), rgba(255, 255, 255, .07) 35%, rgba(201, 79, 216, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* ---------- 通用胶囊选项 ---------- */
.chips { display: flex; gap: 9px; flex-wrap: wrap; }
.chip {
  padding: 8px 17px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  color: #c6cadb; font-size: 13px; transition: all .18s; font-family: inherit;
}
.chip:hover { border-color: rgba(124, 107, 255, .6); color: #fff; transform: translateY(-1px); }
.chip.on {
  background: linear-gradient(110deg, var(--c1), var(--c2));
  border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 4px 18px rgba(124, 107, 255, .45), 0 0 0 1px rgba(255, 255, 255, .12) inset;
}

/* ---------- 页脚(含备案信息) ---------- */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(4, 5, 10, .6);
  backdrop-filter: blur(10px);
  padding: 34px 22px 30px;
  text-align: center;
}
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 28px; margin-bottom: 18px; }
.foot-links a { color: var(--muted); font-size: 13px; text-decoration: none; letter-spacing: 1px; transition: color .2s; }
.foot-links a:hover { color: var(--text); }
.site-footer p { color: #3d4257; font-size: 12px; line-height: 2; letter-spacing: 1px; }
.site-footer p a { color: #4a5069; text-decoration: none; transition: color .2s; }
.site-footer p a:hover { color: var(--muted); }

/* 通用淡入动画 */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; } }

@media (max-width: 640px) {
  .nav-inner { gap: 10px; padding: 0 14px; }
  .nav-links a { padding: 7px 8px; font-size: 13px; letter-spacing: 0; }
  .nav-cta { display: none; }
  .card { padding: 18px; }
}
