:root {
  --bg-hero: #eef7ff;
  --bg-page: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --blue: #2563eb;
  --blue-soft: #eaf2ff;
  --green: #22c55e;
  --amber: #f59e0b;
  --slate: #111827;
  --shadow: 0 24px 70px rgba(31, 41, 55, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg-page);
  font-family: MiSans, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 clamp(24px, 9vw, 120px);
  background: rgba(238, 247, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #05080f;
  font-size: 28px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
}

.main-nav {
  display: flex;
  gap: 48px;
  align-items: center;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.main-nav a {
  padding: 8px 0;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 40px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  white-space: nowrap;
}

.btn-primary {
  color: #fff;
  background: var(--blue);
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
}

.btn-soft {
  color: var(--blue);
  background: #fff;
  border-color: #dbeafe;
}

.btn-large {
  min-width: 160px;
  height: 54px;
  font-size: 16px;
}

.hero {
  min-height: 700px;
  padding: 120px clamp(24px, 9vw, 120px) 84px;
  background:
    radial-gradient(circle at 80% 36%, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg-hero) 0%, #f5fbff 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(600px, 1.18fr) minmax(340px, 0.82fr);
  gap: clamp(36px, 6vw, 86px);
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.eyebrow {
  margin: 0 0 32px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
}

.hero h1,
.section h2 {
  margin: 0;
  color: var(--text);
  line-height: 1.18;
  font-weight: 800;
}

.hero h1 {
  font-size: 48px;
}

.section h2 {
  font-size: 46px;
}

.hero-lead {
  max-width: 680px;
  margin: 36px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.9;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 52px;
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.pay-badge,
.merchant-card,
.product-card,
.analytics-panel,
.docs-card,
.dashboard-shell,
.service-grid article {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.pay-badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 190px;
  height: 72px;
  padding: 0 24px;
  border-radius: 16px;
}

.pay-badge.wechat {
  top: 50px;
  right: 8px;
}

.pay-badge.alipay {
  top: 170px;
  right: 96px;
}

.mark,
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  flex: 0 0 auto;
}

.wechat .mark {
  background: #10b981;
}

.alipay .mark {
  background: #1677ff;
}

.state-dot {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #16a34a;
  background: #dcfce7;
  font-size: 12px;
  font-weight: 700;
}

.merchant-card {
  position: absolute;
  right: -18px;
  bottom: 12px;
  width: min(420px, 100%);
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.card-top,
.table-toolbar,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 700;
}

.metric {
  margin-top: 28px;
}

.metric span,
.dashboard-top span,
.panel-head span,
.channel-list span {
  display: block;
  color: #9ca3af;
  font-size: 15px;
  font-weight: 700;
}

.metric strong {
  display: inline-block;
  margin-top: 10px;
  font-size: 48px;
  line-height: 1;
}

.metric em {
  display: inline-flex;
  margin-left: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--muted);
  background: #f3f4f6;
  font-style: normal;
  font-weight: 700;
  vertical-align: 9px;
}

.account-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.account-card span {
  display: block;
  margin-top: 12px;
  color: #9ca3af;
  letter-spacing: 3px;
}

.account-card a {
  color: var(--blue);
  font-weight: 800;
}

.mini-bars {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 88px;
  margin-top: 30px;
}

.mini-bars span {
  width: 100%;
  min-width: 18px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: -54px auto 0;
  padding: 0 clamp(24px, 4vw, 48px);
  position: relative;
  z-index: 2;
}

.stats-strip div {
  min-height: 112px;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(31, 41, 55, 0.1);
}

.stats-strip strong {
  display: block;
  font-size: 32px;
}

.stats-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 110px clamp(24px, 9vw, 120px);
}

.section-heading {
  max-width: 850px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading .eyebrow {
  margin-bottom: 18px;
}

.section-heading h2,
.routing-copy h2,
.docs-card h2 {
  font-size: 46px;
  line-height: 1.25;
}

.section-heading p:not(.eyebrow),
.routing-copy p,
.docs-card p,
.service-grid p,
.product-card p {
  color: var(--muted);
  line-height: 1.75;
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  min-height: 260px;
  padding: 30px;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 18px;
}

.product-card h3,
.service-grid h3 {
  margin: 24px 0 12px;
  font-size: 22px;
}

.card-icon.blue {
  background: var(--blue);
}

.card-icon.green {
  background: var(--green);
}

.card-icon.amber {
  background: var(--amber);
}

.card-icon.slate {
  background: var(--slate);
}

.routing {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(420px, 1fr);
  gap: clamp(40px, 7vw, 92px);
  align-items: center;
  background: #f8fbff;
}

.routing-copy .eyebrow,
.docs-card .eyebrow {
  margin-bottom: 18px;
}

.routing-copy p {
  margin: 28px 0 0;
  font-size: 18px;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.feature-list div {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #fff;
}

.feature-list span {
  color: var(--muted);
}

.analytics-panel {
  padding: 32px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 28px;
}

.panel-head strong {
  display: block;
  margin-top: 8px;
  font-size: 44px;
}

.segmented {
  display: flex;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: #f3f4f6;
}

.segmented span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 30px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.segmented .active {
  color: #fff;
  background: var(--text);
}

.line-chart {
  position: relative;
  height: 230px;
  margin: 30px 0;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(34, 197, 94, 0.04)),
    repeating-linear-gradient(0deg, transparent 0 45px, rgba(229, 231, 235, 0.8) 46px 47px);
}

.line-chart::before {
  content: "";
  position: absolute;
  inset: 56px 20px 58px 20px;
  border-bottom: 5px solid var(--blue);
  border-right: 5px solid var(--green);
  border-radius: 0 0 80px 18px;
  transform: skewX(-18deg);
  opacity: 0.85;
}

.line-chart span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.channel-list {
  display: grid;
  gap: 14px;
}

.channel-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f9fafb;
}

.console-section {
  background: #fff;
}

.align-left {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  width: 100%;
  min-width: 0;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 24px;
}

.dashboard-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  min-height: 430px;
  padding: 28px 20px;
  color: #cbd5e1;
  background: #111827;
}

.dashboard-sidebar strong {
  margin-bottom: 20px;
  color: #fff;
  font-size: 20px;
}

.dashboard-sidebar span {
  padding: 13px 16px;
  border-radius: 12px;
  font-weight: 700;
}

.dashboard-sidebar .active {
  color: #fff;
  background: #2563eb;
}

.dashboard-main {
  min-width: 0;
  padding: 28px;
  background: #f8fafc;
}

.dashboard-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dashboard-top div {
  min-height: 110px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.dashboard-top strong {
  display: block;
  margin-top: 12px;
  font-size: 28px;
}

.table-card {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: auto;
  max-width: 100%;
}

.table-toolbar {
  margin-bottom: 18px;
}

.table-toolbar span {
  color: var(--blue);
  font-weight: 800;
}

table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 16px 12px;
  border-bottom: 1px solid #eef2f7;
  white-space: nowrap;
}

th {
  color: #94a3b8;
  font-size: 13px;
}

.status {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.status.success {
  color: #15803d;
  background: #dcfce7;
}

.status.pending {
  color: #b45309;
  background: #fef3c7;
}

.status.warning {
  color: #854d0e;
  background: #fef9c3;
}

.status.danger {
  color: #b91c1c;
  background: #fee2e2;
}

td code {
  display: inline-flex;
  max-width: 320px;
  padding: 5px 8px;
  overflow: hidden;
  border-radius: 8px;
  color: #1d4ed8;
  background: #eff6ff;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.docs-section {
  background: #f8fbff;
}

.docs-card {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 36px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 42px;
  border-radius: 24px;
  border: 1px solid rgba(229, 231, 235, 0.9);
}

pre {
  margin: 0;
  padding: 28px;
  border-radius: 18px;
  color: #dbeafe;
  background: #111827;
  overflow: auto;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 15px;
  line-height: 1.8;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.service-grid article {
  min-height: 220px;
  padding: 30px;
  border-radius: 18px;
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, 1fr);
  gap: 44px;
  padding: 64px clamp(24px, 9vw, 120px);
  color: #d1d5db;
  background: #111827;
}

.footer-brand {
  color: #fff;
}

.footer p {
  max-width: 360px;
  color: #9ca3af;
  line-height: 1.8;
}

.footer div {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer strong {
  color: #fff;
}

.footer a,
.footer span {
  color: #9ca3af;
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 20%, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(34, 197, 94, 0.08), transparent 24%),
    linear-gradient(180deg, var(--bg-hero) 0%, #f8fbff 100%);
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(24px, 9vw, 120px);
}

.auth-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 700;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(420px, 520px);
  gap: clamp(42px, 8vw, 110px);
  align-items: center;
  max-width: 1160px;
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 54px clamp(24px, 5vw, 48px) 80px;
}

.register-shell {
  align-items: start;
  padding-top: 70px;
}

.auth-copy h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.16;
}

.auth-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.85;
  font-weight: 600;
}

.auth-preview-card,
.onboarding-card,
.auth-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow);
}

.auth-preview-card {
  max-width: 560px;
  margin-top: 44px;
  padding: 28px;
  border-radius: 24px;
}

.auth-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.auth-metrics div {
  min-height: 98px;
  padding: 20px;
  border-radius: 16px;
  background: #f8fafc;
}

.auth-metrics strong {
  display: block;
  font-size: 28px;
}

.auth-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.onboarding-card {
  max-width: 520px;
  margin-top: 44px;
  padding: 28px;
  border-radius: 24px;
}

.onboarding-card > strong {
  display: block;
  margin-bottom: 18px;
  font-size: 18px;
}

.onboarding-card ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.onboarding-card li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-weight: 700;
}

.onboarding-card li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
  flex: 0 0 auto;
}

.register-assurance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 520px;
  margin-top: 18px;
}

.register-assurance div {
  min-height: 92px;
  padding: 20px;
  border: 1px solid rgba(203, 213, 225, 0.76);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.register-assurance strong {
  display: block;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.register-assurance span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-card {
  width: 100%;
  padding: 36px;
  border-radius: 28px;
}

.auth-card-head .eyebrow {
  margin-bottom: 14px;
  font-size: 16px;
}

.auth-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 34px;
  line-height: 1.2;
}

.auth-card-head p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 600;
}

.auth-form {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.register-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.register-form label,
.register-form .agreement,
.register-form .auth-submit,
.register-form .auth-error {
  grid-column: 1 / -1;
}

.register-form label:nth-of-type(2),
.register-form label:nth-of-type(3) {
  grid-column: auto;
}

.auth-form label:not(.check-line) {
  display: grid;
  gap: 10px;
}

.auth-form label > span,
.form-row,
.check-line {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: #fff;
  font: inherit;
  outline: none;
}

.auth-form input::placeholder {
  color: #a8b0bd;
}

.auth-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-row a,
.auth-switch a {
  color: var(--blue);
  font-weight: 800;
}

.check-line {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.check-line input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.agreement {
  align-items: flex-start;
  width: 100%;
  color: var(--muted);
  line-height: 1.6;
}

.agreement a {
  color: var(--blue);
  font-weight: 900;
}

.code-field {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
}

.code-field button {
  height: 52px;
  border: 0;
  border-radius: 14px;
  color: var(--blue);
  background: var(--blue-soft);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.code-field button:disabled,
.auth-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.password-meter {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.password-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #ef4444;
  transition: width 0.2s ease, background 0.2s ease;
}

.password-meter span[data-level="2"] {
  background: #f59e0b;
}

.password-meter span[data-level="3"],
.password-meter span[data-level="4"] {
  background: #16a34a;
}

.auth-submit {
  width: 100%;
  height: 54px;
  margin-top: 4px;
  border: 0;
  cursor: pointer;
  font-size: 16px;
}

.auth-error {
  min-height: 20px;
  margin: 10px 0 0;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 700;
}

.auth-alert[hidden] {
  display: none;
}

.auth-alert {
  position: fixed;
  top: 28px;
  left: 50%;
  z-index: 50;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  width: min(440px, calc(100% - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(248, 113, 113, 0.32);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.auth-alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #b91c1c;
  background: #fee2e2;
  font-size: 20px;
  font-weight: 900;
}

.auth-alert-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.auth-alert-copy strong {
  color: var(--text);
  font-size: 15px;
}

.auth-alert-copy span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.auth-alert-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #94a3b8;
  background: #f8fafc;
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  line-height: 1;
}

.auth-alert.success {
  border-color: rgba(34, 197, 94, 0.32);
}

.auth-alert.success .auth-alert-icon {
  color: #15803d;
  background: #dcfce7;
}

.auth-alert-close:hover {
  color: var(--text);
  background: #eef2f7;
}

.auth-switch {
  margin: 24px 0 0;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.auth-divider {
  display: inline-block;
  margin: 0 8px;
  color: #cbd5e1;
}

.admin-auth-page {
  background:
    radial-gradient(circle at 20% 18%, rgba(37, 99, 235, 0.12), transparent 28%),
    radial-gradient(circle at 78% 14%, rgba(17, 24, 39, 0.1), transparent 26%),
    linear-gradient(180deg, #eef7ff 0%, #f8fbff 100%);
}

.admin-login-shell {
  grid-template-columns: minmax(460px, 0.95fr) minmax(420px, 500px);
}

.admin-preview-card .pill {
  color: #fff;
  background: var(--slate);
}

.admin-page {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  background: #f6f9fc;
  transition: grid-template-columns 0.2s ease;
}

.admin-page.sidebar-collapsed {
  grid-template-columns: 88px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  padding: 28px 20px;
  color: #cbd5e1;
  background: #111827;
}

.admin-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-brand {
  color: #fff;
  padding: 4px 10px;
  overflow: hidden;
  white-space: nowrap;
}

.admin-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  flex: 0 0 auto;
}

.admin-sidebar-toggle:hover {
  color: #fff;
  background: rgba(37, 99, 235, 0.32);
}

.toggle-mark {
  font-size: 24px;
  line-height: 1;
}

.admin-nav {
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: auto;
  padding-right: 2px;
}

.admin-nav-group {
  display: grid;
  gap: 8px;
}

.admin-nav-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  color: #94a3b8;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

.admin-nav-group summary::-webkit-details-marker {
  display: none;
}

.admin-nav-group summary::after {
  content: "›";
  font-size: 18px;
  transform: rotate(90deg);
  transition: transform 0.18s ease;
}

.admin-nav-group:not([open]) summary::after {
  transform: rotate(0deg);
}

.admin-nav-group summary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.admin-subnav {
  display: grid;
  gap: 6px;
}

.admin-subnav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px 0 24px;
  border-radius: 12px;
  color: #cbd5e1;
  font-weight: 700;
}

.admin-subnav a.active,
.admin-subnav a:hover {
  color: #fff;
  background: var(--blue);
}

.admin-page.sidebar-collapsed .admin-sidebar {
  padding: 28px 14px;
}

.admin-page.sidebar-collapsed .admin-sidebar-head {
  justify-content: center;
}

.admin-page.sidebar-collapsed .admin-brand,
.admin-page.sidebar-collapsed .admin-nav,
.admin-page.sidebar-collapsed .admin-sidebar-foot {
  display: none;
}

.admin-page.sidebar-collapsed .toggle-mark {
  transform: rotate(180deg);
}

.admin-sidebar-foot {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.admin-sidebar-foot span {
  display: block;
  color: #94a3b8;
  font-size: 13px;
}

.admin-sidebar-foot strong {
  display: block;
  margin-top: 8px;
  color: #fff;
}

.admin-main {
  min-width: 0;
  padding: 30px clamp(24px, 4vw, 48px) 56px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.compact-topbar {
  justify-content: flex-end;
  margin-bottom: 16px;
}

.compact-topbar > div:first-child {
  display: none;
}

.admin-topbar .eyebrow {
  margin-bottom: 8px;
  font-size: 15px;
}

.admin-topbar h1 {
  margin: 0;
  color: var(--text);
  font-size: 34px;
  line-height: 1.2;
}

.admin-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-account {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 172px;
  height: 44px;
  padding: 0 14px 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(31, 41, 55, 0.06);
}

.admin-account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: var(--slate);
  font-size: 13px;
  font-weight: 900;
  flex: 0 0 auto;
}

.admin-account-copy {
  display: grid;
  min-width: 0;
  line-height: 1.1;
}

.admin-account-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-account-copy em {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-search {
  position: relative;
  display: block;
}

.admin-search span {
  position: absolute;
  left: 16px;
  top: 50%;
  color: #94a3b8;
  font-size: 0;
  transform: translateY(-50%);
}

.admin-search span::before {
  content: "查";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.admin-search input {
  width: min(360px, 38vw);
  height: 44px;
  padding: 0 16px 0 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  outline: none;
}

.admin-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.admin-kpis article,
.admin-panel {
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 18px 54px rgba(31, 41, 55, 0.08);
}

.admin-kpis article {
  min-height: 132px;
  padding: 24px;
  border-radius: 20px;
}

.admin-kpis span,
.admin-panel-head span {
  display: block;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 800;
}

.admin-kpis strong {
  display: block;
  margin-top: 12px;
  font-size: 30px;
  line-height: 1.1;
}

.admin-kpis em {
  display: block;
  margin-top: 12px;
  color: var(--blue);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.85fr);
  gap: 18px;
  margin-top: 18px;
}

.admin-grid-secondary {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.channel-config-note {
  margin-top: 18px;
}

.admin-panel {
  min-width: 0;
  padding: 24px;
  border-radius: 22px;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-panel-head strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.admin-panel-head a {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.admin-chart {
  display: flex;
  align-items: end;
  gap: 18px;
  height: 260px;
  padding: 22px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(34, 197, 94, 0.04)),
    repeating-linear-gradient(0deg, transparent 0 51px, rgba(229, 231, 235, 0.8) 52px 53px);
}

.admin-chart span {
  width: 100%;
  min-width: 24px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.risk-list {
  display: grid;
  gap: 14px;
}

.rule-list {
  display: grid;
  gap: 14px;
}

.rule-list > div {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 16px;
  background: #f8fafc;
}

.rule-list strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
}

.rule-list span {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
  font-weight: 600;
}

.rule-list small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.risk-list > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
}

.risk-list strong {
  display: block;
  margin-bottom: 6px;
}

.risk-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
  font-weight: 600;
}

.risk-list em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: var(--slate);
  font-style: normal;
  font-weight: 800;
}

.risk-dot {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
}

.risk-dot.high {
  background: #ef4444;
}

.risk-dot.mid {
  background: #f59e0b;
}

.risk-dot.low {
  background: #22c55e;
}

.admin-table-wrap {
  max-width: 100%;
  overflow: auto;
}

.admin-table-wrap table {
  min-width: 720px;
}

.admin-table-wrap a {
  color: var(--blue);
  font-weight: 800;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-action {
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--slate);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  line-height: 1;
  min-width: 86px;
  padding: 0 14px;
  white-space: nowrap;
}

.table-action-secondary {
  background: #f3f4f6;
  color: var(--muted);
}

.table-action:hover:not(:disabled),
.table-action:focus-visible:not(:disabled) {
  background: #1e293b;
  outline: none;
}

.table-action-secondary:hover:not(:disabled),
.table-action-secondary:focus-visible:not(:disabled) {
  background: var(--slate);
  color: #fff;
}

.table-action:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

.confirm-mask {
  align-items: center;
  background: rgba(15, 23, 42, 0.46);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 50;
}

.confirm-mask[hidden] {
  display: none;
}

.confirm-dialog {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
  color: #0f172a;
  display: grid;
  gap: 22px;
  max-width: 440px;
  padding: 24px;
  width: min(100%, 440px);
}

.confirm-kicker {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.confirm-dialog h2 {
  font-size: 20px;
  margin: 0 0 8px;
}

.confirm-dialog p {
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.detail-dialog {
  max-width: 560px;
  width: min(100%, 560px);
}

.detail-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.detail-grid div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 6px;
  min-height: 72px;
  padding: 12px 14px;
}

.detail-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-grid strong {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.35;
  word-break: break-all;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.row-actions a {
  white-space: nowrap;
}

.settings-hero {
  margin-bottom: 34px;
}

.settings-hero h1 {
  margin: 0;
  color: #05080f;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1.08;
}

.settings-hero p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
}

.settings-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  align-items: center;
  gap: 0;
  min-height: 54px;
  margin-bottom: 34px;
  padding: 5px;
  border-radius: 10px;
  background: #eef0f2;
  overflow-x: auto;
}

.settings-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.settings-tabs a:hover {
  background: rgba(255, 255, 255, 0.62);
}

.settings-tabs a.active {
  background: #fff;
  box-shadow: 0 2px 10px rgba(31, 41, 55, 0.12);
}

.settings-wide-panel {
  min-height: 100%;
}

.channel-health {
  display: grid;
  gap: 14px;
}

.channel-health div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 16px;
  background: #f8fafc;
}

.channel-health span {
  color: var(--text);
  font-weight: 800;
}

.channel-health strong {
  font-size: 20px;
}

.channel-health em,
.risk-tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.channel-health .healthy,
.risk-tag.low {
  color: #15803d;
  background: #dcfce7;
}

.channel-health .warning {
  color: #b45309;
  background: #fef3c7;
}

.channel-health .danger {
  color: #b91c1c;
  background: #fee2e2;
}

.risk-tag.high {
  color: #b91c1c;
  background: #fee2e2;
}

.order-monitor {
  margin-top: 18px;
}

.admin-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-filter span,
.admin-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: #f3f4f6;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
}

.admin-filter .active {
  color: #fff;
  background: var(--slate);
}

.settings-form {
  display: grid;
  gap: 16px;
}

.settings-form label {
  display: grid;
  gap: 8px;
}

.settings-form label > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.settings-form input,
.settings-form select,
.settings-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: #fff;
  font: inherit;
  outline: none;
}

.settings-form textarea {
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}

.settings-form input:focus,
.settings-form select:focus,
.settings-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.settings-actions .btn {
  border: 0;
  cursor: pointer;
}

.settings-actions .btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.compact-settings-form {
  gap: 18px;
}

.settings-switch {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
  cursor: pointer;
}

.settings-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-switch-control {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
}

.settings-switch-control::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease;
}

.settings-switch input:checked + .settings-switch-control {
  background: var(--blue);
}

.settings-switch input:checked + .settings-switch-control::after {
  transform: translateX(22px);
}

.settings-switch > span:last-child {
  display: grid;
  gap: 5px;
}

.settings-switch strong {
  color: var(--text);
  font-size: 15px;
}

.settings-switch em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(4px);
}

.admin-modal-card {
  width: min(720px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 86px rgba(15, 23, 42, 0.26);
}

.admin-modal-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: #f1f5f9;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.announcement-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(5px);
}

.announcement-card {
  position: relative;
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.announcement-card > span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.announcement-card h2 {
  margin: 10px 0 12px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.25;
}

.announcement-card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.8;
}

.announcement-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: #f1f5f9;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.settings-feedback {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.settings-feedback.pending {
  color: #92400e;
}

.settings-feedback.success {
  color: #15803d;
}

.settings-feedback.error {
  color: #b91c1c;
}

.secret-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.secret-field input {
  min-width: 0;
}

.secret-field button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  color: var(--blue);
  background: #fff;
  font: inherit;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding: 0 30px;
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding-top: 88px;
  }

  .hero-inner,
  .routing,
  .docs-card,
  .auth-shell,
  .admin-grid,
  .admin-grid-secondary {
    grid-template-columns: 1fr;
  }

  .hero-inner > *,
  .routing > *,
  .docs-card > *,
  .auth-shell > * {
    min-width: 0;
  }

  .hero-visual {
    min-height: 480px;
  }

  .stats-strip,
  .product-grid,
  .service-grid,
  .dashboard-top,
  .footer {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    min-height: auto;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    overflow: auto;
  }

  .auth-shell {
    min-height: auto;
  }

  .admin-page {
    grid-template-columns: 1fr;
  }

  .admin-page.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    grid-template-rows: none;
  }

  .admin-page.sidebar-collapsed .admin-sidebar {
    padding: 28px 20px;
  }

  .admin-page.sidebar-collapsed .admin-sidebar-head {
    justify-content: space-between;
  }

  .admin-page.sidebar-collapsed .admin-brand,
  .admin-page.sidebar-collapsed .admin-nav {
    display: grid;
  }

  .admin-sidebar-head {
    align-items: center;
  }

  .admin-sidebar-toggle {
    display: none;
  }

  .admin-nav {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    overflow: auto;
  }

  .admin-nav-group {
    align-content: start;
  }

  .admin-sidebar-foot {
    display: none;
  }

  .admin-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-tools {
    width: 100%;
  }

  .compact-topbar {
    align-items: stretch;
  }

  .settings-tabs {
    grid-template-columns: repeat(7, minmax(150px, 1fr));
  }

  .admin-account {
    min-width: 180px;
  }

  .admin-search {
    flex: 1;
  }

  .admin-search input {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
    padding: 0 24px;
  }

  .auth-header {
    min-height: 66px;
    padding: 0 24px;
  }

  .auth-nav a:not(.btn) {
    display: none;
  }

  .brand {
    font-size: 26px;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .btn {
    min-width: 76px;
    height: 42px;
    padding: 0 18px;
  }

  .hero {
    min-height: auto;
    padding: 82px 30px 52px;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.28;
  }

  .hero-lead {
    font-size: 18px;
    line-height: 1.9;
  }

  .hero-actions {
    margin-top: 38px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .pay-badge {
    display: none;
  }

  .merchant-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 18px;
    padding: 24px;
  }

  .metric strong {
    font-size: 42px;
  }

  .account-card {
    display: grid;
  }

  .stats-strip,
  .product-grid,
  .service-grid,
  .dashboard-top,
  .footer {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    margin-top: 0;
    padding-top: 30px;
  }

  .section {
    padding: 72px 30px;
  }

  .section-heading {
    margin-bottom: 36px;
    text-align: left;
  }

  .section-heading h2,
  .routing-copy h2,
  .docs-card h2 {
    font-size: 34px;
  }

  .dashboard-sidebar {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .dashboard-main,
  .docs-card {
    padding: 22px;
  }

  pre {
    padding: 20px;
  }

  .auth-shell {
    padding: 54px 30px 64px;
  }

  .admin-main {
    padding: 28px 20px 48px;
  }

  .settings-hero {
    margin-bottom: 24px;
  }

  .settings-hero h1 {
    font-size: 38px;
  }

  .admin-sidebar {
    padding: 22px 16px;
  }

  .admin-nav {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .admin-subnav a {
    padding-left: 16px;
  }

  .admin-kpis {
    grid-template-columns: 1fr;
  }

  .admin-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-tabs {
    margin-bottom: 24px;
  }

  .settings-tabs a {
    font-size: 15px;
  }

  .admin-account {
    width: 100%;
  }

  .admin-panel,
  .admin-kpis article {
    border-radius: 18px;
    padding: 20px;
  }

  .admin-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-chart {
    gap: 10px;
    height: 210px;
  }

  .channel-health div {
    grid-template-columns: 1fr;
  }

  .auth-copy h1 {
    font-size: 40px;
  }

  .auth-copy p:not(.eyebrow) {
    font-size: 17px;
  }

  .auth-preview-card,
  .onboarding-card,
  .auth-card {
    border-radius: 22px;
  }

  .auth-preview-card,
  .onboarding-card,
  .auth-card {
    padding: 24px;
  }

  .register-assurance,
  .register-form {
    grid-template-columns: 1fr;
  }

  .register-form label:nth-of-type(2),
  .register-form label:nth-of-type(3) {
    grid-column: 1 / -1;
  }

  .auth-metrics {
    grid-template-columns: 1fr;
  }

  .auth-card h2 {
    font-size: 30px;
  }

  .code-field {
    grid-template-columns: 1fr;
  }
}

/* ── 身份认证二维码弹窗 ── */
.identity-qrcode-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: qrcode-fade-in 0.2s ease;
  backdrop-filter: blur(4px);
}
@keyframes qrcode-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.identity-qrcode-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px 28px;
  max-width: 420px;
  width: 92%;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: qrcode-slide-up 0.25s ease;
}
@keyframes qrcode-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.identity-qrcode-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.identity-qrcode-desc {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.identity-qrcode-img-wrap {
  display: inline-block;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}
.identity-qrcode-img-wrap img {
  display: block;
  border-radius: 8px;
}

.identity-qrcode-certify {
  margin: 0 0 8px;
  font-size: 13px;
  color: #9ca3af;
}
.identity-qrcode-certify code {
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  color: var(--text);
}

.identity-qrcode-tip {
  margin: 0 0 20px;
  font-size: 12px;
  color: #d1d5db;
}

.identity-qrcode-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.identity-qrcode-fallback {
  padding: 20px;
  text-align: center;
}
.identity-qrcode-fallback p {
  margin: 0 0 12px;
  color: #ef4444;
  font-size: 14px;
}
