/* ============================================================
   AzerothGo — 设计系统 (UI UX Pro Max: Gaming Bold + Modern Dark)
   ============================================================ */
:root {
  /* 颜色 */
  --bg-deep: #06070d;
  --bg-base: #0a0e27;
  --bg-elevated: #111420;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #EDEDEF;
  --text-strong: #f4f4f6;
  --text-muted: #8a8f98;
  --gold: #c8a45d;
  --gold-bright: #e8c87e;
  --gold-dim: rgba(200, 164, 93, 0.16);
  --gold-glow: rgba(200, 164, 93, 0.35);
  --blue: #4e9acf;
  --red: #b2302e;
  --green: #3fbf7f;
  --danger: #e5484d;

  /* 字体 */
  --font-head: 'Russo One', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Chakra Petch', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  /* 形状与动效 */
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
  --header-h: 64px;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(78, 154, 207, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(200, 164, 93, 0.07), transparent 55%),
    linear-gradient(180deg, #0a0e27 0%, var(--bg-deep) 42%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--gold-bright); }
code {
  font-family: var(--font-mono);
  font-size: .92em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: .08em .4em;
}
::selection { background: var(--gold-dim); color: var(--gold-bright); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(6, 7, 13, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-strong); font-family: var(--font-head); font-size: 19px; letter-spacing: .04em; }
.brand:hover { color: var(--text-strong); }
.brand-mark {
  color: var(--gold);
  font-size: 15px;
  text-shadow: 0 0 12px var(--gold-glow);
  animation: pulse-glow 3.2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 8px rgba(200,164,93,.35); }
  50% { text-shadow: 0 0 18px rgba(200,164,93,.75); }
}
.brand-go { color: var(--gold); }
.main-nav { display: flex; gap: 6px; align-items: center; }
.main-nav a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
}
.main-nav a:hover { color: var(--text-strong); background: var(--surface); }
.main-nav a.active { color: var(--gold-bright); background: var(--gold-dim); }
.main-nav a.disabled { opacity: .45; cursor: not-allowed; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); width: 40px; height: 40px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); transition: transform .2s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首页 Hero ---------- */
.hero {
  padding: 84px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(200, 164, 93, 0.13), transparent 70%),
    radial-gradient(500px 260px at 20% 30%, rgba(78, 154, 207, 0.10), transparent 70%),
    radial-gradient(500px 260px at 80% 40%, rgba(78, 154, 207, 0.08), transparent 70%);
  pointer-events: none;
}
.hero .eyebrow, .doc-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold);
  font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
}
.hero .eyebrow::before, .hero .eyebrow::after { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero .eyebrow::after { background: linear-gradient(90deg, var(--gold), transparent); }
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(44px, 8vw, 84px);
  margin: 18px 0 8px;
  color: var(--text-strong);
  letter-spacing: .02em;
  text-shadow: 0 0 40px rgba(200, 164, 93, 0.25);
}
.hero h1 .go { color: var(--gold); }
.hero .tagline { font-size: clamp(16px, 2.4vw, 20px); color: var(--text-muted); max-width: 640px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, #a8843f);
  color: #17120a;
  box-shadow: 0 8px 26px rgba(200, 164, 93, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(200, 164, 93, 0.42); color: #17120a; }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------- 首页统计条 ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 10px 0 70px; }
.stat { background: var(--bg-elevated); padding: 22px 12px; text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(24px, 3.4vw, 34px); color: var(--gold-bright); text-shadow: 0 0 18px rgba(200,164,93,.3); }
.stat span { color: var(--text-muted); font-size: 13px; letter-spacing: .08em; }

/* ---------- 首页卡片 ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-family: var(--font-head); font-size: clamp(22px, 3vw, 30px); color: var(--text-strong); margin: 0; }
.section-head .en { color: var(--gold); font-size: .62em; letter-spacing: .14em; text-transform: uppercase; }
.section-head .more { font-size: 14px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-bottom: 70px; }
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: var(--gold-dim); border: 1px solid rgba(200, 164, 93, 0.3);
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-family: var(--font-head); font-size: 17px; color: var(--text-strong); letter-spacing: .02em; }
.card p { margin: 0 0 16px; color: var(--text-muted); font-size: 14px; }
.card .card-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--gold); }
.card .card-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.card .card-meta .dot.off { background: var(--text-muted); box-shadow: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }

/* ---------- 传送页布局 ---------- */
.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; padding-top: 34px; padding-bottom: 80px; align-items: start; }
.doc-sidebar { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: hidden; }
.sidebar-inner { max-height: 100%; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.sidebar-title { font-family: var(--font-head); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 12px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 13.5px; line-height: 1.35;
  border-left: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link em {
  font-style: normal; font-size: 11px; font-family: var(--font-mono);
  color: var(--text-muted); background: var(--surface); border-radius: 999px; padding: 1px 8px; flex: none;
}
.nav-link.active { color: var(--gold-bright); background: var(--gold-dim); border-left-color: var(--gold); }
.nav-link.active em { color: var(--gold-bright); background: rgba(200,164,93,.15); }

.doc-main { min-width: 0; }
.doc-hero { margin-bottom: 30px; }
.doc-hero h1 { font-family: var(--font-head); font-size: clamp(26px, 3.6vw, 38px); color: var(--text-strong); margin: 10px 0 6px; }
.doc-hero h1 .en { color: var(--gold); font-size: .55em; vertical-align: .18em; letter-spacing: .06em; }
.doc-sub { color: var(--text-muted); margin: 0 0 22px; font-size: 14.5px; }

/* 搜索框 */
.search-box {
  position: relative; display: flex; align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0 18px;
  max-width: 560px;
  transition: border-color .18s, box-shadow .18s;
}
.search-box:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 164, 93, 0.15), 0 0 24px rgba(200,164,93,.12); }
.search-icon { color: var(--text-muted); flex: none; }
.search-box input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-strong);
  font-family: var(--font-body); font-size: 15px;
  padding: 13px 12px;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-hint { flex: none; color: var(--gold); font-size: 12.5px; font-family: var(--font-mono); min-width: 56px; text-align: right; }

/* 章节 */
.doc-section { margin-bottom: 46px; scroll-margin-top: calc(var(--header-h) + 20px); }
.sec-title {
  font-family: var(--font-head);
  font-size: 21px; color: var(--text-strong);
  margin: 0 0 6px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.sec-title::before {
  content: ""; width: 4px; height: 20px; border-radius: 2px; flex: none;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 10px var(--gold-glow);
}
.doc-subsection { margin: 26px 0 0; }
.sub-title { font-size: 16.5px; color: var(--gold-bright); margin: 0 0 12px; font-weight: 600; letter-spacing: .02em; }
.sub-title::before { content: "◆ "; color: var(--gold); font-size: .8em; }

/* 表格 */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--bg-elevated);
}
.table-wrap:hover { border-color: var(--border-strong); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 13.8px; }
.table-wrap thead th {
  text-align: left;
  font-family: var(--font-head); font-weight: 400;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
  background: linear-gradient(180deg, rgba(200,164,93,.10), rgba(200,164,93,.04));
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table-wrap tbody td { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.045); vertical-align: middle; }
.table-wrap tbody tr:last-child td { border-bottom: none; }
.table-wrap tbody tr { transition: background .14s; }
.table-wrap tbody tr:hover { background: var(--surface-2); }
.td-name { color: var(--text-strong); font-weight: 600; white-space: nowrap; }
.td-cmd { position: relative; }
.td-cmd code {
  display: inline-block; max-width: 100%;
  font-size: 12.8px; color: #bfe3c8;
  background: rgba(63, 191, 127, 0.08);
  border-color: rgba(63, 191, 127, 0.22);
  padding: 5px 10px; border-radius: 6px;
  word-break: break-all;
}
.copy-btn {
  margin-left: 10px;
  padding: 4px 12px;
  font-size: 12px; font-family: var(--font-body); font-weight: 600;
  color: var(--gold-bright);
  background: var(--gold-dim);
  border: 1px solid rgba(200,164,93,.35);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.copy-btn:hover { background: rgba(200,164,93,.26); box-shadow: 0 0 12px rgba(200,164,93,.25); }
.copy-btn:active { transform: scale(.94); }
.copy-btn.done { color: #0c1410; background: var(--green); border-color: var(--green); }
tr.row-hidden { display: none; }
.doc-section.sec-hidden { display: none; }
.doc-subsection.sub-hidden { display: none; }
.search-empty {
  display: none; text-align: center; padding: 60px 20px; color: var(--text-muted);
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
}
.search-empty.show { display: block; }

/* 页脚 */
.doc-footer { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(6, 7, 13, 0.6);
  padding: 34px 0 40px;
  margin-top: 20px;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: var(--text-muted); font-size: 13.5px; }
.footer-inner .brand { font-size: 15px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--gold-bright); }

/* 目录抽屉按钮(仅移动端显示) */
.sidebar-toggle {
  display: none;
  align-items: center; gap: 8px;
  margin: 0 0 16px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--gold-bright);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}
.sidebar-toggle:hover { border-color: var(--gold); box-shadow: 0 0 14px rgba(200,164,93,.25); }

/* 回到顶部 */
.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated); color: var(--gold-bright);
  font-size: 17px; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), box-shadow .2s;
  box-shadow: 0 8px 22px rgba(0,0,0,.4);
}
.back-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-top:hover { box-shadow: 0 0 18px rgba(200,164,93,.35); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .sidebar-toggle { display: inline-flex; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-sidebar { position: fixed; inset: var(--header-h) auto 0 0; width: 264px; background: rgba(10,14,39,.97); backdrop-filter: blur(12px); border-right: 1px solid var(--border); padding: 20px; transform: translateX(-105%); transition: transform .28s var(--ease); z-index: 45; }
  .doc-sidebar.open { transform: none; box-shadow: 24px 0 60px rgba(0,0,0,.5); }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(6,7,13,.97); border-bottom: 1px solid var(--border);
    padding: 10px 16px 16px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav a { padding: 12px 14px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 14px; }
  .table-wrap { border-radius: var(--radius-sm); }
  .td-cmd code { font-size: 11.8px; }
  .copy-btn { padding: 3px 9px; margin-left: 6px; }
  .hero { padding: 56px 0 44px; }
}

/* 动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
