/* OddsHUD 官网共享样式 · 中/俄/英三语共用，改版只改这一处 */
:root {
  --bg-dark: #0d1117;
  --bg-light: #f6f7f9;
  --text-dark: #1a1d21;
  --text-light: #e6edf3;
  --accent: #3dbde5;
  --accent-dark: #2a9bc4;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

header {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
header .container { display: flex; align-items: center; justify-content: space-between; }
header a.brand { display: flex; align-items: center; gap: 10px; }
header .brand-copy { font-size: 0.78rem; opacity: 0.55; letter-spacing: 0.02em; white-space: nowrap; }
header img { height: 30px; }
nav a { color: var(--text-light); margin-left: 24px; font-size: 0.95rem; opacity: 0.85; }
nav a:hover { opacity: 1; text-decoration: none; }

/* 语言选择：纯 CSS 画国旗，无图片依赖 */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 24px;
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,0.16);
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 0;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 0.8rem;
  opacity: 0.62;
}
.lang-switch a:hover { opacity: 1; background: rgba(255,255,255,0.08); text-decoration: none; }
.lang-switch a.active { opacity: 1; background: rgba(255,255,255,0.1); }
.flag {
  width: 17px;
  height: 12px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  display: inline-block;
  flex: 0 0 auto;
}
.flag-cn { background: #de2910; }
.flag-cn::after {
  content: "★";
  position: absolute;
  left: 1px;
  top: -2px;
  color: #ffde00;
  font-size: 8px;
  line-height: 1.3;
}
.flag-ru { background: linear-gradient(#fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%); }
.flag-gb { background: #012169; }
.flag-gb::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 2px;
  background: #fff;
}
.flag-gb::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 3px;
  background: #fff;
}

.hero {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 90px 0 100px;
  text-align: center;
}
.hero img { max-width: 300px; margin-bottom: 28px; }
.hero h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: 18px; letter-spacing: -0.02em; }
.hero .lede {
  font-size: 1.18rem;
  opacity: 0.85;
  max-width: 660px;
  margin: 0 auto 34px;
}
.hero-meta {
  margin-top: 26px;
  font-size: 0.86rem;
  opacity: 0.58;
  letter-spacing: 0.02em;
}
.cta { display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #0d1117; }
.btn-primary:hover { background: #5ccdf0; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(61,189,229,0.25); }
.btn-secondary { border: 1px solid rgba(255,255,255,0.3); color: var(--text-light); }
.btn-secondary:hover { background: rgba(255,255,255,0.08); }

section { padding: 80px 0; }
section.light { background: var(--bg-light); }
h2 { font-size: 2rem; margin-bottom: 14px; }
.subtitle { opacity: 0.7; font-size: 1.1rem; margin-bottom: 48px; max-width: 720px; }
.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(61,189,229,0.12);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: white;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { opacity: 0.75; font-size: 0.98rem; }
.icon {
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: #0d1117;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* 视频嵌在「它做什么」区块内，作为能力的证据而不是独立章节 */
.video-inline { margin-top: 60px; }
.video-title { font-size: 1.1rem; font-weight: 600; opacity: 0.75; margin-bottom: 18px; }
.video-wrap {
  position: relative;
  max-width: 880px;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  background: #000;
}
.video-wrap video { width: 100%; height: 100%; display: block; object-fit: contain; }

/* 「开始使用」：安装步骤 + 版本更新，同属一个动作区块 */
.steps { max-width: 760px; margin: 0; padding-left: 24px; }
.install-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 4px 0 38px;
}
.install-cta-note { font-size: 0.9rem; opacity: 0.6; }
.steps li { margin-bottom: 16px; font-size: 1.05rem; }
.steps code {
  background: #eef0f3;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}
.steps-note { margin-top: 22px; opacity: 0.6; font-size: 0.95rem; }

.release {
  max-width: 800px;
  margin: 58px 0 0;
  padding-top: 36px;
  border-top: 1px solid rgba(0,0,0,0.09);
}
.release-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.release-head strong { font-size: 1.5rem; letter-spacing: -0.01em; }
.release-head span { opacity: 0.6; font-size: 0.95rem; }
.release-list { padding-left: 22px; }
.release-list li { margin-bottom: 12px; font-size: 1rem; opacity: 0.85; }
.release-list b { font-weight: 600; opacity: 1; }

.philosophy { background: var(--bg-dark); color: var(--text-light); }
.philosophy .card { background: rgba(255,255,255,0.04); color: var(--text-light); box-shadow: none; }
.philosophy .card:hover { background: rgba(255,255,255,0.07); box-shadow: none; }
.philosophy .card p { opacity: 0.8; }

/* 汉化包是配套资源，不是本站主体：整体降一级，避免与插件抢注意力 */
.compact { padding: 64px 0; }
.sub-block { max-width: 760px; }
.tag-muted { background: rgba(0,0,0,0.05); color: rgba(0,0,0,0.55); }
.h2-sub { font-size: 1.5rem; margin-bottom: 14px; }
.sub-block .subtitle { margin-bottom: 32px; }
.dl-hint {
  margin-top: 16px;
  opacity: 0.65;
  font-size: 0.95rem;
  white-space: nowrap;
}
.dl-hint code {
  background: #eef0f3;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

.qq { background: var(--bg-dark); color: var(--text-light); text-align: center; }
.qq .subtitle { margin-left: auto; margin-right: auto; }
.qq-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.qq-row img { max-width: 260px; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.35); }
.qq-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 130px;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  background: rgba(61,189,229,0.1);
  border: 1px solid rgba(61,189,229,0.25);
  border-radius: 16px;
  padding: 0 28px;
}

footer {
  background: #080b0f;
  color: rgba(255,255,255,0.5);
  padding: 40px 0;
  text-align: center;
  font-size: 0.88rem;
}
footer a { color: rgba(255,255,255,0.65); }
footer p + p { margin-top: 8px; }

@media (max-width: 640px) {
  .hero { padding: 70px 0 80px; }
  .hero h1 { font-size: 1.8rem; }
  .hero .lede { font-size: 1.05rem; }
  header .container { gap: 12px; }
  header .brand-copy { display: none; }
  nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; row-gap: 6px; }
  nav a { margin-left: 14px; font-size: 0.85rem; }
  .lang-switch { margin-left: 14px; padding-left: 14px; }
  .lang-label { display: none; }
  section { padding: 60px 0; }
  h2 { font-size: 1.6rem; }
  .h2-sub { font-size: 1.3rem; }
  .video-inline { margin-top: 44px; }
  .qq-row { gap: 24px; }
  .qq-row img { max-width: 220px; }
  .qq-number { font-size: 1.7rem; min-width: 200px; min-height: 100px; }
  .dl-hint { white-space: normal; }
}
