/* 23-pulse-uc-drift：杂志式首页 + 单层顶栏（必应蓝 / UC 移动友好） */
:root {
  --bg-blue: #0078d4;
  --bg-blue-dark: #005a9e;
  --bg-uc: #ff6a00;
  --bg-ink: #0f172a;
  --bg-muted: #475569;
  --bg-line: #e2e8f0;
  --bg-panel: #f1f5f9;
  --bg-surface: #fff;
  --bg-radius: 14px;
  --bg-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --bg-page-gutter: clamp(16px, 4vw, 24px);
}

body.layout-pulseuc {
  background: var(--bg-panel);
  color: var(--bg-ink);
}

/* ----- mast ----- */
.bg-mast {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--bg-line);
  box-shadow: 0 4px 20px rgba(0, 120, 212, 0.06);
}
.bg-mast__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 12px var(--bg-page-gutter);
  max-width: 1180px;
  margin: 0 auto;
}
.bg-mast__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1 1 200px;
}
.bg-mast__titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bg-mast__name {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--bg-blue-dark);
}
.bg-mast__sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--bg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bg-mast__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.bg-mast__link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: var(--bg-muted);
  text-decoration: none;
}
.bg-mast__link:hover,
.bg-mast__link.is-active {
  color: var(--bg-blue-dark);
  background: rgba(0, 120, 212, 0.1);
}
.bg-mast__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.bg-mast__ghost,
.bg-mast__cta {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.bg-mast__ghost {
  border: 1px solid var(--bg-line);
  color: var(--bg-muted);
  background: var(--bg-surface);
}
.bg-mast__cta {
  background: linear-gradient(135deg, var(--bg-blue), var(--bg-blue-dark));
  color: #fff;
}

/* ----- hub home ----- */
.bg-hub__hero {
  padding: 36px 0 28px;
  background: linear-gradient(180deg, #e8f4fd 0%, var(--bg-panel) 100%);
}
.bg-hub__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--bg-page-gutter);
}
@media (max-width: 900px) {
  .bg-hub__hero-grid {
    grid-template-columns: 1fr;
  }
}
.bg-hub__kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--bg-blue);
}
.bg-hub__h1 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
}
.bg-hub__lead {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--bg-muted);
  max-width: 58ch;
}
.bg-hub__hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bg-hub__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.bg-hub__btn--pri {
  background: var(--bg-blue);
  color: #fff;
}
.bg-hub__btn--sec {
  background: var(--bg-uc);
  color: #fff;
}
.bg-hub__btn--line,
.bg-hub__btn--solid {
  border: 1px solid var(--bg-line);
  color: var(--bg-blue-dark);
  background: #fff;
}
.bg-hub__btn--solid {
  background: var(--bg-blue);
  color: #fff;
  border-color: transparent;
}
.bg-hub__hero-media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--bg-line);
  box-shadow: var(--bg-shadow);
}
.bg-hub__photo-mark {
  position: relative;
  display: block;
  overflow: hidden;
}
.bg-hub__photo-mark .site-img-wm {
  top: clamp(10px, 2vw, 14px);
  bottom: auto;
  right: clamp(10px, 2vw, 14px);
  z-index: 5;
}
.bg-hub__hero-media img:not(.site-img-wm__logo) {
  display: block;
  width: 100%;
  height: auto;
  min-height: 220px;
  object-fit: cover;
}

.bg-hub__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 var(--bg-page-gutter) 28px;
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .bg-hub__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.bg-hub__metric {
  padding: 14px;
  border-radius: var(--bg-radius);
  background: var(--bg-surface);
  border: 1px solid var(--bg-line);
  text-align: center;
}
.bg-hub__metric-v {
  display: block;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--bg-blue);
}
.bg-hub__metric-l {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--bg-muted);
}

.bg-hub__magazine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 24px;
  padding-bottom: 40px;
  max-width: 1180px;
}
@media (max-width: 960px) {
  .bg-hub__magazine {
    grid-template-columns: 1fr;
  }
}
.bg-hub__main-head,
.bg-hub__rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.bg-hub__sec-h,
.bg-hub__rail-h {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
}
.bg-hub__mini {
  font-size: 13px;
  font-weight: 800;
  color: var(--bg-blue);
  text-decoration: none;
}
.bg-hub__spotlight {
  margin-bottom: 20px;
  border-radius: 16px;
  border: 1px solid var(--bg-line);
  background: var(--bg-surface);
  box-shadow: var(--bg-shadow);
}
.bg-hub__spotlight-link {
  display: block;
  padding: 22px;
  text-decoration: none;
  color: inherit;
}
.bg-hub__spotlight-link time {
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-muted);
}
.bg-hub__spotlight-link h3 {
  margin: 10px 0;
  font-size: 1.25rem;
  font-weight: 900;
}
.bg-hub__spotlight-link p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--bg-muted);
}
.bg-hub__read {
  font-size: 14px;
  font-weight: 800;
  color: var(--bg-blue);
}
.bg-hub__stream {
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 16px;
  border: 1px solid var(--bg-line);
  background: var(--bg-surface);
  overflow: hidden;
}
.bg-hub__stream-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--bg-line);
}
.bg-hub__stream li:last-child .bg-hub__stream-item {
  border-bottom: 0;
}
.bg-hub__stream-item time {
  font-size: 12px;
  font-weight: 700;
  color: var(--bg-muted);
  white-space: nowrap;
}
.bg-hub__stream-title {
  font-size: 14px;
  font-weight: 800;
}
.bg-hub__rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bg-hub__dl-card,
.bg-hub__log-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--bg-line);
  background: var(--bg-surface);
}
.bg-hub__dl-card p,
.bg-hub__log-card p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--bg-muted);
}
.bg-hub__log-ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bg-hub__log-ul li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--bg-line);
  font-size: 13px;
}
.bg-hub__log-ul li:last-child {
  border-bottom: 0;
}
.bg-hub__log-ver {
  font-weight: 900;
  color: var(--bg-blue);
  margin-right: 8px;
}
.bg-hub__strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bg-hub__strip-cell {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--bg-line);
}
.bg-hub__strip-cell img:not(.site-img-wm__logo) {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.bg-hub__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 28px;
  max-width: 1180px;
}
.bg-hub__pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--bg-blue-dark);
  background: #fff;
  border: 1px solid var(--bg-line);
}

.bg-hub__cards {
  padding-bottom: 48px;
  max-width: 1180px;
}
.bg-hub__card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 800px) {
  .bg-hub__card-grid {
    grid-template-columns: 1fr;
  }
}
.bg-hub__card {
  border-radius: 14px;
  border: 1px solid var(--bg-line);
  background: var(--bg-surface);
}
.bg-hub__card a {
  display: block;
  padding: 16px;
  text-decoration: none;
  color: inherit;
}
.bg-hub__card time {
  font-size: 12px;
  font-weight: 700;
  color: var(--bg-muted);
}
.bg-hub__card h3 {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 900;
}

/* ----- footer ----- */
.bg-foot {
  background: var(--bg-ink);
  color: #cbd5e1;
  padding: 40px 0 28px;
}
.bg-foot__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 760px) {
  .bg-foot__grid {
    grid-template-columns: 1fr;
  }
}
.bg-foot__name {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
}
.bg-foot__desc,
.bg-foot__contact li,
.bg-foot__nav a {
  font-size: 14px;
  line-height: 1.55;
  color: #94a3b8;
}
.bg-foot__k {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--bg-blue);
}
.bg-foot__contact ul,
.bg-foot__nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bg-foot__nav a:hover {
  color: #fff;
}
.bg-foot__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  font-size: 13px;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}
.bg-foot__hint {
  color: var(--bg-blue);
  font-weight: 700;
}

/* 覆盖 pulseuc-site.css 中遗留的 nebula 三列首屏 / sticky 锚点轨 */
.bg-hub[data-bg-hub-home="1"] .bg-hub__hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
}
.bg-hub[data-bg-hub-home="1"] .bg-hub__rail {
  position: static;
  top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.bg-hub[data-bg-hub-home="1"] .bg-hub__magazine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}
@media (max-width: 960px) {
  .bg-hub[data-bg-hub-home="1"] .bg-hub__magazine {
    grid-template-columns: 1fr;
  }
  .bg-hub[data-bg-hub-home="1"] .bg-hub__rail {
    display: flex;
  }
}
