/* WenServer — clean hero, floats, scroll fade */
:root {
  --bg: #0d1218;
  --bg2: #151d27;
  --paper: #f7f2e8;
  --ink: #1b1b1b;
  --muted: #626c78;
  --gold: #e0b13a;
  --gold-hi: #f0c85a;
  --gold-deep: #b8862a;
  --qq: #2bb0ee;
  --qq-deep: #0d8fc2;
  --line: #2a3542;
  --white: #edf2f7;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
code {
  font-family: ui-monospace, Consolas, monospace;
  color: var(--gold-hi);
  background: rgba(224,177,58,.12);
  padding: 0 .28rem;
  border-radius: 3px;
}
.gold { color: var(--gold-hi); }

/* top bar */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .65rem 1.25rem;
  background: rgba(13,18,24,.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; letter-spacing: .03em;
}
.pack {
  width: 30px; height: 30px; border-radius: 6px;
  border: 1px solid var(--gold-deep);
  box-shadow: 0 0 0 2px rgba(224,177,58,.22);
  object-fit: cover;
}
nav { display: flex; flex-wrap: wrap; gap: .2rem 1rem; font-size: .92rem; font-weight: 600; }
nav a { opacity: .86; padding: .15rem 0; }
nav a:hover { color: var(--gold-hi); opacity: 1; }
.nav-qq {
  padding: .18rem .6rem !important;
  border: 1px solid var(--qq);
  border-radius: 999px;
  color: var(--qq) !important;
  background: rgba(43,176,238,.12);
}

/* hero */
.hero {
  position: relative;
  padding: 4.5rem 1.25rem 3.25rem;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(224,177,58,.16), transparent 60%),
    radial-gradient(700px 360px at 90% 80%, rgba(43,176,238,.1), transparent 55%);
}
.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  color: var(--gold);
  font-size: .8rem;
  letter-spacing: .14em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.hero h1 {
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.lede {
  color: #c5ced6;
  font-size: 1.02rem;
  margin-bottom: 1.15rem;
}
.chips {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .45rem; margin-bottom: 1.35rem;
}
.chip {
  font-size: .78rem; font-weight: 600;
  padding: .28rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: #d5dde5;
}
.cta-row { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }

/* floating cubes */
.floaters { position: absolute; inset: 0; pointer-events: none; }
.cube {
  position: absolute;
  width: 36px; height: 36px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset -3px -3px 0 rgba(0,0,0,.28), 0 6px 14px rgba(0,0,0,.25);
  animation: floaty 5s ease-in-out infinite;
}
.c1 { top: 18%; left: 8%;  background: linear-gradient(135deg, var(--gold), var(--gold-deep)); animation-delay: 0s; }
.c2 { top: 30%; right: 12%; background: linear-gradient(135deg, #3d8b5a, #275c3a); width: 28px; height: 28px; animation-delay: .6s; }
.c3 { bottom: 18%; left: 18%; background: linear-gradient(135deg, var(--qq), var(--qq-deep)); width: 24px; height: 24px; animation-delay: 1.1s; }
.c4 { bottom: 24%; right: 20%; background: linear-gradient(135deg, #c95b5b, #8a3333); width: 30px; height: 30px; animation-delay: 1.6s; }
.c5 { top: 55%; left: 6%; background: linear-gradient(135deg, #8a6bc9, #5a3f8c); width: 18px; height: 18px; animation-delay: 2s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(4deg); }
}

/* buttons */
.btn-qq {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--qq), var(--qq-deep));
  color: #fff; font-weight: 800;
  padding: .72rem 1.3rem; border-radius: 10px;
  box-shadow: 0 3px 0 #076f96;
  transition: transform .15s ease, filter .15s ease;
}
.btn-qq:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-qq.lg { padding: .85rem 1.5rem; font-size: 1.05rem; }
.btn-wiki {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: var(--ink); font-weight: 800;
  padding: .85rem 1.45rem; border-radius: 10px;
  box-shadow: 0 3px 0 var(--gold-deep);
  transition: transform .15s ease, filter .15s ease;
}
.btn-wiki:hover { transform: translateY(-2px); filter: brightness(1.06); }
.shine {
  position: relative; overflow: hidden;
}
.shine::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine {
  0%, 55% { left: -60%; }
  100% { left: 120%; }
}

/* wiki band */
.wiki-band {
  padding: 0 1.25rem 0.5rem;
}
.wiki-inner {
  max-width: 860px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1.25rem 1.4rem;
  border-radius: 14px;
  border: 1px solid var(--gold);
  background: linear-gradient(120deg, rgba(224,177,58,.16), rgba(21,29,39,.95));
  box-shadow: 0 0 0 3px rgba(224,177,58,.1);
}
.kicker {
  color: var(--gold-hi); font-size: .72rem; letter-spacing: .14em;
  font-weight: 800; text-transform: uppercase;
}
.wiki-text h2 {
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.35rem; margin: .15rem 0 .25rem;
}
.wiki-text p { color: #c9d2da; font-size: .9rem; margin: 0; max-width: 36rem; }

/* sections */
.section { max-width: 860px; margin: 0 auto; padding: 2.4rem 1.25rem; }
.sec-head { text-align: center; margin-bottom: 1.25rem; }
.sec-head h2 {
  font-family: Georgia, "Songti SC", serif; font-size: 1.55rem;
}
.sec-head p { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .85rem;
}
.card {
  background: var(--paper); color: var(--ink);
  border-radius: 12px; padding: 1rem 1.05rem;
  box-shadow: 0 3px 12px rgba(0,0,0,.18);
  transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}
.card h3 {
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.05rem; margin-bottom: .35rem;
}
.card p { font-size: .88rem; color: var(--muted); margin: 0; }

.steps {
  list-style: none; counter-reset: s;
  display: grid; gap: .6rem; max-width: 640px; margin: 0 auto;
}
.steps li {
  counter-increment: s;
  display: grid; grid-template-columns: 1.7rem 1fr; gap: .4rem .7rem;
  text-align: left;
  padding: .8rem .95rem;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.steps li::before {
  content: counter(s);
  width: 1.5rem; height: 1.5rem; border-radius: 8px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep));
  color: var(--ink); font-weight: 800; font-size: .78rem;
  display: flex; align-items: center; justify-content: center;
}
.steps strong { display: block; }
.steps span { grid-column: 2; color: #aeb9c4; font-size: .88rem; }
.steps a { color: var(--gold-hi); font-weight: 600; }
.join-qq { margin-top: 1.25rem; text-align: center; }

footer {
  border-top: 1px solid var(--line);
  padding: 1.15rem 1.25rem;
  font-size: .85rem;
}
.foot-inner {
  max-width: 860px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem;
  align-items: center; justify-content: space-between;
}
.foot-links a { color: var(--gold-hi); }
.foot-links a:hover { text-decoration: underline; }

/* animations */
.fade, .rise {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade.d1 { transition-delay: .08s; }
.fade.d2 { transition-delay: .16s; }
.fade.d3 { transition-delay: .24s; }
.fade.d4 { transition-delay: .32s; }
.fade.in, .rise.in {
  opacity: 1;
  transform: none;
}
.cards .rise:nth-child(1) { transition-delay: .05s; }
.cards .rise:nth-child(2) { transition-delay: .1s; }
.cards .rise:nth-child(3) { transition-delay: .15s; }
.cards .rise:nth-child(4) { transition-delay: .2s; }
.cards .rise:nth-child(5) { transition-delay: .25s; }
.cards .rise:nth-child(6) { transition-delay: .3s; }
.steps .rise:nth-child(1) { transition-delay: .04s; }
.steps .rise:nth-child(2) { transition-delay: .08s; }
.steps .rise:nth-child(3) { transition-delay: .12s; }
.steps .rise:nth-child(4) { transition-delay: .16s; }
.steps .rise:nth-child(5) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  .fade, .rise { opacity: 1; transform: none; transition: none; }
  .cube, .shine::after { animation: none; }
}

@media (max-width: 560px) {
  .hero { padding: 3rem 1rem 2.2rem; }
  .top { padding: .55rem .9rem; }
  nav { gap: .2rem .7rem; font-size: .88rem; }
}
