:root { --primary: #2f54eb; --text: #333; --line: #d9d9d9; --btn-disabled: #c4c6cc; --danger: #f5222d; --wechat: #07c160; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: #fff; color: var(--text); min-height: 100vh; display: flex; flex-direction: column; } .topbar { display: flex; justify-content: flex-end; padding: 20px 32px 0; } .lang-switcher { position: relative; cursor: pointer; user-select: none; } .lang-current { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #666; } .lang-current .flag { font-size: 16px; } .lang-current .arrow { font-size: 10px; color: #999; transition: transform .2s; } .lang-switcher.open .arrow { transform: rotate(180deg); } .lang-menu { display: none; position: absolute; right: 0; top: 28px; z-index: 100; background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.1); padding: 4px; min-width: 150px; } .lang-switcher.open .lang-menu { display: block; } .lang-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 6px; font-size: 13px; } .lang-item:hover { background: #f5f6fa; } .lang-item.active { color: var(--primary); font-weight: 500; } .main { flex: 1; display: flex; justify-content: center; align-items: center; padding: 12px 32px 24px; } .login-panel { display: flex; align-items: stretch; gap: 48px; width: 760px; max-width: 100%; } .qr-area { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; } .qr-area::after { content: ""; position: absolute; right: -24px; top: 12%; bottom: 12%; width: 1px; background: #e8e8e8; } .qr-logo { width: 170px; height: 170px; opacity: .92; } .qr-tip { margin-top: 28px; font-size: 15px; color: #555; } .qr-tip .wx { color: var(--wechat); font-weight: 600; } .qr-badge { position: absolute; inset: 0; background: rgba(255,255,255,.96); display: none; flex-direction: column; justify-content: center; align-items: center; gap: 12px; border-radius: 12px; text-align: center; padding: 20px; } .qr-area.show-tip .qr-badge { display: flex; } .qr-badge .phone-ico { font-size: 40px; } .qr-badge p { font-size: 13px; color: #666; line-height: 1.8; } .form-area { flex: 1.2; display: flex; flex-direction: column; justify-content: center; } .tabs { display: flex; gap: 48px; border-bottom: 1px solid #eee; } .tab { padding: 10px 2px 12px; font-size: 17px; color: #666; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: all .2s; } .tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; } .view { display: none; } .view.active { display: block; animation: fadeIn .25s ease; } @keyframes fadeIn { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none;} } .field { display: flex; align-items: center; border-bottom: 1px solid var(--line); padding: 14px 2px; margin-top: 18px; transition: border-color .2s; } .field:focus-within { border-bottom-color: var(--primary); } .field .prefix { display: flex; align-items: center; gap: 4px; padding-right: 12px; border-right: 1px solid #e5e5e5; margin-right: 12px; cursor: pointer; font-size: 15px; } .field input { flex: 1; border: none; outline: none; font-size: 15px; background: transparent; color: var(--text); } .field input::placeholder { color: #bbb; } .field .suffix-btn { border: none; background: none; color: var(--primary); font-size: 14px; cursor: pointer; white-space: nowrap; } .field .suffix-btn:disabled { color: #bbb; cursor: not-allowed; } .btn-login { width: 100%; margin-top: 32px; padding: 13px 0; border: none; border-radius: 6px; background: var(--btn-disabled); color: #fff; font-size: 16px; cursor: not-allowed; transition: all .25s; } .btn-login.ready { background: var(--primary); cursor: pointer; } .btn-login.ready:hover { background: #1d39c4; } .row-links { display: flex; justify-content: flex-end; margin-top: 20px; } .link-btn { border: none; background: none; color: var(--primary); font-size: 14px; cursor: pointer; padding: 0; } .center-links { text-align: center; margin-top: 26px; } .agreement { display: flex; align-items: flex-start; gap: 8px; margin-top: 26px; font-size: 12.5px; color: #666; line-height: 1.7; cursor: pointer; } .agreement input[type=checkbox] { width: 15px; height: 15px; margin-top: 2px; cursor: pointer; accent-color: var(--primary); flex-shrink: 0; } .agreement a { color: var(--primary); text-decoration: none; } .agreement.shake { animation: shake .4s; } @keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} } .form-error { color: var(--danger); font-size: 12.5px; margin-top: 12px; min-height: 18px; } .footer { text-align: center; padding: 14px 20px 18px; font-size: 12px; color: #bbb; line-height: 1.9; } .footer a { color: #bbb; text-decoration: none; } .footer a:hover { color: var(--primary); } #toast { position: fixed; top: 18%; left: 50%; transform: translateX(-50%) translateY(-8px); background: rgba(0,0,0,.78); color: #fff; font-size: 14px; padding: 11px 22px; border-radius: 8px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 999; max-width: 80vw; text-align: center; } #toast.show { opacity: 1; transform: translateX(-50%) translateY(0); } #successMask { display: none; position: fixed; inset: 0; background: rgba(255,255,255,.97); z-index: 500; flex-direction: column; justify-content: center; align-items: center; gap: 16px; } #successMask.show { display: flex; } #successMask .ok-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--wechat); color: #fff; font-size: 40px; display: flex; align-items: center; justify-content: center; } #successMask h2 { font-size: 22px; } #successMask p { color: #888; font-size: 14px; } @media (max-width: 720px) { .login-panel { flex-direction: column; gap: 24px; } .qr-area::after { display: none; } .qr-logo { width: 120px; height: 120px; } }