/* 《保持偏见》主题样式 —— 在 default style.css 之上做品牌覆盖 */

:root {
  --bp-bg: #faf8f5;
  --bp-surface: #ffffff;
  --bp-ink: #24262b;
  --bp-muted: #6b6f76;
  --bp-line: #e7e2d9;
  --bp-accent: #c8452f;
  --bp-dark: #17181c;
  --bp-navy: #152238;
  --bp-max: 1160px;
  --bp-reading: 760px;
}

body.bp-body {
  background: var(--bp-bg);
  color: var(--bp-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  line-height: 1.8;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 页眉 ---------- */
.bp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bp-dark);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.bp-header-inner {
  max-width: var(--bp-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.bp-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.25;
  flex-shrink: 0;
}

.bp-brand-name {
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .06em;
}

.bp-brand-slogan {
  color: rgba(255, 255, 255, .45);
  font-size: 12px;
  letter-spacing: .02em;
  margin-top: 2px;
}

.bp-header .blog-header-nav {
  margin-left: auto;
}

.bp-header .nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bp-header .nav-list > li > a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.bp-header .nav-list > li > a:hover,
.bp-header .nav-list > li > a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--bp-accent);
}

.bp-nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 6px;
  padding: 8px 9px;
  cursor: pointer;
}

.bp-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  margin: 3px 0;
}

/* ---------- 主区域 ---------- */
.bp-main {
  max-width: var(--bp-max);
  margin: 0 auto;
  padding: 40px 24px 64px;
}

/* ---------- 首页 Hero ---------- */
.bp-hero {
  position: relative;
  background: var(--bp-dark);
  color: #fff;
  border-radius: 14px;
  padding: 64px 56px;
  margin-bottom: 56px;
  overflow: hidden;
}

.bp-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--bp-accent);
}

.bp-hero-kicker {
  color: var(--bp-accent);
  font-size: 13px;
  letter-spacing: .16em;
  margin: 0 0 20px;
}

.bp-hero-title {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .01em;
  margin: 0 0 18px;
  max-width: 820px;
}

.bp-hero-lead {
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
  line-height: 1.9;
  margin: 0;
  max-width: 720px;
}

/* ---------- 首页区块 ---------- */
.bp-section {
  margin: 0 0 60px;
}

.bp-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bp-line);
  margin-bottom: 24px;
}

.bp-section-head h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .04em;
  margin: 0;
  color: var(--bp-ink);
}

.bp-section-more {
  font-size: 13px;
  color: var(--bp-muted);
  text-decoration: none;
  white-space: nowrap;
}

.bp-section-more:hover {
  color: var(--bp-accent);
}

/* 剑锋观察 */
.bp-obs {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 32px;
}

.bp-obs-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.bp-obs-cover {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #efece6;
}

.bp-obs-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.bp-obs-main:hover .bp-obs-cover img {
  transform: scale(1.02);
}

.bp-obs-title {
  font-size: 26px;
  line-height: 1.45;
  margin: 0;
}

.bp-obs-title a {
  color: var(--bp-ink);
  text-decoration: none;
}

.bp-obs-title a:hover {
  color: var(--bp-accent);
}

.bp-obs-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--bp-muted);
  margin: 0;
}

.bp-obs-side {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--bp-line);
  padding-left: 28px;
  min-width: 0;
}

.bp-obs-item {
  padding: 18px 0;
  border-top: 1px solid var(--bp-line);
}

.bp-obs-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.bp-obs-item time {
  font-size: 12px;
  color: #9a9d9f;
}

.bp-obs-item h3 {
  font-size: 16.5px;
  line-height: 1.55;
  margin: 6px 0;
}

.bp-obs-item h3 a {
  color: var(--bp-ink);
  text-decoration: none;
}

.bp-obs-item h3 a:hover {
  color: var(--bp-accent);
}

.bp-obs-item p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--bp-muted);
  margin: 0;
}

/* 编辑推荐节目 */
.bp-picks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bp-pick {
  min-width: 0;
}

.bp-pick-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  background: #efece6;
  margin-bottom: 12px;
}

.bp-pick-cover img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.bp-pick-title {
  font-size: 16px;
  line-height: 1.55;
  margin: 8px 0 6px;
}

.bp-pick-title a {
  color: var(--bp-ink);
  text-decoration: none;
}

.bp-pick-title a:hover {
  color: var(--bp-accent);
}

.bp-pick-dur {
  font-size: 12.5px;
  color: var(--bp-muted);
}

/* 专题卡片 */
.bp-topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bp-topic {
  background: var(--bp-surface);
  border: 1px solid var(--bp-line);
  border-radius: 10px;
  padding: 22px 20px;
  min-width: 0;
}

.bp-topic h3 {
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 10px;
}

.bp-topic h3 a {
  color: var(--bp-ink);
  text-decoration: none;
}

.bp-topic h3 a:hover {
  color: var(--bp-accent);
}

.bp-topic p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--bp-muted);
  margin: 0 0 12px;
}

.bp-topic time {
  font-size: 12px;
  color: #9a9d9f;
}

/* ---------- 文章列表 ---------- */
.bp-list-title {
  font-size: 15px;
  letter-spacing: .12em;
  color: var(--bp-muted);
  font-weight: 600;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bp-line);
}

.bp-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bp-card {
  display: flex;
  gap: 20px;
  background: var(--bp-surface);
  border: 1px solid var(--bp-line);
  border-radius: 12px;
  padding: 18px;
  transition: border-color .15s, box-shadow .15s;
}

.bp-card:hover {
  border-color: #d8d2c6;
  box-shadow: 0 6px 20px rgba(30, 30, 30, .06);
}

.bp-card-cover {
  flex: 0 0 132px;
  width: 132px;
  height: 132px;
  border-radius: 8px;
  overflow: hidden;
  background: #efece6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bp-card-fallback {
  font-size: 34px;
  color: #b3ac9f;
  font-weight: 700;
}

.bp-card-body {
  min-width: 0;
  flex: 1;
}

.bp-badge {
  display: inline-block;
  font-size: 12px;
  color: var(--bp-accent);
  border: 1px solid rgba(200, 69, 47, .35);
  border-radius: 3px;
  padding: 1px 7px;
  margin-bottom: 8px;
  letter-spacing: .04em;
}

.bp-card-title {
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 8px;
}

.bp-card-title a {
  color: var(--bp-ink);
  text-decoration: none;
}

.bp-card-title a:hover {
  color: var(--bp-accent);
}

.bp-card-desc {
  color: var(--bp-muted);
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 10px;
}

.bp-card-meta {
  font-size: 12.5px;
  color: #999;
}

.bp-dot {
  margin: 0 6px;
}

.bp-pagination {
  margin-top: 32px;
  text-align: center;
}

.bp-empty {
  color: var(--bp-muted);
  padding: 40px 0;
  text-align: center;
}

/* ---------- 文章页 ---------- */
.bp-article-wrap {
  max-width: var(--bp-reading);
}

.bp-article-head {
  margin-bottom: 28px;
}

.bp-article-title {
  font-size: 32px;
  line-height: 1.4;
  margin: 10px 0 16px;
  letter-spacing: .01em;
}

.bp-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--bp-muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bp-line);
}

.bp-article-meta a {
  color: inherit;
}

.bp-article-cover {
  margin: 0 0 28px;
  border-radius: 10px;
  overflow: hidden;
}

.bp-article-cover img {
  width: 100%;
  display: block;
}

.bp-content {
  font-size: 17px;
  line-height: 1.9;
  color: var(--bp-ink);
}

.bp-content h2 {
  font-size: 23px;
  margin: 2em 0 .7em;
}

.bp-content h3 {
  font-size: 19px;
  margin: 1.7em 0 .6em;
}

.bp-content p {
  margin: 0 0 1.2em;
}

.bp-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.bp-content blockquote {
  margin: 1.5em 0;
  padding: 4px 20px;
  border-left: 3px solid var(--bp-accent);
  color: var(--bp-muted);
  background: #f5f2ec;
}

.bp-content a {
  color: var(--bp-accent);
  text-underline-offset: 3px;
}

/* ---------- 播客模块 ---------- */
.bp-podcast {
  background: #f3f0ea;
  border: 1px solid var(--bp-line);
  border-radius: 12px;
  padding: 22px;
  margin: 0 0 30px;
}

.bp-podcast-ep {
  display: inline-block;
  font-size: 12px;
  color: #fff;
  background: var(--bp-accent);
  border-radius: 3px;
  padding: 2px 9px;
  margin-bottom: 14px;
  letter-spacing: .05em;
}

.bp-audio {
  width: 100%;
  margin-bottom: 14px;
}

.bp-podcast-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.bp-btn {
  display: inline-block;
  background: var(--bp-dark);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 6px;
}

.bp-btn:hover {
  background: var(--bp-accent);
  color: #fff;
}

.bp-podcast-dur {
  font-size: 13px;
  color: var(--bp-muted);
}

/* ---------- 来源 / 提示 ---------- */
.bp-sources {
  margin: 36px 0;
  padding: 20px 22px;
  border: 1px solid var(--bp-line);
  border-radius: 10px;
  background: var(--bp-surface);
}

.bp-sources-title {
  font-size: 15px;
  margin: 0 0 10px;
  color: var(--bp-muted);
  letter-spacing: .08em;
}

.bp-sources-body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--bp-ink);
  word-break: break-all;
}

.bp-note {
  font-size: 13px;
  color: var(--bp-muted);
  background: #f5f2ec;
  border-radius: 6px;
  padding: 10px 14px;
}

.bp-tags a {
  display: inline-block;
  font-size: 12px;
  color: var(--bp-muted);
  border: 1px solid var(--bp-line);
  border-radius: 12px;
  padding: 2px 10px;
  margin: 0 6px 6px 0;
  text-decoration: none;
}

.bp-neighbor {
  margin: 36px 0;
  font-size: 14px;
}

.bp-comments {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--bp-line);
}

/* ---------- 页脚 ---------- */
.bp-footer {
  background: var(--bp-dark);
  color: rgba(255, 255, 255, .62);
  margin-top: 40px;
}

.bp-footer-inner {
  max-width: var(--bp-max);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.bp-footer-name {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
}

.bp-footer-slogan {
  font-size: 13px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .45);
}

.bp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-content: start;
}

.bp-footer-links a {
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  text-decoration: none;
}

.bp-footer-links a:hover {
  color: #fff;
}

.bp-footer-meta {
  grid-column: 1 / -1;
  font-size: 12px;
  color: rgba(255, 255, 255, .38);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 18px;
}

.bp-footer-meta a {
  color: rgba(255, 255, 255, .55);
}

.bp-totop {
  position: fixed;
  right: 22px;
  bottom: 28px;
  z-index: 40;
}

.bp-totop button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--bp-line);
  background: #fff;
  color: var(--bp-ink);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .bp-hero {
    padding: 40px 26px;
    margin-bottom: 40px;
  }
  .bp-hero-title {
    font-size: 28px;
  }
  .bp-obs {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .bp-obs-side {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--bp-line);
    padding-top: 8px;
  }
  .bp-picks {
    grid-template-columns: repeat(2, 1fr);
  }
  .bp-topics {
    grid-template-columns: repeat(2, 1fr);
  }
  .bp-footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bp-header-inner {
    padding: 12px 16px;
    flex-wrap: wrap;
  }
  .bp-brand-slogan {
    display: none;
  }
  .bp-nav-toggle {
    display: block;
  }
  .bp-header .blog-header-nav {
    flex-basis: 100%;
    order: 3;
    display: none;
  }
  .bp-header .blog-header-nav.is-open {
    display: block;
  }
  .bp-header .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 0;
  }
  .bp-header .nav-list > li {
    width: 100%;
  }
  .bp-header .nav-list > li > a {
    display: block;
    padding: 10px 0;
    border-bottom: none;
  }
  .bp-main {
    padding: 24px 16px 48px;
  }
  .bp-hero {
    padding: 32px 20px;
    border-radius: 10px;
  }
  .bp-hero-title {
    font-size: 23px;
  }
  .bp-hero-lead {
    font-size: 15px;
  }
  .bp-section {
    margin-bottom: 44px;
  }
  .bp-obs-title {
    font-size: 21px;
  }
  .bp-picks {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .bp-pick-cover img {
    aspect-ratio: 16 / 10;
  }
  .bp-topics {
    grid-template-columns: 1fr;
  }
  .bp-card {
    gap: 14px;
    padding: 14px;
  }
  .bp-card-cover {
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
  }
  .bp-card-title {
    font-size: 16.5px;
  }
  .bp-card-desc {
    display: none;
  }
  .bp-article-title {
    font-size: 25px;
  }
  .bp-content {
    font-size: 16px;
  }
  .bp-footer-inner {
    padding: 32px 16px;
  }
}
