/* Blog hub — aligned with uitg.co typography and teal accent */
:root {
  --bh-teal: #05cea9;
  --bh-teal-dark: #04a888;
  --bh-text: #2c3e50;
  --bh-muted: #6c757d;
  --bh-border: #e8ecef;
  --bh-card-bg: #fafbfb;
}

.bh-page {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  color: var(--bh-text);
  background: linear-gradient(180deg, #f0fffc 0%, #fff 12rem);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bh-header {
  background: linear-gradient(135deg, rgba(5, 206, 170, 0.92) 0%, rgba(4, 168, 136, 0.95) 100%);
  color: #fff;
  padding: 1.75rem 0 2rem;
  box-shadow: 0 4px 24px rgba(5, 206, 170, 0.25);
}

.bh-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.bh-brand {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}

/* 顶栏返回主站：避免仅白底方块+无文字（logo 加载失败或浅色图时不可见） */
.bh-home-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none !important;
  color: #fff !important;
  max-width: 11rem;
}

.bh-home-lockup:hover .bh-home-lockup__action {
  text-decoration-thickness: 2px;
}

.bh-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  padding: 6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.bh-home-lockup__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.2;
  text-align: left;
}

.bh-home-lockup__name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.bh-home-lockup__action {
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.95;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bh-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.bh-lead {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.96;
  max-width: 44rem;
  line-height: 1.6;
}

.bh-lang {
  flex-shrink: 0;
}

.bh-lang a {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  color: #fff !important;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.bh-lang a:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: #fff;
}

.bh-main {
  padding: 2rem 15px 3rem;
  flex: 1 0 auto;
}

.bh-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bh-teal-dark);
  margin-bottom: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--bh-teal);
}

.bh-card {
  background: var(--bh-card-bg);
  border: 1px solid var(--bh-border);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  min-height: 8.5rem;
  height: 100%;
  margin-bottom: 1.25rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.bh-card:hover {
  box-shadow: 0 8px 28px rgba(44, 62, 80, 0.08);
  border-color: rgba(5, 206, 170, 0.35);
}

.bh-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bh-card li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--bh-border);
  font-size: 1.05rem;
  line-height: 1.5;
}

.bh-card li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bh-card a {
  color: #0d6efd;
  font-weight: 500;
  text-decoration: none;
}

.bh-card a:hover {
  text-decoration: underline;
  color: #0a58ca;
}

.bh-card .bh-note {
  color: var(--bh-muted);
  font-weight: 400;
  font-size: 0.98rem;
}

.bh-footer {
  border-top: 1px solid var(--bh-border);
  padding: 2rem 15px 2.5rem;
  margin-top: auto;
  text-align: center;
  font-size: 0.95rem;
  color: var(--bh-muted);
  background: linear-gradient(180deg, #fff 0%, #f8fafb 100%);
}

.bh-footer a {
  color: var(--bh-teal-dark);
  font-weight: 500;
}

@media (max-width: 576px) {
  .bh-header h1 {
    font-size: 1.35rem;
  }
  .bh-brand {
    flex-direction: column;
    align-items: flex-start;
  }
  .bh-home-lockup {
    max-width: 100%;
  }
}
