/* Build In Public · 更新日志页样式（配合官网 css/impeccable.css 使用） */

/* ---------- Hero ---------- */
.bip-hero {
  padding-top: 56px;
  padding-bottom: 8px;
}
.bip-eyebrow {
  letter-spacing: 0.22em;
  font-size: 13px;
  color: var(--ink-muted, #6b7280);
  margin: 0 0 10px;
}
.bip-title {
  font-family: "Fraunces", "Space Grotesk", serif;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.05;
  margin: 0 0 12px;
}
.bip-subtitle {
  font-size: clamp(19px, 3.4vw, 26px);
  font-weight: 600;
  margin: 0 0 14px;
}
.bip-intro {
  color: var(--ink-muted, #6b7280);
  max-width: 640px;
  margin: 0 0 22px;
  line-height: 1.7;
}

/* ---------- 状态徽标 ---------- */
.bip-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 26px;
}
.bip-legend-note {
  font-size: 13px;
  color: var(--ink-muted, #6b7280);
  margin-right: 14px;
}
.bip-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.bip-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.st-dev { color: #b45309; background: #fef3c7; }
.st-beta { color: #6c52f4; background: #efeafe; }
.st-released { color: #15803d; background: #dcfce7; }

/* ---------- 分类页签 ---------- */
.bip-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.bip-tab {
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(108, 82, 244, 0.25);
  background: rgba(255, 255, 255, 0.6);
  color: inherit;
  cursor: pointer;
}
.bip-tab.is-active {
  background: #6c52f4;
  border-color: #6c52f4;
  color: #fff;
  box-shadow: 0 10px 24px rgba(108, 82, 244, 0.28);
}
.bip-tab small {
  font-weight: 400;
  opacity: 0.75;
  margin-left: 4px;
}

/* ---------- 条目 ---------- */
.bip-entries {
  max-width: 760px;
  padding-bottom: 72px;
}
.bip-entry {
  padding: 28px 0 30px;
  border-bottom: 1px solid rgba(31, 27, 75, 0.09);
}
.bip-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.bip-entry-date {
  font-size: 14px;
  color: var(--ink-muted, #6b7280);
}
.bip-entry-version {
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(31, 27, 75, 0.06);
  color: var(--ink-muted, #6b7280);
}
.bip-entry-title {
  font-size: 24px;
  line-height: 1.35;
  margin: 0 0 12px;
}
.bip-entry-changes {
  margin: 0;
  padding-left: 20px;
  line-height: 1.85;
}
.bip-empty {
  color: var(--ink-muted, #6b7280);
  padding: 40px 0 80px;
}

/* ---------- 效果图：每张单独一行，小方框 ---------- */
.bip-shot {
  margin: 16px 0 0;
}
.bip-shot img {
  display: block;
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(31, 27, 75, 0.1);
  cursor: zoom-in;
  background: rgba(31, 27, 75, 0.04);
}
.bip-shot figcaption {
  font-size: 13px;
  color: var(--ink-muted, #6b7280);
  margin-top: 6px;
}

/* ---------- 视频：每条单独一行 ---------- */
.bip-video {
  margin: 16px 0 0;
  max-width: 420px;
}
.bip-video video {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(31, 27, 75, 0.1);
  background: #000;
}

/* ---------- 灯箱（放大查看） ---------- */
.bip-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 10, 26, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bip-lightbox[hidden] {
  display: none;
}
.bip-lb-figure {
  margin: 0;
  max-width: min(92vw, 980px);
  max-height: 88vh;
  text-align: center;
}
.bip-lb-figure img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 10px;
  object-fit: contain;
}
.bip-lb-figure figcaption {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  margin-top: 10px;
}
.bip-lb-close,
.bip-lb-prev,
.bip-lb-next {
  position: absolute;
  border: none;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bip-lb-close { top: 18px; right: 18px; }
.bip-lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.bip-lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.bip-lb-close:hover,
.bip-lb-prev:hover,
.bip-lb-next:hover {
  background: rgba(255, 255, 255, 0.24);
}
.bip-lb-prev[hidden],
.bip-lb-next[hidden] {
  display: none;
}

/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
  .bip-shot img {
    width: 128px;
    height: 128px;
  }
  .bip-lb-prev { left: 6px; }
  .bip-lb-next { right: 6px; }
}

/* ---------- 月份时间线：竖线 + 实心圆点，按月分组 ---------- */
.bip-timeline {
  position: relative;
  margin-top: 4px;
  padding-left: 30px;
}
.bip-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(108, 82, 244, 0.55), rgba(108, 82, 244, 0.10));
}
.bip-month {
  position: relative;
}
.bip-month + .bip-month {
  margin-top: 10px;
}
.bip-month-head {
  position: relative;
  display: flex;
  align-items: center;
  padding: 20px 0 0;
}
.bip-month-dot {
  position: absolute;
  left: -29px;
  top: 26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6c52f4;
  box-shadow: 0 0 0 4px #ffffff, 0 2px 10px rgba(108, 82, 244, 0.45);
}
.bip-month-label {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.bip-month-entries .bip-entry:first-child {
  padding-top: 16px;
}
.bip-month:last-child .bip-entry:last-child {
  border-bottom: none;
}

/* ---------- App 内嵌模式（embed=1）：只展示正文，隐藏官网页眉页脚 ---------- */
/* App 内嵌只隐藏页眉；页脚（尾部）必须保留——2026-10-31 用户实测
   判「BIP 没有带尾部」是 bug，此前连页脚一起隐藏属于过度隐藏。 */
.bip-embed .site-header {
  display: none;
}
.bip-embed .bip-hero {
  padding-top: 20px;
}
