/* =========================================================
   AI 智慧体测系统 · 产品详情页
   浅色极光 + 白玻璃 + 体测数据看板
   ========================================================= */

.bp-fitness {
  --ft-ink: #061426;
  --ft-blue: #1366ec;
  --ft-cyan: #5c99ff;
  --ft-violet: #8b5cf6;
  --ft-green: #0f9f8a;
  --ft-amber: #f59e0b;
  --ft-paper: #f4f7fb;
  --ft-cream: #eaf1f8;
  --ft-line: rgba(13, 41, 70, 0.1);
  --ft-line-strong: rgba(13, 41, 70, 0.17);
  --ft-muted: #5c7088;
  --ft-muted-2: #8798ab;
  background: var(--ft-paper);
}

.bp-fitness .container {
  width: min(calc(100% - 48px), 1200px);
}

/* ---------- Hero ---------- */

.bp-fitness .ft-hero {
  padding-top: calc(var(--header-h) + 50px);
  padding-bottom: 66px;
}

.ft-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 56px;
  align-items: center;
}

.bp-fitness .ft-hero h1 {
  max-width: 740px;
  font-size: clamp(42px, 5vw, 64px);
}

.bp-fitness .page-hero__sub {
  max-width: 620px;
}

.ft-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.ft-hero .page-hero__meta {
  margin-top: 30px;
}

/* 看板 */

.ft-dash-wrap {
  position: relative;
  width: min(100%, 470px);
  margin-left: auto;
}

.ft-dash {
  position: relative;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 250, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  box-shadow:
    0 30px 70px -30px rgba(6, 24, 60, 0.28),
    0 0 0 1px rgba(19, 102, 236, 0.04);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transform: rotate(-0.6deg);
}

.ft-dash__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ft-line);
}

.ft-dash__top strong {
  color: var(--ft-ink);
  font-size: var(--fs-2xs);
  font-weight: 700;
}

.ft-dash__top span {
  padding: 3px 8px;
  color: var(--ft-green);
  background: rgba(15, 159, 138, 0.08);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 650;
}

.ft-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}

.ft-kpi {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid rgba(19, 102, 236, 0.07);
  border-radius: 9px;
}

.ft-kpi span {
  color: var(--ft-muted-2);
  font-size: 9px;
}

.ft-kpi strong {
  display: block;
  margin-top: 3px;
  color: var(--ft-blue);
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.ft-bars {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.ft-bar-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  font-size: 9px;
}

.ft-bar-row span {
  color: var(--ft-muted);
}

.ft-bar-row i {
  height: 6px;
  overflow: hidden;
  background: #e7eff9;
  border-radius: 999px;
}

.ft-bar-row i::before {
  content: "";
  display: block;
  width: var(--v);
  height: 100%;
  background: var(--grad-brand);
  border-radius: inherit;
}

.ft-bar-row b {
  color: var(--ft-ink);
  font-family: var(--font-num);
  font-size: 9px;
  text-align: right;
}

.ft-rank {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.ft-rank__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  background: #fff;
  border: 1px solid rgba(19, 102, 236, 0.06);
  border-radius: 6px;
  font-size: 9px;
}

.ft-rank__row span {
  color: var(--ft-muted);
}

.ft-rank__row b {
  color: var(--ft-green);
  font-size: 9px;
  font-weight: 600;
}

.ft-dash__foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  color: var(--ft-muted-2);
  border-top: 1px dashed var(--ft-line);
  font-size: 9px;
}

.ft-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: var(--ft-ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 14px 30px -16px rgba(6, 24, 60, 0.34);
  font-size: 10px;
  font-weight: 600;
}

.ft-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--ft-green);
  border-radius: 50%;
}

.ft-chip--a { top: -36px; right: -14px; }
.ft-chip--b { bottom: -18px; left: -18px; }

/* ---------- 通用 ---------- */

.ft-head {
  max-width: 820px;
  margin-bottom: 38px;
}

.ft-head h2 {
  margin: 0;
  color: var(--ft-ink);
  font-size: clamp(32px, 3.8vw, 46px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.ft-head > p {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--ft-muted);
  font-size: var(--fs-md);
  line-height: 1.9;
}

/* ---------- 价值 ---------- */

.ft-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.ft-value {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--ft-line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.ft-value__num {
  color: rgba(19, 102, 236, 0.3);
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.ft-value h3 {
  margin: 16px 0 5px;
  color: var(--ft-ink);
  font-size: var(--fs-md);
  font-weight: 700;
}

.ft-value p {
  margin: 0;
  color: var(--ft-muted);
  font-size: var(--fs-2xs);
  line-height: 1.75;
}

/* ---------- 能力 ---------- */

.ft-caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ft-cap {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--ft-line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.ft-cap span {
  color: var(--ft-blue);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
}

.ft-cap h3 {
  margin: 8px 0 4px;
  color: var(--ft-ink);
  font-size: var(--fs-2xs);
  font-weight: 700;
}

.ft-cap p {
  margin: 0;
  color: var(--ft-muted);
  font-size: 11px;
  line-height: 1.7;
}

/* ---------- 测前中后 ---------- */

.ft-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ft-stage {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--ft-line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.ft-stage__tag {
  display: inline-flex;
  padding: 4px 9px;
  color: var(--ft-blue);
  background: rgba(19, 102, 236, 0.07);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 650;
}

.ft-stage h3 {
  margin: 13px 0 5px;
  color: var(--ft-ink);
  font-size: 19px;
  font-weight: 700;
}

.ft-stage p {
  margin: 0;
  color: var(--ft-muted);
  font-size: var(--fs-2xs);
  line-height: 1.75;
}

.ft-stage__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.ft-stage__chips span {
  padding: 4px 7px;
  color: var(--ft-muted);
  background: var(--ft-paper);
  border-radius: 4px;
  font-size: 10px;
}

/* ---------- 9 项 ---------- */

.ft-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ft-item {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--ft-line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.ft-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ft-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ft-item__num {
  color: rgba(19, 102, 236, 0.3);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
}

.ft-item__tag {
  padding: 3px 7px;
  color: var(--ft-blue);
  background: rgba(19, 102, 236, 0.06);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
}

.ft-item h3 {
  margin: 10px 0 4px;
  color: var(--ft-ink);
  font-size: var(--fs-2xs);
  font-weight: 700;
}

.ft-item p {
  margin: 0;
  color: var(--ft-muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.ft-item ul {
  display: grid;
  gap: 3px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.ft-item li {
  position: relative;
  padding-left: 10px;
  color: var(--ft-muted);
  font-size: 10px;
  line-height: 1.6;
}

.ft-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 3px;
  height: 3px;
  background: var(--ft-green);
  border-radius: 50%;
}

/* ---------- 角色 ---------- */

.ft-roles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.ft-role {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--ft-line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.ft-role__tag {
  color: var(--ft-blue);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ft-role h3 {
  margin: 8px 0 4px;
  color: var(--ft-ink);
  font-size: var(--fs-2xs);
  font-weight: 700;
}

.ft-role p {
  margin: 0;
  color: var(--ft-muted);
  font-size: 10.5px;
  line-height: 1.65;
}

/* ---------- 部署 ---------- */

.ft-deploy {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ft-deploy-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--ft-line);
  border-radius: 16px;
}

.ft-deploy-card strong {
  display: block;
  color: var(--ft-ink);
  font-size: var(--fs-2xs);
  font-weight: 700;
}

.ft-deploy-card span {
  display: block;
  margin-top: 3px;
  color: var(--ft-blue);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ft-deploy-card p {
  margin: 8px 0 0;
  color: var(--ft-muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.ft-delivery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.ft-delivery-step {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--ft-line);
  border-radius: 12px;
}

.ft-delivery-step span {
  color: var(--ft-blue);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
}

.ft-delivery-step strong {
  display: block;
  margin-top: 5px;
  color: var(--ft-ink);
  font-size: 10.5px;
  font-weight: 600;
}

.ft-delivery-step p {
  margin: 3px 0 0;
  color: var(--ft-muted);
  font-size: 9.5px;
  line-height: 1.55;
}

/* ---------- 关联 ---------- */

.ft-related {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--ft-line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.ft-related h3 {
  margin: 0;
  color: var(--ft-ink);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ft-related p {
  margin: 10px 0 0;
  color: var(--ft-muted);
  font-size: var(--fs-2xs);
  line-height: 1.8;
}

.ft-related__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.ft-related__chips span {
  padding: 5px 9px;
  color: var(--ft-blue);
  background: rgba(19, 102, 236, 0.06);
  border-radius: 5px;
  font-size: 10px;
}

.ft-related__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ---------- 数据带 ---------- */

.ft-data-band {
  position: relative;
  padding: 44px;
  overflow: hidden;
  color: #fff;
  background: var(--v2-brand-band, linear-gradient(125deg, #094ebd, #1366ec 42%, #6366f1 74%, #8b5cf6));
  border-radius: 30px;
}

.ft-data-band::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -80px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.ft-data-band__head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 24px;
}

.ft-data-band h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.ft-data-band__head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-sm);
  line-height: 1.9;
}

.ft-data-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.ft-data-stat {
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
}

.ft-data-stat strong {
  display: block;
  color: #fff;
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.ft-data-stat span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .ft-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ft-dash-wrap { margin: 0 auto; }

  .ft-values,
  .ft-deploy {
    grid-template-columns: 1fr 1fr;
  }

  .ft-caps,
  .ft-items {
    grid-template-columns: 1fr 1fr;
  }

  .ft-roles {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .ft-delivery {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .ft-related {
    grid-template-columns: 1fr;
  }

  .ft-data-band__head {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .ft-stages {
    grid-template-columns: 1fr;
  }

  .ft-data-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .bp-fitness .container {
    width: min(calc(100% - 36px), 1200px);
  }

  .bp-fitness .ft-hero {
    padding-top: calc(var(--header-h) + 42px);
    padding-bottom: 54px;
  }

  .bp-fitness .ft-hero h1 {
    font-size: clamp(36px, 10.4vw, 50px);
  }

  .ft-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ft-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .ft-dash {
    padding: 15px;
    transform: none;
  }

  .ft-chip--a { display: none; }
  .ft-chip--b { left: 0; }

  .ft-head h2 { font-size: 30px; }

  .ft-values,
  .ft-caps,
  .ft-items,
  .ft-roles,
  .ft-deploy,
  .ft-delivery,
  .ft-data-stats {
    grid-template-columns: 1fr;
  }

  .ft-data-band {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .ft-hero .page-hero__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}