/* =========================================================
   进出校管理系统 · 产品详情页
   浅色极光 + 白玻璃 + 校园通行证
   ========================================================= */

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

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

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

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

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

.bp-access .ac-hero h1 {
  max-width: 720px;
  font-size: clamp(42px, 5vw, 64px);
}

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

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

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

/* 通行证 */

.ac-pass-wrap {
  position: relative;
  width: min(100%, 400px);
  margin-left: auto;
}

.ac-pass {
  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);
}

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

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

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

.ac-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 12px;
}

.ac-avatar {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #1366ec, #5c99ff);
  border-radius: 13px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.ac-person div strong {
  display: block;
  color: var(--ac-ink);
  font-size: var(--fs-2xs);
}

.ac-person div span {
  display: block;
  margin-top: 2px;
  color: var(--ac-muted-2);
  font-size: 9px;
}

.ac-code {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(19, 102, 236, 0.08);
  border-radius: 10px;
}

.ac-qr {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  background:
    repeating-linear-gradient(0deg, #0c2748 0 3px, #fff 3px 6px),
    repeating-linear-gradient(90deg, #0c2748 0 3px, #fff 3px 6px);
  background-blend-mode: multiply;
  border-radius: 6px;
}

.ac-code div strong {
  display: block;
  color: var(--ac-ink);
  font-size: 11px;
  font-weight: 700;
}

.ac-code div span {
  display: block;
  margin-top: 4px;
  color: var(--ac-muted);
  font-size: 9px;
  line-height: 1.6;
}

.ac-rows {
  display: grid;
  gap: 6px;
  margin-top: 11px;
}

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

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

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

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

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

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

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

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

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

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

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

/* ---------- 对比 ---------- */

.ac-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.ac-col--past {
  background: #f8fafc;
}

.ac-col h3 {
  margin: 0 0 14px;
  color: var(--ac-ink);
  font-size: var(--fs-md);
  font-weight: 700;
}

.ac-col--past h3 {
  color: var(--ac-muted);
}

.ac-col__row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--ac-line);
}

.ac-col__row span {
  color: var(--ac-muted-2);
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 700;
}

.ac-col__row p {
  margin: 0;
  color: var(--ac-muted);
  font-size: var(--fs-2xs);
  line-height: 1.65;
}

.ac-col--now .ac-col__row span { color: var(--ac-blue); }
.ac-col--now .ac-col__row p { color: var(--ac-ink); }

/* ---------- 流程 ---------- */

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

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

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

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

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

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

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

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

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

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

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

.ac-role h3 {
  margin: 12px 0 5px;
  color: var(--ac-ink);
  font-size: 18px;
  font-weight: 700;
}

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

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

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

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

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

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

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

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

.ac-scenes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ac-scene {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.ac-scene__num {
  color: rgba(19, 102, 236, 0.34);
  font-family: var(--font-num);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.2;
}

.ac-scene h3 {
  margin: 0;
  color: var(--ac-ink);
  font-size: var(--fs-md);
  font-weight: 700;
}

.ac-scene p {
  margin: 5px 0 0;
  color: var(--ac-muted);
  font-size: var(--fs-2xs);
  line-height: 1.7;
}

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

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

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

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

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

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

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

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

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

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

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

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

  .ac-pass-wrap { margin: 0 auto; }

  .ac-roles,
  .ac-caps {
    grid-template-columns: 1fr 1fr;
  }

  .ac-compare {
    grid-template-columns: 1fr;
  }

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

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

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

  .ac-scenes {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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

  .ac-pass {
    padding: 16px;
    transform: none;
  }

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

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

  .ac-flow,
  .ac-roles,
  .ac-caps,
  .ac-scenes,
  .ac-data-stats {
    grid-template-columns: 1fr;
  }

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

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

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