:root {
  --bg: #05060f;
  --bg-2: #0a0d1c;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.10);
  --text: #e8ecf8;
  --text-dim: #9aa3bd;
  --cyan: #64d0ff;
  --purple: #b89cff;
  --pink: #ff88cc;
  --radius: 18px;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- 3D 地球背景：真实地球 + 行星环绕，无连线框球 ---------- */
.earth-scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#earthCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.earth-fallback {
  display: none;
  position: absolute; left: 50%; top: 50%;
  width: min(46vw, 420px); aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #7fd4ff 0%, #2f74da 38%, #16408f 70%, #061d4d 100%);
  box-shadow: 0 0 90px rgba(58, 130, 246, .45), inset -20px -24px 52px rgba(0, 0, 0, .55), inset 16px 18px 44px rgba(120, 200, 255, .32);
}
.earth-fallback::after {
  content: ""; position: absolute; inset: -8%; border-radius: 50%;
  border: 1px solid rgba(100, 208, 255, .18); box-shadow: 0 0 40px rgba(100, 208, 255, .25);
}
.bg-fallback {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(60% 80% at 20% 10%, rgba(100, 208, 255, .14), transparent 60%),
              radial-gradient(50% 70% at 85% 90%, rgba(184, 156, 255, .14), transparent 60%), var(--bg);
}
/* 文字可读遮罩 */
.earth-veil {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 6, 15, .55) 0%, rgba(5, 6, 15, .30) 42%, rgba(5, 6, 15, .80) 100%);
}

.content { position: relative; z-index: 1; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- 主站同款：流光描边 / 冰扫 ---------- */
@keyframes flowBorder { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes iceSweep { 0% { transform: translateX(-100%); } 50% { transform: translateX(50%); } 100% { transform: translateX(-100%); } }

.kd-flow::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px;
  background: linear-gradient(90deg, transparent 0%, transparent 20%, rgba(100, 208, 255, .85) 40%,
              rgba(184, 156, 255, .85) 55%, rgba(255, 136, 204, .85) 70%, transparent 85%, transparent 100%);
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: flowBorder 4.5s linear infinite;
  pointer-events: none; z-index: 0; opacity: .6; transition: opacity .3s ease;
}
.kd-flow:hover::before { opacity: 1; animation-duration: 2.2s; filter: brightness(1.3); }

/* 玻璃卡（3D 视差由 kd3d.js 驱动） */
.kd-card {
  position: relative; overflow: hidden;
  background: rgba(255, 255, 255, .04); backdrop-filter: blur(12px);
  border: 1px solid rgba(130, 100, 255, .20); border-radius: 20px; padding: 26px;
  transform-style: preserve-3d;
  transition: transform .2s ease, box-shadow .3s ease, border-color .3s ease;
}
.kd-card::after {
  content: ""; position: absolute; top: 0; left: 0; width: 200%; height: 100%; z-index: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(100, 200, 255, .10) 30%,
              rgba(180, 220, 255, .18) 50%, rgba(100, 200, 255, .10) 70%, transparent 100%);
  transform: translateX(-100%); animation: iceSweep 6s ease-in-out infinite;
  pointer-events: none; border-radius: 20px;
}
.kd-card:hover::after { animation-duration: 3s; }
.kd-card:hover { box-shadow: 0 16px 44px rgba(0, 0, 0, .45); border-color: rgba(100, 208, 255, .45); }
.kd-card > * { position: relative; z-index: 1; }

/* 流光标签 */
.kd-tag {
  position: relative; display: inline-block; padding: 10px 22px; border-radius: 999px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(130, 100, 255, .28);
  backdrop-filter: blur(10px); color: #d0d8ff; font-size: 15px; text-decoration: none;
  overflow: visible; transition: transform .3s ease, background .3s ease;
}
.kd-tag:hover { transform: translateY(-3px); background: rgba(120, 90, 255, .12); }
.kd-tag > span { position: relative; z-index: 1; }

/* 3D 主按钮 */
.kd-btn-stage { display: inline-block; perspective: 800px; }
.kd-btn {
  /* v1.2.3 用户反馈：紫渐变实心与全页气质不符 → 半透明青底描边，柔和融入深空主题 */
  position: relative; display: inline-block; padding: 16px 52px; border-radius: 14px;
  background: rgba(100, 208, 255, 0.10);
  border: 1px solid rgba(100, 208, 255, 0.45);
  color: #aee6ff;
  font-size: 19px; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 24px rgba(30, 120, 200, .16);
  transform-style: preserve-3d; will-change: transform; overflow: visible;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.kd-btn:hover {
  background: rgba(100, 208, 255, 0.18);
  border-color: rgba(100, 208, 255, 0.85);
  box-shadow: 0 8px 30px rgba(60, 150, 230, .25);
  transform: translateY(-2px);
}
.kd-btn.is-resetting { transition: transform .5s cubic-bezier(.22, .61, .36, 1), box-shadow .3s ease; }
.kd-btn .btn-text { position: relative; z-index: 2; display: inline-block; transform: translateZ(16px); }
.kd-btn .btn-shine {
  position: absolute; inset: 0; border-radius: 14px; z-index: 1;
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, .32) 0%,
              rgba(255, 255, 255, .10) 38%, transparent 68%);
  transform: translateZ(4px); pointer-events: none; opacity: 0; transition: opacity .25s ease;
}
.kd-btn:hover .btn-shine { opacity: 1; }
.kd-btn::after {
  content: ""; position: absolute; top: -1px; left: 12%; right: 12%; height: 1px; border-radius: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(100, 208, 255, .55) 50%, transparent 100%);
  transform: translateZ(20px); pointer-events: none; z-index: 3;
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px); background: rgba(5, 6, 15, .55);
  border-bottom: 1px solid var(--panel-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: .5px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 0 18px rgba(100, 208, 255, .4);
}
.brand .logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand span.c { color: var(--cyan); }
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 18px; border-radius: 999px; text-decoration: none;
  background: rgba(100, 208, 255, 0.10);
  border: 1px solid rgba(100, 208, 255, 0.45);
  color: #aee6ff; font-weight: 700; font-size: 14px;
  transition: transform .2s, background .2s, border-color .2s;
}
.nav-cta:hover { transform: translateY(-1px); background: rgba(100, 208, 255, 0.18); border-color: rgba(100, 208, 255, 0.85); }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 56px; text-align: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--panel-border); background: var(--panel);
  padding: 6px 14px; border-radius: 999px; font-size: 12px; color: var(--text-dim);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 7vw, 74px); font-weight: 900; line-height: 1.08; letter-spacing: 1px;
  background: linear-gradient(90deg, #fff 20%, #a9c6ff 65%, #d3b6ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero h1 .g {
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.sub { margin: 18px auto 0; max-width: 660px; color: var(--text-dim); font-size: 17px; }
.hero-actions { margin-top: 32px; display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }

.btn {
  padding: 13px 26px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .2s, box-shadow .2s, opacity .2s, border-color .2s; cursor: pointer; border: 0;
}
.btn-ghost { background: var(--panel); border: 1px solid var(--panel-border); color: var(--text); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--cyan); }

/* ---------- 通用区块 ---------- */
.section { padding: 58px 0; }
.section-head { text-align: center; margin-bottom: 38px; }
.section-head .eyebrow { color: var(--cyan); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-top: 8px; }
.section-head p { color: var(--text-dim); margin-top: 10px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 24px; position: relative; overflow: hidden;
}
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(100, 208, 255, .22), rgba(184, 156, 255, .22));
  color: var(--cyan); font-size: 22px; margin-bottom: 14px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 14px; }

.tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

/* 公告条 */
.notice {
  border: 1px solid rgba(100, 208, 255, .30); background: rgba(100, 208, 255, .06);
  border-radius: 14px; padding: 16px 20px; display: flex; gap: 12px; align-items: flex-start;
}
.notice .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); margin-top: 8px; box-shadow: 0 0 10px var(--cyan); flex: none; }
.notice .t { font-weight: 700; margin-bottom: 2px; }
.notice .d { color: var(--text-dim); font-size: 14px; }

/* 下载区 */
.download {
  border: 1px solid var(--panel-border); border-radius: 24px; padding: 40px;
  background: linear-gradient(135deg, rgba(100, 208, 255, .08), rgba(184, 156, 255, .08));
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
}
.download h3 { font-size: 24px; }
.download p { color: var(--text-dim); margin-top: 6px; }
.dl-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* 页脚 */
.footer { border-top: 1px solid var(--panel-border); padding: 36px 0; margin-top: 40px; color: var(--text-dim); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer a { color: var(--text-dim); text-decoration: none; }
.footer a:hover { color: var(--cyan); }
.footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* 滚动入场 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .download { flex-direction: column; align-items: flex-start; }
  .hero { padding: 64px 0 40px; }
  .kd-btn { padding: 14px 38px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .kd-card::after, .kd-flow::before { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
