:root {
  --text: #f4f6fb;
  --muted: #9aa3b8;
  --line: rgba(255,255,255,.08);
  --card: rgba(255,255,255,.04);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: #05070f;
  color: var(--text);
}
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 420px at 12% 18%, rgba(46,92,255,.28), transparent 55%),
    radial-gradient(640px 420px at 88% 12%, rgba(255,90,40,.18), transparent 50%),
    linear-gradient(180deg, #070b16 0%, #05070f 100%);
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(90,140,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,140,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 20%, #000 10%, transparent 70%);
  animation: gridShift 18s linear infinite;
}
@keyframes gridShift {
  from { background-position: 0 0; }
  to { background-position: 48px 48px; }
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
  background: rgba(7,9,20,.75);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 16px rgba(90,120,255,.45);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #d7dce8;
  font-size: 14px;
}
.drop { position: relative; }
.drop button {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
}
.drop-menu {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  min-width: 160px;
  background: #141826;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
}
.drop-menu a { display: block; padding: 8px 10px; border-radius: 8px; }
.drop:hover .drop-menu { display: block; }

.fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.nav, .hero, .section, .foot { position: relative; z-index: 1; }
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 24px 20px;
  position: relative;
  overflow: hidden;
}
.hero-logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 10px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 0 28px rgba(80,130,255,.55),
    0 10px 30px rgba(0,0,0,.35);
  animation: logoFloat 4s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}
.scan {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 2px;
  top: 18%;
  background: linear-gradient(90deg, transparent, rgba(120,180,255,.75), transparent);
  box-shadow: 0 0 16px rgba(90,150,255,.8);
  animation: scanMove 3.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scanMove {
  0% { top: 12%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 78%; opacity: 0; }
}
.hero-glow {
  position: absolute;
  inset: 8% 10% auto;
  height: 280px;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 50%, rgba(70,120,255,.35), transparent 42%),
    radial-gradient(circle at 75% 50%, rgba(255,90,50,.22), transparent 46%);
  filter: blur(8px);
  animation: pulseGlow 5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.orbit {
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(110,160,255,.18);
  border-radius: 50%;
  pointer-events: none;
  animation: spin 22s linear infinite;
}
.orbit::before, .orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255,140,80,.25);
}
.orbit::before { inset: 28px; animation: spin 14s linear infinite reverse; }
.orbit::after {
  width: 8px;
  height: 8px;
  background: #7db0ff;
  box-shadow: 0 0 12px #7db0ff;
  top: -4px;
  left: 50%;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-brand {
  position: relative;
  font-family: Orbitron, var(--font);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: 3px;
  background: linear-gradient(90deg, #6aa4ff 0%, #8b6bff 40%, #ff8a3d 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
  animation: flow 6s linear infinite;
  text-shadow: 0 0 24px rgba(90,140,255,.15);
}
@keyframes flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.hero h1 {
  position: relative;
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 900;
  margin: 6px 0 12px;
  letter-spacing: 1px;
}
.hero-sub { color: #c9d0e1; font-size: 16px; margin-bottom: 22px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn-main, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
}
.btn-main {
  color: #fff;
  background: linear-gradient(90deg, #2f6bff, #ff5a3d);
  box-shadow: 0 0 18px rgba(70,120,255,.35);
}
.btn-ghost {
  border: 1px solid rgba(130,170,255,.35);
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 12px rgba(80,130,255,.12);
}
.section { max-width: 1080px; margin: 0 auto; padding: 36px 24px 20px; }

.section { max-width: 1080px; margin: 0 auto; padding: 72px 24px 20px; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
}
.eyebrow { color: #8ea2ff; letter-spacing: 2px; font-size: 12px; margin-bottom: 8px; }
.section h2 { font-size: 32px; margin-bottom: 8px; }
.desc { color: var(--muted); }
.search {
  background: #121722;
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  min-width: 220px;
  outline: none;
}
.list { display: flex; flex-direction: column; gap: 12px; }
.item {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) 120px 120px auto;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}
.item h3 { font-size: 18px; }
.item p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.meta { color: #d7def0; font-weight: 700; }
.meta small { display: block; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.item-actions { display: flex; gap: 8px; justify-content: flex-end; }
.item-actions a, .item-actions button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}
.dl { color: #fff; background: linear-gradient(90deg, #2f6bff, #ff5a3d); }
.docbtn { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.2) !important; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.help-grid article, .about {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.help-grid p, .about p { color: var(--muted); line-height: 1.7; }
.about { margin-top: 16px; }
.foot { text-align: center; color: var(--muted); padding: 48px 16px 56px; font-size: 13px; }
.empty { color: var(--muted); padding: 30px; text-align: center; }

.doc-layer { position: fixed; inset: 0; display: none; z-index: 50; }
.doc-layer.show { display: block; }
.doc-backdrop { position: absolute; inset: 0; background: rgba(5,7,14,.72); }
.doc-frame {
  position: relative;
  width: min(920px, calc(100% - 24px));
  height: min(92vh, 980px);
  margin: 4vh auto 0;
  background: #d9d1c3;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.doc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #2b2a28;
}
.doc-tools { display: flex; gap: 8px; }
.btn-mini {
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: #fff;
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
}
.btn-mini.primary { background: linear-gradient(90deg, #2f6bff, #ff5a3d); border: 0; }
.doc-scroll { overflow: auto; padding: 28px 16px 40px; }
.doc-paper {
  width: min(740px, 100%);
  margin: 0 auto;
  background: #fff;
  color: #222;
  min-height: 860px;
  padding: 56px 64px 72px;
  line-height: 1.85;
}
.doc-paper h1 { font-size: 26px; margin-bottom: 8px; }
.doc-paper .doc-meta { color: #666; font-size: 13px; border-bottom: 1px solid #eee; padding-bottom: 14px; }
.doc-paper h2 { font-size: 17px; margin: 22px 0 8px; }
.doc-paper ol, .doc-paper ul { padding-left: 22px; }

@media (max-width: 860px) {
  .nav { padding: 0 16px; }
  .nav-links { display: none; }
  .item { grid-template-columns: 1fr 1fr; }
  .item-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .help-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: stretch; }
  .doc-paper { padding: 28px 20px; min-height: 0; }
}
@media print {
  body > *:not(.doc-layer) { display: none !important; }
  .doc-layer, .doc-frame, .doc-scroll { position: static !important; display: block !important; height: auto !important; background: #fff !important; }
  .doc-toolbar, .doc-backdrop { display: none !important; }
}
