:root {
  --paper: #f8f1e4;
  --paper-soft: #fffaf0;
  --ink: #20231f;
  --muted: #6d675d;
  --line: rgba(47, 38, 26, .14);
  --red: #a8322d;
  --jade: #23685c;
  --gold: #b9852c;
  --blue: #29486f;
  --plum: #6f3f63;
  --shadow: 0 18px 42px rgba(52, 34, 17, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(184, 133, 44, .18), transparent 26rem),
    radial-gradient(circle at 92% 18%, rgba(35, 104, 92, .16), transparent 24rem),
    linear-gradient(150deg, #fbf7ef 0%, #f1e0c4 52%, #eaf0ec 100%);
  letter-spacing: 0;
}

a,
button {
  font: inherit;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(168, 50, 45, .28);
  background: var(--paper-soft);
  color: var(--red);
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(70, 45, 22, .08);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.top-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--red);
  background: rgba(255, 250, 240, .72);
}

.hero-panel {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(32, 35, 31, .86), rgba(32, 35, 31, .42)),
    repeating-linear-gradient(45deg, rgba(255, 250, 240, .06) 0 11px, transparent 11px 22px),
    linear-gradient(135deg, #5d241f, #1f5b51 58%, #263f61);
  box-shadow: var(--shadow);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  padding: clamp(26px, 6vw, 58px);
  color: #fffaf0;
}

.eyebrow {
  margin: 0 0 10px;
  color: #d9af66;
  font-size: 14px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.08;
  font-weight: 900;
}

h1 span {
  display: block;
}

.hero-content p:last-child {
  max-width: 670px;
  margin-bottom: 0;
  color: rgba(255, 250, 240, .86);
  font-size: 22px;
  line-height: 1.8;
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: clamp(12px, 6vw, 70px);
  opacity: .42;
}

.bagua-disc {
  width: min(52vw, 360px);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  padding: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 250, 240, .4);
}

.bagua-disc span,
.bagua-disc strong {
  display: grid;
  place-items: center;
  min-width: 0;
  border-radius: 8px;
  background: rgba(255, 250, 240, .14);
  color: #fffaf0;
  font-size: 24px;
  font-weight: 900;
}

.bagua-disc strong {
  color: #ffd48a;
  font-size: 58px;
}

.name-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, .72);
}

.name-strip span {
  color: var(--muted);
  font-weight: 700;
}

.name-strip a,
.filter-bar button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  color: var(--ink);
  padding: 0 12px;
  text-decoration: none;
}

.name-strip a:first-of-type,
.filter-bar button.is-active {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.program-section,
.keyword-section {
  margin-top: 26px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.filter-bar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.keyword-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, .76);
  color: #3f3a33;
  text-decoration: none;
  line-height: 1.4;
}

.keyword-grid a:hover {
  border-color: rgba(168, 50, 45, .34);
  color: var(--red);
}

.program-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, .8);
  box-shadow: 0 12px 30px rgba(52, 34, 17, .09);
}

.program-card {
  min-height: 244px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.program-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.program-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: white;
  font-weight: 900;
}

.status {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(32, 35, 31, .06);
  font-size: 12px;
  font-weight: 800;
}

.status.live {
  color: var(--jade);
  background: rgba(35, 104, 92, .12);
}

.program-card h3 {
  margin-bottom: 0;
  font-size: 21px;
}

.program-card p {
  margin-bottom: 0;
  color: #504a41;
  line-height: 1.7;
}

.program-card a,
.program-card button {
  min-height: 40px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 14px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
}

.program-card a {
  background: var(--red);
  color: white;
}

.program-card button {
  background: rgba(41, 72, 111, .08);
  border-color: rgba(41, 72, 111, .18);
  color: var(--blue);
}

@media (max-width: 920px) {
  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 22px, 1180px);
    padding-top: 14px;
  }

  .site-header,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-panel {
    min-height: 330px;
  }

  .hero-bg {
    justify-content: center;
    align-items: flex-start;
    padding: 22px 0 0;
  }

  .bagua-disc {
    width: min(54vw, 190px);
  }

  .bagua-disc span {
    font-size: 18px;
  }

  .bagua-disc strong {
    font-size: 34px;
  }

  .hero-content {
    padding: 146px 18px 22px;
  }

  h1 {
    font-size: 30px;
  }

  .hero-content p:last-child {
    font-size: 18px;
    line-height: 1.65;
  }

  .filter-bar {
    justify-content: flex-start;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .program-card {
    min-height: 218px;
  }
}
