:root { --plum:#1f0523; --plum-deep:#140318; --surface:#fff; --ink:#201624; --muted:#756c7a; --line:#e9e3eb; --soft:#f7f4f8; --blue:#327fff; --blue-dark:#2468dc; --orange:#ff8a28; --danger:#d92d20; --font:"PingFang SC","Microsoft YaHei","Noto Sans SC",Arial,sans-serif; }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
.icon-sprite { position:absolute; width:0; height:0; overflow:hidden; }
html,body { min-width:320px; min-height:100%; margin:0; }
body { min-height:100vh; min-height:100svh; display:grid; grid-template-rows:auto 1fr auto; overflow-x:hidden; color:#fff; font-family:var(--font); background-color:#68180d; background-image:linear-gradient(rgba(18,3,20,.12),rgba(18,3,20,.12)),var(--register-bg-image,url("login-bg.jpg")); background-position:center,58% center; background-size:cover,cover; background-attachment:fixed,fixed; background-repeat:no-repeat; }
body.is-embedded { grid-template-rows:1fr; }
body.is-embedded .app-header,
body.is-embedded .site-footer { display:none; }
html.is-embedded .app-header,
html.is-embedded .site-footer { display:none; }
html.is-embedded body { grid-template-rows:1fr; }
button,input { font:inherit; } button,a { -webkit-tap-highlight-color:transparent; } button { cursor:pointer; } a { color:inherit; text-decoration:none; }
.app-header { position:relative; z-index:5; height:80px; background:rgba(18,16,21,.48); border-bottom:1px solid rgba(255,255,255,.16); }
.header-inner { width:min(1120px,calc(100% - 40px)); height:80px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand img { width:200px; display:block; } .header-nav { display:flex; align-items:center; gap:6px; } .header-nav a { min-height:42px; display:inline-flex; align-items:center; padding:0 16px; color:rgba(255,255,255,.76); font-size:14px; transition:color .16s,background .16s; } .header-nav a:hover,.header-nav a:focus-visible { color:#fff; background:rgba(255,255,255,.08); outline:0; }
.mobile-menu-toggle { width:42px;height:42px;display:none;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:0;border:0;background:transparent; } .mobile-menu-toggle span { width:21px;height:2px;background:#fff; }
.register-main { width:min(1120px,calc(100% - 40px)); margin:auto; padding:34px 0 38px; display:grid; place-items:center; }
.register-panel { width:min(580px,100%); overflow:hidden; border:1px solid rgba(255,255,255,.9); border-radius:8px; background:#fff; color:var(--ink); box-shadow:0 24px 64px rgba(16,2,18,.34); animation:panel-in .42s ease both; }
.panel-heading { padding:17px 36px 11px; text-align:left; } .eyebrow { margin:0 0 3px; color:var(--orange); font-size:10px; font-weight:700; letter-spacing:.2em; text-transform:uppercase; } .panel-heading h1 { margin:0; font-size:23px; line-height:1.3; }
.register-tabs { min-height:42px; display:grid; grid-template-columns:repeat(2,1fr); padding:0 32px; border-bottom:1px solid var(--line); } .register-tab { position:relative; padding:0 8px 8px; border:0; background:transparent; color:var(--muted); font-size:14px; } .register-tab::after { position:absolute; right:17%;bottom:-1px;left:17%;height:2px;background:var(--blue);content:"";opacity:0;transform:scaleX(.5);transition:.16s; } .register-tab.is-active { color:var(--blue);font-weight:600; } .register-tab.is-active::after { opacity:1;transform:scaleX(1); } .register-tab:focus-visible { outline:2px solid rgba(50,127,255,.3);outline-offset:-4px; }
.form-area { padding:19px 36px 12px; } .register-form { animation:form-in .22s ease both; } .field { display:block; min-width:0; margin-bottom:10px; } .field>span:first-child { display:block;margin-bottom:5px;color:#55495a;font-size:12px;font-weight:600; } .field-control { position:relative;min-width:0;height:44px;display:flex;align-items:center;border:1px solid #e4dde6;border-radius:6px;background:var(--soft);transition:.16s; } .field-control:focus-within { border-color:rgba(50,127,255,.72);background:#fff;box-shadow:0 0 0 3px rgba(50,127,255,.1); } .field-control input { width:100%;min-width:0;height:100%;padding:0 14px 0 11px;border:0;outline:0;background:transparent;color:var(--ink);font-size:14px; } .field-control input::placeholder { color:#aaa1ae; } .field-icon { width:19px;height:19px;flex:0 0 auto;margin-left:14px;color:#9d92a2;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; } .password-toggle { width:40px;height:40px;flex:0 0 auto;margin-right:2px;padding:0;border:0;background:transparent;color:#9d92a2; } .password-toggle svg { width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; } .password-toggle:hover { color:var(--blue); }
.code-field { display:grid;grid-template-columns:minmax(0,1fr) 116px;gap:8px; } .code-button { height:44px;border:1px solid #bed1f7;border-radius:6px;background:#edf4ff;color:#2763b8;font-size:12px;font-weight:600;transition:.16s; } .code-button:hover:not(:disabled) { border-color:#8db1f4;background:#e2edff; } .code-button:disabled { cursor:not-allowed;color:#9ca9bf;background:#f2f4f8; }
.identity-section { margin-top:2px; padding-top:11px; border-top:1px solid var(--line); } .field-row { display:grid;grid-template-columns:minmax(128px,.8fr) minmax(220px,1.5fr);gap:10px; } .form-error { min-height:18px;margin:0 0 3px;color:var(--danger);font-size:12px;line-height:1.5; } .agreement { display:flex;align-items:flex-start;gap:8px;color:#756c7a;font-size:12px;line-height:1.6; } .agreement input { width:15px;height:15px;flex:0 0 auto;margin:2px 0 0;accent-color:var(--blue); } .agreement a { color:#3278c9; } .agreement a:hover { text-decoration:underline; }
.submit-button { width:100%;height:48px;margin-top:16px;border:1px solid var(--blue);border-radius:6px;background:var(--blue);color:#fff;font-size:15px;font-weight:600;box-shadow:0 9px 22px rgba(50,127,255,.24);transition:.16s; } .submit-button:hover:not(:disabled),.submit-button:focus-visible:not(:disabled) { background:var(--blue-dark);box-shadow:0 11px 26px rgba(50,127,255,.34);outline:0;transform:translateY(-1px); } .submit-button:disabled { cursor:not-allowed; opacity:.7; }
.register-fields { min-width:0; margin:0; padding:0; border:0; }
.register-status { margin:0 0 16px; color:var(--danger); font-size:13px; line-height:1.6; }
.panel-footer { margin:0 36px;padding:14px 0 17px;border-top:1px solid var(--line);text-align:center;color:var(--muted);font-size:12px; } .panel-footer a { margin-left:5px;color:var(--blue-dark);font-weight:600; } .panel-footer a:hover { text-decoration:underline; }
.site-footer { position:relative;z-index:1;padding:18px 20px 20px;text-align:center;text-shadow:0 2px 8px rgba(11,2,12,.48); } .site-footer nav { display:flex;justify-content:center;flex-wrap:wrap;gap:6px 0; } .site-footer nav a { padding:0 8px;border-right:1px solid rgba(255,255,255,.34);color:rgba(255,255,255,.78);font-size:11px; } .site-footer nav a:last-child { border-right:0; } .site-footer p { margin:7px 0 0;color:rgba(255,255,255,.58);font-size:10px; }
.toast { position:fixed;bottom:28px;left:50%;z-index:20;max-width:calc(100% - 32px);padding:11px 17px;border:1px solid rgba(255,255,255,.14);border-radius:6px;background:rgba(24,8,26,.92);color:#fff;font-size:13px;box-shadow:0 14px 34px rgba(12,2,13,.3);opacity:0;pointer-events:none;transform:translate(-50%,14px);transition:.18s; } .toast.is-visible { opacity:1;transform:translate(-50%,0); }
.captcha-overlay { position:fixed; inset:0; z-index:40; display:grid; place-items:center; padding:20px; background:rgba(10,3,13,.58); backdrop-filter:blur(4px); }
.captcha-dialog { position:relative; width:min(360px,100%); max-height:calc(100vh - 40px); max-height:calc(100dvh - 40px); overflow-y:auto; overscroll-behavior:contain; padding:26px 24px 22px; border:1px solid rgba(255,255,255,.7); border-radius:8px; background:#fff; color:var(--ink); box-shadow:0 24px 70px rgba(8,1,11,.4); }
.captcha-dialog h2 { margin:0; font-size:18px; } .captcha-dialog>p { margin:6px 0 14px; color:var(--muted); font-size:12px; }
.captcha-close { position:absolute; top:10px; right:12px; width:30px; height:30px; padding:0; border:0; background:transparent; color:#9d92a2; font-size:25px; line-height:1; } .captcha-close:hover { color:var(--ink); }
.captcha-click-guide { min-height:48px; display:flex; align-items:center; gap:10px; margin-bottom:10px; padding:8px 10px; border:1px solid #dce7fa; border-radius:5px; background:#f5f8ff; color:#5e6572; font-size:12px; } .captcha-click-guide span { flex:0 0 auto; } .captcha-click-guide img { display:block; max-width:180px; max-height:42px; object-fit:contain; }
.captcha-picture { position:relative; min-height:0; display:block; overflow:hidden; border-radius:5px; background:#eef1f6; cursor:crosshair; } .captcha-picture.is-loading { min-height:180px; } .captcha-picture.is-loading::after { position:absolute; inset:0; display:grid; place-items:center; color:#7b8492; font-size:12px; content:"正在加载..."; } .captcha-picture img { position:relative; z-index:1; display:block; width:100%; height:auto; } .captcha-dots { position:absolute; inset:0; z-index:2; pointer-events:none; } .captcha-dot { position:absolute; width:24px; height:24px; display:grid; place-items:center; border:2px solid #fff; border-radius:50%; background:var(--blue); color:#fff; font-size:12px; font-weight:700; transform:translate(-50%,-50%); box-shadow:0 2px 7px rgba(0,0,0,.28); }
.captcha-input-row { display:block; margin-top:10px; } .captcha-input-row input { width:100%; min-width:0; height:42px; padding:0 12px; border:1px solid var(--line); border-radius:5px; outline:0; color:var(--ink); background:var(--soft); } .captcha-input-row input:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(50,127,255,.1); }
.captcha-toolbar { display:flex; justify-content:flex-start; margin-top:10px; } .captcha-refresh { height:34px; padding:0 13px; border:1px solid #bed1f7; border-radius:5px; background:#edf4ff; color:#2763b8; font-size:12px; } .captcha-refresh:hover:not(:disabled) { border-color:#8db1f4; background:#e2edff; } .captcha-refresh:disabled { cursor:not-allowed; opacity:.6; }
.captcha-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:18px; } .captcha-actions button { min-width:72px; height:38px; border-radius:5px; font-size:13px; } .captcha-actions button:disabled { cursor:not-allowed; opacity:.65; } .captcha-cancel { border:1px solid var(--line); background:#fff; color:var(--muted); } .captcha-confirm { border:1px solid var(--blue); background:var(--blue); color:#fff; } .captcha-error { min-height:18px; margin:10px 0 0!important; color:var(--danger)!important; font-size:12px!important; }
@keyframes panel-in { from { opacity:0;transform:translateY(14px); } to { opacity:1;transform:translateY(0); } } @keyframes form-in { from { opacity:0;transform:translateX(8px); } to { opacity:1;transform:translateX(0); } }
@media (max-width:720px) { body { background-image:linear-gradient(rgba(18,3,20,.16),rgba(18,3,20,.16)),var(--register-bg-portrait-image,url("login-bg-portrait.jpg"));background-position:center,center top;background-attachment:scroll,scroll; } .app-header,.header-inner { height:68px; } .header-inner { width:calc(100% - 28px); } .brand img { width:164px; } .mobile-menu-toggle { display:flex; } .header-nav { position:absolute;top:calc(100% + 1px);right:0;left:0;display:grid;padding:8px 14px 12px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(20,3,23,.97);opacity:0;pointer-events:none;transform:translateY(-8px);transition:.16s; } .header-nav.is-open { opacity:1;pointer-events:auto;transform:translateY(0); } .header-nav a { min-height:44px;padding:0 10px; } .register-main { width:calc(100% - 28px);padding:24px 0 30px; } .panel-heading { padding:16px 20px 10px; } .panel-heading h1 { font-size:21px; } .register-tabs { padding:0 16px; } .form-area { padding:18px 20px 11px; } .panel-footer { margin:0 20px;padding-bottom:16px; } .field-row { grid-template-columns:1fr;gap:0; } .site-footer { padding:14px 14px 18px; } }

html.is-embedded body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #fff;
  color: var(--ink);
}

html.is-embedded .register-main {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: block;
}

html.is-embedded .register-panel {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}

html.is-embedded .panel-heading,
html.is-embedded .panel-footer {
  display: none;
}

html.is-embedded .register-tabs {
  padding: 0;
}

html.is-embedded .form-area {
  width: 100%;
  min-width: 0;
  padding: 20px 20px 0;
}

html.is-embedded .register-form {
  min-width: 0;
}

@media (min-width:721px) {
  html.is-embedded .register-main { padding-top:0; }
  html.is-embedded .register-tabs { min-height:70px; }
  html.is-embedded .register-tab { padding-bottom:18px; font-size:20px; }
  html.is-embedded .form-area { padding:24px 7% 24px; }
  html.is-embedded .field { margin-bottom:20px; }
  html.is-embedded .field>span:first-child { margin-bottom:9px; font-size:18px; }
  html.is-embedded .field-control { height:70px; border-radius:9px; }
  html.is-embedded .field-control input { padding:0 18px 0 16px; font-size:21px; }
  html.is-embedded .field-icon { width:26px; height:26px; margin-left:22px; }
  html.is-embedded .password-toggle { width:54px; height:64px; margin-right:4px; }
  html.is-embedded .password-toggle svg { width:25px; height:25px; }
  html.is-embedded .code-field { grid-template-columns:minmax(0,1fr) 174px; gap:12px; }
  html.is-embedded .code-button { height:70px; border-radius:9px; font-size:18px; }
  html.is-embedded .form-error { min-height:24px; font-size:16px; }
  html.is-embedded .agreement { white-space:nowrap; font-size:18px; line-height:1.55; }
  html.is-embedded .agreement input { width:22px; height:22px; margin-top:3px; }
  html.is-embedded .submit-button { height:72px; margin-top:22px; border-radius:9px; font-size:22px; }
}

@media (max-width:720px) {
  html.is-embedded .agreement { white-space:normal; font-size:12px; min-width:0; }
  html.is-embedded .agreement span { min-width:0; }
}
