/* ==========================================================================
   辛氏包装 · 横向翻页轮播（book-flip carousel）
   动效依据 apple-design §2 直接操作 / §3 可中断 / §4 弹簧 / §5 速度交接
            / §6 惯性投射 / §9 边缘阻尼 / §14 无障碍降级
   ========================================================================== */

.bc-shell{
  position: relative;
  --bc-gap: 20px;
  --bc-visible: 1;
}
@media (min-width: 860px){ .bc-shell{ --bc-visible: 2; --bc-gap: 24px; } }
@media (min-width: 1180px){ .bc-shell{ --bc-visible: 3; } }

/* ---------- 头部：标题 + 计数 + 箭头 ---------- */
.bc-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:20px; flex-wrap:wrap; margin-bottom:26px;
}
.bc-eyebrow{
  font-size:.75rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  color: var(--glass-ink-50); margin:0 0 10px;
}
.bc-title{
  font-size: var(--fs-h2, clamp(1.5rem,2.3vw,1.95rem));
  line-height: var(--lh-h, 1.22);
  letter-spacing: var(--ls-h, -.018em);
  font-weight: 680; color: var(--glass-ink); margin:0;
}
.bc-ctrl{ display:flex; align-items:center; gap:10px; }
.bc-count{
  font-size:.8125rem; color:var(--glass-ink-50);
  font-variant-numeric: tabular-nums; min-width:52px; text-align:center;
  letter-spacing:.02em;
}
.bc-btn{
  width:44px; height:44px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  color: var(--glass-ink);
  cursor:pointer; padding:0;
  transition: background-color 180ms cubic-bezier(.22,1,.36,1),
              border-color 180ms cubic-bezier(.22,1,.36,1),
              transform 120ms cubic-bezier(.22,1,.36,1),
              opacity 180ms cubic-bezier(.22,1,.36,1);
}
.bc-btn:hover{ background: rgba(255,255,255,.12); border-color: rgba(232,171,109,.5); }
.bc-btn:active{ transform: scale(.94); }
.bc-btn:disabled{ opacity:.3; cursor:not-allowed; }
.bc-btn:focus-visible{ outline:2px solid var(--glass-accent-strong); outline-offset:2px; }
.bc-btn svg{ width:18px; height:18px; }

/* ---------- 视口与轨道 ---------- */
.bc-viewport{
  overflow:hidden;
  /* 允许纵向滚动，但横向手势交给 JS —— 关键 */
  touch-action: pan-y;
  cursor: grab;
  /* 边缘渐隐，暗示还有内容 */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.bc-viewport.is-dragging{ cursor: grabbing; }
.bc-viewport.is-dragging .bc-slide a{ pointer-events:none; }  /* 拖动时不误触链接 */

.bc-track{
  display:flex;
  gap: var(--bc-gap);
  will-change: transform;
  /* 不用 CSS transition —— 手势驱动必须能随时接管（§3） */
}

.bc-slide{
  flex: 0 0 calc((100% - (var(--bc-visible) - 1) * var(--bc-gap)) / var(--bc-visible));
  min-width:0;
}

/* 兜底：万一卡片直接是 track 的子项（没有 .bc-slide 包裹），也要有正确宽度 */
.bc-track > .bc-card{
  flex: 0 0 calc((100% - (var(--bc-visible) - 1) * var(--bc-gap)) / var(--bc-visible));
  min-width:0;
}
/* 让卡片撑满 slide 高度，保证等高 */
.bc-slide{ display:flex; }
.bc-slide > .bc-card{ flex:1 1 auto; width:100%; }

/* ---------- 卡片 ---------- */
.bc-card{
  display:flex; flex-direction:column;
  height:100%; min-height:270px;
  padding:26px 26px 24px;
  border-radius: var(--glass-radius-lg, 24px);
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  text-decoration:none; color:inherit;
  position:relative; overflow:hidden;
  transition: border-color 200ms cubic-bezier(.22,1,.36,1),
              transform 200ms cubic-bezier(.22,1,.36,1),
              background-color 200ms cubic-bezier(.22,1,.36,1);
}
.bc-card::after{
  /* 顶部一道高光，暗示玻璃材质（§12 亮顶边） */
  content:""; position:absolute; inset:0 0 auto 0; height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  opacity:.6; pointer-events:none;
}
a.bc-card:hover{
  border-color: rgba(232,171,109,.42);
  transform: translateY(-3px);
}
.bc-num{
  font-size:.8125rem; font-weight:700; letter-spacing:.06em;
  color: var(--glass-accent-strong, #e8ab6d);
  font-variant-numeric: tabular-nums;
  margin-bottom:14px;
}
/* 选择器加权：盖过 brand-polish.css 里的 .glass-page h3（0,1,1）*/
.bc-shell .bc-card .bc-h{
  font-size:1.0625rem; font-weight:660; line-height:1.4;
  letter-spacing:-.008em; color:var(--glass-ink);
  margin:0 0 10px;
}
.bc-shell .bc-card .bc-p{
  font-size:.9375rem; line-height:1.72; color:var(--glass-ink-70);
  margin:0 0 18px; flex:1;
  max-width:none;
}
.bc-cta{
  display:inline-flex; align-items:center; gap:7px;
  font-size:.9375rem; font-weight:560; color:var(--glass-accent-strong,#e8ab6d);
  margin-top:auto;
}
.bc-cta::after{
  content:"→"; transition: transform 200ms cubic-bezier(.22,1,.36,1);
}
a.bc-card:hover .bc-cta::after{ transform: translateX(4px); }

/* 纯展示卡（无链接）不显示箭头与悬停位移 */
.bc-card.is-static:hover{ transform:none; border-color:rgba(255,255,255,.12); }

/* ---------- 进度条 + 圆点 ---------- */
.bc-foot{
  display:flex; align-items:center; justify-content:center;
  gap:16px; margin-top:26px;
}
.bc-dots{ display:flex; align-items:center; gap:8px; }
.bc-dot{
  width:8px; height:8px; border-radius:50%; padding:0; border:0;
  background: rgba(255,255,255,.22); cursor:pointer;
  transition: background-color 200ms cubic-bezier(.22,1,.36,1),
              width 260ms cubic-bezier(.34,1.16,.64,1);
}
.bc-dot:hover{ background: rgba(255,255,255,.42); }
.bc-dot[aria-current="true"]{
  background: var(--glass-accent-strong,#e8ab6d);
  width:26px; border-radius:4px;
}
.bc-dot:focus-visible{ outline:2px solid var(--glass-accent-strong); outline-offset:3px; }

/* 拖拽提示（首次） */
.bc-hint{
  font-size:.75rem; color:var(--glass-ink-50); letter-spacing:.04em;
  display:inline-flex; align-items:center; gap:6px;
}

/* ---------- 移动端 ---------- */
@media (max-width: 640px){
  .bc-card{ min-height:0; padding:22px 20px 20px; }
  .bc-title{ font-size:1.375rem; }
  .bc-btn{ width:40px; height:40px; }
  .bc-head{ margin-bottom:20px; }
}

/* ---------- 无障碍降级（§14）---------- */
@media (prefers-reduced-motion: reduce){
  .bc-track{ transition:none !important; }
  .bc-card, .bc-btn, .bc-cta::after, .bc-dot{ transition:none !important; }
  a.bc-card:hover{ transform:none; }
}
@media (prefers-reduced-transparency: reduce){
  .bc-card{
    background:#16181d;
    backdrop-filter:none; -webkit-backdrop-filter:none;
  }
}
