/* ==========================================================================
   天使之约 · 未来宝宝长相生成器（附加样式）
   —— 只补充本页专属组件：父母融合示意、宝宝形象卡、五官继承格；
      表单容器 / 上传区 / 报告卡 / 收款层复用 css/face.css 与 css/style.css。
      face.css 的表单微调都锁在 #faceForm 上，本页表单是 #babyForm，
      所以这里把需要的几条按 #babyForm 重写一遍。
   ========================================================================== */

/* 手机版待机示意图固定在框内；生成结果出现后自动恢复报告滚动。 */
@media (max-width: 1100px) {
  .fxw-screen:has(> .fxw-idle:not([style*="display: none"])) { overflow-y: hidden; scrollbar-gutter: auto; }
}

/* ---------- 表单容器：与面相页结构和粉色主题对齐 ---------- */
/* 取消包住左右两栏的最外层框线，左右内容卡片仍各自保留边框。 */
.bb-form #babyForm {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}
/* 三个一排：宝宝性别 / 画面比例 / 更偏向谁。 */
.bb-form #babyForm .tool-row {
  grid-template-columns: repeat(2, max-content);
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.bb-form #babyForm .bb-wish-row { grid-template-columns: repeat(3, max-content); }
.bb-form #babyForm .tool-row .field + .field::before { border-left-color: var(--line); }
.bb-form #babyForm .tool-row .seg { flex-wrap: nowrap; }
.bb-form #babyForm .tool-row .seg-item { padding: 5px 10px; white-space: nowrap; }
/* 宝宝性别/画面比例/更偏向谁 三格并排：收紧字段间距、胶囊间距与内边距，保证一行放得下、不换行也不裁切 */
.bb-form #babyForm .bb-wish-row { gap: 8px; }
.bb-form #babyForm .bb-wish-row .field { padding-left: 8px; padding-right: 8px; }
.bb-form #babyForm .bb-wish-row .seg { gap: 5px; }
.bb-form #babyForm .bb-wish-row .seg-item { padding: 5px 7px; font-size: 12px; }
.bb-form #babyForm .tool-adv { background: transparent; }

/* 选项统一为淡粉配色的椭圆胶囊，选中态与面相分析一致。 */
.bb-form #babyForm .seg-item {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--cream);
  box-shadow: none;
  color: var(--ink-soft);
}
.bb-form #babyForm .seg-item:not(.active):hover { border-color: var(--gold); color: var(--ink); }
.bb-form #babyForm .seg-item.active {
  border-color: var(--vermilion);
  background: var(--vermilion-soft);
  box-shadow: none;
  color: var(--vermilion);
}

/* 关注主题：横向滑动不折行，与面相页一致。 */
.bb-form #babyForm .fx-scroll-line { display: block; }
.bb-form #babyForm .adv-line .segm[data-multi="focus"] {
  display: flex; width: 100%; max-width: 100%; flex-wrap: nowrap;
  overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.bb-form #babyForm .adv-line .segm[data-multi="focus"]::-webkit-scrollbar { display: none; }
.bb-form #babyForm .adv-line .segm[data-multi="focus"] .seg-item { padding: 5px 10px; font-size: 12px; white-space: nowrap; }

/* 昵称输入和提交按钮跟随面相页的粉色主题，主按钮使用胶囊形。 */
.bb-form #babyForm .tool-adv .field input {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
}
.bb-form #babyForm .tool-adv .field input:focus { background: var(--paper); }
/* 画面提示词输入框：整宽显示两行，更多内容可在框内继续滚动输入。 */
.bb-form #babyForm .bb-scene-input { padding: 12px 0 2px; }
.bb-form #babyForm .bb-scene-input label { display: block; margin-bottom: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.bb-form #babyForm .tool-adv .bb-scene-input textarea { display: block; width: 100%; max-width: 100%; height: 60px; padding: 10px 14px; box-sizing: border-box; resize: none; overflow-y: auto; font: inherit; font-size: 16px; line-height: 1.45; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 3px; }
/* 去掉聚焦时的粉色光晕，保持细边框。 */
.bb-form #babyForm .tool-adv .bb-scene-input textarea:focus { outline: none; box-shadow: none; border-color: var(--vermilion); background: var(--paper); }
.bb-form #babyForm .tool-submit { justify-content: space-between; }
.bb-form #babyForm .tool-submit .btn {
  margin-left: auto;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(192,57,43,.3);
}
.bb-form #babyForm .fx-up-box .fx-ico {
  display: grid; place-items: center; color: #737b8d; opacity: 1;
  background: transparent; border: 0; box-shadow: none;
}
.bb-form #babyForm .fx-up-box .fx-ico svg { display: block; width: 30px; height: 30px; }

@media (max-width: 560px) {
  .bb-form #babyForm .tool-row { grid-template-columns: 1fr; }
  .bb-form #babyForm .tool-adv { padding-left: 4px; }
  .bb-form #babyForm .fx-up-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .bb-form #babyForm .fx-up-head b { white-space: normal; }
  .bb-form #babyForm .fx-up-box .fx-ico svg { width: 26px; height: 26px; }
}

/* 右栏待机图：桌面、平板与手机均铺满输出框四边。 */
.bb-fuse {
  position: absolute; inset: -12px -28px -12px -12px;
  background-image: none; background-color: var(--paper);
}
.bb-fuse::before {
  content: ""; position: absolute; inset: 0; display: block;
  background: url('../img/baby-1.webp?v=20260923a') center / cover no-repeat;
  opacity: .4; pointer-events: none;
}

/* 生成图或无图时的示意图：图片紧贴卡片四边，不保留内侧空白。 */
.bb-photo-card { margin: 4px 0 16px; }
.bb-photo-card.has-img {
  position: relative; display: block; overflow: hidden;
  padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
}
.bb-photo-img {
  display: block; width: 100%; max-width: none; height: auto;
  border-radius: 0; box-shadow: none; object-fit: cover;
}
.bb-photo-reference .bb-photo-img { opacity: .3; }
.bb-photo-cap {
  position: absolute; right: 10px; bottom: 10px; left: 10px;
  padding: 7px 10px; border-radius: 6px;
  background: rgba(255,255,255,.88); color: var(--ink-soft);
  font-size: 12px; line-height: 1.45; text-align: center;
  backdrop-filter: blur(4px);
}
/* 下载按钮与域名水印：与正缘画像页同款，右下角 */
.bb-photo-mark { position: absolute; right: 12px; bottom: 9px; color: #d7000f; font-size: 12px; font-weight: 700; letter-spacing: .3px; line-height: 1.4; pointer-events: none; }
.bb-photo-dl {
  position: absolute; right: 8px; bottom: 34px;
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px;
  border: 0; border-radius: 999px; background: rgba(255,255,255,.9); box-shadow: 0 4px 12px rgba(126,13,56,.16);
  color: #7e0d38; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s;
}
.bb-photo-dl i { font-style: normal; font-size: 13px; line-height: 1; }
.bb-photo-dl:hover { background: #fff; transform: translateY(-1px); }
.bb-photo-dl:disabled { opacity: .6; cursor: wait; transform: none; }
/* 文字先出、合成图后补：绘制中按所选画面比例占位（图到了页面不跳），示意图淡显 + 扫光；失败时底部给「重新生成」 */
.bb-photo-card.is-drawing .bb-photo-img, .bb-photo-card.is-failed .bb-photo-img { height: 100%; }
.bb-photo-card.is-drawing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); background-size: 220% 100%; animation: bbDrawSweep 1.8s linear infinite; pointer-events: none; }
.bb-photo-wait { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%); padding: 7px 16px; border-radius: 999px; background: rgba(255,255,255,.9); box-shadow: 0 4px 12px rgba(126,13,56,.12); color: #7e0d38; font-size: 13px; font-weight: 700; white-space: nowrap; }
.bb-photo-retry { margin-left: 6px; padding: 4px 12px; border: 0; border-radius: 999px; background: #7e0d38; color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.bb-photo-retry:hover { filter: brightness(1.08); }
@keyframes bbDrawSweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ---------- 五官继承格：复用 .fx-gong 卡，取消左侧竖条，仅徽标按“更像谁”着色 ---------- */
.bb-trait-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bb-trait { position: relative; }
.bb-trait .fx-lv { background: var(--gold-soft); color: var(--vermilion); }
.bb-trait.from-dad .fx-lv { background: #eaf3fc; color: #2f6db3; }
.bb-trait.from-mom .fx-lv { background: #fdeef3; color: #c85178; }

@media (max-width: 560px) {
  .bb-trait-grid { grid-template-columns: 1fr; }
}

/* 左图右文重点介绍块 */
.bb-intro {
  display: flex; align-items: center; gap: 28px;
  margin: 30px 0 34px; padding: 16px;
  overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
}
.bb-intro-media { flex: 0 0 36%; max-width: 36%; aspect-ratio: 1 / 1; }
.bb-intro-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; border-radius: 10px;
}
.bb-intro-text {
  flex: 1 1 auto; min-width: 0; padding: 30px 34px;
  display: flex; flex-direction: column; justify-content: center;
  color: #665d76;
}
.bb-intro-tag {
  align-self: flex-start; display: inline-block; margin-bottom: 14px; padding: 5px 10px;
  border: 1px solid #d9e2f1; border-radius: 6px;
  background: #eef3fa; color: #66789b;
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
}
.bb-intro-text h2 {
  margin: 0 0 16px; color: #574d68; font-family: var(--serif);
  font-size: clamp(27px, 2.35vw, 34px); font-weight: 800; line-height: 1.25;
  letter-spacing: .015em;
}
.bb-intro-text p { margin: 0 0 14px; color: #746b82; font-size: 16px; line-height: 1.8; }
.bb-intro-text p:first-of-type { color: #655b75; font-size: 17px; }
.bb-intro-text p:last-of-type { margin-bottom: 0; }
.bb-intro-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 12px;
  width: auto; margin-top: 20px; padding: 12px 22px;
  border-radius: 8px; background: var(--vermilion); color: #fff;
  box-shadow: 0 8px 20px rgba(192,57,43,.22); font-size: 15px; font-weight: 800;
}
.bb-intro-btn:hover { background: var(--vermilion-dark); color: #fff; }

@media (max-width: 560px) {
  .bb-intro { flex-direction: column-reverse; gap: 0; padding: 0; }
  .bb-intro-text { padding: 26px 20px; border-radius: 12px 12px 0 0; }
  .bb-intro-media {
    flex-basis: auto; width: calc(100% - 32px); max-width: calc(100% - 32px);
    aspect-ratio: 1 / 1; margin: 10px 16px 16px;
  }
  .bb-intro-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
  .bb-intro-text h2 { font-size: 25px; }
  .bb-intro-text p, .bb-intro-text p:first-of-type { font-size: 15px; line-height: 1.8; }
  .bb-intro-btn { align-self: stretch; justify-content: center; width: 100%; text-align: center; }
}

/* 未来宝宝三步流程：无区块背景，手机版圆点切换同一内容区。 */
.bb-how {
  position: relative; overflow: hidden; margin: 34px 0 38px; padding: 30px 24px 24px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 36px rgba(91,75,105,.08);
}
.bb-how-head { max-width: 760px; margin: 0 auto 26px; text-align: center; }
.bb-section-kicker {
  display: inline-flex; align-items: center; margin: 0 0 9px; padding: 4px 10px;
  border: 1px solid #d9e2f1; border-radius: 4px; background: #eef3fa;
  color: #66789b; font-size: 11px; font-weight: 800; letter-spacing: .1em;
}
.bb-how-head h2 {
  margin: 0 0 10px; color: #574d68; font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 30px); line-height: 1.3;
}
.bb-how-head p { margin: 0; color: #746b82; font-size: 15px; line-height: 1.7; }
.bb-how-dots {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px; margin: 0 0 16px;
}
.bb-how-dots::before {
  content: ""; position: absolute; z-index: 0; top: 25px; left: 16.66%; right: 16.66%;
  height: 1px; background: var(--line);
}
.bb-how-dot {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.bb-how-dot span {
  display: grid; place-items: center; width: 50px; height: 50px;
  border: 1px solid #d9e2f1; border-radius: 50%;
  background: #fff; color: #66789b; font-size: 19px; font-weight: 800;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.bb-how-dot.active span {
  border-color: var(--vermilion); background: var(--vermilion); color: #fff;
  transform: translateY(-2px); box-shadow: 0 7px 18px rgba(192,57,43,.2);
}
.bb-how-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.bb-how-panel {
  position: relative; overflow: hidden; min-width: 0; padding: 19px 18px 20px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 7px 20px rgba(91,75,105,.07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.bb-how-panel:hover { transform: translateY(-2px); box-shadow: 0 11px 26px rgba(91,75,105,.11); }
.bb-how-panel h3 {
  margin: 0 0 8px; color: #574d68; font-family: var(--serif);
  font-size: 17px; line-height: 1.4;
}
.bb-how-panel p { margin: 0; color: #746b82; font-size: 13.5px; line-height: 1.7; }

@media (max-width: 560px) {
  .bb-how { margin: 28px 0 32px; padding: 24px 14px 18px; }
  .bb-how-head { margin-bottom: 20px; }
  .bb-section-kicker { margin-bottom: 8px; padding: 3px 8px; font-size: 10px; }
  .bb-how-head h2 { font-size: 22px; }
  .bb-how-head p { font-size: 13.5px; }
  .bb-how-dots { gap: 8px; margin-bottom: 14px; }
  .bb-how-dots::before { top: 21px; }
  .bb-how-dot span { width: 42px; height: 42px; font-size: 16px; }
  .bb-how-panels { display: grid; grid-template-columns: 1fr; }
  .bb-how-panel {
    grid-area: 1 / 1; visibility: hidden; opacity: 0; pointer-events: none;
    transform: translateY(5px); transition: opacity .2s ease, transform .2s ease;
  }
  .bb-how-panel.active { visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
  .bb-how-panel h3 { font-size: 16px; }
  .bb-how-panel p { font-size: 13.5px; }
}

/* “报告能看到什么”区块：本站配色的横向堆叠卡片，不用深色背景。 */
.bb-about {
  position: relative; overflow: hidden; margin: 0 0 38px; padding: 34px 30px 26px;
  background: linear-gradient(155deg, #fdecf3 0%, #f4ecfa 100%);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 36px rgba(91,75,105,.08);
}
.bb-about-head { max-width: 780px; margin: 0 0 22px; }
.bb-about-head h2 {
  margin: 0 0 12px; color: #574d68; font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 30px); line-height: 1.3;
}
.bb-about-head p { margin: 0; color: #746b82; font-size: 15px; line-height: 1.75; }
.bb-about-cards { display: flex; flex-direction: column; gap: 14px; }
.bb-about-card {
  position: relative; display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px; background: linear-gradient(180deg, #ffffff 0%, #fcecf3 100%);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 4px 14px rgba(150,110,135,.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bb-about-card:hover {
  transform: translateY(-2px); border-color: var(--vermilion-soft);
  box-shadow: 0 10px 26px rgba(120,100,130,.12);
}
.bb-about-icon {
  flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 12px; background: var(--vermilion-soft); color: var(--vermilion);
}
.bb-about-icon svg { width: 24px; height: 24px; }
.bb-about-body { min-width: 0; }
.bb-about-card h3 {
  margin: 0 0 7px; color: #574d68; font-family: var(--serif);
  font-size: 18px; line-height: 1.4;
}
.bb-about-card p { margin: 0; color: #746b82; font-size: 14px; line-height: 1.8; }
.bb-about-card .bb-about-detail { margin-top: 7px; color: #82788f; }
.bb-about-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none;
}
.bb-about-tags li {
  padding: 4px 11px; border: 1px solid #d9e2f1; border-radius: 99px;
  background: #eef3fa; color: #66789b; font-size: 12px; line-height: 1.4;
}

@media (max-width: 560px) {
  .bb-about { margin: 0 0 30px; padding: 27px 16px 16px; }
  .bb-about-head { margin-bottom: 18px; }
  .bb-about-head h2 { font-size: 22px; }
  .bb-about-head p { font-size: 13.5px; }
  .bb-about-card { gap: 12px; padding: 16px 15px 16px 17px; }
  .bb-about-icon { width: 40px; height: 40px; border-radius: 10px; }
  .bb-about-icon svg { width: 21px; height: 21px; }
  .bb-about-card h3 { font-size: 16px; }
  .bb-about-card p { font-size: 13.5px; }
  .bb-about-tags { gap: 6px; margin-top: 10px; }
  .bb-about-tags li { padding: 3px 9px; font-size: 11.5px; }
}

/* 画风示例：顶部三张介绍卡 + 左侧提示词点击切换右侧同框示例图。 */
.bb-gallery {
  margin: 30px 0 36px; padding: 30px 24px 26px;
  background: linear-gradient(155deg, #fdecf3 0%, #f4ecfa 100%);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 36px rgba(91,75,105,.08);
}
.bb-gallery-head { max-width: 760px; margin: 0 auto 24px; text-align: center; }
.bb-gallery-head h2 {
  margin: 0 0 10px; color: #574d68; font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 30px); line-height: 1.3;
}
.bb-gallery-head p { margin: 0; color: #746b82; font-size: 15px; line-height: 1.7; }

.bb-gallery-intro {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px;
}
.bb-gi-card {
  padding: 18px; background: #f8f5fc; border: 1px solid var(--line); border-radius: 10px;
}
.bb-gi-card h3 { margin: 0 0 8px; color: #b06a3d; font-size: 15px; font-weight: 800; }
.bb-gi-card p { margin: 0; color: #746b82; font-size: 14px; line-height: 1.75; }
/* 三卡切换圆点：桌面并排显示三卡，圆点隐藏；仅手机版启用点一个切一个。 */
.bb-gi-dots { display: none; }
.bb-gi-dots::before {
  content: ""; position: absolute; z-index: 0; top: 21px; left: 16.66%; right: 16.66%;
  height: 1px; background: var(--line);
}
.bb-gi-dot {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.bb-gi-dot span {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid #d9e2f1; border-radius: 50%;
  background: #fff; color: #66789b; font-size: 16px; font-weight: 800;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.bb-gi-dot.active span {
  border-color: var(--vermilion); background: var(--vermilion); color: #fff;
  transform: translateY(-2px); box-shadow: 0 7px 18px rgba(192,57,43,.2);
}

.bb-gallery-main { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: stretch; }
.bb-gallery-prompts { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 12px; }
/* 左侧三条提示词等高分摊整列高度，保持均匀。 */
.bb-gallery-prompts .bb-gp-item { flex: 1 1 0; }
.bb-gp-item {
  display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fcecf3 100%); cursor: pointer;
  box-shadow: 0 4px 14px rgba(150,110,135,.05);
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.bb-gp-item:hover { transform: translateY(-1px); border-color: #e0c8b8; }
.bb-gp-item.active {
  border-color: var(--vermilion); background: #fdf3f0; box-shadow: 0 8px 20px rgba(192,57,43,.1);
}
.bb-gp-idx {
  flex: 0 0 auto; font-family: var(--serif); font-size: 18px; font-weight: 800;
  color: #c79a86; line-height: 1.4;
}
.bb-gp-item.active .bb-gp-idx { color: var(--vermilion); }
.bb-gp-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bb-gp-body strong { color: #574d68; font-size: 15px; font-weight: 800; }
.bb-gp-body span { color: #7c7288; font-size: 13px; line-height: 1.7; }
/* 第四条提示词占满整行，放在图片与提示词列下方。 */
.bb-gp-item--wide { grid-column: 1 / -1; grid-row: 2; }

.bb-gallery-stage {
  grid-column: 2; grid-row: 1; align-self: start; aspect-ratio: 24 / 25;
  background: #f3eef8; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; display: grid; place-items: center;
}
.bb-gallery-stage img { width: 100%; height: 100%; object-fit: contain; display: block; }

@media (max-width: 860px) {
  .bb-gallery-main { display: flex; flex-direction: column; }
  .bb-gallery-prompts { order: 1; }
  .bb-gp-item--wide { order: 2; }
  .bb-gallery-stage {
    order: 3; width: 100%; max-width: 420px; aspect-ratio: 24 / 25; margin: 4px auto 0;
  }
}
@media (max-width: 560px) {
  .bb-gallery { margin: 0 0 30px; padding: 24px 16px; }
  .bb-gallery-head { margin-bottom: 18px; }
  .bb-gallery-head h2 { font-size: 22px; }
  .bb-gallery-head p { font-size: 13.5px; }
  .bb-gi-dots {
    display: grid; position: relative; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px; margin: 0 0 14px;
  }
  .bb-gallery-intro { grid-template-columns: 1fr; margin-bottom: 18px; }
  .bb-gi-card {
    grid-area: 1 / 1; padding: 15px 16px; visibility: hidden; opacity: 0; pointer-events: none;
    transform: translateY(5px); transition: opacity .2s ease, transform .2s ease;
  }
  .bb-gi-card.active { visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
  .bb-gp-item { padding: 13px 14px; gap: 12px; }
  .bb-gp-body span { font-size: 12.5px; }
}
