/* zhajinhuastrategy.com - 炸金花站差异化：深色头部+顶部标语条，金色点缀，模块布局与牛牛站不同 */
:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --border: rgba(0,0,0,.1);
  --text: #1e293b;
  --muted: #64748b;
  --accent: #b8860b;
  --accent-hover: #996f09;
  --gold: #d4a017;
  --gold-light: #fef3c7;
  --header-dark-bg: #1a1a2e;
  --header-dark-text: #f1f5f9;
  --header-dark-muted: #94a3b8;
  --max-width: 1200px;
  --header-h: 56px;
  --top-bar-h: 36px;
  --drawer-width: 280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(var(--max-width), 92vw);
  margin-left: auto;
  margin-right: auto;
}

/* ========== 顶部横幅 ========== */
.banner {
  background: #fff center/cover no-repeat;
  padding: 0;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
}
.banner .container { width: 100%; max-width: none; }
.banner-text {
  margin: 0;
  font-size: 14px;
  color: #1e293b;
  letter-spacing: .05em;
  text-shadow: 0 0 8px rgba(255,255,255,.9);
}
.banner:not(.banner-has-img) {
  background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
  padding: 10px 0;
}
.banner:not(.banner-has-img) .banner-text { color: #92400e; }

/* ========== 头部：简洁浅色（炸金花站） ========== */
.site-header { position: relative; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 12px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
/* 简洁头部：白底、深色文字、金色点缀 */
.site-header.header-clean .header-inner {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.site-header.header-clean .logo { color: var(--text); }
.site-header.header-clean .logo-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}
.site-header.header-clean .nav-desktop {
  color: var(--muted);
  gap: 28px;
  font-size: 15px;
}
.site-header.header-clean .nav-desktop a:hover,
.site-header.header-clean .nav-desktop a.active { color: var(--gold); font-weight: 500; }
.site-header.header-clean .menu-toggle { color: var(--text); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
}
.logo img { height: 42px; width: auto; max-width: 160px; object-fit: contain; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 15px;
}
.nav-desktop a:hover,
.nav-desktop a.active { color: var(--text); }

/* 汉堡按钮：靠右 */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  margin-left: auto;
}

/* ========== 手机端抽屉：从右侧滑出 ========== */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
}
.nav-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .25s ease;
}
.nav-drawer.is-open .drawer-backdrop { opacity: 1; }

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--drawer-width);
  max-width: 90vw;
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 24px rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .25s ease;
}
.nav-drawer.is-open .drawer-panel { transform: translateX(0); }

/* 简洁头时抽屉为浅色 */
body:has(.header-clean) .nav-drawer .drawer-panel {
  background: #fff;
  border-left-color: var(--border);
}
body:has(.header-clean) .drawer-head { border-bottom-color: var(--border); }
body:has(.header-clean) .drawer-head strong,
body:has(.header-clean) .drawer-close { color: var(--text); }
body:has(.header-clean) .drawer-links a { color: var(--muted); }
body:has(.header-clean) .drawer-links a:hover { background: var(--surface); color: var(--gold); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.drawer-head strong { font-size: 1.1rem; }
.drawer-close {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.drawer-links {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-links a {
  display: block;
  padding: 14px 16px;
  color: var(--muted);
  border-radius: 10px;
}
.drawer-links a:hover { background: rgba(0,0,0,.06); color: var(--text); }

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .logo-text { display: none; }
}

/* ========== 首页大图 Hero ========== */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* 炸金花站：简洁 Hero，浅色遮罩、深色文字 */
.hero-minimal { min-height: 320px; }
.hero-minimal .hero-content { padding: 48px 0 52px; text-align: center; }
.hero-minimal .hero-bg::after {
  background: linear-gradient(180deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.92) 100%);
}
.hero-minimal .hero-title-only {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin: 0 0 24px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .02em;
}
.hero-minimal .hero-actions { justify-content: center; gap: 14px; }
.hero-minimal .btn-primary { background: var(--gold); color: #1a1a2e; }
.hero-minimal .btn-primary:hover { background: #c99410; color: #fff; }
.hero-minimal .btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0,0,0,.2);
}
.hero-minimal .btn-secondary:hover { background: var(--surface); border-color: var(--gold); color: var(--gold); }

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.3) 0%, rgba(255,255,255,.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 48px 0 56px;
}
.hero-kicker {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(37,99,235,.15);
  color: #1e40af;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 14px;
  font-weight: 700;
}
.hero-lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: background .2s, color .2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: #f1f5f9; }
.btn-gold {
  background: var(--gold);
  color: #1a1a2e;
  border: none;
}
.btn-gold:hover { background: #c99410; color: #fff; }

/* ========== 内容区块 ========== */
.section {
  padding: 48px 0;
}
.section-alt {
  background: var(--gold-light);
  border-top: 1px solid rgba(212,160,23,.15);
  border-bottom: 1px solid rgba(212,160,23,.15);
}
.section-title-center { text-align: center; }
.section-lead-center { text-align: center; margin-left: auto; margin-right: auto; }
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 16px;
  font-weight: 700;
}
.section-lead {
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 720px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list strong { color: var(--text); margin-right: 8px; }
.feature-list-dots { list-style: disc; padding-left: 1.4em; }
.feature-list-dots li { border-bottom: none; padding: 6px 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card-grid-large {
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 640px) {
  .card-grid-large { grid-template-columns: 1fr; }
}
.card {
  display: block;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover {
  border-color: rgba(37,99,235,.4);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.card-gold {
  background: #fff;
  border-color: rgba(212,160,23,.25);
  border-left: 4px solid var(--gold);
}
.card-gold:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(212,160,23,.2);
}
.card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* 步骤列表 */
.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.step-list li {
  position: relative;
  padding: 16px 0 16px 52px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  counter-increment: step;
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 14px;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.step-list strong { color: var(--text); }
.step-list-gold li::before { background: var(--gold); color: #1a1a2e; }

/* 牌型一览 */
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.type-item {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.type-name {
  font-weight: 700;
  color: var(--text);
  font-size: 1.1rem;
}
.type-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.type-grid-compact { grid-template-columns: 1fr; gap: 12px; }
.type-item-dark {
  background: rgba(26,26,46,.04);
  border-color: rgba(212,160,23,.2);
}

/* 两栏布局：牌型 + 术语 */
.section-two-col { padding: 48px 0; }
.two-col-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 768px) {
  .two-col-wrap { grid-template-columns: 1fr; }
}
.two-col-block h3 {
  font-size: 1.25rem;
  margin: 0 0 12px;
  color: var(--text);
}
.two-col-block .section-lead { margin-bottom: 16px; }

/* 术语网格 */
.term-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.term-grid-compact { grid-template-columns: 1fr; gap: 10px; }
.term-item {
  padding: 14px 18px;
  background: var(--surface);
  border-radius: 10px;
  border-left: 4px solid var(--gold);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.term-item-dark {
  background: rgba(26,26,46,.04);
  border-left-color: var(--gold);
}
.term-item strong { color: var(--text); margin-right: 6px; }

.rules-preview .feature-list li a,
.section-lead a { color: var(--accent); }
.section-lead a:hover { text-decoration: underline; }

.cta {
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.cta-text {
  margin: 0;
  color: var(--muted);
}
.cta-text a { color: var(--accent); }
.cta-text a:hover { text-decoration: underline; }

/* ========== 内页通用 ========== */
.page-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 8px;
}
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.breadcrumb a { color: var(--accent); }
.content-wrap {
  padding: 32px 0 48px;
}
.content-wrap h2 { margin-top: 2rem; font-size: 1.35rem; }
.content-wrap p, .content-wrap li { color: var(--muted); line-height: 1.7; }
.content-wrap ul { padding-left: 1.4em; }

.faq-list { padding: 0; margin: 0; list-style: none; }
.faq-list details {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.faq-list summary { cursor: pointer; font-weight: 600; }
.faq-list p { margin: 12px 0 0; color: var(--muted); }

/* ========== 页脚 ========== */
.site-footer {
  padding: 40px 0 32px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { margin: 0; }

@media (max-width: 768px) {
  .hero { min-height: 360px; }
  .hero-content { padding: 36px 0 44px; }
  .section { padding: 36px 0; }
}
