/* ============================================================
   博彩之家 / betcnvip.com
   Editorial split-navigation layout, deep emerald + warm neutral
   ============================================================ */

:root {
  --ink: #12221c;
  --ink-soft: #40514a;
  --ink-muted: #6d7d76;
  --paper: #eef1ec;
  --paper-raised: #f8faf7;
  --rule: #d3dad3;
  --emerald: #1f6b52;
  --emerald-deep: #143f32;
  --amber: #c98a2b;
  --amber-soft: #f0e2c6;
  --shadow: 0 1px 2px rgba(18, 34, 28, 0.06), 0 12px 28px -18px rgba(18, 34, 28, 0.35);
  --radius: 4px;
  --font-display: "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--emerald); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
h2 { font-size: clamp(1.28rem, 2.3vw, 1.62rem); font-weight: 700; margin-top: 1.9em; }
h3 { font-size: 1.12rem; font-weight: 700; margin-top: 1.4em; }

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

/* ---------------- Shell: top segmented strip + header ---------------- */

.site-strip {
  background: var(--emerald-deep);
  color: #cfe0d8;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.site-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.42rem 1.1rem;
}
.site-strip span { white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.1rem;
}

.site-header {
  background: var(--paper-raised);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: var(--radius); }
.brand .brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.86rem;
  font-family: var(--font-body);
  cursor: pointer;
}
.nav-toggle:active { transform: translateY(1px); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 0.5rem 0.8rem;
  min-height: 40px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  border-radius: var(--radius);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover { text-decoration: none; color: var(--emerald); background: #e7ece5; }
.main-nav a[aria-current="page"] {
  color: var(--emerald-deep);
  border-bottom-color: var(--amber);
  font-weight: 600;
}

/* ---------------- Page body grid ---------------- */

.page {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2.2rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
  align-items: start;
}

.rail {
  position: sticky;
  top: 1.2rem;
  border-left: 3px solid var(--emerald);
  padding: 0.2rem 0 0.2rem 1rem;
}
.rail h2 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin: 0 0 0.8rem;
}
.rail ul { list-style: none; margin: 0; padding: 0; }
.rail li { margin-bottom: 0.15rem; }
.rail a {
  display: block;
  padding: 0.42rem 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}
.rail a:hover { color: var(--emerald); text-decoration: none; }
.rail .rail-note {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink-muted);
  border-top: 1px solid var(--rule);
  padding-top: 0.8rem;
}

.content { min-width: 0; }

/* ---------------- Hero (asymmetric, image offset) ---------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
.hero-copy .kicker {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emerald);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.hero-copy h1 { margin-bottom: 0.5em; }
.hero-copy p { color: var(--ink-soft); font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }
.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: auto -14px -14px auto;
  width: 44%;
  height: 42%;
  border-right: 3px solid var(--amber);
  border-bottom: 3px solid var(--amber);
  border-radius: 0 0 var(--radius) 0;
  pointer-events: none;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.94rem;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background-color 0.16s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--emerald); color: #f4f8f5; }
.btn-primary:hover { background: var(--emerald-deep); color: #ffffff; }
.btn-ghost { background: transparent; color: var(--emerald-deep); border-color: var(--emerald); }
.btn-ghost:hover { background: #e2ebe6; }
.btn:active { transform: translateY(1px); }

/* ---------------- Section rhythm ---------------- */

.section { padding: 2.1rem 0; border-bottom: 1px solid var(--rule); }
.section:last-of-type { border-bottom: 0; }
.section-head { margin-bottom: 1.2rem; }
.section-head h2 { margin: 0 0 0.3rem; }
.section-head p { margin: 0; color: var(--ink-muted); font-size: 0.92rem; }

/* stat band */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.4rem;
}
.stat-band > div { background: var(--paper-raised); padding: 1rem 1.1rem; }
.stat-band strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--emerald-deep);
  line-height: 1.2;
}
.stat-band span { font-size: 0.8rem; color: var(--ink-muted); }

/* lead story block: big left + list right */
.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.6rem;
}
.lead-figure { margin: 0; }
.lead-figure img {
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow);
}
.lead-figure figcaption {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 0.5rem;
}
.brief-list { list-style: none; margin: 0; padding: 0; }
.brief-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.brief-list li:first-child { padding-top: 0; }
.brief-list li:last-child { border-bottom: 0; }
.brief-list a { font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); }
.brief-list a:hover { color: var(--emerald); }
.brief-list time { display: block; font-size: 0.78rem; color: var(--ink-muted); margin-top: 0.2rem; }

/* article cards grid, uneven */
.card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.2rem;
}
.card {
  grid-column: span 2;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card.is-wide { grid-column: span 3; }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-body { padding: 0.95rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.card-body .tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
}
.card-body h3 { margin: 0; font-size: 1.03rem; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--emerald); }
.card-body p { margin: 0; font-size: 0.86rem; color: var(--ink-muted); line-height: 1.65; }

/* two column pitch */
.pitch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.pitch {
  background: var(--paper-raised);
  border-left: 3px solid var(--emerald);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.2rem;
}
.pitch h3 { margin-top: 0; }
.pitch p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* feature split with image right */
.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 1.8rem;
  align-items: center;
}
.split-feature img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.split-feature.flip { direction: rtl; }
.split-feature.flip > * { direction: ltr; }

/* numbered steps */
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.step-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  margin: 0;
}
.step-list .num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--amber);
  border-top: 2px solid var(--amber);
  padding-top: 0.25rem;
}
.step-list strong { display: block; font-size: 0.98rem; }
.step-list span { font-size: 0.88rem; color: var(--ink-muted); }

/* faq */
.faq-list { display: grid; gap: 0.9rem; }
.faq-item { background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.95rem 1.1rem; }
.faq-item h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.faq-item p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* cta band */
.cta-band {
  background: var(--emerald-deep);
  color: #e6efe9;
  border-radius: var(--radius);
  padding: 1.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
}
.cta-band h2 { color: #ffffff; margin: 0 0 0.3rem; font-size: 1.3rem; }
.cta-band p { margin: 0; font-size: 0.9rem; color: #c6d8ce; }
.cta-band .btn-primary { background: var(--amber); color: #20180a; }
.cta-band .btn-primary:hover { background: #dda03f; color: #20180a; }

/* ---------------- Category page ---------------- */

.cat-hero { padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.6rem; }
.breadcrumb { font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 0.8rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.35rem; color: var(--rule); }
.breadcrumb a { color: var(--ink-soft); }

.post-list { display: grid; gap: 1.2rem; }
.post-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 1.1rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.2rem;
}
.post-row:last-child { border-bottom: 0; }
.post-row img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.post-row h3 { margin: 0 0 0.3rem; font-size: 1.08rem; }
.post-row h3 a { color: var(--ink); }
.post-row p { margin: 0 0 0.35rem; font-size: 0.9rem; color: var(--ink-muted); }
.post-row time { font-size: 0.78rem; color: var(--ink-muted); }

/* ---------------- Article page ---------------- */

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

.article-head { margin-bottom: 1.2rem; }
.article-head h1 { margin-bottom: 0.45em; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--rule);
  padding-top: 0.7rem;
}
.article-meta .cat-link { color: var(--emerald); font-weight: 600; }

.article-body { font-size: 1.02rem; }
.article-body > p:first-of-type { font-size: 1.08rem; color: var(--ink-soft); }

.article-hero { margin: 0 0 1.5rem; }
.article-hero img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--shadow); }
.article-hero figcaption { font-size: 0.78rem; color: var(--ink-muted); margin-top: 0.5rem; }

.inline-figure { margin: 1.6rem 0; }
.inline-figure img { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow); }
.inline-figure figcaption { font-size: 0.78rem; color: var(--ink-muted); margin-top: 0.5rem; }

.figure-right {
  float: right;
  width: 42%;
  margin: 0.3rem 0 1rem 1.4rem;
}
.figure-right img { border-radius: var(--radius); box-shadow: var(--shadow); }
.figure-right figcaption { font-size: 0.78rem; color: var(--ink-muted); margin-top: 0.45rem; }

.callout {
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
  padding: 0.9rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.4rem 0;
  font-size: 0.94rem;
}
.callout p:last-child { margin-bottom: 0; }

.article-foot {
  clear: both;
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.article-foot a { font-weight: 600; }

/* aside */
.article-aside {
  position: sticky;
  top: 1.2rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--emerald);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.2rem;
}
.article-aside h2 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 0.85rem;
  font-weight: 600;
}
.article-aside ul { list-style: none; margin: 0; padding: 0; }
.article-aside li { margin: 0 0 0.85rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--rule); }
.article-aside li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.article-aside li a { display: block; color: var(--ink); font-size: 0.92rem; line-height: 1.5; }
.article-aside li a:hover { color: var(--emerald); }
.article-aside li time { display: block; font-size: 0.74rem; color: var(--ink-muted); margin-top: 0.25rem; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--emerald-deep);
  color: #c3d5cb;
  font-size: 0.86rem;
  margin-top: 2rem;
}
.site-footer .wrap { padding: 2rem 1.1rem 1.4rem; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-grid h3 {
  color: #eef5f1;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.site-footer a { color: #c3d5cb; }
.site-footer a:hover { color: #ffffff; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.footer-brand img { width: 32px; height: 32px; border-radius: var(--radius); }
.footer-brand span { color: #ffffff; font-family: var(--font-display); font-size: 1.02rem; }
.footer-brand p { margin: 0; font-size: 0.84rem; line-height: 1.6; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  padding-top: 1rem;
  font-size: 0.78rem;
  color: #a3b9ad;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 980px) {
  .page { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .rail { position: static; border-left: 0; border-top: 2px solid var(--emerald); padding: 0.8rem 0 0; }
  .rail ul { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .article-aside { position: static; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .site-header .wrap { min-height: 60px; flex-wrap: wrap; padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .nav-toggle { display: inline-flex; }
  .main-nav { width: 100%; display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 0.4rem; }
  .main-nav a { border-bottom: 1px solid var(--rule); border-radius: 0; padding: 0.7rem 0.2rem; }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--rule); border-left: 2px solid var(--amber); padding-left: 0.6rem; }

  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .hero-media::after { display: none; }

  .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-grid { grid-template-columns: minmax(0, 1fr); }
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .card, .card.is-wide { grid-column: span 1; }
  .pitch-grid { grid-template-columns: minmax(0, 1fr); }
  .split-feature { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .split-feature.flip { direction: ltr; }
  .cta-band { grid-template-columns: minmax(0, 1fr); padding: 1.4rem; }
  .post-row { grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
  .post-row img { aspect-ratio: 16 / 9; }
  .figure-right { float: none; width: 100%; margin: 1.2rem 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .site-strip .wrap { justify-content: flex-start; }
}

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