/* ============================================================
   DotaBP 产品官网 · 样式系统
   设计：深色电竞风（Radiant 绿 / Dire 红 / 黄金强调色）
   零依赖 · 响应式 · 语义化
   ============================================================ */

:root {
  /* 背景层级 */
  --bg: #0b0e14;
  --bg-2: #0f131c;
  --surface: #161b27;
  --surface-2: #1c2230;
  --surface-3: #232b3b;

  /* 边框与分隔 */
  --border: #2a3243;
  --border-soft: #202736;

  /* 文本 */
  --text: #e7eaf1;
  --text-dim: #9aa4b2;
  --text-faint: #6b7689;

  /* 品牌色 */
  --gold: #f5b942;
  --gold-2: #ffd479;
  --teal: #34d6c4;
  --radiant: #4ade80;
  --dire: #ff5c5c;
  --accent-grad: linear-gradient(135deg, #f5b942 0%, #ffd479 100%);

  /* 排版 */
  --font: "Segoe UI", system-ui, -apple-system, "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* 尺寸 */
  --maxw: 1160px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);

  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================== 顶部导航 ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.3px;
}
.brand .logo {
  width: 30px;
  height: 30px;
  flex: none;
}
.brand .logo-circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
}
.brand b { color: var(--gold); }
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 2px;
  margin-top: -3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: var(--surface-2); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* 汉堡按钮（移动端） */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-6px) rotate(-45deg); }

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: var(--accent-grad);
  color: #1a1206;
  box-shadow: 0 8px 22px rgba(245, 185, 66, 0.28);
}
.btn-gold:hover { box-shadow: 0 10px 28px rgba(245, 185, 66, 0.42); }
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-dim);
}
.btn-outline:hover { color: var(--text); border-color: var(--text-dim); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  padding: 84px 0 64px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(245, 185, 66, 0.14), transparent 60%),
    radial-gradient(700px 460px at 10% 12%, rgba(52, 214, 196, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  z-index: 0;
}
.hero-grid-deco {
  position: absolute;
  right: -60px;
  top: 40px;
  width: 460px;
  max-width: 55vw;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  color: var(--gold-2);
  font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--radiant);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border-soft);
}
.hero-stats .stat .num {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}
.hero-stats .stat .num b { color: var(--gold); }
.hero-stats .stat .label {
  font-size: 13px;
  color: var(--text-faint);
}

/* ===================== 通用区块 ===================== */
section.block { padding: 72px 0; }
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head .kicker {
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  margin: 10px 0 12px;
  letter-spacing: -0.3px;
}
.section-head p { color: var(--text-dim); font-size: 16px; }

/* ===================== 功能卡片 ===================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.card .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(245,185,66,0.16), rgba(52,214,196,0.12));
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.card .ico svg { width: 24px; height: 24px; stroke: var(--gold-2); fill: none; stroke-width: 2; }
.card h3 { font-size: 18px; font-weight: 750; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 14.5px; }

/* ===================== 使用场景 ===================== */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.scenario {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
  overflow: hidden;
}
.scenario .step {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
}
.scenario h3 { font-size: 18px; margin-bottom: 10px; }
.scenario p { color: var(--text-dim); font-size: 14.5px; }
.scenario::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(52,214,196,0.18), transparent 70%);
}

/* ===================== 差异化 ===================== */
.why { background: var(--bg-2); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.why-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.why-list li:last-child { border-bottom: none; }
.why-list .tick {
  flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(74,222,128,0.14);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.why-list .tick svg { width: 14px; height: 14px; stroke: var(--radiant); fill: none; stroke-width: 3; }
.why-list b { display: block; font-weight: 700; margin-bottom: 2px; }
.why-list span { color: var(--text-dim); font-size: 14.5px; }

.compare {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.compare h4 { font-size: 15px; margin-bottom: 14px; color: var(--text-dim); font-weight: 600; }
.compare table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border-soft); }
.compare th { color: var(--text-faint); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.5px; }
.compare td:first-child { color: var(--text-dim); }
.compare .yes { color: var(--radiant); font-weight: 700; }
.compare .no { color: var(--dire); font-weight: 700; }
.compare .us { color: var(--gold); font-weight: 800; }

/* ===================== 下载 CTA 带 ===================== */
.download-cta {
  position: relative;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(245,185,66,0.16), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 54px 40px;
  text-align: center;
  overflow: hidden;
}
.download-cta h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin-bottom: 12px; }
.download-cta p { color: var(--text-dim); margin-bottom: 26px; font-size: 16px; }
.platform-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.platform-pills .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-dim);
}
.platform-pills .pill b { color: var(--text); }

/* ===================== 下载页 ===================== */
.dl-hero { padding: 70px 0 30px; text-align: center; }
.dl-hero .badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--gold-2); font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.dl-hero h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 850; margin-bottom: 14px; }
.dl-hero p { color: var(--text-dim); max-width: 560px; margin: 0 auto; font-size: 16px; }
.dl-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 22px auto 0;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
}
.dl-status a { color: var(--gold-2); font-weight: 600; }
.dl-status code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--gold);
  background: var(--bg-2);
  padding: 1px 6px;
  border-radius: 5px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.platform-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.platform-card:hover { border-color: var(--border); transform: translateY(-3px); }
.platform-card .top { display: flex; align-items: center; gap: 14px; }
.platform-card .os-ico {
  width: 52px; height: 52px; flex: none; border-radius: 13px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.platform-card .os-ico svg { width: 28px; height: 28px; fill: var(--text); }
.platform-card h3 { font-size: 19px; font-weight: 750; }
.platform-card .meta { font-size: 13px; color: var(--text-faint); }
.platform-card .meta b { color: var(--text-dim); }
.platform-card .req {
  font-size: 13px; color: var(--text-dim);
  background: var(--bg-2); border: 1px solid var(--border-soft);
  border-radius: 9px; padding: 10px 12px; line-height: 1.5;
}
.platform-card.soon { opacity: 0.96; }
.platform-card.soon .os-ico svg { fill: var(--text-faint); }
.tag-soon {
  margin-left: auto; font-size: 12px; font-weight: 700;
  color: var(--teal); background: rgba(52,214,196,0.12);
  border: 1px solid rgba(52,214,196,0.3);
  padding: 3px 10px; border-radius: 999px;
}
.tag-live {
  margin-left: auto; font-size: 12px; font-weight: 700;
  color: var(--radiant); background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.3);
  padding: 3px 10px; border-radius: 999px;
}

/* 版本 / 更新日志 */
.changelog {
  margin-top: 56px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
}
.changelog h3 { font-size: 20px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.changelog .ver { font-family: var(--mono); font-size: 13px; color: var(--gold); }
.changelog ul { display: grid; gap: 12px; }
.changelog li { display: flex; gap: 12px; font-size: 14.5px; color: var(--text-dim); }
.changelog li::before { content: "▹"; color: var(--gold); flex: none; }
.changelog .date { font-family: var(--mono); font-size: 12px; color: var(--text-faint); margin-top: 4px; }

.note-box {
  margin-top: 28px;
  display: flex; gap: 14px;
  background: rgba(245,185,66,0.07);
  border: 1px solid rgba(245,185,66,0.25);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-dim);
}
.note-box svg { width: 22px; height: 22px; flex: none; stroke: var(--gold); fill: none; stroke-width: 2; margin-top: 2px; }

/* ===================== 页脚 ===================== */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-2);
  padding: 46px 0 30px;
  margin-top: 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-grid h4 { font-size: 14px; margin-bottom: 14px; color: var(--text); }
.footer-grid a { display: block; color: var(--text-dim); font-size: 14px; padding: 5px 0; transition: color 0.15s; }
.footer-grid a:hover { color: var(--gold-2); }
.footer-about p { color: var(--text-dim); font-size: 14px; max-width: 320px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-faint);
}
.disclaimer { font-size: 12.5px; color: var(--text-faint); max-width: 720px; line-height: 1.6; }

/* ===================== Toast ===================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 13px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 14.5px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast b { color: var(--gold); }

/* ===================== 响应式 ===================== */
@media (max-width: 920px) {
  .feature-grid, .scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px 20px;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }

  .feature-grid, .scenario-grid, .platform-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .hero { padding: 56px 0 44px; }
  .hero-grid-deco { display: none; }
  section.block { padding: 54px 0; }
  .download-cta { padding: 40px 22px; }
}
