:root {
  --hb-ink: #2C3338;
  --hb-ink-deep: #1C2125;
  --hb-red: #D64545;
  --hb-sage: #5B8A72;
  --hb-muted: #6A737A;
  --hb-line: #E2E6E8;
  --hb-bg: #F3F5F4;
  --hb-white: #FFFFFF;
  --hb-radius: 12px;
  --hb-shadow: 0 12px 28px rgba(44, 51, 56, 0.08);
  --hb-wrap: 1120px;
  --hb-font: "Source Han Sans SC", "PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --hb-display: "DIN Alternate", "Montserrat", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--hb-font);
  color: var(--hb-ink);
  background: var(--hb-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; }

.hb-wrap {
  width: min(100% - 32px, var(--hb-wrap));
  margin-inline: auto;
}

/* Header */
.hb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hb-line);
}
.hb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}
.hb-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hb-logo img { height: 42px; width: auto; }
.hb-logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--hb-ink);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(44, 51, 56, 0.2);
  position: relative;
  overflow: hidden;
}
.hb-logo-mark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: var(--hb-red);
}
.hb-logo-mark em {
  font-family: var(--hb-display);
  font-style: normal;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.hb-logo-mark-sm { width: 34px; height: 34px; border-radius: 8px; }
.hb-logo-mark-sm::before { height: 7px; }
.hb-logo-mark-sm em { font-size: 11px; margin-top: 4px; }
.hb-logo-text { display: flex; flex-direction: column; gap: 2px; }
.hb-logo-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}
.hb-logo-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--hb-muted);
}
.hb-nav { display: flex; align-items: center; gap: 12px; }
.hb-nav > ul { display: flex; align-items: center; gap: 2px; }
.hb-nav > ul > li { position: relative; }
.hb-nav > ul > li > a {
  display: block;
  padding: 10px 13px;
  font-size: 14px;
  border-radius: 8px;
}
.hb-nav > ul > li.is-active > a,
.hb-nav > ul > li > a:hover {
  background: rgba(214, 69, 69, 0.1);
  color: var(--hb-red);
}
.hb-subnav {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 150px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--hb-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.2s ease;
  z-index: 20;
  overflow: hidden;
}
.hb-nav > ul > li:hover > .hb-subnav {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.hb-subnav a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--hb-line);
}
.hb-subnav a:hover { background: #F7F8F8; color: var(--hb-red); }
.hb-search {
  display: flex;
  background: #F3F5F4;
  border: 1px solid var(--hb-line);
  border-radius: 999px;
  overflow: hidden;
}
.hb-search input {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  width: 136px;
  outline: none;
  font-size: 13px;
}
.hb-search button {
  border: 0;
  background: var(--hb-sage);
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
}
.hb-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--hb-line);
  background: #fff;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.hb-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--hb-ink);
}
.hb-nav-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 33, 37, 0.45);
  z-index: 90;
}
body.nav-open .hb-nav-mask { display: block; }

/* Hero: copy + calendar card */
.hb-hero {
  background:
    linear-gradient(135deg, #FFFFFF 0%, #F3F5F4 45%, #E8EEEA 100%);
  border-bottom: 1px solid var(--hb-line);
  padding: 40px 0 48px;
}
.hb-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}
.hb-hero-copy { animation: hb-rise 0.7s ease both; }
.hb-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--hb-red);
  font-weight: 700;
}
.hb-hero h1 {
  font-family: var(--hb-display);
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.2;
  margin-bottom: 14px;
  max-width: 12em;
}
.hb-hero-desc {
  margin: 0 0 22px;
  color: var(--hb-muted);
  font-size: 16px;
  max-width: 34em;
}
.hb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}
.hb-btn-red {
  background: var(--hb-red);
  color: #fff;
}
.hb-btn-red:hover { filter: brightness(1.05); transform: translateY(-1px); }
.hb-btn-ghost {
  border: 1px solid var(--hb-line);
  background: #fff;
  color: var(--hb-ink);
}
.hb-btn-ghost:hover { border-color: var(--hb-sage); color: var(--hb-sage); }

.hb-calendar {
  background: #fff;
  border: 1px solid var(--hb-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--hb-shadow);
  animation: hb-rise 0.7s 0.08s ease both;
}
.hb-cal-top {
  background: var(--hb-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}
.hb-cal-top span { font-size: 13px; opacity: 0.75; }
.hb-cal-top strong {
  font-family: var(--hb-display);
  font-size: 28px;
  color: #fff;
  background: var(--hb-red);
  padding: 2px 10px;
  border-radius: 8px;
}
.hb-cal-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 14px;
  text-align: center;
  font-size: 13px;
}
.hb-cal-body b { color: var(--hb-muted); font-weight: 600; padding: 6px 0; }
.hb-cal-body > div:not(:has(b)) {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--hb-ink);
}
.hb-cal-body .is-muted { color: #A0A8AE; }
.hb-cal-body .is-today {
  background: var(--hb-red);
  color: #fff;
  font-weight: 800;
}
.hb-cal-body .is-pulse {
  animation: hb-pulse 1.6s ease-in-out infinite;
}
.hb-cal-note {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 13px;
  color: var(--hb-sage);
  font-weight: 600;
}

@keyframes hb-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes hb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214, 69, 69, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(214, 69, 69, 0); }
}

.hb-home-body { padding: 36px 0 56px; }

.hb-section-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.hb-section-hd.light { color: #fff; }
.hb-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--hb-red);
  font-weight: 700;
}
.hb-section-hd.light .hb-eyebrow { color: rgba(255, 255, 255, 0.7); }
.hb-section-hd h2 { font-size: 26px; }
.hb-section-hd.light h2 { color: #fff; }
.hb-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--hb-sage);
}
.hb-more:hover { text-decoration: underline; }

/* Day grid - calendar day tiles */
.hb-block { margin-bottom: 36px; }
.hb-daygrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.hb-daygrid > a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  padding: 14px;
  box-shadow: var(--hb-shadow);
  transition: border-color 0.2s, transform 0.2s;
}
.hb-daygrid > a:hover {
  border-color: var(--hb-red);
  transform: translateY(-2px);
}
.hb-daynum {
  background: #F7F8F8;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-top: 4px solid var(--hb-red);
  min-height: 72px;
}
.hb-daynum strong {
  font-family: var(--hb-display);
  font-size: 26px;
  line-height: 1;
  color: var(--hb-ink);
}
.hb-daynum em {
  font-style: normal;
  font-size: 11px;
  color: var(--hb-muted);
  margin-top: 4px;
}
.hb-daygrid h3 { font-size: 16px; margin-bottom: 6px; }
.hb-daygrid p { margin: 0; font-size: 13px; color: var(--hb-muted); }

/* Week dual columns */
.hb-week {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}
.hb-week-col {
  background: #fff;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  padding: 18px;
  box-shadow: var(--hb-shadow);
}
.hb-week-sage { border-top: 4px solid var(--hb-sage); }
.hb-week-col:first-child { border-top: 4px solid var(--hb-red); }
.hb-week-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--hb-line);
}
.hb-week-hd h2 { font-size: 20px; }
.hb-week-hd a { font-size: 13px; color: var(--hb-sage); }
.hb-week-col li + li {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hb-line);
}
.hb-week-col time {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--hb-red);
  margin-bottom: 4px;
}
.hb-week-sage time { color: var(--hb-sage); }
.hb-week-col h3 { font-size: 15px; margin-bottom: 4px; }
.hb-week-col p { margin: 0; font-size: 13px; color: var(--hb-muted); }
.hb-week-col a:hover h3 { color: var(--hb-red); }
.hb-week-sage a:hover h3 { color: var(--hb-sage); }

/* Agenda band */
.hb-agenda {
  background: var(--hb-ink);
  color: #fff;
  border-radius: 16px;
  padding: 26px 22px 28px;
  animation: hb-rise 0.7s 0.1s ease both;
}
.hb-agenda-list { display: flex; flex-direction: column; }
.hb-agenda-list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}
.hb-agenda-list a:last-child { border-bottom: 0; }
.hb-agenda-list span {
  flex-shrink: 0;
  min-width: 88px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--hb-display);
}
.hb-agenda-list h3 { font-size: 16px; font-weight: 600; }
.hb-agenda-list a:hover h3 { color: #FFB4B4; }

/* Inner */
.hb-crumb {
  background: #fff;
  border-bottom: 1px solid var(--hb-line);
  padding: 12px 0;
  font-size: 13px;
  color: var(--hb-muted);
}
.hb-crumb a:hover { color: var(--hb-red); }
.hb-crumb span { margin: 0 6px; color: #B0B6BA; }
.hb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 28px 0 48px;
}
.hb-panel {
  background: #fff;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  padding: 18px;
  margin-bottom: 16px;
}
.hb-panel-hd {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--hb-red);
}
.hb-panel-hd h3 { font-size: 16px; }
.hb-page-title {
  font-size: 26px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hb-line);
}
.hb-article-list li + li { border-top: 1px solid var(--hb-line); }
.hb-article-list a {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px 0;
}
.hb-article-list img {
  width: 140px;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  background: #E8ECED;
}
.hb-article-list a:not(:has(img)) { grid-template-columns: 1fr; }
.hb-article-list h2 { font-size: 18px; margin-bottom: 8px; }
.hb-article-list p { margin: 0 0 8px; color: var(--hb-muted); font-size: 14px; }
.hb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--hb-muted);
}
.hb-meta.center { justify-content: center; margin: 12px 0 20px; }
.hb-empty { padding: 40px 0; text-align: center; color: var(--hb-muted); }
.hb-detail > h1 {
  font-size: clamp(24px, 3vw, 32px);
  text-align: center;
}
.hb-richtext { font-size: 16px; line-height: 1.85; }
.hb-richtext p { margin: 0 0 1em; }
.hb-richtext img { margin: 12px auto; border-radius: 10px; }
.hb-pagerow {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--hb-line);
  font-size: 14px;
}
.hb-pagerow a:hover { color: var(--hb-red); }
.hb-rank { counter-reset: rank; }
.hb-rank li {
  counter-increment: rank;
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--hb-line);
  font-size: 14px;
}
.hb-rank li::before {
  content: counter(rank);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #F3F5F4;
  color: var(--hb-ink);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hb-rank li:nth-child(-n+3)::before {
  background: var(--hb-red);
  color: #fff;
}
.hb-side-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--hb-line);
  font-size: 14px;
}
.hb-side-list a:hover, .hb-rank a:hover { color: var(--hb-red); }
.hb-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hb-tags a {
  font-size: 12px;
  padding: 4px 10px;
  background: #F3F5F4;
  color: var(--hb-ink);
  border-radius: 999px;
}
.hb-tags a:hover { background: var(--hb-red); color: #fff; }
.hb-ad { font-size: 14px; color: var(--hb-muted); }
.hb-pagination { margin-top: 20px; }
.hb-page {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.hb-page a, .hb-page .dots {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--hb-line);
  background: #fff;
  border-radius: 8px;
  font-size: 14px;
}
.hb-page .active a,
.hb-page a:hover {
  background: var(--hb-ink);
  border-color: var(--hb-ink);
  color: #fff;
}

/* Footer */
.hb-footer {
  background: var(--hb-ink-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 40px 0 24px;
  margin-top: 12px;
}
.hb-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}
.hb-foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #fff;
}
.hb-foot-brand h3 { font-size: 18px; }
.hb-footer h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.hb-footer p { margin: 0 0 8px; font-size: 14px; }
.hb-foot-links li { margin-bottom: 8px; }
.hb-foot-links a:hover { color: #FFB4B4; }
.hb-friendlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}
.hb-friendlinks a:hover { color: #FFB4B4; }
.hb-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}
.hb-copy a { color: rgba(255, 255, 255, 0.65); }

@media (max-width: 980px) {
  .hb-hero-grid { grid-template-columns: 1fr; }
  .hb-daygrid { grid-template-columns: 1fr; }
  .hb-week { grid-template-columns: 1fr; }
  .hb-layout { grid-template-columns: 1fr; }
  .hb-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hb-nav-toggle { display: inline-flex; }
  .hb-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(82vw, 320px);
    height: 100vh;
    background: #fff;
    z-index: 110;
    padding: 72px 20px 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.12);
  }
  .hb-nav.is-open { transform: none; }
  .hb-nav > ul { flex-direction: column; align-items: stretch; width: 100%; }
  .hb-nav > ul > li > a {
    border-radius: 0;
    border-bottom: 1px solid var(--hb-line);
  }
  .hb-subnav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    background: #F7F8F8;
  }
  .hb-nav > ul > li.is-open > .hb-subnav { display: block; }
  .hb-search { width: 100%; margin-top: 12px; }
  .hb-search input { width: 100%; }
  .hb-article-list a { grid-template-columns: 1fr; }
  .hb-article-list img { width: 100%; height: 160px; }
  .hb-agenda-list a { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .hb-hero-copy, .hb-calendar, .hb-agenda { animation: none; }
  .hb-cal-body .is-pulse { animation: none; }
}
