* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #101012;
    color: #fff;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* 顶部导航 */
.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 64px;
    padding: 0 clamp(16px, 4vw, 48px);
    border-bottom: 1px solid #232328;
    background: #101012;
}
.brand { font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.brand .pink, .pink { color: #ff91b9; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: #9ca3af; font-size: 15px; }
.nav-links a:hover { color: #fff; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.globe { position: relative; }
.globe-btn {
    background: none; border: none; color: #e5e7eb; cursor: pointer;
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}
.globe-btn:hover { background: #19191e; }
.globe-menu {
    display: none; position: absolute; right: 0; top: 44px;
    background: #141418; border: 1px solid #232328; border-radius: 10px;
    padding: 6px; min-width: 120px; z-index: 30;
}
.globe-menu.open { display: block; }
.globe-menu a { display: block; padding: 8px 14px; border-radius: 8px; color: #e5e7eb; font-size: 14px; }
.globe-menu a:hover { background: #19191e; }
.globe-menu a.active { color: #ff91b9; }

.btn-login {
    background: #ff91b9; color: #000;
    height: 36px; padding: 0 16px; border-radius: 8px;
    font-size: 14px; display: inline-flex; align-items: center;
}
.btn-login:hover { background: #ff82af; }

/* 内容与卡片 */
.wrap { display: flex; justify-content: center; padding: 64px 16px 96px; }
.card {
    background: #141418; border: 1px solid #232328; border-radius: 16px;
    padding: 24px; width: 448px; max-width: 100%;
}
.card h1 { text-align: center; font-size: 30px; font-weight: 700; margin: 10px 0 26px; }

label { display: block; font-size: 15px; color: #e5e7eb; margin-bottom: 18px; }
input[type=text], input[type=email], input[type=password] {
    display: block; width: 100%; margin-top: 8px; height: 50px;
    background: #141418; border: 1px solid #232328; border-radius: 12px;
    color: #fff; padding: 0 14px; font-size: 15px; font-family: inherit; outline: none;
}
input:focus { border-color: #ff91b9; }
input::placeholder { color: #6b7280; }

.pw-wrap { position: relative; }
.pw-toggle {
    position: absolute; right: 12px; bottom: 8px;
    width: 34px; height: 34px; border: none; background: none;
    color: #6b7280; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.pw-toggle:hover { color: #e5e7eb; }

.btn {
    width: 100%; height: 40px; border: none; border-radius: 8px;
    background: #ff91b9; color: #000; font-size: 16px; font-family: inherit;
    cursor: pointer; margin-top: 8px;
}
.btn:hover { background: #ff82af; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: #232328; color: #e5e7eb; width: auto; padding: 0 16px; height: 50px; margin-top: 8px; }
.btn.ghost:hover { background: #2a2a30; }

.row { display: flex; gap: 8px; align-items: flex-start; }
.row > input { flex: 1; }
.captcha-img { height: 56px; width: 160px; margin-top: 8px; border-radius: 12px; border: 1px solid #232328; cursor: pointer; background: #f6f7fb; object-fit: contain; }

.agree { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; color: #9ca3af; font-size: 13px; line-height: 1.7; }
.agree input { margin-top: 4px; accent-color: #ff91b9; }
.agree a { color: #ff91b9; cursor: pointer; }

.alt { text-align: center; margin-top: 22px; color: #9ca3af; font-size: 15px; }
.alt a { color: #ff91b9; }
.alt a:hover { text-decoration: underline; }

.alert { border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px; }
.alert.err { background: #ff91b91a; border: 1px solid #ff91b966; color: #ff91b9; }
.alert.ok { background: #10b9811a; border: 1px solid #10b98166; color: #34d399; }
.muted { color: #6b7280; font-size: 13px; font-weight: 400; }

.foot {
    text-align: center; color: #6b7280; font-size: 13px;
    padding: 24px; border-top: 1px solid #232328;
}

/* 弹窗 */
.modal-bg {
    display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .7);
    z-index: 50; align-items: center; justify-content: center; padding: 20px;
}
.modal-bg.show { display: flex; }
.modal {
    background: #141418; border: 1px solid #232328; border-radius: 16px;
    max-width: 560px; width: 100%; max-height: 80vh; overflow-y: auto; padding: 26px;
}
.modal h3 { margin-bottom: 14px; font-size: 18px; }
.modal p, .modal ol { padding-left: 20px; color: #9ca3af; font-size: 14px; line-height: 2; }
.modal p { padding-left: 0; }

@media (max-width: 560px) {
    .nav { gap: 16px; height: 58px; }
    .nav-links { gap: 16px; }
    .brand { font-size: 19px; }
    .wrap { padding: 28px 14px 60px; }
    .card { padding: 20px; }
    .card h1 { font-size: 24px; }
}