
.topic-topbar {
  position: relative;
  z-index: 1;
  padding: 20px clamp(24px, 4vw, 54px) 18px;
  background: #f4f8fb;
  border-bottom: 1px solid rgba(13, 79, 60, .08);
}

.topic-topbar-inner { max-width: 1220px; margin: 0 auto; }

.topic-brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  color: #fff;
  background: var(--topic-accent, #0d4f3c);
  border-radius: 3px;
  box-shadow: 0 8px 18px rgba(13, 79, 60, .12);
}

.topic-brand strong { font: 600 18px/1.4 var(--font-serif, "Noto Serif SC", "Microsoft YaHei", sans-serif); letter-spacing: .04em; }
.topic-brand span { opacity: .78; font: 600 11px/1 var(--font-sans, "Microsoft YaHei", sans-serif); letter-spacing: .1em; }

.topic-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #6d8796;
  font: 12px/1.5 var(--font-sans, "Microsoft YaHei", sans-serif);
}

.topic-breadcrumb a { color: inherit; text-decoration: none; }
.topic-breadcrumb a:hover { color: var(--topic-accent, #0d4f3c); }
.topic-breadcrumb .current { color: var(--topic-accent, #0d4f3c); font-weight: 600; }

.topic-intro { margin-top: 12px; }
.topic-intro h1 { margin: 0; color: #173847; font: 700 clamp(24px, 2.5vw, 34px)/1.25 var(--font-serif, "Noto Serif SC", "Microsoft YaHei", sans-serif); letter-spacing: .05em; }
.topic-intro p { max-width: 780px; margin: 8px 0 0; color: #67818e; font: 14px/1.8 var(--font-sans, "Microsoft YaHei", sans-serif); }

@media (max-width: 720px) {
  .topic-topbar { padding: 16px 18px; }
  .topic-brand { display: block; }
  .topic-brand span { display: block; margin-top: 5px; }
}

.topic-topbar--banner {
  position: relative;
  overflow: hidden;
  padding: 48px 0;
  color: #6d5748;
  background: url('../assets/hero-construction.jpg') center/cover no-repeat;
}

.topic-topbar--banner::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: '';
  background: linear-gradient(90deg, rgba(242,237,232,.98), rgba(242,237,232,.94) 34%, rgba(242,237,232,.72) 62%, rgba(242,237,232,.24));
  pointer-events: none;
}

.topic-banner-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: center;
  padding: 0 32px;
}

.topic-banner-copy { min-width: 0; }
.topic-banner-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; color: #7a6758; font: 13px/1.5 var(--font-sans, "Microsoft YaHei", sans-serif); }
.topic-banner-breadcrumb a { color: #7a6758; text-decoration: none; }
.topic-banner-breadcrumb .separator { color: rgba(122,103,88,.5); }
.topic-banner-breadcrumb .current { color: #6d5748; font-weight: 600; }
.topic-banner-eyebrow { margin: 0 0 8px; color: #947e6e; font: 700 12px/1.4 var(--font-sans, "Microsoft YaHei", sans-serif); letter-spacing: 2px; }
.topic-banner-copy h1 { margin: 0; color: #5f4b3e; font: 700 clamp(38px, 4vw, 54px)/1.2 var(--font-serif, "Noto Serif SC", serif); letter-spacing: 2px; text-shadow: 0 2px 12px rgba(255,255,255,.6); }
.topic-banner-lead { max-width: 560px; margin: 18px 0 0; color: #7a6758; font: 16px/1.8 var(--font-sans, "Microsoft YaHei", sans-serif); }
.topic-banner-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.topic-banner-tags span { padding: 4px 12px; color: #6d5748; background: rgba(255,255,255,.7); border: 1px solid rgba(148,126,110,.38); border-radius: 999px; font: 500 12px/1.6 var(--font-sans, "Microsoft YaHei", sans-serif); }
.topic-banner-visual { min-width: 0; }
.topic-banner-figure { position: relative; margin: 0; overflow: hidden; background: rgba(255,255,255,.55); border-radius: 16px 16px 16px 4px; box-shadow: 0 20px 40px rgba(94,73,58,.15); }
.topic-banner-figure img { display: block; width: 100%; height: auto; }
.topic-banner-figure figcaption { position: absolute; inset: auto 0 0; padding: 16px 20px; color: #fff; background: linear-gradient(to top, rgba(72,53,41,.86), transparent); font: 13px/1.5 var(--font-sans, "Microsoft YaHei", sans-serif); }
.topic-banner-figure figcaption strong { display: block; margin-bottom: 2px; font-size: 14px; }
.topic-banner-figure figcaption span { font-size: 12px; opacity: .85; }

@media (max-width: 992px) {
  .topic-topbar--banner { padding: 44px 0 40px; }
  .topic-banner-grid { grid-template-columns: 1fr; gap: 28px; padding: 0 28px; }
  .topic-banner-visual { width: 100%; max-width: 560px; }
}

@media (max-width: 620px) {
  .topic-topbar--banner { padding: 32px 0 36px; }
  .topic-banner-grid { gap: 22px; padding: 0 20px; }
  .topic-banner-copy h1 { font-size: 42px; letter-spacing: 1px; }
  .topic-banner-lead { margin-top: 14px; font-size: 14px; line-height: 1.7; }
  .topic-banner-tags { margin-top: 16px; }
}

/* Shared first-viewport treatment for the showcase topic pages. */
.topic-hero {
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  overflow: hidden;
  padding: 54px 6vw 58px;
  border-bottom: 1px solid #c9dce8;
  background: linear-gradient(135deg, #f8fbfd 0%, #e2edf4 68%, #d5e7ef 100%);
}

.topic-hero::before {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 136, 184, .08) 0%, transparent 70%);
  content: "";
  pointer-events: none;
}

.topic-hero > * { position: relative; z-index: 1; }

.topic-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 18px;
  color: #54748c;
  font-size: 13px;
  line-height: 24px;
}

.topic-crumb a { color: #0d4f3c; }

.topic-hero h1 {
  margin: 0;
  color: #0d4f3c;
  font-family: var(--font-serif, "Noto Serif SC", "Songti SC", serif);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1.25;
}

.topic-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #4b5f6c;
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  width: 100%;
  max-width: 100%;
  margin-top: 24px;
}

.topic-chip {
  padding: 6px 14px;
  border: 1px solid #b6d0df;
  border-radius: 999px;
  color: #3f7091;
  background: #fff;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .topic-hero { padding: 36px 20px 40px; }
  .topic-hero h1 { letter-spacing: 1px; }
  .topic-hero p { font-size: 14px; line-height: 1.8; }
  .topic-chips { min-width: 0; }
  .topic-chip { padding-right: 10px; padding-left: 10px; }
}

/* Shared footer for every topic page. Matches the good-design page footer. */
.topic-page-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 6vw;
  color: #d5e5dd;
  background: var(--brand-primary, #0d4f3c);
  font: 12px/1.6 var(--font-sans, "PingFang SC", "Microsoft YaHei", sans-serif);
}

.topic-page-footer a {
  color: var(--accent-gold, #c9a962);
  text-decoration: none;
}

.topic-page-footer a:hover { text-decoration: underline; }

@media (max-width: 800px) {
  .topic-page-footer { padding: 20px; }
}
