/* NJFUer ID 统一身份 页面样式 */
:root {
  --paper: #f3f6ef;
  --paper-2: #eef3e9;
  --white: #ffffff;
  --ink: #10241d;
  --ink-soft: #2d4038;
  --muted: #6b7a71;
  --green: #0c3d31;
  --green-2: #145c49;
  --green-3: #1c7a5f;
  --mint: #d9efe3;
  --mint-2: #eaf6ee;
  --lime: #b9e6c8;
  --line: #dce5d7;
  --line-strong: #c7d5c5;
  --amber: #9a6418;
  --shadow-sm: 0 10px 30px -22px rgba(12, 61, 49, 0.5);
  --shadow-lg: 0 34px 70px -46px rgba(12, 61, 49, 0.65);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 460px at 88% -8%, #dff0e6 0%, rgba(223, 240, 230, 0) 62%),
    radial-gradient(700px 420px at 4% 30%, #e8f3ea 0%, rgba(232, 243, 234, 0) 58%),
    var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.ic {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

/* 顶栏 */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--green-2), var(--green));
  color: #fff;
  box-shadow: 0 12px 24px -16px rgba(12, 61, 49, 0.9);
}

.brand-mark .ic { width: 24px; height: 24px; stroke-width: 1.6; }
.brand-mark-sm { width: 38px; height: 38px; border-radius: 12px; }
.brand-mark-sm .ic { width: 21px; height: 21px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text b { font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-text small { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.top-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--mint-2);
  color: var(--green-2);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}
.status-pill .ic { width: 14px; height: 14px; }

.main-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 7px 2px;
}
.main-link:hover { color: var(--green); }
.main-link .ic { width: 14px; height: 14px; }
.main-link-short { display: none; }

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 52px;
  align-items: center;
  padding: 54px 0 26px;
}

.hero-copy { min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-3);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 16px;
  font-size: clamp(2.7rem, 5.2vw, 4.45rem);
  line-height: 1.06;
  letter-spacing: -0.055em;
  font-weight: 800;
  color: var(--ink);
}

.hero h1 em {
  position: relative;
  font-style: normal;
  color: var(--green);
  z-index: 0;
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.04em;
  bottom: 0.04em;
  height: 0.34em;
  background: var(--lime);
  opacity: 0.72;
  z-index: -1;
  border-radius: 3px;
}

.lede {
  margin: 0;
  max-width: 33em;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.9;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
.chips .ic { width: 13px; height: 13px; color: var(--green-3); }

/* ID 卡示意 */
.id-card {
  position: relative;
  width: min(370px, 100%);
  margin-top: 34px;
  padding: 18px 19px 16px;
  border-radius: 22px;
  background:
    radial-gradient(240px 160px at 108% -18%, rgba(185, 230, 200, 0.34) 0%, rgba(185, 230, 200, 0) 70%),
    linear-gradient(145deg, #124b3d 0%, #0a332a 100%);
  color: #fff;
  box-shadow: 0 30px 56px -34px rgba(10, 51, 42, 0.9);
  overflow: hidden;
  isolation: isolate;
}

.id-card::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -92px;
  bottom: -118px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  z-index: -1;
}

.id-card-top { display: flex; align-items: center; gap: 10px; }
.id-card-logo {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
  color: #eafff2;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.id-card-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; }
.id-card-tag {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(185, 230, 200, 0.15);
  color: #c9f3d8;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.id-card-body { display: flex; align-items: center; gap: 13px; margin-top: 18px; }
.id-avatar {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.12);
  color: #e6fff0;
}
.id-avatar .ic { width: 24px; height: 24px; }
.id-info { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.id-info b { font-size: 0.95rem; letter-spacing: 0.01em; }
.id-info span { font-size: 0.7rem; color: #b8d9c8; margin-top: 1px; }
.id-info code {
  margin-top: 6px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: #d8ffe6;
}

.id-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.id-card-foot > span:first-child { font-size: 0.64rem; letter-spacing: 0.12em; color: #a9cbbb; text-transform: lowercase; }
.id-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; opacity: 0.82; }
.id-bars i { display: block; width: 2px; background: #d9f7e4; border-radius: 1px; }
.id-bars i:nth-child(1) { height: 9px; }
.id-bars i:nth-child(2) { height: 14px; }
.id-bars i:nth-child(3) { height: 11px; }
.id-bars i:nth-child(4) { height: 17px; }
.id-bars i:nth-child(5) { height: 8px; }
.id-bars i:nth-child(6) { height: 15px; }
.id-bars i:nth-child(7) { height: 12px; }
.id-bars i:nth-child(8) { height: 18px; }

/* 登录卡 */
.auth-card {
  position: relative;
  width: 100%;
  max-width: 470px;
  justify-self: end;
  padding: 26px 26px 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(220, 229, 215, 0.9);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}

.auth-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.auth-head h2 { margin: 4px 0 0; font-size: 1.36rem; line-height: 1.3; letter-spacing: -0.025em; }
.preview-badge {
  flex: none;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fbf3e3;
  color: var(--amber);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 18px 0 14px;
  padding: 4px;
  border-radius: 13px;
  background: var(--paper-2);
}
.auth-tab {
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.is-active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 4px 14px -10px rgba(12, 61, 49, 0.65);
}
.auth-tab:focus-visible { outline: 2px solid var(--green-3); outline-offset: 2px; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 11px;
  background: var(--mint-2);
  color: var(--green-2);
  font-size: 0.72rem;
  line-height: 1.6;
}
.notice .ic { width: 15px; height: 15px; margin-top: 1px; }
.notice p { margin: 0; }

.auth-form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span:first-child { font-size: 0.73rem; font-weight: 700; color: var(--ink-soft); }
.field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fbfcf9;
  color: var(--ink);
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
.field input::placeholder { color: #9aa8a0; }
.field input:focus {
  border-color: var(--green-3);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(28, 122, 95, 0.11);
}
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.pw-toggle:hover { background: var(--paper-2); color: var(--green); }
.pw-toggle .ic { width: 17px; height: 17px; }

.form-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 0.73rem; color: var(--muted); cursor: pointer; }
.check input { width: 14px; height: 14px; accent-color: var(--green); margin: 0; }
.check-terms { align-items: flex-start; line-height: 1.55; }
.check-terms input { margin-top: 3px; flex: none; }
.check a { color: var(--green-2); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.text-link { border: 0; background: none; padding: 0; color: var(--green-2); font-size: 0.73rem; font-weight: 600; cursor: pointer; }
.text-link:hover { text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.15s, background 0.18s, box-shadow 0.18s;
}
.btn-primary {
  margin-top: 2px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 14px 26px -20px rgba(12, 61, 49, 0.95);
}
.btn-primary:hover { background: var(--green-2); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid var(--green-3); outline-offset: 3px; }

.auth-foot { margin: 14px 0 0; color: var(--muted); font-size: 0.7rem; line-height: 1.7; text-align: center; }

/* 特性 */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 34px 0 10px;
}
.feature {
  padding: 20px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--mint);
  color: var(--green-2);
}
.feature-icon .ic { width: 19px; height: 19px; }
.feature h3 { margin: 13px 0 5px; font-size: 0.98rem; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.75; }

/* 接入计划 */
.roadmap { padding: 36px 0 30px; }
.roadmap-head { max-width: 680px; }
.roadmap-head h2 { margin: 8px 0 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.25; }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
}
.step {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}
.step.is-done { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 20px 34px -30px rgba(12, 61, 49, 0.9); }
.step-num { font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.66rem; letter-spacing: 0.08em; color: var(--green-3); font-weight: 700; }
.step.is-done .step-num { color: var(--lime); }
.step h3 { margin: 7px 0 4px; font-size: 0.88rem; letter-spacing: -0.01em; }
.step p { margin: 0; font-size: 0.72rem; line-height: 1.65; color: var(--muted); }
.step.is-done p { color: #c6e2d4; }

/* 页脚 */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 30px 0 36px;
}
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand div { display: flex; flex-direction: column; line-height: 1.3; }
.foot-brand b { font-size: 0.86rem; }
.foot-brand span { color: var(--muted); font-size: 0.68rem; }
.foot-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-size: 0.73rem; }
.foot-links a:hover { color: var(--green); }
.copyright { margin: 0; color: #93a198; font-size: 0.68rem; }

/* 提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translate(-50%, 14px);
  max-width: min(420px, calc(100% - 32px));
  padding: 11px 15px;
  border-radius: 12px;
  background: #0b2f27;
  color: #eafff3;
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
  box-shadow: 0 20px 44px -24px rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 38px; }
  .auth-card { justify-self: start; max-width: 560px; }
  .id-card { width: min(390px, 100%); }
  .features { padding-top: 26px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .page { width: min(100% - 32px, 620px); }
  .topbar { padding-top: 16px; align-items: flex-start; }
  .brand-text small { max-width: 185px; }
  .top-actions { gap: 6px; }
  .status-pill { display: none; }
  .main-link { font-size: 0.74rem; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(2.15rem, 10.5vw, 3.35rem); }
  .lede { font-size: 0.92rem; line-height: 1.85; }
  .id-card { margin-top: 26px; }
  .auth-card { padding: 22px 18px 18px; border-radius: 22px; }
  .features { grid-template-columns: 1fr; gap: 10px; }
  .feature { padding: 17px; }
  .roadmap { padding-top: 28px; }
  .steps { grid-template-columns: 1fr; gap: 9px; }
  .step { padding: 14px; }
  .foot { flex-direction: column; align-items: flex-start; gap: 14px; padding-bottom: 28px; }
  .copyright { order: 3; }
}

@media (max-width: 430px) {
  .page { width: calc(100% - 26px); }
  .brand-text small { max-width: 150px; }
  .main-link { padding: 5px 0; }
  .main-link-long { display: none; }
  .main-link-short { display: inline; }
  .chips span { padding: 6px 9px; font-size: 0.71rem; }
  .id-card { padding: 16px; }
  .id-card-body { gap: 10px; }
  .auth-head h2 { font-size: 1.2rem; }
  .form-row { align-items: flex-start; }
  .foot-links { gap: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}


/* ============================================================
   NJFUer ID / 统一认证框架 v1
   ============================================================ */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 999;
  padding: 10px 16px;
  background: var(--green);
  color: #fff;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.site-main { min-height: 52vh; }

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 6px;
}
.top-nav a {
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.top-nav a:hover { color: var(--green); background: rgba(255, 255, 255, 0.7); }
.top-nav a.is-active { color: var(--green); background: var(--mint-2); }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}
.user-chip:hover { border-color: var(--line-strong); background: #fff; }
.user-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green-2), var(--green));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  flex: none;
}
.user-chip-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.user-chip-text b { font-size: 0.78rem; max-width: 108px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip-text small { font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.58rem; color: var(--muted); letter-spacing: 0.04em; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
}
.icon-btn:hover { color: var(--green); border-color: var(--line-strong); background: #fff; }
.icon-btn .ic { width: 17px; height: 17px; }

.btn-small { min-height: 38px; padding: 0 13px; font-size: 0.8rem; border-radius: 10px; margin: 0; }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink-soft);
  box-shadow: none;
}
.btn-ghost:hover { background: #fff; border-color: var(--green-3); color: var(--green); }
.btn-danger { background: #a63a2b; color: #fff; box-shadow: none; }
.btn-danger:hover { background: #8d2f22; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

.alerts { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 0; }
.alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.65;
  border: 1px solid transparent;
}
.alert .ic { width: 16px; height: 16px; margin-top: 2px; }
.alert-info { background: var(--mint-2); border-color: #cfe6d8; color: var(--green-2); }
.alert-success { background: #eaf6ee; border-color: #c4e3cf; color: #145c3f; }
.alert-danger { background: #fbeeeb; border-color: #f0d2cb; color: #8d2f22; }
.alert-warning { background: #fdf5e6; border-color: #f0e0bf; color: #7c5416; }

/* 登录 / 注册 */
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 54px;
  align-items: center;
  padding: 32px 0 26px;
}
.auth-intro { min-width: 0; }
.auth-intro h1 {
  margin: 14px 0 14px;
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 800;
}
.auth-intro h1 em { font-style: normal; color: var(--green); position: relative; white-space: nowrap; }
.auth-intro h1 em::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.03em;
  bottom: 0.05em;
  height: 0.3em;
  background: var(--lime);
  opacity: 0.7;
  z-index: -1;
  border-radius: 3px;
}
.auth-intro h1 { z-index: 0; }
.auth-intro .lede { max-width: 32em; }
.auth-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; max-width: 390px; }
.auth-points li { display: flex; align-items: flex-start; gap: 9px; color: var(--ink-soft); font-size: 0.82rem; }
.auth-points .ic { width: 16px; height: 16px; color: var(--green-3); margin-top: 3px; }
.auth-points b { display: block; font-size: 0.84rem; color: var(--ink); }
.auth-points span { color: var(--muted); font-size: 0.75rem; }

.auth-panel-card {
  width: 100%;
  max-width: 480px;
  justify-self: end;
  padding: 24px 26px 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(220, 229, 215, 0.92);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}
.auth-panel-card .auth-head h2 { font-size: 1.5rem; }
.auth-panel-card .auth-form { gap: 11px; }
.auth-panel-card .btn-primary { min-height: 47px; }
.auth-panel-card .notice { margin-top: 14px; }
.auth-switch { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 0.76rem; }
.auth-switch a { color: var(--green-2); font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.help { color: var(--muted); font-size: 0.68rem; line-height: 1.6; }
.field .input-hint { font-size: 0.66rem; color: var(--muted); font-weight: 400; }
.divider { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: #9aa8a0; font-size: 0.68rem; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.quick-links a { font-size: 0.72rem; color: var(--muted); padding: 5px 8px; border-radius: 7px; }
.quick-links a:hover { color: var(--green); background: var(--paper-2); }

/* 账户中心 */
.account-shell { padding: 34px 0 24px; }
.account-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 28px;
  border-radius: 24px;
  background:
    radial-gradient(360px 200px at 100% -40%, rgba(185, 230, 200, 0.26), transparent 70%),
    linear-gradient(145deg, #124b3d, #0a332a);
  color: #fff;
  box-shadow: 0 30px 56px -38px rgba(10, 51, 42, 0.9);
}
.account-avatar {
  width: 66px;
  height: 66px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: #eafff3;
  font-size: 1.5rem;
  font-weight: 800;
  flex: none;
}
.account-hero-main { min-width: 0; flex: 1; }
.account-hero h1 { margin: 0; font-size: 1.55rem; letter-spacing: -0.025em; }
.account-hero .public-id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #d8ffe6;
}
.account-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.account-hero-actions .btn { min-height: 38px; font-size: 0.78rem; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.18); color: #eafff3; box-shadow: none; }
.account-hero-actions .btn:hover { background: rgba(255, 255, 255, 0.2); }

.account-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 16px; margin-top: 18px; align-items: start; }
.card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.card + .card { margin-top: 0; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1rem; letter-spacing: -0.01em; }
.card-head p { margin: 4px 0 0; color: var(--muted); font-size: 0.72rem; }
.card + .card { margin-top: 16px; }
.stack > .card + .card { margin-top: 16px; }
.profile-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.profile-list div { padding: 11px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.profile-list dt { color: var(--muted); font-size: 0.68rem; margin-bottom: 3px; }
.profile-list dd { margin: 0; font-size: 0.83rem; font-weight: 600; word-break: break-all; }
.profile-list dd.mono { font-family: "SFMono-Regular", Consolas, monospace; letter-spacing: 0.04em; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 0.64rem; font-weight: 700; }
.badge-green { background: var(--mint); color: var(--green-2); }
.badge-gray { background: var(--paper-2); color: var(--muted); }
.badge-amber { background: #fbf3e3; color: var(--amber); }
.badge-red { background: #fbeeeb; color: #8d2f22; }

.identity-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.identity-row:last-child { border-bottom: 0; padding-bottom: 0; }
.identity-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--mint-2); color: var(--green-2); display: grid; place-items: center; flex: none; }
.identity-icon .ic { width: 19px; height: 19px; }
.identity-main { flex: 1; min-width: 0; }
.identity-main b { font-size: 0.85rem; display: block; }
.identity-main span { color: var(--muted); font-size: 0.7rem; }
.identity-state { flex: none; }
.empty { padding: 18px 0; color: var(--muted); font-size: 0.78rem; text-align: center; }

.table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
table.data th {
  text-align: left;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td { padding: 11px 10px; border-bottom: 1px dashed var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.mono, .mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.72rem; }
table.data .row-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.table-link { color: var(--green-2); font-weight: 700; }
.table-link:hover { text-decoration: underline; }

/* 授权确认 */
.consent-wrap { width: min(520px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 46px; }
.consent-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.consent-secure { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 0.7rem; }
.consent-secure .ic { width: 14px; height: 14px; color: var(--green-3); }
.consent-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.consent-apps { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 20px; }
.consent-avatar {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--green-2), var(--green));
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 14px 26px -20px rgba(12, 61, 49, 0.9);
}
.consent-avatar-user { background: var(--mint); color: var(--green-2); }
.consent-link { color: var(--muted); }
.consent-link .ic { width: 18px; height: 18px; }
.consent-card h1 { margin: 0; text-align: center; font-size: 1.28rem; line-height: 1.45; letter-spacing: -0.02em; }
.consent-card h1 b { color: var(--green); }
.consent-sub { color: var(--muted); font-size: 0.78rem; line-height: 1.8; text-align: center; margin: 10px 0 0; }
.consent-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--paper);
  font-size: 0.78rem;
}
.consent-user .user-avatar { width: 30px; height: 30px; font-size: 0.75rem; }
.consent-user small { display: block; color: var(--muted); font-size: 0.64rem; }
.scope-list { list-style: none; margin: 12px 0 0; padding: 0; }
.scope-list li { display: flex; gap: 9px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.scope-list li:last-child { border-bottom: 0; }
.scope-list .ic { width: 15px; height: 15px; color: var(--green-3); margin-top: 3px; }
.scope-list b { font-size: 0.78rem; display: block; }
.scope-list span { color: var(--muted); font-size: 0.7rem; }
.consent-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 22px; }
.consent-actions .btn { min-height: 46px; }
.consent-foot { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 0.68rem; line-height: 1.7; }
.consent-brand { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--green); color: #fff; font-weight: 800; font-size: 0.72rem; letter-spacing: 0.04em; }

/* 文档 */
.docs-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 34px; padding: 34px 0 30px; align-items: start; }
.docs-nav { position: sticky; top: 22px; display: flex; flex-direction: column; gap: 2px; }
.docs-nav b { font-size: 0.66rem; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; padding: 0 10px 8px; }
.docs-nav a { padding: 7px 10px; border-radius: 8px; color: var(--ink-soft); font-size: 0.78rem; }
.docs-nav a:hover { background: var(--paper-2); color: var(--green); }
.docs-nav .split { height: 1px; background: var(--line); margin: 10px 10px; }
.docs-main { min-width: 0; }
.docs-main h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 3vw, 2.25rem); letter-spacing: -0.035em; line-height: 1.2; }
.docs-main h2 { margin: 34px 0 10px; font-size: 1.15rem; letter-spacing: -0.02em; }
.docs-main h3 { margin: 22px 0 8px; font-size: 0.95rem; }
.docs-main p, .docs-main li { color: var(--ink-soft); font-size: 0.86rem; line-height: 1.85; }
.docs-main ul, .docs-main ol { padding-left: 22px; }
.docs-main code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.78em; background: #eef3e9; padding: 2px 5px; border-radius: 5px; }
.docs-main pre { margin: 12px 0; padding: 17px 18px; border-radius: 14px; background: #0d2a22; color: #d9efe3; overflow-x: auto; font-size: 0.75rem; line-height: 1.75; }
.docs-main pre code { background: transparent; padding: 0; color: inherit; font-size: 1em; }
.docs-main table { width: 100%; border-collapse: collapse; font-size: 0.78rem; margin: 12px 0; }
.docs-main th { text-align: left; background: var(--paper-2); padding: 9px 11px; font-size: 0.7rem; color: var(--ink-soft); }
.docs-main td { padding: 9px 11px; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 14px 0; }
.docs-card b { color: var(--green); }

/* 演示 */
.demo-wrap { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 40px; }
.demo-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-lg); }
.demo-card h1 { margin: 0 0 8px; font-size: 1.5rem; letter-spacing: -0.03em; }
.demo-card p { color: var(--muted); font-size: 0.82rem; line-height: 1.8; }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0; margin: 16px 0; font-size: 0.8rem; }
.kv dt, .kv dd { padding: 9px 0; border-bottom: 1px dashed var(--line); margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 600; word-break: break-all; }
pre.raw { background: #0d2a22; color: #d9efe3; border-radius: 14px; padding: 16px; overflow-x: auto; font-size: 0.72rem; line-height: 1.7; }

/* 页脚间距 */
.site-main + .foot { margin-top: 12px; }

@media (max-width: 1080px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 30px; }
  .auth-panel-card { justify-self: start; max-width: 560px; }
  .account-grid { grid-template-columns: 1fr; }
  .docs-shell { grid-template-columns: 1fr; gap: 18px; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .docs-nav b, .docs-nav .split { display: none; }
  .docs-nav a { background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .top-nav { display: none; }
  .user-chip-text { display: none; }
  .user-chip { padding: 4px; border: 0; background: transparent; }
}

@media (max-width: 720px) {
  .topbar { gap: 10px; }
  .top-actions { gap: 7px; }
  .auth-panel-card { padding: 22px 18px 18px; border-radius: 22px; }
  .auth-shell .id-card { display: none; }
  .auth-shell .auth-intro { display: none; }
  .auth-shell { padding-top: 12px; gap: 0; }
  .auth-intro .auth-points { display: none; }
  .auth-intro .lede { font-size: 0.9rem; }
  .auth-intro h1 { font-size: clamp(1.95rem, 9vw, 2.8rem); }
  .form-grid { grid-template-columns: 1fr; }
  .account-hero { padding: 20px; gap: 14px; }
  .account-avatar { width: 54px; height: 54px; border-radius: 16px; font-size: 1.2rem; }
  .account-hero h1 { font-size: 1.25rem; }
  .profile-list { grid-template-columns: 1fr; }
  .consent-card { padding: 22px 18px; border-radius: 20px; }
  .consent-actions { grid-template-columns: 1fr; }
  .consent-actions .btn { min-height: 44px; }
  .card { padding: 18px; border-radius: 17px; }
  .docs-main pre { font-size: 0.7rem; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { padding-bottom: 0; border-bottom: 0; }
  .kv dd { padding-top: 3px; }
}


/* 第三方登录 */
.social-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.social-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -14px rgba(12,61,49,.55); }
.social-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  flex: none;
}
.social-wechat .social-mark { background: #07c160; }
.social-qq .social-mark { background: #12b7f5; }
.social-wechat:hover { border-color: #07c160; color: #078a46; }
.social-qq:hover { border-color: #12b7f5; color: #087ba8; }
.social-note { margin: 9px 0 0; color: var(--muted); font-size: 0.66rem; line-height: 1.6; text-align: center; }
.social-buttons-sm { grid-template-columns: 1fr 1fr; }
.social-buttons-sm .social-btn { min-height: 38px; font-size: 0.73rem; }
.social-buttons-sm .social-mark { width: 21px; height: 21px; font-size: 0.64rem; border-radius: 7px; }


/* 手机验证码登录 */
.sms-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.sms-code-row input { min-width: 0; }
.sms-code-row .btn { min-height: 44px; white-space: nowrap; padding: 0 14px; }
.sms-code-row .btn[disabled] { opacity: .65; }


/* 微信小程序扫码登录 */
.wechat-qr { width: 280px; height: 280px; border-radius: 18px; border: 1px solid var(--line); background: #fff; padding: 8px; }
.wechat-status { margin: 0; text-align: center; color: var(--green-2); font-size: .84rem; font-weight: 700; }
.wechat-status.is-bad { color: #8d2f22; }
.wechat-steps { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.wechat-steps span { padding: 5px 9px; border-radius: 999px; background: var(--paper-2); color: var(--muted); font-size: .66rem; font-weight: 600; }
@media (max-width: 430px) {
  .wechat-qr { width: 240px; height: 240px; }
}


/* 注册方式选择 */
.register-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 8px; }
.method-card {
  display: grid;
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  min-width: 0;
}
.method-card:hover { border-color: var(--green-3); }
.method-card.is-active { border-color: var(--green-3); box-shadow: 0 0 0 2px rgba(28,122,95,.08); }
.method-card.is-disabled { opacity: .58; cursor: not-allowed; background: #f8faf6; }
.method-mark {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
}
.method-mark .ic { width: 17px; height: 17px; }
.method-mark-mail { background: var(--green-2); }
.method-mark-sms { background: #1c7a5f; }
.method-mark-wechat { background: #07c160; }
.method-mark-qq { background: #12b7f5; }
.method-card b { font-size: .78rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.method-card small { color: var(--muted); font-size: .64rem; line-height: 1.4; }
.method-note { margin: 0 0 14px; color: var(--muted); font-size: .64rem; line-height: 1.6; }
@media (max-width: 430px) {
  .method-card { grid-template-columns: 30px minmax(0, 1fr); padding: 9px; }
  .method-mark { width: 30px; height: 30px; border-radius: 9px; }
}


/* AJAX 加载态 */
.btn-spinner { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: btnspin .7s linear infinite; }
@keyframes btnspin { to { transform: rotate(360deg); } }


/* 备案号 */
.icp-link { color: inherit; text-decoration: none; white-space: nowrap; }
.icp-link:hover { text-decoration: underline; }
.copyright .icp-link { margin-left: 8px; }


[data-auth-field][hidden] { display: none !important; }


/* ============================================================
   移动端适配：所有页面
   ============================================================ */
html, body { overflow-x: hidden; }
img, svg { max-width: 100%; }

@media (max-width: 720px) {
  .page { width: calc(100% - 28px); }
  .card-head > .badge { display: none; }
  .account-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; -webkit-overflow-scrolling: touch; }
  .account-nav a { flex: none; white-space: nowrap; }
  body.account-page .brand-text { display: flex; opacity: 1; visibility: visible; }
  .topbar { flex-wrap: wrap; align-items: center; gap: 8px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand-text { min-width: 0; }
  .top-actions { flex: none; margin-left: auto; }
  .auth-panel-card { justify-self: stretch; width: 100%; max-width: none; min-width: 0; }
  .auth-head { flex-wrap: wrap; gap: 8px; }
  .auth-tabs { width: 100%; }
  .auth-form input,
  .auth-form select,
  .auth-form textarea,
  .field input,
  .field select,
  .toolbar input,
  .toolbar select,
  .form-card input,
  .form-card select,
  .form-card textarea { font-size: 16px; }
  .btn { min-height: 44px; }
  .btn-small { min-height: 38px; }
  .form-row { flex-wrap: wrap; gap: 8px; }
  .card-head { flex-wrap: wrap; gap: 8px; }
  .account-hero { flex-wrap: wrap; }
  .account-hero-main { flex: 1 1 calc(100% - 70px); order: 1; min-width: 0; }
  .account-hero-actions { width: 100%; order: 3; display: flex; gap: 8px; flex-wrap: wrap; }
  .account-hero-actions .btn { flex: 1 1 150px; }
  .table-wrap { margin: 0; padding: 0; -webkit-overflow-scrolling: touch; }
  .table-wrap .data { min-width: 620px; }
  .docs-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .docs-nav a { flex: none; white-space: nowrap; }
  .docs-main table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .docs-main th, .docs-main td { white-space: nowrap; }
  .docs-main h1 { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  .toast { width: calc(100% - 28px); max-width: none; }
}

@media (max-width: 430px) {
  .page { width: calc(100% - 22px); }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .brand-mark .ic { width: 20px; height: 20px; }
  .brand-text b { font-size: .92rem; }
  .brand-text small { max-width: 125px; font-size: .62rem; }
  .top-actions .btn { padding-left: 10px; padding-right: 10px; }
  .auth-panel-card { padding: 18px 14px 16px; border-radius: 18px; }
  .auth-head h2 { font-size: 1.15rem; }
  .register-methods { gap: 7px; }
  .method-card { min-height: 58px; }
  .account-hero { padding: 16px; }
  .account-avatar { width: 46px; height: 46px; border-radius: 14px; font-size: 1.05rem; }
  .account-hero h1 { font-size: 1.15rem; }
  .foot { gap: 12px; }
  .foot-links { gap: 8px 12px; font-size: .66rem; }
  .copyright { font-size: .64rem; }
  .copyright .icp-link { margin-left: 0; white-space: normal; }
  .wechat-qr { width: 220px; height: 220px; }
  .sms-code-row .btn { padding: 0 9px; font-size: .72rem; }
  .consent-card { padding: 20px 15px; }
  .demo-wrap { width: calc(100% - 24px); }
  .demo-card { padding: 18px 14px; }
}

@media (max-width: 360px) {
  .register-methods { grid-template-columns: 1fr; }
  .method-card { grid-template-columns: 32px minmax(0, 1fr); }
  .top-actions { gap: 4px; }
  .main-link { font-size: .7rem; }
  .auth-form input, .field input { font-size: 16px; }
}


@media (max-width: 720px) {
  .docs-nav { flex-wrap: wrap; overflow: visible; }
  .docs-nav a { flex: 0 0 auto; }
}


/* 账户概览与安全提示之间留出间距 */
.account-hero + .alert { margin-top: 16px; }


@media (max-width: 720px) {
  .account-shell .table-wrap::before {
    content: "左右滑动查看完整表格";
    display: block;
    padding: 0 2px 7px;
    color: #93a198;
    font-size: 10px;
  }
}


/* 个人中心模块导航与登录方式卡片 */
.account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 0;
}
.account-nav a {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
}
.account-nav a:hover { color: var(--green); border-color: var(--green-3); background: #fff; }

.method-list { display: flex; flex-direction: column; gap: 8px; }
.method-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcf9;
}
.method-glyph {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
}
.method-glyph .ic { width: 18px; height: 18px; }
.method-glyph-mail { background: var(--green-2); }
.method-glyph-phone { background: #1c7a5f; }
.method-glyph-lock { background: #0c3d31; }
.method-glyph-wechat { background: #07c160; }
.method-glyph-qq { background: #12b7f5; }
.method-body { flex: 1; min-width: 0; }
.method-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .8rem; font-weight: 800; }
.method-value { margin-top: 2px; color: var(--muted); font-size: .68rem; line-height: 1.5; overflow-wrap: anywhere; }
.method-state { padding: 2px 6px; border-radius: 999px; font-size: .58rem; font-weight: 700; }
.method-state.is-on { background: var(--mint); color: var(--green-2); }
.method-state.is-off { background: var(--paper-2); color: var(--muted); }
.method-state.is-warn { background: #fbf3e3; color: var(--amber); }
.method-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.btn-danger-text { color: #9a3a2b; }
.btn-danger-text:hover { color: #7b2a1e; border-color: #e7c5be; background: #fdf3f1; }

@media (max-width: 520px) {
  .account-nav { gap: 6px; }
  .account-nav a { padding: 6px 9px; font-size: .66rem; }
  .method-item { align-items: flex-start; flex-wrap: wrap; }
  .method-body { flex: 1 1 calc(100% - 52px); }
  .method-actions { width: 100%; justify-content: flex-end; margin-top: 2px; }
  .method-actions .btn { flex: 1 1 auto; }
}


/* 手机端二维码保存提示 */
.qr-mobile-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 10px; margin: 4px 0 6px; }
.qr-mobile-actions .help { margin: 0; }

/* 客服悬浮球：移动端和账号中心不遮挡内容 */
@media (max-width: 720px) { #njfuer-cs-widget { display: none !important; } }
body.account-page #njfuer-cs-widget, body.admin-body #njfuer-cs-widget { display: none !important; }

.alert-warning span a + a { margin-left: 10px; }

/* 移动端最终覆盖：个人中心导航与注册表单 */
@media (max-width: 720px) {
  .account-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; -webkit-overflow-scrolling: touch; }
  .account-nav a { flex: none; white-space: nowrap; }
  .auth-panel-card { padding: 16px 13px 14px; }
  .auth-panel-card .auth-form { gap: 9px; }
  .register-methods { margin: 10px 0 6px; gap: 7px; }
  .method-card { min-height: 54px; }
}

@media (max-width: 720px) {
  .account-nav { gap: 4px; }
  .account-nav a { padding: 6px 8px; font-size: .64rem; }
}

@media (max-width: 720px) {
  .account-nav a.is-active { color: var(--green-2); border-color: var(--green-3); background: #fff; }
  .account-grid.is-security { grid-template-columns: 1fr; }
  [hidden] { display: none !important; }
}

/* 手机端第三方登录折叠 */
.third-party-toggle { display: none; }
@media (max-width: 720px) {
  .register-methods .method-third-party { display: none; }
  .register-methods.show-third-party .method-third-party { display: grid; }
  .home-auth .register-methods .method-third-party { display: grid; }
  .home-auth .third-party-toggle { display: none; }
  .third-party-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 34px; margin: 2px 0 0; border: 1px dashed var(--line-strong); border-radius: 10px; background: transparent; color: var(--muted); font-size: .7rem; font-weight: 700; }
  .third-party-toggle span { transition: transform .16s; }
  .third-party-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
}

/* 密码强度 */
.pw-strength { display: flex; align-items: center; gap: 8px; margin-top: -2px; }
.pw-meter { display: flex; gap: 3px; width: 105px; flex: none; }
.pw-meter i { height: 4px; flex: 1; border-radius: 99px; background: #e4e9e1; transition: background .16s; }
.pw-strength .pw-label { color: var(--muted); font-size: .62rem; line-height: 1.4; white-space: nowrap; }
.pw-strength[data-score="1"] .pw-meter i:nth-child(1) { background: #c85a4a; }
.pw-strength[data-score="2"] .pw-meter i:nth-child(-n+2) { background: #d39a3a; }
.pw-strength[data-score="3"] .pw-meter i:nth-child(-n+3) { background: #5f9d72; }
.pw-strength[data-score="4"] .pw-meter i { background: #1a7a4b; }

/* 二维码倒计时 */
.wechat-qr-meta { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 7px; color: var(--muted); font-size: .64rem; }
.wechat-qr-meta a { color: var(--green-2); font-weight: 700; }
[data-wechat-login].is-expired .wechat-qr { opacity: .38; filter: grayscale(1); }

/* 全站平滑与客服入口 */
html { scroll-behavior: smooth; }
@keyframes njf-fade-up { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.site-main, .auth-shell { animation: njf-fade-up .28s ease both; }
.cs-top-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.7); color: var(--muted); font-size: .7rem; font-weight: 700; }
.cs-top-link:hover { color: var(--green-2); border-color: var(--green-3); background: #fff; }
.cs-top-link .ic { width: 15px; height: 15px; }
@media (max-width: 720px) { .cs-top-link { padding: 0 8px; min-height: 34px; } .cs-top-link span { display: none; } }
@media (prefers-reduced-motion: reduce) { .site-main, .auth-shell, .admin-content { animation: none !important; } }

#page-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 9999; opacity: 0; pointer-events: none; transition: opacity .16s; }
#page-progress i { display: block; width: 30%; height: 100%; background: linear-gradient(90deg, #8fc9a8, #1a7a4b); animation: njf-page-progress 1s ease-in-out infinite; }
#page-progress.is-on { opacity: 1; }
@keyframes njf-page-progress { 0% { transform: translateX(-110%); } 100% { transform: translateX(370%); } }
@media (prefers-reduced-motion: reduce) { #page-progress i { animation: none; } }

/* 统一头像 */
.account-avatar, .user-avatar { overflow: hidden; }
.account-avatar img, .user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-editor { display: flex; align-items: flex-start; gap: 14px; margin-top: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcf9; }
.avatar-editor-preview { width: 62px; height: 62px; border-radius: 18px; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--mint); color: var(--green-2); font-size: 1.3rem; font-weight: 800; }
.avatar-editor-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-editor-copy { flex: 1; min-width: 0; }
.avatar-editor-copy b { font-size: .8rem; }
.avatar-editor-copy p { margin: 3px 0 8px; color: var(--muted); font-size: .66rem; line-height: 1.55; }
.avatar-upload { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.avatar-upload input[type=file] { max-width: 220px; font-size: .64rem; color: var(--muted); }
@media (max-width: 520px) { .avatar-editor { gap: 10px; } .avatar-editor-preview { width: 52px; height: 52px; border-radius: 15px; } .avatar-upload input[type=file] { max-width: 100%; width: 100%; } }

.consent-avatar { overflow: hidden; }
.consent-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.avatar-page-preview { width: 128px; height: 128px; margin: 4px auto 18px; border-radius: 32px; overflow: hidden; display: grid; place-items: center; background: var(--mint); color: var(--green-2); font-size: 2.4rem; font-weight: 800; box-shadow: 0 18px 40px -28px rgba(12,61,49,.5); }
.avatar-page-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-upload-form { max-width: 460px; margin: 0 auto; }
.avatar-upload-form .form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* 账号中心积分 */
.points-overview { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0 10px; }
.points-overview > div { flex: 1; min-width: 105px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcf9; }
.points-overview b { display: block; font-size: 1.3rem; color: var(--green-2); letter-spacing: -.03em; }
.points-overview span { font-size: .62rem; color: var(--muted); }
.points-rules { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.points-rules span { padding: 4px 8px; border-radius: 99px; background: var(--mint); color: var(--green-2); font-size: .62rem; font-weight: 700; }
.points-log-list { border-top: 1px solid var(--line); padding-top: 4px; }
.points-log { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .7rem; }
.points-log:last-child { border-bottom: 0; }
.points-log span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.points-log b { font-size: .72rem; }
.points-log b.is-plus { color: var(--green-2); }
.points-log b.is-minus { color: #c85a4a; }
.points-log small { color: var(--muted); font-size: .6rem; }

/* 账号中心重构 */
.account-avatar-link { position: relative; text-decoration: none; border: 2px solid rgba(255,255,255,.18); transition: border-color .18s, transform .18s; }
.account-avatar-link:hover { border-color: rgba(255,255,255,.65); transform: translateY(-1px); }
.avatar-camera { position: absolute; right: -5px; bottom: -5px; width: 22px; height: 22px; border-radius: 50%; background: #e9f6ec; color: #124b3d; display: grid; place-items: center; font-size: .8rem; font-weight: 900; border: 2px solid #124b3d; }
.account-meta-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.account-meta-line .public-id { margin-top: 0; }
.account-since { color: #9fcdb7; font-size: .66rem; }
.account-quick-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.account-quick-stats a { display: flex; flex-direction: column; gap: 3px; padding: 13px 15px; border-radius: 15px; background: rgba(255,255,255,.78); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .16s, border-color .16s; }
.account-quick-stats a:hover { transform: translateY(-1px); border-color: rgba(28,122,95,.3); }
.account-quick-stats span { color: var(--muted); font-size: .64rem; }
.account-quick-stats b { font-size: 1.2rem; letter-spacing: -.03em; color: var(--green-2); }
.account-points-strip { margin-top: 16px; background: linear-gradient(135deg, #fffdf7, #f8fbf3); border-color: rgba(152,101,26,.18); }
.account-points-strip .card-head { margin-bottom: 8px; }
.account-points-strip .points-overview { margin: 8px 0 10px; }
.nickname-inline { display: flex; align-items: flex-end; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.nickname-inline .field { flex: 1; min-width: 0; margin: 0; }
.nickname-inline .btn { flex: none; }
@media (max-width: 720px) {
  .account-quick-stats { grid-template-columns: 1fr 1fr; }
  .account-quick-stats a { padding: 11px 12px; }
  .account-points-strip { margin-top: 12px; }
  .nickname-inline { align-items: stretch; flex-direction: column; }
  .nickname-inline .btn { width: 100%; }
  .account-meta-line { gap: 5px; }
}

/* NJFUer ID 身份铭牌 */
.id-plaque { position: relative; overflow: hidden; margin-top: 14px; padding: 20px 24px 18px; border-radius: 24px; color: #effff6; border: 1px solid rgba(201, 174, 105, .42); background: radial-gradient(520px 260px at 92% -20%, rgba(203, 174, 107, .22), transparent 65%), radial-gradient(420px 220px at -10% 110%, rgba(76, 190, 140, .16), transparent 65%), linear-gradient(135deg, #0d4437 0%, #082d25 55%, #061f1a 100%); box-shadow: 0 30px 60px -38px rgba(5, 30, 24, .9), inset 0 1px 0 rgba(255,255,255,.08); }
.id-plaque::before { content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none; background-image: repeating-linear-gradient(115deg, transparent 0 23px, rgba(201,174,105,.22) 24px, transparent 25px 58px); }
.id-plaque-shine { position: absolute; width: 360px; height: 360px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 210, 151, .28), transparent 68%); pointer-events: none; }
.id-plaque-top, .id-plaque-body, .id-plaque-foot { position: relative; z-index: 1; }
.id-plaque-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.id-plaque-brand { display: flex; align-items: center; gap: 10px; }
.id-plaque-logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(145deg, #e6d29b, #b99a55); color: #07362b; font-weight: 900; font-size: .95rem; box-shadow: inset 0 1px 0 rgba(255,255,255,.55); }
.id-plaque-brand b { display: block; font-size: .82rem; letter-spacing: .04em; }
.id-plaque-brand small { display: block; margin-top: 2px; color: #9fc4b2; font-size: .55rem; letter-spacing: .16em; }
.id-plaque-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 99px; border: 1px solid rgba(194, 229, 208, .24); background: rgba(255,255,255,.06); color: #c8efdc; font-size: .58rem; font-weight: 800; letter-spacing: .12em; }
.id-plaque-status i { width: 5px; height: 5px; border-radius: 50%; background: #75e0a6; box-shadow: 0 0 8px rgba(117,224,166,.8); }
.id-plaque-body { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 16px; margin: 22px 0 18px; }
.id-plaque-avatar { width: 74px; height: 74px; border-radius: 20px; overflow: hidden; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(232,210,151,.45); color: #eafff3; font-size: 1.6rem; font-weight: 800; box-shadow: 0 10px 22px -14px rgba(0,0,0,.8); }
.id-plaque-avatar img { width: 100%; height: 100%; object-fit: cover; }
.id-plaque-holder { min-width: 0; }
.id-plaque-holder small { color: #9fc4b2; font-size: .55rem; letter-spacing: .15em; font-weight: 700; }
.id-plaque-holder h2 { margin: 5px 0 7px; font-size: 1.45rem; line-height: 1.15; color: #fff; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id-plaque-number { display: flex; align-items: center; gap: 5px; }
.id-plaque-number code { color: #ead9a3; font-size: .95rem; letter-spacing: .12em; font-family: "SFMono-Regular", Consolas, monospace; }
.id-plaque-copy { width: 24px; height: 24px; border: 0; border-radius: 7px; background: rgba(255,255,255,.06); color: #a9cdbb; display: grid; place-items: center; cursor: pointer; }
.id-plaque-copy:hover { background: rgba(255,255,255,.14); color: #fff; }
.id-plaque-copy .ic { width: 13px; height: 13px; }
.id-plaque-side { display: flex; align-items: center; gap: 14px; }
.id-plaque-chip { width: 38px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #e6d29b, #b99a55); position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.id-plaque-chip::before, .id-plaque-chip::after { content: ""; position: absolute; background: rgba(7,54,43,.35); }
.id-plaque-chip::before { left: 8px; right: 8px; top: 9px; height: 1px; box-shadow: 0 5px 0 rgba(7,54,43,.35), 0 10px 0 rgba(7,54,43,.35); }
.id-plaque-chip::after { top: 6px; bottom: 6px; left: 14px; width: 1px; }
.id-plaque-points { text-align: right; }
.id-plaque-points small { display: block; color: #9fc4b2; font-size: .52rem; letter-spacing: .14em; }
.id-plaque-points b { display: block; margin-top: 2px; font-size: 1.1rem; color: #f2e2ad; }
.id-plaque-foot { display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(194,229,208,.14); color: #8fb7a4; font-size: .57rem; letter-spacing: .06em; }
@media (max-width: 720px) { .id-plaque { padding: 16px 15px 14px; border-radius: 20px; } .id-plaque-body { grid-template-columns: 56px minmax(0,1fr); gap: 11px; margin: 16px 0 13px; } .id-plaque-avatar { width: 56px; height: 56px; border-radius: 16px; font-size: 1.2rem; } .id-plaque-holder h2 { font-size: 1.12rem; } .id-plaque-number code { font-size: .78rem; } .id-plaque-side { grid-column: 2; justify-content: space-between; } .id-plaque-chip { width: 32px; height: 25px; } .id-plaque-foot { font-size: .5rem; flex-direction: column; gap: 3px; } }
@media (prefers-reduced-motion: reduce) { .id-plaque-shine { animation: none; } }

.id-plaque { width: 100%; max-width: 560px; aspect-ratio: 1.586 / 1; margin-left: auto; margin-right: auto; }
.id-plaque-top-actions { display: flex; align-items: center; gap: 6px; }
.id-plaque-share { border: 1px solid rgba(232,210,151,.42); background: rgba(232,210,151,.1); color: #ead9a3; border-radius: 99px; padding: 4px 10px; font-size: .58rem; font-weight: 800; cursor: pointer; }
.id-plaque-share:hover { background: rgba(232,210,151,.2); }
@media (max-width: 720px) { .id-plaque { aspect-ratio: 1.586 / 1; max-width: 100%; } .id-plaque-holder h2 { font-size: 1rem; } .id-plaque-body { margin: 10px 0; } .id-plaque-foot { padding-top: 8px; } }

/* 公开身份铭牌 */
.id-share-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.id-share-head h1 { margin: 5px 0 4px; font-size: 1.55rem; letter-spacing: -.035em; }
.id-share-head p { margin: 0; color: var(--muted); font-size: .75rem; }
.id-share-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.id-share-note { margin: 10px 0 0; color: var(--muted); font-size: .66rem; text-align: center; }
@media (max-width: 720px) { .id-share-head h1 { font-size: 1.3rem; } .id-share-actions .btn { flex: 1; } }

/* 安全审计 */
.security-score-card { display: flex; align-items: center; gap: 18px; margin-top: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.82); box-shadow: var(--shadow-sm); }
.security-score-ring { --score: 50; width: 86px; height: 86px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--green-3) calc(var(--score) * 1%), #e5ece2 0); position: relative; }
.security-score-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.security-score-ring b, .security-score-ring span { position: relative; z-index: 1; }
.security-score-ring b { font-size: 1.35rem; line-height: 1; color: var(--green-2); }
.security-score-ring span { position: absolute; bottom: 17px; color: var(--muted); font-size: .55rem; }
.security-score-main { flex: 1; min-width: 0; }
.security-score-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.security-score-head h2 { margin: 3px 0 0; font-size: .95rem; }
.security-score-head .text-link { font-size: .64rem; white-space: nowrap; }
.security-score-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.security-item { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 99px; background: #f6f9f4; color: var(--muted); font-size: .6rem; font-weight: 700; }
.security-item i { width: 5px; height: 5px; border-radius: 50%; background: #b7c5ba; }
.security-item.is-ok i { background: #2d9a66; }
.security-item.is-warn i { background: #d39a3a; }
.security-item small { color: #91a296; font-weight: 500; }
@media (max-width: 720px) { .security-score-card { align-items: flex-start; padding: 13px; gap: 12px; } .security-score-ring { width: 70px; height: 70px; } .security-score-ring b { font-size: 1.1rem; } .security-score-ring span { bottom: 13px; } .security-score-head h2 { font-size: .86rem; } .security-score-head .text-link { display: none; } }

/* 账号中心桌面协调布局 */
.id-plaque { display: flex; flex-direction: column; }
.id-plaque-body { flex: 1; }
.id-plaque-foot { margin-top: auto; }
.id-plaque::after { content: "NJF"; position: absolute; right: 18px; bottom: 34px; font-size: 3.2rem; font-weight: 900; letter-spacing: -.08em; color: rgba(232,210,151,.055); pointer-events: none; }
@media (min-width: 1100px) {
  .account-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 16px; align-items: start; }
  .account-hero { grid-column: 1 / -1; }
  .account-shell > .account-quick-stats { grid-column: 1 / -1; grid-row: 2; }
  .account-shell > .id-plaque { grid-column: 1; grid-row: 3 / span 2; max-width: 100%; width: 100%; margin: 0; }
  .account-shell > .security-score-card { grid-column: 2; grid-row: 3; margin: 0; }
  .account-shell > .account-points-strip { grid-column: 2; grid-row: 4; margin: 0; }
  .account-shell > .alert { grid-column: 1 / -1; }
  .account-shell > .account-nav, .account-shell > .account-grid, .account-shell > #services, .account-shell > #apps, .account-shell > #devices, .account-shell > #security-log { grid-column: 1 / -1; }
  .account-points-strip .points-overview { margin: 6px 0 8px; }
  .account-points-strip .points-overview > div { padding: 9px; }
  .account-points-strip .points-overview b { font-size: 1rem; }
  .account-points-strip .points-rules span { font-size: .56rem; }
  .security-score-card { padding: 14px; }
}
@media (max-width: 720px) { .id-plaque::after { display: none; } }

/* 可翻面银行卡 */
.id-flip { width: 100%; max-width: 560px; aspect-ratio: 1.586 / 1; perspective: 1200px; margin: 14px auto 0; position: relative; }
.id-flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .62s cubic-bezier(.22,.75,.2,1); }
.id-flip.is-flipped .id-flip-inner { transform: rotateY(180deg); }
.id-flip .id-plaque { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; margin: 0; padding: 18px 22px 14px; display: flex; flex-direction: column; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.id-plaque-back { transform: rotateY(180deg); background: radial-gradient(420px 220px at 100% 0, rgba(203,174,107,.16), transparent 65%), linear-gradient(135deg,#0d4437,#082d25 60%,#061f1a); }
.id-plaque-front .id-plaque-body { flex: 1; }
.id-plaque-actions { display: inline-flex; align-items: center; gap: 8px; }
.id-plaque-flip { border: 0; background: transparent; color: #9fc4b2; font-size: .56rem; font-weight: 800; cursor: pointer; padding: 2px 0; letter-spacing: .04em; }
.id-plaque-flip:hover { color: #ead9a3; }
.id-card-tech { display: flex; align-items: center; gap: 8px; }
.id-card-contactless { width: 22px; height: 22px; color: rgba(232,210,151,.82); }
.id-card-chip { width: 40px; height: 31px; border-radius: 8px; background: linear-gradient(135deg,#e6d29b,#b99a55); position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.id-card-chip::before { content: ""; position: absolute; left: 8px; right: 8px; top: 9px; height: 1px; background: rgba(7,54,43,.35); box-shadow: 0 5px 0 rgba(7,54,43,.35), 0 10px 0 rgba(7,54,43,.35); }
.id-card-chip::after { content: ""; position: absolute; top: 6px; bottom: 6px; left: 14px; width: 1px; background: rgba(7,54,43,.35); }
.id-card-magstripe { height: 42px; margin: 14px -22px 16px; background: linear-gradient(180deg,#071d18,#020e0b); border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.id-card-back-body { flex: 1; display: flex; flex-direction: column; gap: 7px; min-height: 0; }
.id-card-signature { height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-radius: 5px; background: repeating-linear-gradient(0deg,#f5f1e4 0 4px,#ece6d6 4px 6px); color: #24483a; }
.id-card-signature span { font-family: "SFMono-Regular", Consolas, monospace; font-size: .8rem; letter-spacing: .13em; }
.id-card-signature small { font-size: .45rem; letter-spacing: .12em; opacity: .65; }
.id-card-back-note { margin: 0; color: #a9cbb9; font-size: .58rem; line-height: 1.55; max-width: 92%; }
.id-card-barcode { height: 30px; margin-top: auto; background: repeating-linear-gradient(90deg,#dfe9df 0 2px,transparent 2px 4px,#dfe9df 4px 5px,transparent 5px 9px,#dfe9df 9px 12px,transparent 12px 14px); opacity: .75; }
.id-card-barcode-text { color: #9fc4b2; font-size: .5rem; letter-spacing: .18em; }
@media (min-width: 1100px) { .account-shell > .id-flip { grid-column: 1; grid-row: 3 / span 2; max-width: 100%; width: 100%; margin: 0; } }
@media (max-width: 720px) { .id-flip { margin-top: 12px; } .id-flip .id-plaque { padding: 14px 15px 11px; } .id-card-magstripe { margin-left: -15px; margin-right: -15px; height: 34px; } .id-plaque-front .id-plaque-body { margin: 10px 0 8px; } .id-plaque-actions { gap: 5px; } }
@media (prefers-reduced-motion: reduce) { .id-flip-inner { transition: none; } }

/* 翻面可见性修复 */
.id-flip .id-plaque { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.id-flip .id-plaque-back { visibility: hidden; }
.id-flip.is-flipped .id-plaque-back { visibility: visible; }
.id-flip.is-flipped .id-plaque-front { visibility: hidden; }

/* 铭牌主题 */
.card-theme-switch { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 12px; padding: 4px; width: fit-content; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.72); }
.card-theme-switch button { border: 0; border-radius: 99px; padding: 5px 10px; background: transparent; color: var(--muted); font-size: .62rem; font-weight: 800; cursor: pointer; }
.card-theme-switch button.is-active { background: var(--green-2); color: #fff; }
.id-milk-mascot { display: none; width: 34px; height: 34px; }

.theme-milk .id-plaque { color: #5b3b1d; border-color: rgba(198,146,63,.65); background: radial-gradient(420px 240px at 100% 0, rgba(255,255,255,.55), transparent 65%), linear-gradient(135deg,#fff2bf,#f7d774 55%,#efc35e); box-shadow: 0 30px 60px -38px rgba(125,84,28,.55), inset 0 1px 0 rgba(255,255,255,.7); }
.theme-milk .id-plaque::before { opacity: .2; background-image: radial-gradient(circle at 20% 30%, rgba(198,146,63,.4) 0 2px, transparent 3px), radial-gradient(circle at 70% 70%, rgba(255,255,255,.6) 0 2px, transparent 3px); background-size: 46px 46px, 62px 62px; }
.theme-milk .id-plaque::after { color: rgba(125,84,28,.08); }
.theme-milk .id-plaque-logo { background: #f19a5b; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.theme-milk .id-plaque-brand b, .theme-milk .id-plaque-holder h2 { color: #5b3b1d; }
.theme-milk .id-plaque-brand small, .theme-milk .id-plaque-holder small, .theme-milk .id-plaque-foot, .theme-milk .id-plaque-points small { color: #9a6b32; }
.theme-milk .id-plaque-brand small::after { content: " 奶龙联名"; color: #b56c2d; }
.theme-milk .id-plaque-status { color: #7a4c1d; border-color: rgba(122,76,29,.3); background: rgba(255,255,255,.35); }
.theme-milk .id-plaque-status i { background: #e8863d; box-shadow: 0 0 8px rgba(232,134,61,.6); }
.theme-milk .id-plaque-number code, .theme-milk .id-plaque-points b { color: #8b521f; }
.theme-milk .id-plaque-avatar { background: #fff5d6; border-color: rgba(198,146,63,.65); color: #7a4c1d; }
.theme-milk .id-plaque-chip, .theme-milk .id-card-contactless { display: none; }
.theme-milk .id-milk-mascot { display: block; }
.theme-milk .id-plaque-copy, .theme-milk .id-plaque-share, .theme-milk .id-plaque-flip { color: #8b521f; background: rgba(255,255,255,.3); border-color: rgba(139,82,31,.3); }
.theme-milk .id-plaque-foot { border-top-color: rgba(139,82,31,.2); }
.theme-milk.id-flip .id-plaque-back { background: linear-gradient(135deg,#fff2bf,#f7d774); }
.theme-milk .id-card-back-note, .theme-milk .id-card-barcode-text { color: #8b521f; }

.theme-id .id-plaque { color: #173a5e; border-color: rgba(57,119,174,.55); background: radial-gradient(420px 220px at 100% 0, rgba(255,255,255,.8), transparent 65%), linear-gradient(135deg,#eef8ff,#d7ecfb 55%,#bddff4); box-shadow: 0 30px 60px -38px rgba(28,78,120,.45), inset 0 1px 0 rgba(255,255,255,.9); }
.theme-id .id-plaque::before { opacity: .18; background-image: repeating-linear-gradient(120deg, transparent 0 20px, rgba(57,119,174,.28) 21px, transparent 22px 42px); }
.theme-id .id-plaque::after { color: rgba(57,119,174,.09); }
.theme-id .id-plaque-logo { background: linear-gradient(145deg,#d94a4a,#a92e3e); color: #fff; }
.theme-id .id-plaque-brand b, .theme-id .id-plaque-holder h2 { color: #173a5e; }
.theme-id .id-plaque-brand small, .theme-id .id-plaque-holder small, .theme-id .id-plaque-foot, .theme-id .id-plaque-points small { color: #4f7798; }
.theme-id .id-plaque-brand small::after { content: " 校园身份卡"; color: #2f6f9e; }
.theme-id .id-plaque-status { color: #1f5d8c; border-color: rgba(31,93,140,.3); background: rgba(255,255,255,.55); }
.theme-id .id-plaque-status i { background: #2f8fd1; box-shadow: 0 0 8px rgba(47,143,209,.5); }
.theme-id .id-plaque-number code { color: #174f7d; }
.theme-id .id-plaque-points b { color: #b33a3a; }
.theme-id .id-plaque-avatar { background: #fff; border-color: rgba(57,119,174,.5); color: #174f7d; }
.theme-id .id-plaque-chip, .theme-id .id-card-contactless { display: none; }
.theme-id .id-plaque-copy, .theme-id .id-plaque-share, .theme-id .id-plaque-flip { color: #1f5d8c; background: rgba(255,255,255,.45); border-color: rgba(31,93,140,.25); }
.theme-id .id-plaque-foot { border-top-color: rgba(31,93,140,.2); }
.theme-id.id-flip .id-plaque-back { background: linear-gradient(135deg,#eef8ff,#d7ecfb); }
.theme-id .id-card-back-note, .theme-id .id-card-barcode-text { color: #315d7f; }
@media (max-width: 720px) { .card-theme-switch button { padding: 5px 8px; font-size: .58rem; } }

@media (min-width: 1100px) {
  .account-shell > .card-theme-switch { grid-column: 1 / -1; grid-row: 3; margin-top: 0; }
  .account-shell > .id-flip { grid-row: 4 / span 2; }
  .account-shell > .security-score-card { grid-row: 4; }
  .account-shell > .account-points-strip { grid-row: 5; }
}

/* 卡片高级细节 */
.id-plaque-download { border: 1px solid rgba(232,210,151,.42); background: rgba(232,210,151,.1); color: #ead9a3; border-radius: 99px; padding: 4px 10px; font-size: .58rem; font-weight: 800; cursor: pointer; }
.id-plaque-download:hover { background: rgba(232,210,151,.2); }
.id-card-numberline { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 11px; background: rgba(255,255,255,.055); border: 1px solid rgba(194,229,208,.12); }
.id-card-numberline > small { color: #8fb7a4; font-size: .48rem; letter-spacing: .13em; }
.id-card-numberline code { color: #f0dfaa; font-family: "SFMono-Regular", Consolas, monospace; font-size: 1.28rem; letter-spacing: .13em; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.id-card-numberline .id-plaque-copy { margin-left: 2px; }
.id-card-valid { margin-left: auto; color: #8fb7a4; font-size: .46rem; line-height: 1.45; letter-spacing: .1em; text-align: right; }
.id-card-hologram { width: 36px; height: 36px; border-radius: 50%; flex: none; background: conic-gradient(from 20deg, rgba(232,210,151,.9), rgba(114,211,171,.45), rgba(255,255,255,.15), rgba(232,210,151,.9)); opacity: .7; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.id-card-hologram::after { content: "N"; display: grid; place-items: center; height: 100%; color: rgba(7,54,43,.65); font-size: .62rem; font-weight: 900; }
.theme-milk .id-card-numberline { background: rgba(255,255,255,.28); border-color: rgba(139,82,31,.18); }
.theme-milk .id-card-numberline code { color: #8b521f; }
.theme-milk .id-card-numberline > small, .theme-milk .id-card-valid { color: #9a6b32; }
.theme-milk .id-plaque-download { color: #8b521f; background: rgba(255,255,255,.3); border-color: rgba(139,82,31,.3); }
.theme-id .id-card-numberline { background: rgba(255,255,255,.42); border-color: rgba(31,93,140,.18); }
.theme-id .id-card-numberline code { color: #174f7d; }
.theme-id .id-card-numberline > small, .theme-id .id-card-valid { color: #4f7798; }
.theme-id .id-plaque-download { color: #1f5d8c; background: rgba(255,255,255,.45); border-color: rgba(31,93,140,.25); }
@media (max-width: 720px) { .id-card-numberline { padding: 7px 9px; margin-bottom: 8px; gap: 5px; } .id-card-numberline code { font-size: .95rem; } .id-card-valid { font-size: .4rem; } .id-card-hologram { width: 28px; height: 28px; } .id-plaque-download { padding: 4px 8px; } }

/* 独立分享页 */
.share-page { min-height: 100vh; background: radial-gradient(700px 420px at 88% 6%, rgba(185,230,200,.4), transparent 65%), radial-gradient(520px 320px at 4% 90%, rgba(232,210,151,.18), transparent 65%), #f4f6ef; color: var(--ink); }
.share-page .share-top { max-width: 1180px; margin: 0 auto; padding: 26px 28px 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.share-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.share-brand .brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--green-2); color: #fff; display: grid; place-items: center; }
.share-brand .brand-mark .ic { width: 20px; height: 20px; }
.share-brand b { display: block; font-size: .9rem; }
.share-brand small { display: block; color: var(--muted); font-size: .6rem; margin-top: 2px; }
.share-top-actions { display: flex; gap: 8px; }
.share-main { max-width: 1180px; margin: 0 auto; padding: 42px 28px 56px; display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); gap: 34px; align-items: center; }
.share-intro .eyebrow { color: var(--green-2); }
.share-intro h1 { margin: 12px 0 14px; font-size: clamp(2.1rem, 4.2vw, 3.6rem); line-height: 1.05; letter-spacing: -.06em; }
.share-intro h1 em { color: var(--green-2); font-style: normal; }
.share-intro p { max-width: 360px; color: var(--muted); font-size: .86rem; line-height: 1.85; }
.share-stage { justify-self: end; width: 100%; max-width: 640px; }
.share-stage .card-theme-switch { margin: 0 0 12px; }
.share-stage .id-flip { max-width: 640px; margin: 0; }
.share-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.share-actions .btn { min-height: 40px; }
.share-hint { margin: 10px 0 0; color: var(--muted); font-size: .66rem; line-height: 1.6; }
.share-foot { max-width: 1180px; margin: 0 auto; padding: 18px 28px 26px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); color: var(--muted); font-size: .62rem; }
.share-foot a { color: inherit; }
@media (max-width: 900px) { .share-main { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; } .share-intro h1 { font-size: 2.4rem; } .share-intro p { max-width: 100%; } .share-stage { justify-self: stretch; max-width: 640px; margin: 0 auto; } }
@media (max-width: 600px) { .share-page .share-top { padding: 16px 14px 4px; } .share-top-actions .btn { min-height: 34px; padding: 0 10px; font-size: .66rem; } .share-main { padding: 24px 14px 38px; } .share-intro h1 { font-size: 2rem; } .share-stage .id-flip { max-width: 100%; } .share-actions .btn { flex: 1; } .share-foot { padding: 16px 14px 22px; } }

/* 全站移动端适配 */
@media (max-width: 720px) {
  .account-shell { padding: 16px 12px 26px; }
  .account-hero { padding: 18px; border-radius: 20px; }
  .account-hero-main { flex-basis: calc(100% - 64px); }
  .account-meta-line { gap: 5px; }
  .account-since { font-size: .58rem; width: 100%; }
  .account-quick-stats { gap: 8px; }
  .account-quick-stats a { padding: 10px 12px; border-radius: 13px; }
  .account-quick-stats b { font-size: 1.05rem; }
  .security-score-card { flex-direction: column; gap: 10px; padding: 14px; }
  .security-score-ring { width: 64px; height: 64px; align-self: flex-start; }
  .security-score-ring span { bottom: 11px; }
  .security-score-main { width: 100%; }
  .security-score-head { align-items: flex-start; }
  .security-score-items { gap: 5px; }
  .security-item { font-size: .56rem; padding: 3px 7px; }
  .account-points-strip { padding: 15px; }
  .account-points-strip .points-overview { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
  .account-points-strip .points-overview > div { min-width: 0; padding: 9px; }
  .account-points-strip .points-overview b { font-size: .98rem; }
  .account-points-strip .points-rules span { font-size: .56rem; }
  .account-nav { gap: 4px; padding-bottom: 6px; }
  .account-nav a { padding: 5px 8px; font-size: .62rem; }
  .account-grid { gap: 12px; margin-top: 12px; }
  .account-grid .card, .account-shell > .card { padding: 16px; border-radius: 17px; }
  .card-head { gap: 8px; }
  .card-head h2 { font-size: .92rem; }
  .card-head p { font-size: .66rem; }
  .method-item { flex-wrap: wrap; gap: 8px; padding: 13px 0; }
  .method-actions { width: 100%; justify-content: flex-end; margin-top: 2px; }
  .method-actions .btn { min-height: 34px; }
  .method-body { flex: 1 1 calc(100% - 48px); }
  .method-value { word-break: break-all; }
  .profile-list { grid-template-columns: 1fr; gap: 0; }
  .profile-list div { padding: 9px 0; }
  .nickname-inline { flex-direction: column; align-items: stretch; gap: 6px; }
  .nickname-inline .btn { width: 100%; }
  .avatar-editor { flex-wrap: wrap; }
  .avatar-editor-copy { flex-basis: calc(100% - 64px); }
  .avatar-upload { width: 100%; }
  .points-log { grid-template-columns: minmax(0,1fr) auto; }
  .points-log small { grid-column: 1 / -1; }
  .account-shell .table-wrap { margin: 0 -4px; }
  .account-shell .table-wrap .data { min-width: 520px; }
  .account-shell .pagination { padding: 12px 0 2px; }
  .card-theme-switch { width: 100%; justify-content: space-between; }
  .card-theme-switch button { flex: 1; padding: 5px 4px; }
  .id-plaque-top-actions { gap: 4px; }
  .id-plaque-download, .id-plaque-share { padding: 3px 6px; font-size: .5rem; }
  .id-plaque-status { padding: 3px 6px; font-size: .5rem; }
  .id-plaque-brand small { font-size: .48rem; letter-spacing: .09em; }
  .id-card-numberline code { font-size: .8rem; letter-spacing: .08em; }
  .id-card-numberline > small { font-size: .42rem; }
  .id-card-valid { font-size: .38rem; }
  .id-plaque-foot { font-size: .45rem; }
  .id-plaque-holder h2 { font-size: 1rem; }
  .id-plaque-points b { font-size: 1rem; }
  .id-plaque-avatar { width: 50px; height: 50px; border-radius: 14px; }
  .id-plaque-body { grid-template-columns: 50px minmax(0,1fr); }
  .id-plaque-side { grid-column: 2; }
  .id-card-hologram { width: 26px; height: 26px; }
}
@media (max-width: 600px) {
  .share-page .share-top { align-items: flex-start; }
  .share-brand small { max-width: 180px; line-height: 1.35; }
  .share-top-actions .btn { white-space: nowrap; }
  .share-main { padding-top: 18px; }
  .share-intro h1 { font-size: 1.9rem; }
  .share-intro p { font-size: .78rem; }
  .share-stage .card-theme-switch { margin-top: 2px; }
  .share-actions { gap: 6px; }
  .share-actions .btn { min-height: 36px; font-size: .68rem; }
  .share-hint { font-size: .6rem; }
}

/* 分享页移动端防溢出 */
@media (max-width: 600px) {
  .share-page { overflow-x: hidden; }
  .share-page .share-top { flex-wrap: wrap; align-items: flex-start; }
  .share-top-actions { margin-left: auto; }
  .share-top-actions .btn { padding: 0 8px; font-size: .62rem; }
  .share-brand { min-width: 0; }
  .share-brand small { max-width: 170px; }
  .share-main, .share-main > *, .share-stage, .share-stage .id-flip { min-width: 0; }
  .share-stage .id-flip { width: 100%; max-width: 100%; }
  .share-stage .id-plaque { box-sizing: border-box; width: 100%; }
  .share-intro p { overflow-wrap: anywhere; }
  .share-stage .card-theme-switch { width: 100%; display: flex; }
  .share-stage .card-theme-switch button { flex: 1; min-width: 0; padding: 5px 2px; font-size: .55rem; }
  .share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .share-actions .btn { min-width: 0; padding: 0 8px; }
  .share-actions .btn:first-child { grid-column: 1 / -1; }
  .share-foot { overflow-wrap: anywhere; }
  .id-plaque-top { gap: 5px; }
  .id-plaque-brand { min-width: 0; flex: 1; }
  .id-plaque-brand b, .id-plaque-brand small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .id-plaque-top-actions { flex: none; }
  .id-plaque-download, .id-plaque-share { padding: 3px 5px !important; }
  .id-card-numberline { min-width: 0; flex-wrap: wrap; }
  .id-card-numberline code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .id-card-valid { flex: none; }
  .id-plaque-side { min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
  .id-plaque-points { min-width: 42px; }
}

@media (max-width: 900px) {
  .share-main { grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 100%; }
  .share-intro, .share-stage { max-width: 100%; width: 100%; }
  .share-page .share-top { width: 100%; box-sizing: border-box; }
}

/* 小屏卡片压缩，保证银行卡完整 */
@media (max-width: 480px) {
  .id-flip .id-plaque { padding: 10px 12px 5px; }
  .id-plaque-top { gap: 4px; }
  .id-plaque-brand { gap: 7px; }
  .id-plaque-logo { width: 28px; height: 28px; border-radius: 9px; font-size: .72rem; }
  .id-plaque-brand b { font-size: .72rem; }
  .id-plaque-brand small { display: none; }
  .id-plaque-download, .id-plaque-share { display: inline-flex; align-items: center; padding: 2px 4px; font-size: .42rem; }
  .id-plaque-status { padding: 2px 5px; font-size: .44rem; }
  .id-plaque-body { margin: 6px 0 5px; grid-template-columns: 42px minmax(0,1fr) auto; gap: 8px; }
  .id-plaque-avatar { width: 42px; height: 42px; border-radius: 11px; font-size: 1rem; }
  .id-plaque-holder small { font-size: .4rem; }
  .id-plaque-holder h2 { font-size: .88rem; margin: 1px 0; }
  .id-plaque-side { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
  .id-plaque-side .id-card-chip { width: 28px; height: 22px; border-radius: 5px; }
  .id-plaque-side .id-card-contactless { width: 14px; height: 14px; }
  .id-plaque-side .id-card-hologram { display: none; }
  .id-plaque-points { min-width: 0; }
  .id-plaque-points small { font-size: .38rem; }
  .id-plaque-points b { font-size: .82rem; }
  .id-card-numberline { padding: 5px 7px; margin-bottom: 4px; gap: 3px; border-radius: 7px; }
  .id-card-numberline > small { display: none; }
  .id-card-numberline code { font-size: .7rem; letter-spacing: .05em; }
  .id-card-numberline .id-plaque-copy { width: 18px; height: 18px; }
  .id-card-valid { font-size: .34rem; line-height: 1.3; }
  .id-plaque-foot { padding-top: 4px; font-size: .38rem; }
  .id-plaque-foot .id-plaque-actions > span { display: none; }
  .id-plaque-flip { font-size: .4rem; }
  .id-card-magstripe { height: 26px; margin: 8px -12px 9px; }
  .id-card-signature { height: 26px; padding: 0 8px; }
  .id-card-signature span { font-size: .62rem; }
  .id-card-signature small { font-size: .34rem; }
  .id-card-back-body { gap: 4px; }
  .id-card-back-note { font-size: .46rem; line-height: 1.4; }
  .id-card-barcode { height: 20px; }
  .id-card-barcode-text { font-size: .38rem; }
}

@media (max-width: 480px) {
  .id-plaque-foot { flex-direction: row; align-items: center; gap: 4px; padding-top: 3px; }
  .id-plaque-foot > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* 应用与连接 */
.connection-list { margin-top: 4px; }
.connection-row { align-items: flex-start; }
.connection-main { display: flex; flex-direction: column; gap: 5px; }
.connection-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.connection-tag { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 99px; background: #f5f8f4; color: var(--muted); font-size: .55rem; font-weight: 700; }
.connection-tag.is-on { background: #e7f5eb; color: #237a4c; }
.connection-sub { color: var(--muted); font-size: .64rem; line-height: 1.45; overflow-wrap: anywhere; }
.connection-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.connection-actions form { margin: 0; }
.connection-connect { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.connection-connect .btn { flex: 1 1 180px; }
@media (max-width: 720px) {
  .connection-row { flex-wrap: wrap; }
  .connection-actions { width: 100%; justify-content: flex-end; margin-top: 2px; }
  .connection-tags { gap: 3px; }
  .connection-connect { flex-direction: column; }
  .connection-connect .btn { flex: 1 1 auto; width: 100%; }
}

/* 分页 */
.pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 14px 0 2px; }
.pagination a, .pagination .pagination-page, .pagination .pagination-arrow { min-width: 30px; height: 30px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); font-size: .68rem; font-weight: 800; text-decoration: none; }
.pagination a:hover { border-color: var(--green-3); color: var(--green-2); background: #f7fbf8; }
.pagination .pagination-page.is-active { background: var(--green-2); border-color: var(--green-2); color: #fff; }
.pagination .pagination-arrow { font-size: 1rem; padding: 0 5px; }
.pagination .pagination-arrow.is-disabled { opacity: .35; background: #f7f8f5; }
.pagination .pagination-ellipsis { min-width: 18px; text-align: center; color: var(--muted); font-size: .7rem; }
.pagination .pagination-status { display: none; }
@media (max-width: 720px) {
  .account-shell .pagination { justify-content: center; gap: 4px; padding-top: 12px; }
  .pagination .pagination-status { display: block; width: 100%; text-align: center; color: var(--muted); font-size: .58rem; margin-bottom: 2px; }
  .pagination .pagination-ellipsis { display: none; }
  .pagination a, .pagination .pagination-page, .pagination .pagination-arrow { min-width: 28px; height: 28px; padding: 0 6px; font-size: .62rem; }
}

/* 账号页精修 */
.account-hero { position: relative; overflow: hidden; }
.account-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 220px at 82% 0, rgba(232,210,151,.13), transparent 70%), repeating-linear-gradient(115deg, transparent 0 44px, rgba(255,255,255,.025) 45px, transparent 46px 92px); pointer-events: none; }
.account-hero::after { content: "NJF"; position: absolute; right: 26px; bottom: -36px; font-size: 9.5rem; font-weight: 900; line-height: 1; letter-spacing: -.1em; color: rgba(232,210,151,.045); pointer-events: none; }
.account-hero > * { position: relative; z-index: 1; }
.account-hero-line { display: block; margin-top: 8px; color: rgba(216,255,230,.62); font-size: .64rem; letter-spacing: .06em; }
.account-quick-stats a { position: relative; min-height: 76px; padding-right: 48px; justify-content: space-between; }
.quick-stat-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #eef7f0; color: var(--green-2); }
.quick-stat-icon .ic { width: 15px; height: 15px; }
.account-quick-stats a > span:not(.quick-stat-icon) { font-size: .66rem; }
.card-theme-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 2px 2px 0; }
.card-theme-title { display: flex; flex-direction: column; gap: 2px; }
.card-theme-title .eyebrow { font-size: .54rem; letter-spacing: .16em; color: var(--muted); }
.card-theme-title b { font-size: .82rem; color: var(--ink); }
.card-theme-bar .card-theme-switch { margin: 0; }
.id-card-microline { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 6px; color: #8fb7a4; font-size: .46rem; letter-spacing: .16em; text-transform: uppercase; }
.id-card-microline span:last-child { color: rgba(232,210,151,.65); }
.theme-milk .id-card-microline { color: #9a6b32; }
.theme-id .id-card-microline { color: #4f7798; }
.id-card-hologram { width: 44px; height: 44px; }
.id-card-hologram::after { font-size: .74rem; }
@media (min-width: 1100px) {
  .account-shell > .card-theme-bar { grid-column: 1 / -1; grid-row: 3; }
  .account-shell > .id-flip { grid-row: 4 / span 2; width: 100%; max-width: 100%; justify-self: stretch; }
  .account-shell > .security-score-card { grid-row: 4; }
  .account-shell > .account-points-strip { grid-row: 5; }
  .id-plaque::after { font-size: 9rem; right: 12px; bottom: 34px; }
}
@media (max-width: 720px) {
  .account-hero::after { display: none; }
  .account-hero-line { font-size: .58rem; }
  .quick-stat-icon { width: 26px; height: 26px; right: 10px; }
  .account-quick-stats a { padding-right: 40px; }
  .card-theme-bar { align-items: flex-start; flex-direction: column; gap: 7px; }
  .card-theme-bar .card-theme-switch { width: 100%; }
  .id-card-microline { font-size: .38rem; letter-spacing: .12em; margin-bottom: 4px; }
  .id-card-hologram { width: 30px; height: 30px; }
}

.id-plaque-front::before { background-image: radial-gradient(circle at 76% 44%, transparent 0 116px, rgba(232,210,151,.10) 117px 118px, transparent 119px), radial-gradient(circle at 76% 44%, transparent 0 158px, rgba(232,210,151,.055) 159px 160px, transparent 161px), repeating-linear-gradient(115deg, transparent 0 23px, rgba(201,174,105,.20) 24px, transparent 25px 58px); }
.theme-milk .id-plaque-front::before { background-image: radial-gradient(circle at 76% 44%, transparent 0 116px, rgba(139,82,31,.10) 117px 118px, transparent 119px), radial-gradient(circle at 76% 44%, transparent 0 158px, rgba(139,82,31,.06) 159px 160px, transparent 161px), radial-gradient(circle at 20% 30%, rgba(198,146,63,.35) 0 2px, transparent 3px); background-size: auto, auto, 46px 46px; }
.theme-id .id-plaque-front::before { background-image: radial-gradient(circle at 76% 44%, transparent 0 116px, rgba(31,93,140,.10) 117px 118px, transparent 119px), radial-gradient(circle at 76% 44%, transparent 0 158px, rgba(31,93,140,.06) 159px 160px, transparent 161px), repeating-linear-gradient(120deg, transparent 0 20px, rgba(57,119,174,.22) 21px, transparent 22px 42px); }

@media (min-width: 1100px) {
  .id-plaque-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
  .id-card-tech { gap: 10px; }
  .id-card-hologram { width: 74px; height: 74px; }
  .id-card-hologram::after { font-size: 1rem; }
  .id-plaque-points { text-align: right; }
  .id-plaque::after { opacity: 1; color: rgba(232,210,151,.075); }
  .id-plaque-front::before { opacity: .22; }
}

.id-card-hologram { display: none; }

/* 手机端登录：完整身份卡 sheet */
.auth-mobile-hero,
.auth-mobile-caption,
.auth-mobile-trust { display: none; }
.mobile-social-note,
.mobile-password-toggle { display: none; }

@media (max-width: 720px) {
  .login-page { background: radial-gradient(520px 300px at 50% -8%, #e4f1e7 0%, rgba(228,241,231,0) 72%), var(--paper); }
  .login-page .topbar { padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 2px; align-items: center; }
  .login-page .top-actions .main-link { display: none; }
  .login-page .cs-top-link { display: none; }
  .login-page .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .login-page .brand-mark .ic { width: 19px; height: 19px; }
  .login-page .brand { gap: 9px; }
  .login-page .brand-text b { font-size: .94rem; }
  .login-page .brand-text small { max-width: 158px; font-size: .61rem; }
  .login-page .top-actions .btn { min-height: 36px; padding: 0 13px; font-size: .75rem; border-radius: 10px; }
  .login-page .auth-shell { padding-top: 12px; padding-bottom: 0; }
  .login-page .auth-panel-card {
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 70px -46px rgba(12, 61, 49, .62);
    overflow: hidden;
  }
  .login-page .auth-mobile-hero {
    display: block;
    position: relative;
    isolation: isolate;
    padding: 19px 18px 17px;
    background:
      radial-gradient(280px 170px at 102% -18%, rgba(185, 230, 200, .30) 0%, rgba(185, 230, 200, 0) 70%),
      linear-gradient(145deg, #124b3d 0%, #0a332a 100%);
    color: #fff;
    overflow: hidden;
  }
  .login-page .auth-mobile-hero::after {
    content: "NJF";
    position: absolute;
    right: 8px;
    bottom: -20px;
    z-index: -1;
    color: rgba(232, 210, 151, .075);
    font-size: 82px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.09em;
  }
  .login-page .auth-mobile-kicker {
    display: block;
    color: #b9e6c8;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
  }
  .login-page .auth-mobile-hero h1 {
    margin: 6px 0 4px;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1.22;
    letter-spacing: -.035em;
  }
  .login-page .auth-mobile-hero p {
    margin: 0;
    max-width: 245px;
    color: #bfdccb;
    font-size: .7rem;
    line-height: 1.65;
  }
  .login-page .auth-mobile-secure {
    position: absolute;
    top: 16px;
    right: 15px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid rgba(185, 230, 200, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    color: #d9f4e4;
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .03em;
  }
  .login-page .auth-mobile-secure .ic { width: 11px; height: 11px; }
  .login-page .auth-panel-body { padding: 15px 14px 14px; }
  .login-page .auth-head { display: none; }
  .login-page .auth-tabs { margin: 0 0 13px; padding: 3px; border-radius: 12px; }
  .login-page .auth-tab { padding: 8px 9px; font-size: .78rem; border-radius: 9px; }
  .login-page .auth-mobile-caption {
    display: block;
    margin: 0 0 7px;
    color: #8a978f;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .login-page .register-methods {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
    margin: 0;
  }
  .login-page .register-methods .method-card[data-auth-method="email"],
  .login-page .register-methods .method-card[data-auth-method="phone"] { display: grid !important; }
  .login-page .register-methods .method-third-party { display: grid !important; }
  .login-page .third-party-toggle { display: none !important; }
  .login-page .method-card {
    min-height: 56px;
    padding: 9px 10px;
    border-radius: 13px;
    border-color: #e1e8dc;
    background: #fbfcf9;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 8px;
  }
  .login-page .method-card.is-active {
    border-color: var(--green-3);
    background: #f5fbf7;
    box-shadow: 0 0 0 2px rgba(28, 122, 95, .07);
  }
  .login-page .method-mark { width: 32px; height: 32px; border-radius: 10px; font-size: .76rem; }
  .login-page .method-mark .ic { width: 16px; height: 16px; }
  .login-page .method-card b { font-size: .76rem; }
  .login-page .method-card small { font-size: .61rem; }
  .login-page .method-note { display: none !important; }
  .login-page .mobile-social-note { display: none !important; }
  .login-page .mobile-password-toggle { display: none !important; }
  .login-page .auth-form {
    display: flex !important;
    gap: 10px;
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px dashed var(--line);
  }
  .login-page .field { gap: 5px; }
  .login-page .field > span:first-child { font-size: .69rem; color: #53655b; }
  .login-page .field input {
    height: 47px;
    padding: 0 12px;
    border-radius: 12px;
    border-color: #dde6d9;
    background: #f8faf6;
    font-size: 16px;
  }
  .login-page .field input:focus { background: #fff; }
  .login-page .password-wrap input { padding-right: 44px; }
  .login-page .form-row { gap: 8px; }
  .login-page .check, .login-page .text-link { font-size: .68rem; }
  .login-page .auth-form .btn-primary { min-height: 49px; margin-top: 2px; border-radius: 13px; font-size: .84rem; }
  .login-page .alert { margin: 10px 0 0 !important; padding: 9px 10px; font-size: .68rem; }
  .login-page .divider { margin: 14px 0 7px; font-size: .62rem; }
  .login-page .quick-links { gap: 2px; }
  .login-page .quick-links a { padding: 4px 7px; font-size: .66rem; }
  .login-page .auth-foot { margin-top: 11px; font-size: .6rem; line-height: 1.65; }
  .login-page .auth-mobile-trust {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 11px 2px 0;
  }
  .login-page .auth-mobile-trust span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border: 1px solid rgba(199, 213, 197, .8);
    border-radius: 999px;
    background: rgba(255, 255, 255, .58);
    color: #5d6d64;
    font-size: .58rem;
    font-weight: 600;
    white-space: nowrap;
  }
  .login-page .auth-mobile-trust .ic { width: 11px; height: 11px; color: var(--green-3); }
  .login-page .foot { padding: 15px 0 calc(20px + env(safe-area-inset-bottom)); align-items: center; gap: 8px; }
  .login-page .foot-brand { display: none; }
  .login-page .foot-links { justify-content: center; gap: 7px 12px; }
  .login-page .foot-links a { font-size: .63rem; }
  .login-page .copyright { order: 0; width: 100%; text-align: center; font-size: .58rem; }
  .pw-strength { flex-direction: row; align-items: center; gap: 7px; margin-top: 0; }
  .pw-strength .pw-meter { width: 105px; max-width: none; }
  .pw-strength .pw-label { font-size: .6rem; line-height: 1.5; }
}
/* ============================================================
   2026-12-03 移动端全站最终覆盖
   仅在 <=720px 生效，桌面端保持不变
   ============================================================ */
@media (max-width: 720px) {
  html, body { overflow-x: hidden; }
  .page, .auth-shell, .account-shell, .share-main { max-width: 100%; }
  .foot, .auth-page .foot, .account-page .foot, .home-page .foot, .share-page .foot {
    flex-direction: column; align-items: center; justify-content: center;
    gap: 9px; padding: 20px 0 calc(24px + env(safe-area-inset-bottom)); text-align: center;
  }
  .foot-brand { display: none; }
  .foot-links { justify-content: center; gap: 7px 14px; flex-wrap: wrap; }
  .foot-links a { font-size: .68rem; }
  .copyright { order: 3; width: 100%; text-align: center; font-size: .62rem; line-height: 1.7; }
  .copyright .icp-link { margin-left: 0; }

  /* 顶栏 */
  .register-page .top-actions .btn { display: none; }
  .register-page .top-actions .main-link { display: inline-flex; align-items: center; min-height: 36px; font-size: .78rem; }
  .register-page .cs-top-link, .home-page .cs-top-link { display: none; }
  .home-page .topbar, .register-page .topbar { padding-top: max(12px, env(safe-area-inset-top)); align-items: center; }
  .home-page .top-actions .btn, .register-page .top-actions .btn { min-height: 36px; border-radius: 10px; }

  /* 首页 */
  .home-page .hero { padding-top: 20px; gap: 18px; }
  .home-page .hero h1 { font-size: clamp(1.65rem, 8.2vw, 2.15rem); line-height: 1.16; letter-spacing: -.045em; }
  .home-page .hero h1 em { display: inline; }
  .home-page .lede { font-size: .82rem; line-height: 1.7; }
  .home-page .chips { gap: 6px; }
  .home-page .chips span { padding: 5px 8px; font-size: .68rem; }
  .home-page .id-card { width: 100%; max-width: 330px; margin: 16px auto 0; padding: 14px; }
  .home-page .auth-card { padding: 18px 14px 16px; border-radius: 20px; margin-top: 4px; }
  .home-page .auth-head h2 { font-size: 1.25rem; }
  .home-page .notice { padding: 9px 11px; font-size: .72rem; line-height: 1.65; }
  .home-page .auth-tabs { height: 44px; }
  .home-page .auth-tab { font-size: .86rem; }
  .home-page .register-methods { grid-template-columns: 1fr 1fr; gap: 8px; }
  .home-page .method-card { min-height: 58px; padding: 9px 10px; grid-template-columns: 36px minmax(0,1fr); gap: 8px; border-radius: 12px; }
  .home-page .method-mark { width: 36px; height: 36px; border-radius: 10px; }
  .home-page .method-card b { font-size: .82rem; }
  .home-page .method-card small { font-size: .66rem; }
  .home-page .method-note { font-size: .68rem; line-height: 1.6; margin: 8px 0 12px; }
  .home-page .third-party-toggle { display: none; }
  .home-page .method-third-party { display: grid; }
  .home-page .auth-form { gap: 12px; }
  .home-page .auth-form .field > span { font-size: .76rem; }
  .home-page .auth-foot { font-size: .7rem; line-height: 1.6; }
  .home-page .features { padding-top: 24px; gap: 8px; }
  .home-page .feature { padding: 14px; border-radius: 16px; }
  .home-page .feature h3 { font-size: .95rem; }
  .home-page .feature p { font-size: .76rem; line-height: 1.7; }
  .home-page .roadmap { padding-top: 26px; }
  .home-page .roadmap-head { gap: 6px; }
  .home-page .roadmap-head h2 { font-size: 1.38rem; line-height: 1.25; letter-spacing: -.035em; }
  .home-page .steps { gap: 8px; }
  .home-page .step { padding: 13px; border-radius: 14px; }

  /* 登录页 */
  .login-page .auth-shell { padding-top: 10px; }
  .login-page .auth-panel-card { padding: 0; border-radius: 22px; overflow: hidden; }
  .login-page .auth-mobile-hero { padding: 20px 18px 17px; }
  .login-page .auth-mobile-kicker { font-size: .6rem; letter-spacing: .09em; }
  .login-page .auth-mobile-hero h1 { font-size: 1.65rem; line-height: 1.18; margin: 5px 0 4px; }
  .login-page .auth-mobile-hero p { font-size: .74rem; line-height: 1.6; max-width: 245px; }
  .login-page .auth-mobile-secure { font-size: .62rem; padding: 4px 9px; }
  .login-page .auth-panel-body { padding: 15px 15px 17px; }
  .login-page .auth-head { display: none; }
  .login-page .auth-tabs { height: 44px; padding: 3px; margin: 0 0 14px; }
  .login-page .auth-tab { font-size: .86rem; }
  .login-page .auth-mobile-caption { margin: 0 0 8px; font-size: .68rem; }
  .login-page .register-methods { gap: 8px; }
  .login-page .method-card { min-height: 60px; padding: 9px 10px; grid-template-columns: 38px minmax(0,1fr); gap: 9px; border-radius: 12px; }
  .login-page .method-mark { width: 38px; height: 38px; border-radius: 11px; }
  .login-page .method-card b { font-size: .84rem; }
  .login-page .method-card small { font-size: .67rem; }
  .login-page .method-note { font-size: .68rem; line-height: 1.6; margin: 8px 0 11px; }
  .login-page .third-party-toggle { display: none; }
  .login-page .method-third-party { display: grid; }
  .login-page .auth-form { gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line); }
  .login-page .auth-form .field > span { font-size: .76rem; }
  .login-page .auth-form input { height: 48px; }
  .login-page .divider { border: 0; margin: 15px 0 10px; font-size: .68rem; }
  .login-page .quick-links { gap: 8px 14px; }
  .login-page .quick-links a { font-size: .7rem; }
  .login-page .auth-foot { font-size: .66rem; line-height: 1.65; margin-top: 10px; }
  .login-page .auth-mobile-trust { gap: 6px; margin-top: 12px; }
  .login-page .auth-mobile-trust span { padding: 6px 9px; font-size: .66rem; }

  /* 注册页 */
  .register-page .auth-shell { padding-top: 10px; }
  .register-page .auth-panel-card { padding: 0; border-radius: 22px; overflow: hidden; background: #fff; }
  .register-page .auth-mobile-hero {
    display: block; position: relative; isolation: isolate; overflow: hidden;
    padding: 20px 18px 17px; color: #fff;
    background:
      radial-gradient(280px 170px at 102% -18%, rgba(185,230,200,.30) 0%, rgba(185,230,200,0) 70%),
      linear-gradient(145deg, #124b3d 0%, #0a332a 100%);
  }
  .register-page .auth-mobile-hero::after {
    content: "NJF"; position: absolute; right: 8px; bottom: -20px; z-index: -1;
    color: rgba(232,210,151,.075); font-size: 82px; font-weight: 900; line-height: 1; letter-spacing: -.09em;
  }
  .register-page .auth-mobile-kicker { display: block; color: #b9e6c8; font-size: .6rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
  .register-page .auth-mobile-hero h1 { margin: 5px 0 4px; color: #fff; font-size: 1.55rem; line-height: 1.18; letter-spacing: -.035em; }
  .register-page .auth-mobile-hero p { margin: 0; color: #bfdccb; font-size: .74rem; line-height: 1.6; max-width: 245px; }
  .register-page .auth-mobile-secure {
    position: absolute; top: 16px; right: 15px; display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 8px; border: 1px solid rgba(185,230,200,.22); border-radius: 999px;
    background: rgba(255,255,255,.08); color: #cbead8; font-size: .6rem; font-weight: 700;
  }
  .register-page .auth-mobile-secure .ic { width: 11px; height: 11px; }
  .register-page .auth-panel-body { padding: 15px 15px 17px; }
  .register-page .auth-head { display: none; }
  .register-page .auth-tabs { height: 44px; padding: 3px; margin: 0 0 14px; }
  .register-page .auth-tab { font-size: .86rem; }
  .register-page .register-methods { grid-template-columns: 1fr 1fr !important; gap: 8px; }
  .register-page .method-third-party { display: grid !important; }
  .register-page .third-party-toggle { display: none !important; }
  .register-page .method-card { min-height: 58px; padding: 9px 10px; grid-template-columns: 36px minmax(0,1fr); gap: 8px; border-radius: 12px; }
  .register-page .method-mark { width: 36px; height: 36px; border-radius: 10px; }
  .register-page .method-card b { font-size: .82rem; }
  .register-page .method-card small { font-size: .66rem; }
  .register-page .method-note { font-size: .68rem; line-height: 1.6; margin: 8px 0 12px; }
  .register-page .auth-form { gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
  .register-page .auth-form .field > span { font-size: .76rem; }
  .register-page .auth-form input { height: 48px; }
  .register-page .form-grid { gap: 10px; }
  .register-page .help { font-size: .68rem; line-height: 1.6; }
  .register-page .auth-switch { font-size: .72rem; margin-top: 14px; }
  .register-page .auth-foot { font-size: .66rem; line-height: 1.6; }
  .register-page .check-terms { font-size: .7rem; line-height: 1.6; }

  /* 其他认证页 */
  .auth-page:not(.login-page):not(.register-page) .auth-panel-card { padding: 20px 16px 18px; border-radius: 20px; }
  .auth-page .auth-head h2 { font-size: 1.35rem; }
  .auth-page .field > span { font-size: .76rem; }

  /* 账号中心：纵向重排 */
  .account-page [hidden] { display: none !important; }
  .account-page .account-shell {
    display: flex; flex-direction: column; gap: 12px;
    padding: calc(12px + env(safe-area-inset-top)) 12px 24px;
  }
  .account-page .account-hero { order: 1; }
  .account-page .account-quick-stats { order: 2; }
  .account-page .security-score-card { order: 3; }
  .account-page .card-theme-bar { order: 4; }
  .account-page .id-flip { order: 5; margin: 0; }
  .account-page .alert { order: 6; margin: 0 !important; }
  .account-page .account-points-strip { order: 7; margin: 0; }
  .account-page .account-nav { order: 8; }
  .account-page #account-main-grid { order: 9; }
  .account-page #apps { order: 10; }
  .account-page #devices { order: 11; }
  .account-page #security-log { order: 12; }
  .account-page #apps, .account-page #devices, .account-page #security-log { margin-top: 0 !important; }

  .account-page .account-hero {
    display: grid; grid-template-columns: 54px minmax(0, 1fr);
    align-items: start; gap: 10px 12px; padding: 15px; border-radius: 20px;
  }
  .account-page .account-avatar { width: 54px; height: 54px; border-radius: 16px; font-size: 1.1rem; grid-column: 1; grid-row: 1; align-self: start; }
  .account-page .account-hero-main { grid-column: 2; grid-row: 1; min-width: 0; }
  .account-page .account-hero-main .eyebrow { font-size: .58rem; letter-spacing: .12em; }
  .account-page .account-hero h1 { font-size: 1.28rem; line-height: 1.2; margin: 2px 0 5px; }
  .account-page .account-meta-line { gap: 5px; row-gap: 5px; }
  .account-page .account-meta-line .public-id { font-size: .68rem; }
  .account-page .account-meta-line .badge { font-size: .56rem; padding: 2px 6px; }
  .account-page .account-since { width: 100%; font-size: .62rem; }
  .account-page .account-hero-line { display: block; margin-top: 3px; font-size: .64rem; line-height: 1.5; color: rgba(255,255,255,.72); }
  .account-page .account-hero-actions { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 2px; width: 100%; }
  .account-page .account-hero-actions .btn { min-height: 36px; padding: 0 5px; gap: 4px; font-size: .68rem; border-radius: 10px; }
  .account-page .account-hero-actions .btn .ic { width: 13px; height: 13px; }

  .account-page .account-quick-stats {
    display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 0; padding: 10px 0; margin: 0; background: #fff;
    border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm);
  }
  .account-page .account-quick-stats a {
    min-height: 0; padding: 3px 7px; border: 0; border-right: 1px solid var(--line);
    border-radius: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: transparent;
  }
  .account-page .account-quick-stats a:last-child { border-right: 0; }
  .account-page .account-quick-stats .quick-stat-icon { display: none; }
  .account-page .account-quick-stats a > span:not(.quick-stat-icon) { font-size: .6rem; color: var(--muted); }
  .account-page .account-quick-stats b { font-size: 1.18rem; line-height: 1.1; }

  .account-page .security-score-card {
    display: flex; flex-direction: row; align-items: center; gap: 11px;
    margin: 0; padding: 13px; border-radius: 18px;
  }
  .account-page .security-score-ring { width: 58px; height: 58px; flex: 0 0 58px; align-self: center; }
  .account-page .security-score-ring::before { inset: 5px; }
  .account-page .security-score-ring b { font-size: 1.08rem; }
  .account-page .security-score-ring span { bottom: 10px; font-size: .48rem; }
  .account-page .security-score-main { min-width: 0; }
  .account-page .security-score-head { margin: 0 0 5px; }
  .account-page .security-score-head .eyebrow { display: none; }
  .account-page .security-score-head h2 { margin: 0; font-size: .92rem; }
  .account-page .security-score-head .text-link { display: none; }
  .account-page .security-score-items { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 6px; margin-top: 0; }
  .account-page .security-item { padding: 3px 6px; font-size: .6rem; border-radius: 7px; gap: 4px; }
  .account-page .security-item small { font-size: .54rem; }
  .account-page .security-item i { width: 4px; height: 4px; }

  .account-page .card-theme-bar { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0 2px; }
  .account-page .card-theme-title .eyebrow { display: none; }
  .account-page .card-theme-title b { font-size: .78rem; }
  .account-page .card-theme-switch { display: grid; grid-template-columns: repeat(3,1fr); height: 34px; padding: 3px; border-radius: 10px; }
  .account-page .card-theme-switch button { height: 28px; padding: 0 4px; font-size: .66rem; }

  .account-page .id-flip { width: 100%; max-width: 100%; border-radius: 18px; }
  .account-page .id-flip .id-plaque { padding: 12px 13px 9px; border-radius: 18px; }
  .account-page .id-plaque-top { gap: 6px; }
  .account-page .id-plaque-brand { gap: 7px; min-width: 0; }
  .account-page .id-plaque-brand > div { min-width: 0; }
  .account-page .id-plaque-logo { width: 26px; height: 26px; border-radius: 8px; font-size: .7rem; }
  .account-page .id-plaque-brand b { font-size: .72rem; }
  .account-page .id-plaque-brand small { font-size: .46rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 125px; }
  .account-page .id-plaque-top-actions { gap: 4px; flex: none; }
  .account-page .id-plaque-status { padding: 3px 6px; font-size: .5rem; }
  .account-page .id-plaque-download, .account-page .id-plaque-share { padding: 3px 7px; font-size: .52rem; }
  .account-page .id-plaque-body { grid-template-columns: 44px minmax(0,1fr) auto; gap: 9px; margin: 8px 0 6px; }
  .account-page .id-plaque-avatar { width: 44px; height: 44px; border-radius: 12px; font-size: 1rem; }
  .account-page .id-plaque-holder small { font-size: .48rem; }
  .account-page .id-plaque-holder h2 { font-size: 1rem; line-height: 1.2; margin: 2px 0 0; }
  .account-page .id-plaque-side { grid-column: 3; grid-row: 1; gap: 7px; justify-content: space-between; }
  .share-page .id-plaque-side { grid-column: 3; grid-row: 1; }
  .account-page .id-plaque-chip { width: 26px; height: 20px; border-radius: 5px; }
  .account-page .id-card-contactless { width: 15px; height: 15px; }
  .account-page .id-card-hologram { width: 26px; height: 26px; }
  .account-page .id-plaque-points small { font-size: .46rem; }
  .account-page .id-plaque-points b { font-size: 1rem; }
  .account-page .id-card-microline { margin: 2px 0 5px; font-size: .48rem; }
  .account-page .id-card-numberline { padding: 6px 8px; margin: 0 0 6px; gap: 5px; border-radius: 9px; }
  .account-page .id-card-numberline > small { display: none; }
  .account-page .id-card-numberline code { font-size: .88rem; letter-spacing: .09em; }
  .account-page .id-card-valid { font-size: .46rem; }
  .account-page .id-plaque-foot { padding-top: 6px; font-size: .5rem; gap: 2px; }

  .account-page .account-points-strip { padding: 14px; border-radius: 18px; }
  .account-page .card-head { gap: 6px; margin-bottom: 8px; }
  .account-page .card-head h2 { font-size: .94rem; }
  .account-page .card-head p { font-size: .68rem; line-height: 1.55; }
  .account-page .account-points-strip .points-overview { gap: 7px; margin: 8px 0; }
  .account-page .account-points-strip .points-overview > div { padding: 8px 6px; border-radius: 10px; }
  .account-page .account-points-strip .points-overview b { font-size: 1.05rem; }
  .account-page .account-points-strip .points-overview span { font-size: .6rem; }
  .account-page .points-rules { gap: 5px; }
  .account-page .points-rules span { font-size: .58rem; padding: 3px 6px; }
  .account-page .points-log { grid-template-columns: minmax(0,1fr) auto; gap: 2px 8px; padding: 7px 0; font-size: .7rem; }
  .account-page .points-log small { grid-column: 1 / -1; font-size: .58rem; }

  .account-page .account-nav {
    display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 6px; overflow: visible; padding: 0; border: 0; background: transparent;
  }
  .account-page .account-nav a {
    flex: none; min-height: 0; padding: 8px 4px; text-align: center;
    border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.75);
    font-size: .68rem; font-weight: 700; color: var(--muted); white-space: nowrap;
  }
  .account-page .account-nav a.is-active { background: var(--green-2); border-color: var(--green-2); color: #fff; }

  .account-page #account-main-grid { display: flex; flex-direction: column; gap: 12px; }
  .account-page #account-main-grid .stack { order: 1; gap: 12px; }
  .account-page #identity-card { order: 2; }
  .account-page #identity-card .profile-list { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .account-page #identity-card .profile-list dt { font-size: .58rem; }
  .account-page #identity-card .profile-list dd { font-size: .76rem; }
  .account-page #identity-card .avatar-editor { padding: 10px; gap: 10px; }
  .account-page #identity-card .avatar-editor-preview { width: 46px; height: 46px; border-radius: 13px; }
  .account-page #identity-card .avatar-editor-copy p { font-size: .66rem; line-height: 1.55; }
  .account-page #identity-card .nickname-inline { gap: 8px; }
  .account-page .card { padding: 14px; border-radius: 18px; }
  .account-page #login-methods .method-item { grid-template-columns: 36px minmax(0,1fr); gap: 8px; padding: 10px 11px; }
  .account-page #login-methods .method-glyph { width: 36px; height: 36px; border-radius: 10px; }
  .account-page #login-methods .method-title { font-size: .76rem; }
  .account-page #login-methods .method-value { font-size: .66rem; line-height: 1.5; }
  .account-page #login-methods .method-actions { grid-column: 1 / -1; justify-content: flex-end; gap: 8px; margin-top: 2px; }
  .account-page #login-methods .method-actions .btn { flex: 1 1 0; min-width: 0; min-height: 32px; font-size: .68rem; }
  .account-page #login-methods .method-actions > form:not(:only-child) { flex: 1 1 0; min-width: 0; margin: 0; display: flex; }
  .account-page #login-methods .method-actions > form:not(:only-child) .btn { width: 100%; }
  .account-page .identity-row { gap: 8px; padding: 9px 0; }
  .account-page .identity-main b { font-size: .76rem; }
  .account-page .identity-main span { font-size: .64rem; }

  .account-page .connection-row { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: start; gap: 4px 8px; }
  .account-page .connection-main { min-width: 0; }
  .account-page .connection-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .account-page .connection-main b { font-size: .78rem; }
  .account-page .connection-sub { font-size: .62rem; line-height: 1.5; }

  .account-page .table-wrap { overflow: visible; }
  .account-page .table-wrap .data { min-width: 0 !important; width: 100%; }
  .account-page #devices thead, .account-page #security-log thead { display: none; }
  .account-page #devices tbody tr, .account-page #security-log tbody tr { display: grid; gap: 3px 8px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
  .account-page #devices tbody tr { grid-template-columns: minmax(0,1fr) auto; }
  .account-page #devices td, .account-page #security-log td { display: block; padding: 0; border: 0; min-width: 0; }
  .account-page #devices td:nth-child(1) { grid-column: 1; grid-row: 1; font-size: .78rem; }
  .account-page #devices td:nth-child(5) { grid-column: 2; grid-row: 1; justify-self: end; }
  .account-page #devices td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: .64rem; color: var(--muted); }
  .account-page #devices td:nth-child(3) { grid-column: 1; grid-row: 3; font-size: .64rem; }
  .account-page #devices td:nth-child(4) { grid-column: 2; grid-row: 3; font-size: .64rem; text-align: right; }
  .account-page #devices td:nth-child(2)::before { content: "IP "; color: #9aa9a0; }
  .account-page #devices td:nth-child(3)::before { content: "最近活跃 "; color: #9aa9a0; }
  .account-page #devices td:nth-child(4)::before { content: "登录 "; color: #9aa9a0; }
  .account-page #devices .row-actions .btn { min-height: 30px; font-size: .64rem; }
  .account-page #security-log tbody tr { grid-template-columns: minmax(0,1fr) auto; }
  .account-page #security-log td:nth-child(1) { grid-column: 1 / -1; grid-row: 1; font-size: .6rem; color: var(--muted); }
  .account-page #security-log td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: .74rem; }
  .account-page #security-log td:nth-child(4) { grid-column: 2; grid-row: 2; font-size: .58rem; text-align: right; color: var(--muted); }
  .account-page #security-log td:nth-child(3) { grid-column: 1 / -1; grid-row: 3; font-size: .64rem; line-height: 1.5; color: var(--muted); word-break: break-word; }
  .account-page .pagination { flex-wrap: wrap; gap: 5px; }

  /* 公开分享页 */
  .share-page .share-top { padding: max(14px, env(safe-area-inset-top)) 14px 2px; gap: 10px; }
  .share-page .share-brand small { font-size: .56rem; }
  .share-page .share-top-actions .btn { min-height: 34px; padding: 0 10px; font-size: .66rem; }
  .share-page .share-main { padding: 20px 14px 30px; gap: 18px; }
  .share-page .share-intro .eyebrow { font-size: .6rem; letter-spacing: .12em; }
  .share-page .share-intro h1 { font-size: 1.9rem; line-height: 1.12; margin: 8px 0 9px; }
  .share-page .share-intro p { font-size: .76rem; line-height: 1.7; }
  .share-page .share-stage .card-theme-switch { display: grid; grid-template-columns: repeat(3,1fr); height: 34px; padding: 3px; margin: 0 0 10px; }
  .share-page .share-stage .card-theme-switch button { height: 28px; padding: 0 4px; font-size: .66rem; }
  .share-page .id-flip { width: 100%; max-width: 100%; margin: 0; }
  .share-page .id-plaque { padding: 12px 13px 9px; border-radius: 18px; }
  .share-page .id-plaque-top-actions .id-plaque-download, .share-page .id-plaque-top-actions .id-plaque-share { display: none; }
  .share-page .id-plaque-brand small { font-size: .46rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 125px; }
  .share-page .id-plaque-body { grid-template-columns: 44px minmax(0,1fr) auto; gap: 9px; margin: 8px 0 6px; }
  .share-page .id-plaque-avatar { width: 44px; height: 44px; border-radius: 12px; font-size: 1rem; }
  .share-page .id-plaque-holder h2 { font-size: 1rem; }
  .share-page .id-card-numberline { padding: 6px 8px; margin: 0 0 6px; }
  .share-page .id-card-numberline > small { display: none; }
  .share-page .id-card-numberline code { font-size: .88rem; }
  .share-page .share-actions { margin-top: 12px; gap: 7px; }
  .share-page .share-actions .btn { min-height: 42px; font-size: .76rem; }
  .share-page .share-hint { font-size: .64rem; line-height: 1.6; }
  .share-page .share-foot { padding: 14px 14px 20px; font-size: .62rem; flex-direction: column; gap: 4px; justify-content: center; text-align: center; }
}

@media (max-width: 360px) {
  .home-page .hero h1 { font-size: 1.55rem; }
  .home-page .register-methods, .login-page .register-methods, .register-page .register-methods { grid-template-columns: 1fr 1fr !important; }
  .account-page .account-quick-stats a { padding: 3px 5px; }
  .account-page .account-quick-stats b { font-size: 1.02rem; }
  .account-page .account-quick-stats a > span:not(.quick-stat-icon) { font-size: .55rem; }
  .account-page .security-item small { display: none; }
  .account-page .id-card-microline, .share-page .id-card-microline { display: none; }
  .account-page .id-plaque-top-actions .id-plaque-download { display: none; }
  .share-page .share-intro h1 { font-size: 1.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .id-flip-inner, .auth-panel-card, .account-hero { transition: none !important; }
}

/* 2026-12-03 移动端收尾：复选框、条款、卡片字号 */
@media (max-width: 720px) {
  .auth-form input[type="checkbox"] {
    width: 16px; height: 16px; min-height: 0; padding: 0; margin-top: 2px; flex: none;
  }
  .login-page .form-row, .home-page .form-row { align-items: center; flex-wrap: nowrap; }
  .login-page .form-row .check, .home-page .form-row .check { height: auto; min-height: 0; }
  .login-page .form-row .text-link, .home-page .form-row .text-link { margin-left: auto; }
  .register-page .auth-mobile-caption {
    display: block; margin: 0 0 8px; color: var(--muted);
    font-size: .68rem; font-weight: 700; letter-spacing: .02em;
  }
  .register-page .check-terms { display: flex; align-items: flex-start; gap: 6px; font-size: .72rem; line-height: 1.65; }
  .register-page .check-terms input { margin-top: 2px; }

  .account-page .alert { padding: 10px 12px; gap: 8px; font-size: .72rem; line-height: 1.6; }
  .account-page .alert .ic { width: 15px; height: 15px; }
  .account-page .security-score-ring span { font-size: .54rem; }

  .account-page .id-plaque-brand small, .share-page .id-plaque-brand small {
    display: block; margin-top: 1px; max-width: 158px;
    font-size: .52rem; letter-spacing: .1em; line-height: 1.3;
  }
  .share-page .id-plaque-brand small { max-width: 190px; }
  .account-page .id-plaque-holder small, .share-page .id-plaque-holder small {
    font-size: .52rem; letter-spacing: .12em;
  }
  .account-page .id-plaque-status, .share-page .id-plaque-status {
    padding: 3px 6px; font-size: .54rem; letter-spacing: .08em;
  }
  .account-page .id-plaque-download, .account-page .id-plaque-share {
    padding: 3px 7px; font-size: .54rem;
  }
  .account-page .id-plaque-points small, .share-page .id-plaque-points small {
    font-size: .5rem; letter-spacing: .1em;
  }
  .account-page .id-card-microline, .share-page .id-card-microline {
    margin: 3px 0 5px; font-size: .56rem; letter-spacing: .09em;
  }
  .account-page .id-card-valid, .share-page .id-card-valid {
    font-size: .54rem; letter-spacing: .05em;
  }
  .account-page .id-plaque-foot, .share-page .id-plaque-foot {
    font-size: .56rem; letter-spacing: .04em;
  }
}

/* 2026-12-03 极窄屏 320 收尾 */
@media (max-width: 340px) {
  .home-page .method-card small,
  .login-page .method-card small,
  .register-page .method-card small { font-size: .6rem; letter-spacing: 0; white-space: nowrap; }

  .account-page .account-meta-line { gap: 3px; row-gap: 4px; }
  .account-page .account-meta-line .public-id { padding: 3px 6px; gap: 4px; font-size: .6rem; }
  .account-page .account-meta-line .public-id .ic { width: 11px; height: 11px; }
  .account-page .account-meta-line .badge { padding: 1px 5px; font-size: .54rem; }
  .account-page .account-hero-line {
    font-size: .56rem; line-height: 1.45;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .account-page .id-plaque-top-actions { gap: 3px; }
  .account-page .id-plaque-status { padding-left: 5px; padding-right: 5px; letter-spacing: .05em; }
  .account-page .id-plaque-share { padding-left: 5px; padding-right: 5px; }
  .account-page .id-plaque-brand small { letter-spacing: .06em; }
}

/* 2026-12-03 移动端输入提示字号：占位文案略小于输入文字，避免显得笨重 */
@media (max-width: 720px) {
  .auth-form input::placeholder,
  .auth-form textarea::placeholder,
  .field input::placeholder,
  .field textarea::placeholder,
  .form-card input::placeholder,
  .form-card textarea::placeholder,
  .toolbar input::placeholder { font-size: 13px; opacity: 1; }
}



/* 2026-12-03 移动端可读性：把过小的辅助文字提升到可读区间，卡片内部仍保持银行卡比例 */
@media (max-width: 720px) {
  /* 全站辅助信息 */
  .brand-text small { max-width: 168px; font-size: .68rem; }
  .foot-links, .foot-links a { font-size: .72rem; }
  .copyright, .icp-link { font-size: .68rem; line-height: 1.7; }
  .eyebrow { font-size: .64rem; letter-spacing: .1em; }
  .preview-badge { font-size: .66rem; }
  .auth-mobile-kicker { font-size: .64rem; }
  .auth-mobile-secure { font-size: .66rem; }
  .auth-foot { font-size: .7rem; }
  .method-card small { font-size: .68rem; }
  .method-note { font-size: .7rem; }
  .step-num { font-size: .68rem; }
  .id-card-tag { font-size: .64rem; }

  /* 登录 / 注册 / 密码 / 绑定 */
  .login-page .check, .login-page .text-link, .login-page .divider { font-size: .7rem; }
  .login-page .auth-foot, .register-page .auth-foot { font-size: .7rem; }
  .register-page .help, .help { font-size: .7rem; }
  .pw-strength .pw-label, .pw-label { font-size: .66rem; }
  .input-hint { font-size: .7rem; }

  /* 账号页：概览、安全、积分、导航 */
  .account-page .account-hero-main .eyebrow { font-size: .66rem; }
  .account-page .account-since { font-size: .68rem; }
  .account-page .account-meta-line .public-id { font-size: .72rem; }
  .account-page .account-meta-line .badge { font-size: .66rem; }
  .account-page .account-hero-line { font-size: .68rem; }
  .account-page .account-hero-actions .btn { font-size: .72rem; }
  .account-page .account-quick-stats a > span:not(.quick-stat-icon) { font-size: .68rem; }
  .account-page .security-score-ring span { bottom: 9px; font-size: .54rem; }
  .account-page .security-item { font-size: .68rem; }
  .account-page .security-item small { font-size: .66rem; }
  .account-page .card-theme-title .eyebrow { font-size: .62rem; }
  .account-page .card-theme-switch button { font-size: .7rem; }
  .account-page .account-nav a { font-size: .7rem; }
  .account-page .card-head p { font-size: .72rem; }
  .account-page .badge, .account-page .connection-tag { font-size: .64rem; }
  .account-page .account-points-strip .points-overview span { font-size: .68rem; }
  .account-page .points-rules span { font-size: .68rem; }
  .account-page .points-log { font-size: .74rem; }
  .account-page .points-log small { font-size: .64rem; }
  .account-page .btn, .account-page .row-actions .btn { font-size: .72rem; }
  .account-page .method-value { font-size: .72rem; }
  .account-page .method-state { font-size: .68rem; }
  .account-page .connection-sub, .account-page .help { font-size: .7rem; }
  .account-page .avatar-editor-copy p { font-size: .7rem; }
  .account-page #identity-card .profile-list dt { font-size: .66rem; }

  /* 设备与安全日志：移动端已经是卡片，去掉过时的“左右滑动”提示 */
  .account-shell .table-wrap::before { content: none; display: none; }
  .account-page #devices td:nth-child(2),
  .account-page #devices td:nth-child(3),
  .account-page #devices td:nth-child(4) { font-size: .68rem; }
  .account-page .mono { font-size: .68rem; }
  .account-page #security-log td:nth-child(1) { font-size: .66rem; }
  .account-page #security-log td:nth-child(4) { font-size: .66rem; }
  .account-page #security-log td:nth-child(3) { font-size: .7rem; }
  .account-page .pagination a, .account-page .pagination .pagination-page,
  .account-page .pagination .pagination-arrow { font-size: .7rem; }
  .account-page .pagination .pagination-status { font-size: .66rem; }

  /* 身份铭牌：只抬起最小的微文案，避免破坏固定卡面比例 */
  .account-page .id-plaque-brand b, .share-page .id-plaque-brand b { font-size: .76rem; }
  .account-page .id-plaque-brand small, .share-page .id-plaque-brand small { font-size: .58rem; }
  .account-page .id-plaque-status, .share-page .id-plaque-status { font-size: .58rem; }
  .account-page .id-plaque-download, .account-page .id-plaque-share { font-size: .58rem; }
  .account-page .id-plaque-holder small, .share-page .id-plaque-holder small { font-size: .58rem; }
  .account-page .id-plaque-points small, .share-page .id-plaque-points small { font-size: .56rem; }
  .account-page .id-card-microline, .share-page .id-card-microline { font-size: .6rem; }
  .account-page .id-card-valid, .share-page .id-card-valid { font-size: .6rem; }
  .account-page .id-plaque-foot, .share-page .id-plaque-foot { font-size: .6rem; }
  .account-page .id-plaque-flip, .share-page .id-plaque-flip { font-size: .64rem; }

  /* 分享页 */
  .share-page .share-brand small { font-size: .62rem; }
  .share-page .share-intro .eyebrow { font-size: .64rem; }
  .share-page .share-top-actions .btn, .share-page .share-actions .btn { font-size: .72rem; }
  .share-page .share-stage .card-theme-switch button { font-size: .7rem; }
  .share-page .share-hint { font-size: .7rem; }
  .share-page .share-foot { font-size: .66rem; }
}

/* 2026-12-03 移动端可读性：页面级选择器补齐（覆盖各页原有更具体规则） */
@media (max-width: 720px) {
  .auth-page .auth-mobile-kicker { font-size: .64rem; }
  .auth-page .auth-mobile-secure { font-size: .66rem; }
  .auth-page .auth-mobile-caption { font-size: .7rem; }
  .auth-page .method-card small, .home-page .method-card small { font-size: .68rem; }
  .auth-page .method-note, .home-page .method-note { font-size: .7rem; }
  .auth-page .foot-links, .auth-page .foot-links a,
  .home-page .foot-links, .home-page .foot-links a,
  .account-page .foot-links, .account-page .foot-links a,
  .share-page .foot-links, .share-page .foot-links a { font-size: .7rem; }
  .auth-page .copyright, .auth-page .icp-link,
  .home-page .copyright, .home-page .icp-link,
  .account-page .copyright, .account-page .icp-link,
  .share-page .copyright, .share-page .icp-link { font-size: .68rem; }
  .auth-page .auth-foot { font-size: .7rem; }
  .auth-page .pw-strength .pw-label { font-size: .68rem; }
  .login-page .auth-mobile-trust span { font-size: .7rem; }
  .account-page .method-value,
  .account-page .method-state,
  .account-page .security-item,
  .account-page .security-item small { font-size: .7rem; }
  .account-page .account-meta-line .badge { font-size: .68rem; }
}

/* 2026-12-03 极窄屏：卡片空间不足时隐藏英文副标题，保证内容不溢出 */
@media (max-width: 340px) {
  .account-page .account-hero-line { font-size: .56rem; }
  .account-page .account-meta-line .badge-gray { display: none; }
  .account-page .id-plaque-brand small,
  .share-page .id-plaque-brand small { display: none; }
  .account-page .id-flip .id-plaque,
  .share-page .id-flip .id-plaque { padding-top: 10px; padding-bottom: 6px; }
  .account-page .id-plaque-body,
  .share-page .id-plaque-body { margin-top: 5px; margin-bottom: 4px; }
}


/* 邮箱/手机号验证 */
.verify-banner { align-items: center; gap: 12px; flex-wrap: wrap; }
.verify-banner-icon {
  width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff7e6; color: #a66a12; flex: 0 0 auto;
}
.verify-banner-icon .ic { width: 18px; height: 18px; }
.verify-banner-copy { min-width: 180px; flex: 1 1 240px; }
.verify-banner-copy b { display: block; font-size: .86rem; color: var(--ink); }
.verify-banner-copy p { margin: 3px 0 0; font-size: .76rem; line-height: 1.65; color: #6b7a71; }
.verify-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.verify-card .card-head { margin-bottom: 16px; }
.verify-state {
  display: flex; align-items: center; gap: 14px; padding: 15px 16px;
  border: 1px dashed #d7e4d6; border-radius: 16px; background: #f8fbf6;
}
.verify-state-icon {
  width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: #e9f5ec; color: var(--green-2); flex: 0 0 auto;
}
.verify-state-icon .ic { width: 21px; height: 21px; }
.verify-state b { display: block; font-size: .9rem; color: var(--ink); word-break: break-all; }
.verify-state p { margin: 3px 0 0; font-size: .76rem; line-height: 1.65; color: #6b7a71; }
.verify-state-ok { border-style: solid; border-color: #cfe6d8; background: #f3faf5; }
.verify-state-ok .verify-state-icon { background: #dff3e5; color: #126b46; }
.verify-card .auth-form { margin-top: 16px; }
@media (max-width: 640px) {
  .verify-banner { align-items: flex-start; }
  .verify-banner-actions { width: 100%; margin-left: 50px; }
  .verify-banner-actions .btn { flex: 1 1 auto; }
  .verify-state { align-items: flex-start; padding: 13px; }
  .verify-state-icon { width: 40px; height: 40px; }
}


/* 账号页顶部：验证提示与身份横幅作为整行，不参与下方卡片网格 */
.account-top { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; }
.account-top > .alert { margin: 0 !important; }
.account-top > .account-hero { width: 100%; }

.method-value, .profile-list dd, .verify-banner-copy p { word-break: break-word; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  /* 小屏回到普通文档流，避免显式 grid-row 把注销卡片等自动项排到前面 */
  .account-shell { display: block; }
  .account-shell > *,
  .account-shell > .account-top { grid-column: auto !important; grid-row: auto !important; }
  .account-top { gap: 10px; }
}

@media (max-width: 720px) {
  /* 移动端保持既有的纵向顺序，并把注销卡片放到最后 */
  .account-page .account-shell { display: flex; flex-direction: column; }
  .account-top { order: 1; }
  .account-top .account-hero { order: 0; width: 100%; }
  .account-top .alert { order: 1; }
  .account-page .danger-zone { order: 13; }
}

/* 分享链接管理 */
.share-manage {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  margin-top: 14px; padding: 13px 14px; border: 1px dashed var(--line-strong); border-radius: 13px; background: #fbfcf9;
}
.share-manage-copy { min-width: 0; flex: 1; }
.share-manage-copy b { display: block; font-size: .82rem; color: var(--ink); }
.share-manage-copy p { margin: 3px 0 6px; font-size: .72rem; line-height: 1.6; color: #6b7a71; }
.share-manage-copy code { display: block; font-size: .66rem; line-height: 1.5; color: var(--green-2); word-break: break-all; }
.share-manage-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }
@media (max-width: 720px) {
  .share-manage { flex-direction: column; }
  .share-manage-actions { width: 100%; }
  .share-manage-actions .btn { flex: 1 1 auto; }
}
