/* System: 14/18/32/48px type, white + #f2f7ff surfaces, blue actions, square 8px rhythm. */
:root { font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", sans-serif; color: #17233d; background: #f5f8fc; font-synthesis: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: #f5f8fc; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1200px) / 2)); border-bottom: 1px solid #e2e8f2; background: #fff; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; }
.brand-mark { display: flex; align-items: end; gap: 3px; width: 31px; height: 31px; padding: 6px; background: #1769e0; }
.brand-mark i { display: block; width: 4px; background: #fff; }
.brand-mark i:nth-child(1) { height: 9px; opacity: .7; }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3) { height: 13px; opacity: .85; }
nav { display: flex; align-items: center; gap: 28px; color: #4c5870; font-size: 14px; }
nav a:hover { color: #1769e0; }
.console-link { padding: 9px 16px; border: 1px solid #1769e0; color: #1769e0; }
.auth-page { position: relative; min-height: 590px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(380px, 460px); align-items: center; gap: 84px; padding: 72px max(24px, calc((100vw - 1200px) / 2)); overflow: hidden; background-color: #eef5ff; background-image: linear-gradient(#dbe8f9 1px, transparent 1px), linear-gradient(90deg, #dbe8f9 1px, transparent 1px); background-size: 40px 40px; }
.auth-page::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(238,245,255,.3) 0%, rgba(238,245,255,.95) 47%, rgba(238,245,255,.74) 100%); }
.intro, .auth-panel { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: #1769e0; font-size: 14px; font-weight: 700; }
.eyebrow span { width: 28px; height: 3px; background: #1769e0; }
h1 { max-width: 660px; margin: 0; color: #101b34; font-size: clamp(38px, 4.1vw, 58px); line-height: 1.17; letter-spacing: 0; text-wrap: balance; }
.lede { max-width: 560px; margin: 24px 0 40px; color: #57647d; font-size: 18px; line-height: 1.8; }
.signals { display: flex; align-items: stretch; border-top: 1px solid #b9cbe5; max-width: 570px; }
.signals div { flex: 1; display: grid; gap: 7px; padding: 18px 18px 0 0; }
.signals strong { color: #1769e0; font-size: 13px; }
.signals span { color: #3b4962; font-size: 14px; }
.auth-panel { padding: 34px; border: 1px solid #d3deed; border-top: 3px solid #1769e0; background: #fff; box-shadow: 0 20px 60px rgba(40,72,117,.14); }
.panel-heading { display: flex; align-items: center; gap: 15px; padding-bottom: 25px; border-bottom: 1px solid #e7ebf2; }
.panel-icon { position: relative; width: 42px; height: 42px; background: #e9f2ff; }
.panel-icon::before { content: ""; position: absolute; left: 11px; top: 10px; width: 18px; height: 14px; border: 2px solid #1769e0; border-radius: 50% 50% 45% 45%; }
.panel-icon::after { content: ""; position: absolute; left: 19px; top: 25px; width: 3px; height: 9px; background: #1769e0; }
h2 { margin: 0 0 5px; font-size: 21px; }
.panel-heading p { margin: 0; color: #7a8599; font-size: 13px; }
form { padding-top: 26px; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 22px; padding: 4px; background: #edf2f8; }
.mode-switch button { height: 38px; border: 0; color: #657086; background: transparent; font-size: 13px; font-weight: 700; }
.mode-switch button[aria-selected="true"] { color: #1769e0; background: #fff; box-shadow: 0 1px 4px rgba(35,61,96,.12); }
label { display: block; margin-bottom: 10px; color: #344158; font-size: 14px; font-weight: 700; }
.input-wrap { position: relative; display: flex; align-items: center; height: 52px; border: 1px solid #bec9d9; background: #fff; transition: border-color .15s, box-shadow .15s; }
.input-wrap:focus-within { border-color: #1769e0; box-shadow: 0 0 0 3px rgba(23,105,224,.12); }
.input-wrap > span { padding: 0 14px; border-right: 1px solid #e2e7ef; color: #1769e0; font-size: 11px; font-weight: 800; }
input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; padding: 0 12px; color: #17233d; background: transparent; }
input::placeholder { color: #9aa4b5; }
.clear { width: 40px; height: 40px; border: 0; color: #8b96a9; background: transparent; font-size: 22px; visibility: hidden; }
.clear.visible { visibility: visible; }
.message { min-height: 20px; margin: 10px 0 20px; color: #808b9e; font-size: 12px; line-height: 20px; }
.message.error { color: #d54941; }
.message.success { color: #16865a; }
.primary { width: 100%; height: 50px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid #1769e0; color: #fff; background: #1769e0; font-weight: 700; transition: background .15s; }
.primary:hover { background: #075acb; }
.primary:disabled { border-color: #89afe8; background: #89afe8; cursor: wait; }
.primary b { font-size: 20px; font-weight: 400; }
.trust { display: flex; justify-content: center; gap: 7px; margin-top: 22px; color: #7a8599; font-size: 12px; }
.trust span { color: #16865a; }
.help-band { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1200px; margin: 0 auto; padding: 36px 24px; background: #fff; }
.help-band div { display: grid; gap: 7px; padding: 0 34px; border-right: 1px solid #e5eaf1; }
.help-band div:last-child { border: 0; }
.help-band strong { font-size: 15px; }
.help-band span { color: #7a8599; font-size: 13px; }
footer { display: flex; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 24px; color: #8b95a7; font-size: 12px; }
.result-section { max-width: 1200px; margin: 32px auto; padding: 32px; border: 1px solid #d8e1ed; background: #fff; }
.result-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid #e4eaf2; }
.result-heading p { margin: 0 0 6px; color: #1769e0; font-size: 13px; font-weight: 700; }
.result-heading h2 { margin: 0; font-size: 26px; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.secondary-action { min-height: 40px; border: 1px solid #b8c5d6; padding: 0 15px; color: #42506a; background: #fff; }
.secondary-action:hover { border-color: #1769e0; color: #1769e0; }
.copy-all { border-color: #1769e0; color: #1769e0; }
.credential-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; border: 1px solid #dce4ee; }
.credential-item { display: grid; gap: 8px; min-width: 0; padding: 18px 20px; border-right: 1px solid #dce4ee; }
.credential-item:last-child { border: 0; }
.credential-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.credential-item span { color: #778399; font-size: 12px; }
.credential-item strong { overflow-wrap: anywhere; color: #15223b; font-size: 16px; }
.copy-field { min-width: 50px; min-height: 28px; border: 1px solid #c5d0df; padding: 0 9px; color: #1769e0; background: #fff; font-size: 12px; }
.copy-field:hover { border-color: #1769e0; background: #f2f7ff; }
.copy-fallback { position: fixed; left: -9999px; top: 0; }
@media (max-width: 860px) {
  .topbar { height: 58px; padding: 0 18px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 28px; height: 28px; padding: 5px; }
  nav > a:first-child { display: none; }
  .console-link { padding: 8px 11px; }
  .auth-page { min-height: auto; grid-template-columns: 1fr; gap: 34px; padding: 48px 20px 42px; }
  .auth-page::before { background: rgba(238,245,255,.83); }
  h1 { font-size: 36px; }
  .lede { margin: 18px 0 25px; font-size: 16px; }
  .signals { display: none; }
  .auth-panel { width: 100%; max-width: 520px; justify-self: center; padding: 27px 22px; }
  .help-band { grid-template-columns: 1fr; padding: 12px 20px; }
  .help-band div { padding: 18px 0; border-right: 0; border-bottom: 1px solid #e5eaf1; }
  footer { padding: 20px; }
  .result-section { margin: 20px; padding: 22px; }
  .credential-grid { grid-template-columns: 1fr; }
  .credential-item { border-right: 0; border-bottom: 1px solid #dce4ee; }
}
@media (max-width: 420px) {
  .console-link { font-size: 12px; }
  .auth-page { padding-top: 38px; }
  h1 { font-size: 31px; }
  .intro { text-align: center; }
  .eyebrow { justify-content: center; }
  .lede { font-size: 15px; }
  .auth-panel { padding: 24px 18px; }
  footer { display: grid; gap: 7px; text-align: center; }
  .result-section { margin: 14px; padding: 18px 14px; }
  .result-heading { align-items: start; }
  .result-heading h2 { font-size: 21px; }
  .result-actions { justify-content: flex-start; }
}
