@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@500&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@300;400;500;700;900&family=Lato:wght@300;400;700&display=swap");
@import url("https://cdn.jsdelivr.net/npm/@fontsource/jetbrains-mono@4.5.9/index.css");
@import url("https://rsms.me/inter/inter.css");

:root {
    --primary-color: #4460f1;
    --white-color: #ffffff;

    --light-text-color: #9398b3;
    --light-bg-color: #f4f4f4;
    --dark-color: #565656;

    --background-color: #fcfcff;
}

@font-face {
    font-family:  "Inter";
    font-weight: normal;
}

@font-face {
    font-family: 'LXGW Neo XiHei';
    src: url('/static/public_fonts/LXGWNeoXiHeiPlus.ttf') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* 页面默认字体栈：先用 InterLatin，再用 PingFangSC，再回退到 sans-serif */
body {
    font-family: "PingFang SC", "Inter", "LXGW Neo XiHei", sans-serif;
}

* {
    margin: 0;
    padding: 0;
}

*, ::before::after {
    box-sizing: border-box;
}

body {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--dark-color);
    background-color: var(--background-color);
    user-select: none;
    -webkit-user-drag: none;
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

ul {
    list-style: none;
}

h1 {
    font-size: 3em;
    font-weight: 700;
    line-height: normal;
    color: black;
}

h2 {
    font-size: 2em;
    font-weight: 700;
    line-height: 20px;
    color: black;
}

@media (max-width: 705px) {
    h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 1.5em;
    }
}

.site {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    min-height: 100vh;
    padding-bottom: 40px;
}

.main span {
    display: block;
    margin-bottom: 20px;
    font-size: 15px;
    color: #333;
    background-color: var(--light-bg-color);
    padding: 10px 15px;
    border-radius: 10px;
    line-height: 1.6;
    font-family: monospace;
}

.container {
    max-width: 1000px;
    width: 100%;
    padding: 0 30px;
    margin: 0 auto;
}

.main_container {
    display: flex;
    flex-wrap: wrap;
}

.hero::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 0;
    width: 320px;
    height: 140px;
    background: linear-gradient(to right, var(--primary-color), #c471ed, #f64f59);
    z-index: -1;
    filter: blur(70px);
}

.hero a {
    font-weight: 500;
    color: var(--primary-color);
    transition: color .3s;
}

.hero a:hover,
form .password a:hover {
    color: var(--dark-color);
    text-decoration: none;
}

.main {
    flex: 1 0 33.3333%;
    margin-top: 4%;

}

.main form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.main form p {
    position: relative;
    margin-bottom: 4px;
}

/* 通用过渡效果 */
input, select {
    transition: outline 0.5s ease, box-shadow 0.5s ease;
}

/* 密码和确认密码不匹配 */
.no-match {
    outline: 2px solid red;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* 密码和确认密码匹配 */
.match {
    outline: 2px solid limegreen;
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.5);
}

/* 密码检查 */
.password-check {
    outline: 2px solid;
}

/* 密码无效 */
.password-invalid {
    outline: 2px solid red;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* 密码弱 */
.password-weak {
    outline: 2px solid #ffd600;
    box-shadow: 0 0 10px rgba(255, 214, 0, 0.5);
}

/* 密码正常 */
.password-normal {
    outline: 2px solid limegreen;
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.5);
}

/* 密码强 */
.password-strong {
    outline: 2px solid #208bf5;
    box-shadow: 0 0 10px rgba(32, 139, 245, 0.5);
}

/* 高亮 */
.highlight {
    outline: 2px solid #a100ff;
    box-shadow: 0 0 10px rgba(161, 0, 255, 0.5);
}

/* 邮箱无效 */
.email-invalid {
    outline: 2px solid red;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* 邮箱有效 */
.email-accept {
    outline: 2px solid limegreen;
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.5);
}

input#email.email-occupy {
    outline: 2px solid #208bf5;
    box-shadow: 0 0 10px rgba(32, 139, 245, 0.5);
}

.strength-bar {
    flex: 1;
    height: 10px; /* 增加高度 */
    background-color: #d3d3d3; /* 默认颜色 */
    border-radius: 5px; /* 设置圆角 */
    overflow: hidden;
    position: relative;
}

.strength-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    height: 100%;
    width: 100%;
    background-color: inherit;
    filter: blur(70px);
}

.eye-icon {
    cursor: pointer;
}

form input {
    font: inherit;
    font-size: 14px;
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0 20px;
    line-height: 60px;
    border-radius: 15px;
    box-sizing: border-box;
    font-weight: 500;
    font-family: monospace;
}

input::placeholder {
    color: var(--dark-color);
    font-family: 'Noto Sans SC', sans-serif;
    font-size: inherit;
}

form input:not(.submit) {
    background-color: var(--light-bg-color);
}

form select:not(:last-child) {
    margin-right: 20px;
}

form select option {
    color: var(--dark-color);
}

/* 新增的 CSS */
form select {
    outline: 0;
    border: 0;
    font: inherit;
    font-size: 14px;
    padding: 0 20px;
    line-height: 60px;
    width: 100%;
    border-radius: 15px;
    background-color: var(--light-bg-color);
    color: var(--dark-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
    margin-right: 4%;
    font-weight: 500;
}

form select:last-child {
    margin-right: 0; /* 最后一个选择框不需要右边距 */
}

form select option[disabled] {
    display: none; /* 隐藏自定义默认选项 */
}

form .birthday {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

form .birthday select {
    margin-top: 4px;
}

form .sex {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

form .sex select {
    margin-top: 4px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white-color);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--dark-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: var(--light-bg-color);
}

.dropdown-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dropdown-button:hover {
    background-color: #3549b1; /* 深一点的蓝色 */
}

form .password {
    position: relative;
}

form .confirm-password {
    position: relative;
}

form .password .icon-container {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

form .password .login-icon-container {
    position: absolute;
    top: 35%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

form .confirm-password .icon-container {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

form .password i {
    color: var(--light-text-color);
    cursor: pointer;
    z-index: 1; /* 确保图标在输入框上方 */
}

form .confirm-password i {
    color: var(--light-text-color);
    cursor: pointer;
    z-index: 1; /* 确保图标在输入框上方 */
}

form .confirm-password a {
    font-size: 13px;
    color: var(--light-text-color);
    float: right;
    margin: 5px 20px 0 0;
}

form .password a {
    font-size: 13px;
    color: var(--light-text-color);
    float: right;
    margin: 5px 20px 0 0;
}

form .keycode a {
    font-size: 13px;
    color: var(--light-text-color);
    float: right;
    margin: 5px 20px 0 0;
}

.main-login span {
    display: block;
    margin-bottom: 20px;
    font-size: 15px;
    color: #333;
    background-color: var(--light-bg-color);
    padding: 10px 15px;
    border-radius: 10px;
    line-height: 1.6;
}

form input.submit {
    font-size: 16px;
    color: var(--white-color);
    background-color: var(--primary-color);
    box-shadow: var(--primary-color) 0 10px 20px -10px;
    cursor: pointer;
    transition: opacity 0.6s, background-color 0.6s, transform 0.4s, box-shadow .3s;;
}

form input.submit:hover {
    box-shadow: var(--primary-color) 0 15px 25px -10px;
    transform: scale(1.02);
}

form input.submit:active {
    box-shadow: var(--primary-color) 0 10px 15px -10px;
    transform: scale(.98);
}

/* 页脚说明样式 */
.footer-note {
    text-align: center;
    font-size: 13px;
    color: #888888; /* 灰色 */
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.form-group {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.form-group input,
.form-group select {
    flex: 1;
    width: calc(100% - 35px); /* 调整宽度，留出图标位置 */
    padding-left: 35px; /* 给图标留出空间 */
}

/* 新增问号图标样式 */
.help-icon {
    font-size: 20px;
    color: var(--light-text-color);
    cursor: pointer;
    position: absolute;
    left: -45px; /* 根据图标的宽度调整，以保持输入框的位置 */
    margin-left: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: color 0.3s;
    display: inline-block;
}

.help-icon:hover,
.help-icon:active {
    color: var(--dark-color);
    transition: 1s;
    display: inline-block;
}

.help-icon[data-tooltip]::after {
    line-height: 1.25;
    width: max-content;
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    background: #fff;
    color: #333;
    box-shadow: 0 2px 4px 0 rgb(12,12,12, 0.42), 0 6px 20px 0 rgba(46,46,46, 0.59);
    padding: 12px 8px 12px 15px; !important;
    border-radius: 10px;
    display: inline-block;
    max-width: 307px;
    overflow-wrap: break-word;
    white-space: pre-line;     /* 只保留换行，连续空格会合并成一个 */
    word-break: break-word;    /* 超长单词或 URL 自动换行 */
    font-size: 14px; !important;
    font-weight: 500; !important;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    font-family: monospace;
    transition: opacity 0.6s, background-color 0.6s, transform 0.4s;
}

.help-icon:hover::after,
.help-icon:focus::after,
.help-icon:active::after,
.help-icon.open::after {
    display: block;
    opacity: 1;
    transform: translateY(-60%);
}


.separator {
    position: relative;
    margin: 50px 0 30px;
}

.separator::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: var(--light-text-color);
    opacity: .3;
    z-index: 1;
}

.separator p {
    font-size: 14px;
    width: fit-content;
    padding: 0 10px;
    color: var(--light-text-color);
    background-color: var(--background-color);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.options ul {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.options ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    /*background: #4636ff;*/
    color: #333;
    box-shadow: 0 2px 4px 0 var(--light-bg-color) ;
    border-radius: 10px;
    background-color: var(--light-bg-color);
    /*box-shadow: var(--light-text-color) 0 10px 20px -10px;*/
    transition: all .3s ease-out;
    position: relative; /* 为伪元素定位 */
}

.options ul li a:hover {
    color: var(--white-color);
    box-shadow: none;
}

.options ul li:nth-child(1) a:hover {
    background-color: #171a21;
}

.options ul li:nth-child(2) a:hover {
    background-color: #171a21;
}

.options ul li:nth-child(3) a:hover {
    background-color: #171a21;
}

.options ul li a::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 4px 8px;
    font-size: 12px;
    background: #4636ff;
    color: #fff;
    box-shadow: 0 2px 4px 0 rgb(78, 65, 255, 0.42), 0 6px 20px 0 rgba(78, 65, 255, 0.59);
    border-radius: 8px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.options ul li a:hover::after {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.options ul li:nth-child(1) a:hover {
    background-color: #171a21;
}

.options ul li:nth-child(2) a:hover {
    background-color: #171a21;
}

.options ul li:nth-child(3) a:hover {
    background-color: #171a21;
}

