:root {
  --green: #00a73d;
  --green-dark: #073d31;
  --green-soft: #e8f4ec;
  --ink: #24332f;
  --muted: #6f7c77;
  --line: #e6ece8;
  --paper: #ffffff;
  --canvas: #f5f7f5;
  --shadow: 0 16px 42px rgba(9, 69, 48, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header { background: var(--green); color: #fff; }

.topbar,
.nav-inner,
.page-width { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img { width: min(400px, 82vw); height: auto; }

.account-ghost {
  display: flex;
  gap: 16px;
  color: rgba(255, 255, 255, .92);
  font-size: 14px;
  white-space: nowrap;
}

.account-ghost a:hover { color: #d5ffdd; }

.nav-bar { background: #fff; border-bottom: 1px solid var(--line); }

.nav-inner { display: flex; overflow-x: auto; }

.nav-link {
  min-width: 116px;
  padding: 11px 18px;
  color: #5c6864;
  text-align: center;
  font-weight: 700;
  border-right: 1px solid #f0f3f1;
  transition: background .2s ease, color .2s ease;
}

.nav-link:hover,
.nav-link.is-current { color: #fff; background: var(--green); }

.hero { position: relative; background: #f3f0e9; overflow: hidden; }

.hero-slides { position: relative; aspect-ratio: 1920 / 540; min-height: 280px; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .65s ease;
}

.hero-slide.is-active { opacity: 1; }

.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(255,255,255,.35);
}

.hero-dot.is-active { background: var(--green); }

.section-shell { padding: 38px 0 62px; }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-heading h1,
.section-heading h2 { margin: 0; font-size: 20px; color: var(--green); }

.section-heading a { color: var(--green); font-size: 13px; }

.section-heading a:hover { text-decoration: underline; }

.live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-top: 22px;
}

.live-card,
.content-card,
.sidebar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.live-card { overflow: hidden; }

.live-cover { position: relative; aspect-ratio: 230 / 147; overflow: hidden; background: #d8e7df; }
.live-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.live-card:hover .live-cover img { transform: scale(1.04); }

.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 8px;
  color: #fff;
  background: var(--green);
  border-radius: 4px;
  font-size: 12px;
}

.live-info {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 12px;
  color: #fff;
  background: var(--green);
}

.avatar { width: 58px; height: 58px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); }
.live-info h3 { margin: 0 0 2px; font-size: 16px; }
.live-info p { margin: 0; color: rgba(255,255,255,.88); font-size: 12px; line-height: 1.65; }
.live-info .heat { float: right; }

.about-panel {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: 28px;
  margin-top: 34px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-panel h2 { margin: 0 0 12px; font-size: 22px; color: var(--green); }
.about-panel p { margin: 0 0 12px; color: #56625d; }
.about-panel strong { color: var(--green-dark); }

.about-visual {
  min-height: 240px;
  border-radius: 4px;
  background: linear-gradient(135deg, #dff4e5, #f6eee0);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.about-visual img { width: 100%; height: 100%; object-fit: cover; }

.footer { padding: 26px 0 30px; color: #fff; background: var(--green); }
.footer-inner { width: min(1100px, calc(100% - 40px)); margin: 0 auto; text-align: center; }
.footer p { margin: 5px 0; font-size: 13px; }
.footer a { text-decoration: underline; text-underline-offset: 3px; }

.inner-hero {
  min-height: 178px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(120deg, rgba(0, 76, 53, .93), rgba(0, 167, 61, .8)), url("/assets/xhbf-hero2.png") center / cover;
}

.inner-hero h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: .12em; }

.inner-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 58px;
}

.sidebar-card { align-self: start; overflow: hidden; }
.sidebar-title { padding: 15px 18px; color: #fff; background: var(--green); font-size: 17px; font-weight: 700; }
.sidebar-link { display: block; padding: 12px 18px; border-bottom: 1px solid var(--line); color: #5c6864; }
.sidebar-link:hover, .sidebar-link.is-current { color: var(--green); background: #f4faf5; }

.content-card { padding: 28px clamp(20px, 4vw, 48px); }
.content-card h2 { margin: 0 0 22px; padding-bottom: 16px; border-bottom: 1px dashed #ccd9d1; color: var(--green); font-size: 27px; }
.content-card h3 { margin: 25px 0 7px; color: var(--green-dark); font-size: 18px; }
.content-card p { margin: 10px 0; color: #53615a; }
.content-card ol { padding-left: 24px; color: #53615a; }
.content-card li { padding: 3px 0; }

.notice {
  margin: 18px 0 22px;
  padding: 15px 17px;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
  color: #395248;
}

.detail-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: start; }
.detail-cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #d9e9df; }
.detail-side { padding: 20px; background: #f4fbf5; border: 1px solid #d8ebdc; }
.detail-side h3 { margin-top: 0; }
.detail-side p { margin: 5px 0; }

.empty-note { margin: 24px 0 0; color: var(--muted); }

@media (max-width: 820px) {
  .topbar, .nav-inner, .page-width, .footer-inner { width: min(100% - 28px, 680px); }
  .topbar { min-height: 72px; }
  .account-ghost { display: none; }
  .nav-link { min-width: 104px; padding: 9px 12px; font-size: 13px; }
  .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .about-panel, .detail-grid { grid-template-columns: 1fr; }
  .inner-layout { grid-template-columns: 1fr; }
  .sidebar-card { display: grid; grid-template-columns: repeat(3, 1fr); }
  .sidebar-title { grid-column: 1 / -1; }
  .sidebar-link { text-align: center; font-size: 13px; padding: 9px 6px; }
}

@media (max-width: 480px) {
  .hero-slides { min-height: 190px; }
  .section-shell { padding-top: 26px; }
  .live-grid { grid-template-columns: 1fr; }
  .about-panel { padding: 18px; }
  .content-card { padding: 22px 18px; }
  .content-card h2 { font-size: 23px; }
  .footer p { font-size: 12px; }
}
