:root {
  --bg: #08080a;
  --fg: #ececf1;
  --muted: #86868f;
  --line: #1c1c21;
  --card: #0e0e11;
  --card-hover: #141418;
  --accent: #8b7bff;
  --accent-dim: rgba(139, 123, 255, .12);
  --radius: 14px;
  --pad: 24px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 顶部氛围光 */
.glow {
  position: fixed;
  inset: -20% 0 auto 0;
  height: 70vh;
  background:
    radial-gradient(680px 320px at 22% 0%, rgba(139, 123, 255, .10), transparent 68%),
    radial-gradient(560px 280px at 82% 6%, rgba(61, 220, 132, .05), transparent 66%);
  pointer-events: none;
  z-index: 0;
}

/* 跟随光标的光晕 */
.aurora {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .9s ease;
}

.aurora.on { opacity: 1; }

.aurora .blob {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  will-change: transform;
  transform: translate3d(-1000px, -1000px, 0);
}

.aurora .a {
  width: 44rem;
  height: 44rem;
  background: radial-gradient(circle at 50% 50%,
    rgba(139, 123, 255, .30), rgba(139, 123, 255, .09) 42%, transparent 70%);
}

.aurora .b {
  width: 32rem;
  height: 32rem;
  background: radial-gradient(circle at 50% 50%,
    rgba(63, 182, 255, .24), rgba(63, 182, 255, .07) 45%, transparent 72%);
}

.aurora .c {
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle at 50% 50%,
    rgba(61, 220, 132, .18), rgba(61, 220, 132, .04) 46%, transparent 70%);
}

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: linear-gradient(to bottom, rgba(8, 8, 10, .92), rgba(8, 8, 10, .66));
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px var(--pad);
}

.brand {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.02em;
  color: var(--fg);
  text-decoration: none;
}

.topbar nav {
  display: flex;
  gap: 4px;
}

.topbar nav a {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color .16s ease, background .16s ease;
}

.topbar nav a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, .05);
}

main {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--pad) 64px;
}

/* 首屏 */
.hero {
  padding: 92px 0 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .02);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61, 220, 132, .14);
}

.mark {
  margin: 0;
  font-size: clamp(64px, 15vw, 112px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .92;
  background: linear-gradient(175deg, #ffffff 24%, #8f8fa4 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform .5s cubic-bezier(.22, .7, .25, 1);
  will-change: transform;
}

.tagline {
  margin: 26px 0 0;
  font-size: 19px;
  color: #c9c9d3;
  letter-spacing: .01em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: #b4b4bf;
  background: rgba(255, 255, 255, .015);
}

/* 区块 */
.block {
  padding: 40px 0 44px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 72px;
}

h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .02em;
  color: #4e4e58;
}

.lead {
  margin: 0;
  max-width: 60ch;
  font-size: 16.5px;
  color: #d5d5de;
}

/* 项目卡片 */
.cards {
  display: grid;
  gap: 12px;
}

.card {
  position: relative;
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.card:hover {
  background: var(--card-hover);
  border-color: #30303a;
  transform: translateY(-2px);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--fg);
}

.card-meta {
  font-size: 12px;
  color: #5f5f6a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.card-desc {
  margin: 6px 0 0;
  padding-right: 26px;
  max-width: 56ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.card-arrow {
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-size: 15px;
  color: #3f3f49;
  transition: color .2s ease, transform .2s ease;
}

.card:hover .card-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* 服务器 */
.gate-hint {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
}

.gate {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.gate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border: 1px dashed #2b2b33;
  border-radius: 10px;
  background: transparent;
  color: #d3d3dc;
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.gate-btn:hover {
  border-color: #3d3d49;
  background: rgba(255, 255, 255, .03);
  color: #fff;
}

.lock {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.gate-form { display: flex; gap: 8px; }

.gate-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #2b2b33;
  border-radius: 10px;
  background: #08080a;
  color: var(--fg);
  font: inherit;
  letter-spacing: .18em;
}

.gate-form input::placeholder { letter-spacing: 0; color: #5a5a64; }

.gate-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.gate-submit {
  padding: 0 20px;
  border: 1px solid #2b2b33;
  border-radius: 10px;
  background: #17171c;
  color: var(--fg);
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
  transition: background .18s ease;
}

.gate-submit:hover { background: #202028; }

.gate-err {
  margin: 10px 0 0;
  font-size: 13px;
  color: #ff7070;
}

.gate-locked {
  margin: 0;
  padding: 10px 2px;
  font-size: 14px;
  color: var(--muted);
}

.gate-locked span { color: #65656f; }

.gate-out { display: grid; gap: 10px; }

.addr-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.addr-row code {
  flex: 1;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #2b2b33;
  border-radius: 10px;
  background: #08080a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14.5px;
  color: #eaeaf0;
  overflow-x: auto;
  white-space: nowrap;
}

.mini {
  padding: 10px 13px;
  border: 1px solid #2b2b33;
  border-radius: 10px;
  background: #17171c;
  color: #c5c5cf;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.mini:hover { background: #202028; color: #fff; }

.gate-link {
  justify-self: start;
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
}

.gate-link:hover { text-decoration: underline; }

.shake { animation: shake .34s ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* 下载 */
.dl-list {
  display: grid;
  gap: 10px;
}

.dl {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.dl:hover {
  background: var(--card-hover);
  border-color: #30303a;
  transform: translateY(-1px);
}

.dl-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
}

.dl-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dl-main {
  display: grid;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.dl-name {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-meta {
  font-size: 12.5px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.dl-btn {
  flex: none;
  padding: 8px 14px;
  border: 1px solid #2b2b33;
  border-radius: 9px;
  background: #17171c;
  font-size: 13px;
  color: #d5d5de;
  transition: background .18s ease, color .18s ease;
}

.dl:hover .dl-btn { background: #202028; color: #fff; }

/* 联系 */
.links {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 0;
  list-style: none;
}

.links li { border-bottom: 1px solid var(--line); }

.links a,
.linkbtn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 2px;
  border: 0;
  background: none;
  color: #d7d7e0;
  font: inherit;
  font-size: 15px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color .16s ease, padding-left .16s ease;
}

.links a:hover,
.linkbtn:hover {
  color: #fff;
  padding-left: 6px;
}

.ico {
  display: inline-flex;
  width: 17px;
  height: 17px;
  color: #6e6e7a;
  transition: color .16s ease;
}

.ico svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.links a:hover .ico,
.linkbtn:hover .ico { color: var(--accent); }

.arrow {
  margin-left: auto;
  padding-left: 12px;
  font-size: 13px;
  color: #4e4e58;
}

/* 页脚 */
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: #5c5c66;
}

footer a { color: #5c5c66; text-decoration: none; }
footer a:hover { color: var(--fg); }
.sep { opacity: .45; }
.muted { color: #43434c; }

/* 响应式 */
@media (max-width: 560px) {
  :root { --pad: 18px; }
  .hero { padding: 56px 0 44px; }
  .topbar nav { gap: 0; }
  .topbar nav a { padding: 6px 8px; font-size: 12.5px; }
  .tagline { font-size: 17px; }
  .block { padding: 32px 0 36px; }
  footer { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .card:hover { transform: none; }
}
