/* =========================================================
   统一身份认证平台 · 产品详情页
   浅色极光 + 白玻璃卡片，与产品体系页保持一致
   ========================================================= */

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

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

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

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

.au-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 56px;
  align-items: center;
}

.bp-auth .au-hero h1 {
  max-width: 720px;
  font-size: clamp(44px, 5.2vw, 68px);
}

.bp-auth .page-hero__sub {
  max-width: 610px;
}

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

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

/* 登录卡 */

.au-login-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.au-login {
  position: relative;
  width: min(100%, 382px);
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow:
    0 30px 70px -30px rgba(6, 24, 60, 0.3),
    0 0 0 1px rgba(19, 102, 236, 0.05);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

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

.au-login__title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--au-ink);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.au-login__title i {
  width: 9px;
  height: 9px;
  background: var(--au-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(19, 102, 236, 0.1);
}

.au-login__tag {
  padding: 3px 9px;
  color: var(--au-blue);
  background: rgba(19, 102, 236, 0.07);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.au-login__tabs {
  display: flex;
  gap: 18px;
  margin: 16px 0 12px;
  color: var(--au-muted-2);
  font-size: var(--fs-2xs);
}

.au-login__tabs b {
  position: relative;
  color: var(--au-blue);
  font-weight: 650;
}

.au-login__tabs b::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}

.au-login__field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  margin-top: 9px;
  padding: 0 12px;
  color: var(--au-muted-2);
  background: #fff;
  border: 1px solid var(--au-line);
  border-radius: 9px;
  font-size: var(--fs-2xs);
}

.au-login__field i {
  width: 16px;
  height: 16px;
  background: #dce8f6;
  border-radius: 4px;
}

.au-login__field span {
  flex: 1;
  height: 6px;
  background: #e7eff9;
  border-radius: 3px;
}

.au-login__field--code span {
  max-width: 120px;
}

.au-login__field--code em {
  color: var(--au-blue);
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
}

.au-login__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  margin-top: 14px;
  color: #fff;
  background: var(--grad-brand);
  border-radius: 9px;
  box-shadow: 0 10px 22px -10px rgba(19, 102, 236, 0.5);
  font-size: var(--fs-sm);
  font-weight: 650;
}

.au-login__apps {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--au-line);
}

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

.au-login__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: var(--au-muted-2);
  font-size: 10px;
}

.au-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: var(--au-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: 11px;
  font-weight: 600;
}

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

.au-chip--a {
  top: 24px;
  right: -22px;
}

.au-chip--b {
  bottom: -16px;
  left: -18px;
}

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

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

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

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

/* ---------- 为什么 ---------- */

.au-pains {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.au-pain {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--au-line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.au-pain:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.au-pain__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.au-pain__num {
  color: rgba(19, 102, 236, 0.34);
  font-family: var(--font-num);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.au-pain__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--au-blue);
  background: rgba(19, 102, 236, 0.08);
  border-radius: 11px;
}

.au-pain__icon svg {
  width: 19px;
  height: 19px;
}

.au-pain h3 {
  margin: 22px 0 6px;
  color: var(--au-ink);
  font-size: var(--fs-lg);
  font-weight: 700;
}

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

/* ---------- 四大中心 ---------- */

.au-centers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

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

.au-center__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.au-center__icon svg {
  width: 20px;
  height: 20px;
}

.au-center__num {
  color: rgba(19, 102, 236, 0.3);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.au-center h3 {
  margin: 18px 0 5px;
  color: var(--au-ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

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

.au-center ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.au-center li {
  padding: 4px 8px;
  color: var(--au-muted);
  background: var(--au-paper);
  border-radius: 5px;
  font-size: 11px;
}

/* ---------- 认证方式 ---------- */

.au-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.au-mode__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.au-mode__num {
  color: rgba(19, 102, 236, 0.32);
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.au-level {
  display: flex;
  gap: 3px;
}

.au-level i {
  width: 5px;
  height: 5px;
  background: #dbe6f4;
  border-radius: 50%;
}

.au-level i.on {
  background: var(--au-blue);
}

.au-level i.on:nth-child(n + 4) {
  background: var(--au-violet);
}

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

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

.au-mode__tag {
  display: inline-flex;
  margin-top: 12px;
  padding: 4px 8px;
  color: var(--au-blue);
  background: rgba(19, 102, 236, 0.06);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
}

/* ---------- 架构 ---------- */

.au-arch {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--au-line);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}

.au-layer {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 14px;
}

.au-layer + .au-layer {
  margin-top: 8px;
}

.au-layer--apps {
  background: linear-gradient(120deg, rgba(19, 102, 236, 0.07), rgba(92, 153, 255, 0.03));
  border: 1px solid rgba(19, 102, 236, 0.12);
}

.au-layer--auth {
  background:
    radial-gradient(380px 160px at 90% 0%, rgba(139, 92, 246, 0.1), transparent 64%),
    linear-gradient(120deg, #f1f6ff, #fbfdff);
  border: 1px solid rgba(19, 102, 236, 0.18);
}

.au-layer--identity {
  background: var(--au-paper);
  border: 1px solid var(--au-line);
}

.au-layer--data {
  background: #f8fafc;
  border: 1px dashed var(--au-line-strong);
}

.au-layer__label span {
  display: block;
  color: var(--au-blue);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.au-layer__label strong {
  display: block;
  margin-top: 4px;
  color: var(--au-ink);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.au-layer__body {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.au-chip-sm {
  padding: 6px 9px;
  color: var(--au-ink);
  background: #fff;
  border: 1px solid var(--au-line);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}

.au-chip-sm--blue {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
}

.au-chip-sm--violet {
  color: var(--au-violet);
  background: rgba(139, 92, 246, 0.07);
  border-color: rgba(139, 92, 246, 0.16);
}

/* ---------- 接入方式 ---------- */

.au-access {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

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

.au-access-card strong {
  display: block;
  color: var(--au-ink);
  font-size: var(--fs-md);
  font-weight: 700;
}

.au-access-card span {
  display: block;
  margin-top: 4px;
  color: var(--au-blue);
  font-size: 10px;
  font-weight: 650;
}

.au-access-card p {
  margin: 8px 0 0;
  color: var(--au-muted);
  font-size: var(--fs-2xs);
  line-height: 1.7;
}

/* ---------- 安全 ---------- */

.au-security {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.au-security-list {
  display: grid;
  gap: 10px;
}

.au-security-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 15px;
  padding: 17px;
  background: #fff;
  border: 1px solid var(--au-line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.au-security-item__num {
  color: var(--au-blue);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
}

.au-security-item h3 {
  margin: 0 0 3px;
  color: var(--au-ink);
  font-size: var(--fs-sm);
  font-weight: 700;
}

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

.au-shield {
  position: relative;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(420px 230px at 88% 0%, rgba(98, 230, 255, 0.14), transparent 62%),
    linear-gradient(135deg, #0b2438, #071827);
  border-radius: 26px;
}

.au-shield h3 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.au-shield p {
  margin: 10px 0 0;
  color: rgba(226, 238, 248, 0.56);
  font-size: var(--fs-2xs);
  line-height: 1.8;
}

.au-shield__items {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.au-shield__items span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  color: rgba(235, 247, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  font-size: 11px;
}

.au-shield__items span::before {
  content: "✓";
  color: #62e6ff;
  font-weight: 700;
}

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

.au-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.au-value-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--au-line);
  border-radius: 18px;
}

.au-value-card span {
  color: var(--au-blue);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
}

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

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

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

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

  .au-login-wrap {
    justify-content: flex-start;
  }

  .au-pains,
  .au-access,
  .au-values {
    grid-template-columns: 1fr 1fr;
  }

  .au-modes {
    grid-template-columns: 1fr 1fr;
  }

  .au-security {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

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

  .au-layer {
    grid-template-columns: 1fr;
    gap: 9px;
  }
}

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

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

  .bp-auth .au-hero h1 {
    font-size: clamp(40px, 11vw, 54px);
  }

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

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

  .au-login-wrap {
    justify-content: center;
  }

  .au-login {
    padding: 18px;
  }

  .au-chip--a {
    right: 0;
  }

  .au-chip--b {
    left: 0;
    bottom: -14px;
  }

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

  .au-pains,
  .au-modes,
  .au-access,
  .au-values {
    grid-template-columns: 1fr;
  }

  .au-arch {
    padding: 16px;
  }

  .au-layer {
    padding: 14px;
  }
}
/* 让悬浮标签相对登录卡定位 */
.au-login-wrap {
  width: min(100%, 382px);
  margin-left: auto;
  justify-content: flex-end;
}

.au-login {
  width: 100%;
}

@media (max-width: 1080px) {
  .au-login-wrap {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .au-login-wrap {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .au-chip--a {
    display: none;
  }
}
