/* 欧博汇 · 欧洲博彩资讯站
   Design Read: 信息型内容站 / 双栏首页 + 左导文档风 / 深墨蓝 + 琥珀金
   版式原型：双栏首页（左精选长文、右栏目入口堆叠）+ 文档风文章页
   dials: VARIANCE 7 / MOTION 3 / DENSITY 5
*/

:root {
  --ink: #10203a;
  --ink-soft: #33445e;
  --muted: #64748b;
  --paper: #f6f7f9;
  --surface: #ffffff;
  --line: #dbe1e9;
  --brand: #143a6b;
  --brand-deep: #0d2849;
  --accent: #b9812c;
  --accent-soft: #f2e6d2;
  --radius: 10px;
  --max: 1180px;
  --font-display: "Trebuchet MS", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Songti SC", "SimSun", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.32;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: 1.85rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }

p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- 页头 ---------- */
.site-header {
  background: var(--brand-deep);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #f7f9fc;
  flex-shrink: 0;
}
.brand:hover { color: var(--accent-soft); }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.brand-sub {
  display: block;
  font-size: 0.68rem;
  color: #9fb2cd;
  letter-spacing: 0.14em;
  font-weight: 400;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #3d5b85;
  color: #f0f4fa;
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  font-family: var(--font-display);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav li { margin: 0; }
.main-nav a {
  color: #dbe5f3;
  font-family: var(--font-display);
  font-size: 0.94rem;
  padding: 0.4rem 0;
  display: inline-block;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.is-active {
  color: #ffffff;
  border-bottom-color: var(--accent);
}
.main-nav a[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: var(--accent);
}

/* ---------- 布局 ---------- */
main { display: block; padding: 1.6rem 0 2.6rem; }

.layout-2col {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.layout-article {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 288px;
  gap: 1.8rem;
  align-items: start;
}

/* ---------- 侧导（文档风） ---------- */
.doc-rail {
  position: sticky;
  top: 88px;
  border-left: 3px solid var(--brand);
  padding-left: 0.9rem;
}
.doc-rail h2 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.doc-rail ul { list-style: none; margin: 0; padding: 0; }
.doc-rail li { margin-bottom: 0.45rem; }
.doc-rail a {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 0.3rem 0 0.3rem 0.35rem;
  border-left: 2px solid transparent;
  margin-left: -0.9rem;
  padding-left: 0.7rem;
}
.doc-rail a:hover { border-left-color: var(--accent); color: var(--brand); }
.doc-rail .rail-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- 卡片 / 面板 ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.panel + .panel { margin-top: 1.1rem; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
  margin-bottom: 1.1rem;
}
.section-head h2 { margin: 0; }
.section-head .more { font-size: 0.84rem; }

/* ---------- 首页专项 ---------- */
.hero-band {
  background: var(--brand);
  color: #eaf0f8;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  margin-bottom: 1.6rem;
}
.hero-copy { padding: 2rem 1.8rem; }
.hero-copy h1 { color: #ffffff; font-size: 1.72rem; margin-bottom: 0.7rem; }
.hero-copy p { color: #cfdcec; font-size: 0.96rem; max-width: 34ch; }
.hero-copy .hero-links { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }
.hero-media { min-height: 240px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #23180a;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.62rem 1.15rem;
  border-radius: 6px;
  min-height: 44px;
  line-height: 1.4;
}
.btn:hover { background: #cf9436; color: #1b1305; }
.btn-ghost {
  background: transparent;
  color: #eaf0f8;
  border: 1px solid #5b7aa5;
}
.btn-ghost:hover { background: #1d4b83; color: #ffffff; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.6rem;
}
.stat-strip div {
  background: var(--surface);
  padding: 0.9rem 1rem;
}
.stat-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--brand);
}
.stat-strip span { font-size: 0.78rem; color: var(--muted); }

.cat-stack { display: grid; gap: 0.7rem; }
.cat-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}
.cat-card strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.cat-card span { font-size: 0.83rem; color: var(--muted); }

.feat-list { display: grid; gap: 1rem; }
.feat-item {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.feat-item:last-child { border-bottom: 0; padding-bottom: 0; }
.feat-item img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; }
.feat-item h3 { margin-bottom: 0.25rem; font-size: 1.02rem; }
.feat-item p { font-size: 0.88rem; margin-bottom: 0.3rem; color: var(--ink-soft); }
.meta { font-size: 0.76rem; color: var(--muted); letter-spacing: 0.02em; }

.wide-figure { margin: 0 0 1.4rem; }
.wide-figure img { border-radius: var(--radius); }
.wide-figure figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; }

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}
.grid-5 figure { margin: 0; }
.grid-5 img { border-radius: 8px; aspect-ratio: 1 / 1; object-fit: cover; }
.grid-5 figcaption { font-size: 0.74rem; color: var(--muted); margin-top: 0.3rem; }

.two-col-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
.two-col-notes h3 { color: var(--brand); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

.cta-band {
  background: var(--brand-deep);
  color: #dce6f2;
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: #ffffff; margin-bottom: 0.3rem; font-size: 1.2rem; }
.cta-band p { margin: 0; font-size: 0.9rem; color: #b9c8dc; }

/* ---------- 文章页 ---------- */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--brand); }
.breadcrumb span { margin: 0 0.35rem; }

.article-shell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.7rem; }
.article-shell h1 { font-size: 1.72rem; }
.article-meta {
  font-size: 0.82rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
}
.article-body h2 {
  margin-top: 1.7rem;
  padding-left: 0.7rem;
  border-left: 4px solid var(--accent);
}
.article-body h3 { margin-top: 1.2rem; }
.article-body strong { color: var(--ink); }

.inline-figure { margin: 1.4rem 0; }
.inline-figure img { border-radius: 8px; }
.inline-figure figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; }

.figure-right {
  float: right;
  width: 46%;
  margin: 0.2rem 0 1rem 1.3rem;
}
.figure-right img { border-radius: 8px; }
.figure-right figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 0.35rem; }

.pull-quote {
  border-left: 3px solid var(--brand);
  background: #f2f5f9;
  padding: 0.9rem 1.1rem;
  margin: 1.3rem 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
  border-radius: 0 8px 8px 0;
}

.faq-item { margin-bottom: 1rem; }
.faq-item h3 { margin-bottom: 0.3rem; color: var(--brand); }

.article-aside { position: sticky; top: 88px; }
.aside-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}
.aside-card h2 {
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.aside-card ul { list-style: none; margin: 0; padding: 0; }
.aside-card li { margin-bottom: 0.75rem; }
.aside-card li a { font-size: 0.9rem; display: block; line-height: 1.55; }
.aside-card .meta { display: block; margin-top: 0.15rem; }
.aside-card ul + p { font-size: 0.82rem; color: var(--muted); margin: 0.8rem 0 0; }

/* ---------- 栏目页 ---------- */
.cat-intro {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.3rem;
}
.cat-intro h1 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.cat-intro p { margin: 0; font-size: 0.94rem; }

.cat-list { display: grid; gap: 0.9rem; }
.cat-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem;
}
.cat-row img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; }
.cat-row h2 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.cat-row p { font-size: 0.87rem; margin-bottom: 0.25rem; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--brand-deep);
  color: #a9bcd4;
  padding: 1.8rem 0 1.4rem;
  font-size: 0.84rem;
  border-top: 3px solid var(--accent);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.6rem;
  margin-bottom: 1.3rem;
}
.site-footer h3 {
  color: #e6eef8;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: #b7c8dd; }
.site-footer a:hover { color: #ffffff; }
.footer-legal {
  border-top: 1px solid #2a4straight;
  border-top: 1px solid #294162;
  padding-top: 1rem;
  font-size: 0.78rem;
  color: #8ba1bc;
  line-height: 1.7;
}
.footer-legal p { margin: 0 0 0.3em; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .layout-article { grid-template-columns: minmax(0, 1fr) 264px; }
  .doc-rail { display: none; }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  html { font-size: 15.5px; }
  .wrap { padding: 0 0.85rem; }
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
    padding-bottom: 0.7rem;
  }
  .main-nav.is-open { display: block; }
  .header-inner { flex-wrap: wrap; min-height: 60px; padding-top: 0.5rem; }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .main-nav li { width: 100%; }
  .main-nav a {
    display: block;
    width: 100%;
    padding: 0.7rem 0.2rem;
    min-height: 44px;
    border-bottom: 1px solid #24405f;
  }

  .layout-2col,
  .layout-article,
  .hero-band,
  .two-col-notes,
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .hero-media { min-height: 200px; order: -1; }
  .hero-copy { padding: 1.3rem 1.1rem; }
  .hero-copy h1 { font-size: 1.42rem; }
  .article-shell { padding: 1.1rem 1rem; }
  .article-shell h1 { font-size: 1.38rem; }
  .article-aside { position: static; }
  .figure-right { float: none; width: 100%; margin: 1rem 0; }
  .feat-item,
  .cat-row { grid-template-columns: 1fr; }
  .feat-item img,
  .cat-row img { aspect-ratio: 16 / 9; }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
}

@media (max-width: 420px) {
  .grid-5 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
