/* ============================================================
   空岛&games · kdgames.cn — 3D 交互个人游戏空间
   零外部依赖 · 深空主题 · 三语界面
   ============================================================ */

:root {
  --bg: #04071a;
  --bg-2: #0a1030;
  --panel: rgba(148, 163, 216, 0.06);
  --panel-strong: rgba(148, 163, 216, 0.1);
  --border: rgba(148, 163, 216, 0.16);
  --text: #e8edff;
  --muted: #97a3cf;
  --cyan: #3ae0ff;
  --purple: #a78bfa;
  --pink: #f472b6;
  --gold: #fcd34d;
  --green: #4ade80;
  --nav-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 深邃宇宙底色 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgba(167, 139, 250, 0.14), transparent 60%),
    radial-gradient(ellipse 70% 55% at 15% 75%, rgba(58, 224, 255, 0.1), transparent 60%),
    radial-gradient(ellipse 90% 80% at 50% 50%, var(--bg-2), var(--bg) 75%);
}

::selection { background: rgba(58, 224, 255, 0.32); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--cyan), var(--purple)); border-radius: 6px; }

a { color: inherit; text-decoration: none; }
img { display: inline-block; }

/* ---------- 星空画布 ---------- */
#starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  display: block;
}

/* ---------- 加载动画 ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--bg);
  transition: opacity 0.6s ease, visibility 0.6s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-island { display: flex; gap: 10px; }
.loader-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 14px rgba(58, 224, 255, 0.8);
  animation: bounce 1.1s ease-in-out infinite;
}
.loader-dot:nth-child(2) { animation-delay: 0.15s; }
.loader-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.loader-text { color: var(--muted); font-size: 14px; letter-spacing: 0.2em; }

/* ---------- 导航栏 ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 44px);
  transition: background 0.35s, box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(6, 10, 32, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-logo {
  border-radius: 10px;
  filter: drop-shadow(0 0 10px rgba(58, 224, 255, 0.45));
  transition: transform 0.4s;
}
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.08); }
.brand-name { font-size: 19px; letter-spacing: 0.02em; }
.brand-amp { color: var(--cyan); font-weight: 800; margin: 0 2px; }
.nav-links { display: flex; gap: clamp(14px, 2.6vw, 34px); }
.nav-links a {
  position: relative;
  font-size: 15px;
  color: var(--muted);
  padding: 6px 2px;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: right 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  font-family: var(--font);
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  color: #041022;
  background: linear-gradient(135deg, var(--cyan), #7dd3fc);
  font-weight: 700;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 24px;
  padding: calc(var(--nav-h) + 40px) clamp(16px, 6vw, 80px) 80px;
}
.hero-kicker {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.35em;
  color: var(--cyan);
  border: 1px solid rgba(58, 224, 255, 0.35);
  background: rgba(58, 224, 255, 0.08);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 26px;
  animation: fadeUp 0.8s 0.2s both;
}
.hero-title {
  font-size: clamp(46px, 7.2vw, 92px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(120deg, #fff 20%, var(--cyan) 55%, var(--purple) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(58, 224, 255, 0.25));
  animation: fadeUp 0.8s 0.35s both;
}
.hero-amp { -webkit-text-fill-color: var(--pink); color: var(--pink); font-weight: 400; margin: 0 0.08em; }
.hero-sub {
  font-size: clamp(17px, 2.2vw, 24px);
  color: var(--text);
  margin: 22px 0 14px;
  animation: fadeUp 0.8s 0.5s both;
}
.hero-desc {
  color: var(--muted);
  max-width: 52ch;
  animation: fadeUp 0.8s 0.62s both;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; animation: fadeUp 0.8s 0.75s both; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 14px;
  padding: 13px 30px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  color: #041022;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 10px 30px rgba(58, 224, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(58, 224, 255, 0.5); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: rgba(58, 224, 255, 0.5); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.2em;
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid var(--muted);
  border-radius: 12px;
  position: relative;
}
.scroll-mouse::after {
  content: "";
  position: absolute;
  left: 50%; top: 6px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--cyan);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- 3D 地球 + 行星环绕（hero 演绎） ---------- */
.hero-scene {
  position: relative;
  height: min(62vh, 560px);
  min-height: min(62vh, 560px);
  animation: fadeUp 1s 0.5s both;
}
#earthCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  cursor: grab;
  touch-action: none;
}
#earthCanvas:active { cursor: grabbing; }
/* WebGL 不可用时的 CSS 地球降级 */
.earth-fallback {
  display: none;
  position: absolute;
  left: 50%; top: 50%;
  z-index: 1;
  width: 64%;
  max-width: 340px;
  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 60px rgba(58, 130, 246, 0.55),
    inset -20px -24px 52px rgba(0, 0, 0, 0.55),
    inset 16px 18px 44px rgba(120, 200, 255, 0.32);
}
.earth-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 75%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 45%);
}
.earth-fallback::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 132%; height: 132%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

/* ---------- 数据统计 ---------- */
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 980px;
  margin: 10px auto 0;
  padding: 30px 26px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.stat { text-align: center; }
.stat b {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  background: linear-gradient(120deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- 通用区块 ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 110px clamp(16px, 4vw, 40px) 30px; }
.section-head { text-align: center; margin-bottom: 54px; }
.section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--cyan);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.section-head h2::after {
  content: "";
  display: block;
  width: 64px; height: 4px;
  margin: 16px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}
.section-sub { color: var(--muted); margin-top: 14px; }

/* ---------- 教程卡片（3D 倾斜） ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  padding: 26px 26px 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: box-shadow 0.3s, border-color 0.3s;
  will-change: transform;
}
.card:hover { border-color: rgba(58, 224, 255, 0.45); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(58, 224, 255, 0.12); }
.card-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.13), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover .card-glare { opacity: 1; }
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-cat {
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
  letter-spacing: 0.06em;
}
.cat-fe   { color: var(--cyan);   background: rgba(58, 224, 255, 0.12); }
.cat-ops  { color: var(--green);  background: rgba(74, 222, 128, 0.12); }
.cat-ai   { color: var(--purple); background: rgba(167, 139, 250, 0.14); }
.cat-be   { color: var(--gold);   background: rgba(252, 211, 77, 0.12); }
.cat-tool { color: var(--pink);   background: rgba(244, 114, 182, 0.12); }
.cat-life { color: #7dd3fc;       background: rgba(125, 211, 252, 0.12); }
.card time { font-size: 13px; color: var(--muted); }
.card h3 { font-size: 19px; line-height: 1.45; margin-bottom: 10px; transform: translateZ(30px); }
.card p { font-size: 14.5px; color: var(--muted); transform: translateZ(20px); }
.card-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  opacity: 0;
  transform: translateX(-6px) translateZ(20px);
  transition: opacity 0.3s, transform 0.3s;
}
.card:hover .card-more { opacity: 1; transform: translateX(0) translateZ(20px); }

/* ---------- 攻略列表 ---------- */
.guide-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
.guide-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.guide-item:hover {
  border-color: rgba(58, 224, 255, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(58, 224, 255, 0.1);
}
.guide-icon {
  flex: none;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(58, 224, 255, 0.14), rgba(167, 139, 250, 0.14));
  border: 1px solid var(--border);
}
.guide-body { flex: 1; min-width: 0; }
.guide-body h3 { font-size: 17.5px; margin-bottom: 4px; }
.guide-body p { font-size: 14px; color: var(--muted); }
.guide-arrow {
  flex: none;
  font-size: 20px;
  color: var(--cyan);
  opacity: 0.4;
  transition: opacity 0.3s, transform 0.3s;
}
.guide-item:hover .guide-arrow { opacity: 1; transform: translateX(4px); }

/* ---------- 学习笔记时间线 ---------- */
.timeline {
  list-style: none;
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--purple), transparent);
}
.timeline li { position: relative; padding: 0 0 40px 22px; }
.timeline li:last-child { padding-bottom: 6px; }
.tl-dot {
  position: absolute;
  left: -33px; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--cyan);
  box-shadow: 0 0 14px rgba(58, 224, 255, 0.7);
}
.timeline li:hover .tl-dot { background: var(--cyan); }
.timeline time { font-size: 13px; color: var(--muted); letter-spacing: 0.08em; }
.timeline h3 { font-size: 20px; margin: 6px 0 8px; }
.timeline p { color: var(--muted); font-size: 15px; max-width: 60ch; }

/* ---------- 游戏星图 ---------- */
.atlas-stage {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 45%, rgba(58, 224, 255, 0.09), rgba(167, 139, 250, 0.05) 45%, transparent 70%),
    var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
}
#globe { display: block; width: 100%; height: 440px; cursor: grab; touch-action: none; }
#globe:active { cursor: grabbing; }
.atlas-hint {
  position: absolute;
  left: 50%; bottom: 14px;
  transform: translateX(-50%);
  font-size: 13px;
  color: var(--muted);
  background: rgba(6, 10, 32, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 16px;
  white-space: nowrap;
}

/* ---------- 关于本站 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
.about-text {
  max-width: 860px;
  margin: 0 auto;
  padding: 34px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  backdrop-filter: blur(10px);
}
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-text p:first-child { color: var(--text); font-size: 17px; }
.about-quote {
  margin-top: 22px;
  padding: 16px 20px;
  border-left: 3px solid var(--cyan);
  background: rgba(58, 224, 255, 0.06);
  border-radius: 0 12px 12px 0;
  font-size: 16px;
  color: var(--text);
}
/* ---------- 页脚 ---------- */
.footer {
  margin-top: 90px;
  padding: 46px 24px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(4, 7, 26, 0.7);
  backdrop-filter: blur(10px);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 14px;
}
.footer-brand b { color: var(--cyan); }
.footer-brand img { border-radius: 8px; }
.footer-desc { color: var(--muted); font-size: 14.5px; max-width: 46ch; margin: 0 auto 10px; }
.footer-icp { min-height: 1.7em; }
.footer-icp a {
  color: rgba(151, 163, 207, 0.8);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.25s;
}
.footer-icp a:hover { color: var(--cyan); }
.footer-copy { color: rgba(151, 163, 207, 0.65); font-size: 13px; }

/* ---------- 回到顶部 ---------- */
#backTop {
  position: fixed;
  right: 22px; bottom: 26px;
  z-index: 90;
  width: 46px; height: 46px;
  font-size: 20px;
  color: var(--text);
  background: rgba(10, 16, 48, 0.85);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s, transform 0.35s, visibility 0.35s, border-color 0.25s;
  backdrop-filter: blur(8px);
}
#backTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backTop:hover { border-color: rgba(58, 224, 255, 0.55); box-shadow: 0 0 22px rgba(58, 224, 255, 0.25); }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .guide-list { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; text-align: center; justify-items: center; padding-top: calc(var(--nav-h) + 56px); }
  .hero-desc { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-scene { width: 100%; height: 400px; }
  .scroll-hint { display: none; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .nav-links {
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 14px 20px 20px;
    background: rgba(6, 10, 32, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 6px; font-size: 16px; }
  .menu-toggle { display: flex; }
  .section { padding-top: 84px; }
  #globe { height: 340px; }
  .hero-scene { height: 320px; }
}

/* ---------- 动效减弱 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.15s !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 文章页 ---------- */
.article { max-width: 880px; margin: 0 auto; padding: calc(var(--nav-h) + 48px) clamp(16px, 4vw, 40px) 30px; }
.article-head { text-align: center; margin-bottom: 42px; }
.article-head .card-cat { display: inline-block; margin-bottom: 16px; }
.article-head h1 { font-size: clamp(26px, 4.4vw, 40px); font-weight: 800; line-height: 1.32; }
.article-meta { color: var(--muted); font-size: 14px; margin-top: 14px; letter-spacing: 0.04em; }
.article-body {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 46px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.article-body h2 {
  font-size: 21px;
  margin: 36px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--cyan);
  line-height: 1.4;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 17.5px; margin: 24px 0 10px; }
.article-body p { color: var(--muted); margin-bottom: 14px; font-size: 15.5px; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body ul, .article-body ol { margin: 0 0 14px 1.5em; color: var(--muted); }
.article-body li { margin-bottom: 8px; font-size: 15.5px; }
.article-body li::marker { color: var(--cyan); }
.article-body code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13.5px;
  background: rgba(58, 224, 255, 0.1);
  color: var(--cyan);
  padding: 2px 7px;
  border-radius: 6px;
  word-break: break-all;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 14.5px; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 9px 13px; text-align: left; line-height: 1.55; }
.article-body th { background: rgba(58, 224, 255, 0.08); color: var(--text); font-weight: 700; white-space: nowrap; }
.article-body td { color: var(--muted); }
.tip-box {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(252, 211, 77, 0.07);
  border-radius: 0 12px 12px 0;
  color: var(--text);
  font-size: 15px;
}
.tip-box.warn { border-color: var(--pink); background: rgba(244, 114, 182, 0.08); }
.tip-box.ok { border-color: var(--green); background: rgba(74, 222, 128, 0.07); }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cyan);
  transition: transform 0.25s;
}
.article-back:hover { transform: translateX(-4px); }
@media (max-width: 680px) {
  .article { padding-top: calc(var(--nav-h) + 28px); }
  .article-body { padding: 20px 18px; }
  .article-body table { font-size: 13.5px; }
  .article-body th, .article-body td { padding: 7px 9px; }
}
