/* ==========================================================================
   fan-coverflow.css —— 扇形封面流卡片带（品牌展示型主视觉）
   --------------------------------------------------------------------------
   设计要点：
     · 中心卡片正对用户：不旋转、尺寸最大、亮度最高
     · 两侧卡片按「距中心的级数」逐级旋转（rotateY）、后移（translateZ）、
       缩小（scale）、降低亮度（filter:brightness），形成清晰纵深层次
     · 整组用同一条缓动曲线连续转动，切换时一张自然回到正中，不跳步
     · 环绕式排列：越界卡片在完全透明后才换边，衔接处看不出跳变
   依赖：仅自身，不依赖 Tailwind / 其它样式表
   ========================================================================== */

/* ---------- 区块头部 ---------- */
.fc-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.fc-lead {
  margin: 14px auto 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(233, 234, 236, 0.62);
  max-width: 46ch;
}

/* ---------- 屏幕阅读器专用 ---------- */
.fc-live,
.fc-sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 防御：锁定定位与 3D 上下文 ----------
   页面自己的脚本会给「文本含 查看/询价/报价/获取…」的 button 动态加 .gx-sheen，
   而 .gx-sheen{position:relative} 是在本文件之后注入的，同特异性下会覆盖
   .fc-card{position:absolute}，导致 8 张卡片退回普通流垂直堆叠、扇形被压平。
   这里用更高特异性 + !important 锁定，确保组件不被外部脚本破坏。 */
.fc-stage .fc-card {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}
.fc-stage,
.fc-track,
.fc-stage .fc-card {
  transform-style: preserve-3d !important;
}
.fc-track { transform: none !important; will-change: auto !important; }

/* ---------- 阶段容器：建立 3D 空间 ---------- */
.fc-stage {
  position: relative;
  height: 476px;
  margin: 30px auto 0;
  perspective: 2100px;
  perspective-origin: 50% 42%;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}

.fc-track {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

/* ---------- 卡片 ---------- */
.fc-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 274px;
  height: 366px;
  margin-left: -137px;
  margin-top: -183px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 78% 6%, rgba(232, 171, 109, 0.2), transparent 58%),
    linear-gradient(168deg, #343842 0%, #232830 46%, #171a20 100%);
  box-shadow:
    0 34px 68px rgba(0, 0, 0, 0.55),
    0 2px 0 rgba(255, 255, 255, 0.08) inset;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  font: inherit;
  color: inherit;
  /* 整组连续转动：一条缓动曲线，长时长、末段自然收束 */
  transition:
    transform 0.82s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.82s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.82s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, filter, opacity;
  outline: none;
}

/* 卡片内的光泽（中心卡最亮） */
.fc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.09) 0%, transparent 34%);
  opacity: 0.7;
  transition: opacity 0.82s cubic-bezier(0.22, 1, 0.36, 1);
}
.fc-card.is-center::after { opacity: 1; }

/* 中心卡描金边 */
.fc-card.is-center {
  border-color: rgba(232, 171, 109, 0.5);
  box-shadow:
    0 40px 84px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(232, 171, 109, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.08) inset;
}

.fc-card:focus-visible {
  box-shadow:
    0 0 0 3px rgba(232, 171, 109, 0.75),
    0 34px 68px rgba(0, 0, 0, 0.55);
}

/* ---------- 封面内容 ---------- */
.fc-cover {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 22px 22px;
}

/* 大号页码（背景水印） */
.fc-no {
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 76px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(232, 171, 109, 0.16);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

/* 左上角板块标签 */
.fc-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(232, 171, 109, 0.92);
  background: rgba(232, 171, 109, 0.1);
  border: 1px solid rgba(232, 171, 109, 0.24);
}
.fc-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

/* 标题与副标题 */
.fc-title {
  margin: 16px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: -0.01em;
  color: #f5f6f8;
}
.fc-sub {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.72;
  color: rgba(233, 234, 236, 0.6);
}

/* 底部序号条 */
.fc-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.fc-idx {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(233, 234, 236, 0.42);
  font-variant-numeric: tabular-nums;
}
.fc-go {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(232, 171, 109, 0.85);
  white-space: nowrap;
}
.fc-go svg { width: 13px; height: 13px; }

/* ---------- 控制条 ---------- */
.fc-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}
.fc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: rgba(233, 234, 236, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.12s;
}
.fc-btn:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(232, 171, 109, 0.42);
  color: #e8ab6d;
}
.fc-btn:active { transform: scale(0.94); }
.fc-btn:focus-visible { outline: 2px solid rgba(232, 171, 109, 0.8); outline-offset: 2px; }
.fc-btn svg { width: 18px; height: 18px; }

.fc-count {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(233, 234, 236, 0.62);
  font-variant-numeric: tabular-nums;
  min-width: 62px;
  text-align: center;
}

/* 圆点指示器 */
.fc-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}
.fc-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background-color 0.3s, width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.fc-dot:hover { background: rgba(255, 255, 255, 0.4); }
.fc-dot[aria-current="true"] {
  width: 20px;
  border-radius: 999px;
  background: #e8ab6d;
}
.fc-dot:focus-visible { outline: 2px solid rgba(232, 171, 109, 0.8); outline-offset: 2px; }

/* ---------- 详情面板（跟随居中卡片） ---------- */
.fc-detail {
  margin-top: 30px;
  position: relative;
}
.fc-detail > .bc-page {
  /* 复用 brand-carousel-content.css 的排版 */
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  padding: 26px 26px 24px;
  animation: fc-fade-in 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.fc-detail > .bc-page[hidden] { display: none; }
@keyframes fc-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 拖拽状态 ---------- */
.fc-stage.is-dragging .fc-card { cursor: grabbing; }
.fc-stage.is-dragging .fc-card { transition-duration: 0s; }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .fc-stage { height: 442px; perspective: 1550px; }
  .fc-card { width: 252px; height: 338px; margin-left: -126px; margin-top: -169px; }
  .fc-title { font-size: 18.5px; }
}
@media (max-width: 900px) {
  .fc-stage { height: 410px; perspective: 1350px; }
  .fc-card { width: 226px; height: 306px; margin-left: -113px; margin-top: -153px; }
  .fc-title { font-size: 17px; }
  .fc-sub { font-size: 12px; }
  .fc-no { font-size: 62px; }
}
@media (max-width: 640px) {
  .fc-stage { height: 372px; perspective: 1150px; perspective-origin: 50% 40%; }
  .fc-card { width: 196px; height: 268px; margin-left: -98px; margin-top: -134px; border-radius: 16px; }
  .fc-cover { padding: 18px 16px 16px; }
  .fc-title { font-size: 15.5px; margin-top: 12px; }
  .fc-sub { font-size: 11.5px; line-height: 1.62; }
  .fc-no { font-size: 52px; right: 12px; top: 8px; }
  .fc-tag { font-size: 10.5px; padding: 4px 9px; }
  .fc-detail > .bc-page { padding: 20px 16px 18px; border-radius: 16px; }
  .fc-btn { width: 40px; height: 40px; }
}

/* ---------- 无障碍降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .fc-card { transition-duration: 0.01ms !important; }
  .fc-detail > .bc-page { animation: none !important; }
  .fc-dot { transition: none; }
}
