/* =========================================================
   人像比对系统 · 产品详情页
   浅色极光 + 白玻璃 + 核验终端
   ========================================================= */

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

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

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

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

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

.bp-portrait .pt-hero h1 {
  max-width: 740px;
  font-size: clamp(42px, 4.8vw, 62px);
}

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

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

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

/* 核验终端 */

.pt-terminal-wrap {
  position: relative;
  width: min(100%, 430px);
  margin-left: auto;
}

.pt-terminal {
  position: relative;
  padding: 22px;
  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: 24px;
  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.7deg);
}

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

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

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

.pt-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.pt-photo {
  position: relative;
  overflow: hidden;
  height: 118px;
  background: linear-gradient(135deg, #dce9f8, #f2f8ff);
  border: 1px dashed rgba(19, 102, 236, 0.2);
  border-radius: 12px;
}

.pt-photo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 26px;
  width: 38px;
  height: 38px;
  background: #b6cde6;
  border-radius: 50%;
  transform: translateX(-50%);
}

.pt-photo::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 68px;
  width: 58px;
  height: 30px;
  background: #c8dbee;
  border-radius: 30px 30px 0 0;
  transform: translateX(-50%);
}

.pt-photo span {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 1;
  padding: 2px 6px;
  color: var(--pt-blue);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  font-size: 8px;
  font-weight: 600;
}

.pt-photo--id {
  background: linear-gradient(135deg, #e8f4ff, #f7fbff);
}

.pt-photo--id::before {
  top: 22px;
  width: 34px;
  height: 40px;
  border-radius: 4px;
}

.pt-photo--id::after {
  top: 70px;
  width: 72px;
  height: 6px;
  background: #c8dbee;
  border-radius: 3px;
}

.pt-score {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(19, 102, 236, 0.08);
  border-radius: 9px;
}

.pt-score strong {
  color: var(--pt-green);
  font-family: var(--font-num);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.pt-score div {
  padding-bottom: 2px;
}

.pt-score span {
  display: block;
  color: var(--pt-muted-2);
  font-size: 9px;
}

.pt-score b {
  display: block;
  margin-top: 2px;
  color: var(--pt-ink);
  font-size: 10px;
  font-weight: 600;
}

.pt-checks {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.pt-check {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  background: #fff;
  border: 1px solid rgba(19, 102, 236, 0.07);
  border-radius: 6px;
  color: var(--pt-muted);
  font-size: 9px;
}

.pt-check::before {
  content: "✓";
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  color: #fff;
  background: var(--pt-green);
  border-radius: 50%;
  font-size: 8px;
}

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

.pt-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: var(--pt-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;
}

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

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

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

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

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

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

/* ---------- 场景 ---------- */

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

.pt-scene {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--pt-line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

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

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

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

/* ---------- 四步 ---------- */

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

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

.pt-step::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -10px;
  z-index: 2;
  color: rgba(19, 102, 236, 0.34);
  font-size: 15px;
  transform: translateY(-50%);
}

.pt-step:last-child::after { display: none; }

.pt-step__num {
  color: var(--pt-blue);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
}

.pt-step h3 {
  margin: 10px 0 5px;
  color: var(--pt-ink);
  font-size: var(--fs-md);
  font-weight: 700;
}

.pt-step p {
  margin: 0;
  color: var(--pt-muted);
  font-size: var(--fs-2xs);
  line-height: 1.7;
}

/* ---------- 核心能力 ---------- */

.pt-caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pt-cap {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--pt-line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.pt-cap__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #1366ec, #5c99ff);
  border-radius: 12px;
}

.pt-cap__icon svg {
  width: 21px;
  height: 21px;
}

.pt-cap h3 {
  margin: 0 0 5px;
  color: var(--pt-ink);
  font-size: var(--fs-lg);
  font-weight: 700;
}

.pt-cap p {
  margin: 0;
  color: var(--pt-muted);
  font-size: var(--fs-sm);
  line-height: 1.8;
}

/* ---------- 机型 ---------- */

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

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

.pt-device__visual {
  position: relative;
  display: grid;
  height: 130px;
  place-items: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #eef4ff, #f9fcff);
  border-radius: 12px;
}

.pt-device__body {
  position: relative;
  width: 58px;
  height: 96px;
  background: #0c2748;
  border-radius: 8px;
}

.pt-device__body::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 26px;
  height: 26px;
  background: #5c99ff;
  border-radius: 50%;
  transform: translateX(-50%);
}

.pt-device__body::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 34px;
  height: 22px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  transform: translateX(-50%);
}

.pt-device--hand .pt-device__body {
  width: 52px;
  height: 96px;
  border-radius: 12px;
}

.pt-device--desk .pt-device__body {
  width: 84px;
  height: 76px;
  border-radius: 8px;
}

.pt-device--desk .pt-device__body::before {
  width: 34px;
  height: 34px;
}

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

.pt-device h3 {
  margin: 10px 0 4px;
  color: var(--pt-ink);
  font-size: var(--fs-md);
  font-weight: 700;
}

.pt-device p {
  margin: 0;
  color: var(--pt-muted);
  font-size: var(--fs-2xs);
  line-height: 1.7;
}

/* ---------- 管理体系 ---------- */

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

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

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

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

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

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

.pt-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;
}

.pt-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%;
}

.pt-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;
}

.pt-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;
}

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

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

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

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

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

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

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

  .pt-terminal-wrap { margin: 0 auto; }

  .pt-caps { grid-template-columns: 1fr; }

  .pt-scenes,
  .pt-devices,
  .pt-manage {
    grid-template-columns: 1fr 1fr;
  }

  .pt-steps { grid-template-columns: 1fr 1fr; }

  .pt-step:nth-child(2n)::after { display: none; }

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

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

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

  .bp-portrait .pt-hero h1 {
    font-size: clamp(34px, 9.6vw, 46px);
  }

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

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

  .pt-terminal {
    padding: 16px;
    transform: none;
  }

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

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

  .pt-scenes,
  .pt-devices,
  .pt-manage,
  .pt-steps,
  .pt-data-stats {
    grid-template-columns: 1fr;
  }

  .pt-step::after { display: none; }

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

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