@charset "utf-8";

/*全局样式*/

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    /*允许y滚动 */
    overflow: auto;
    /*不允许x滚动 */
    overflow-x: hidden;
    font-family: 'HarmonyOS_Regular', sans-serif;
}

* {
    box-sizing: border-box;
}



/* 顶部导航栏样式 */

.navbar {
    /* 相对于网页 */
    position: fixed;
    display: flex;
    /* 左右分布 */
    justify-content: space-between;
    /* 垂直居中 */
    align-items: center;
    /* 背景颜色 */
    background-color: rgba(255, 255, 255, .8);
    /* 内边距 */
    padding: 0 20px;
    /* 固定在顶部 */
    top: 0;
    /* 宽度占满屏幕 */
    width: 100%;
    /* 确保在其他内容之上 */
    z-index: 10;
    box-sizing: border-box;
    /* 或者使用 'auto' 来显示滚动条 */
    /* overflow: hidden; */
    /* 确保内容不会被裁剪 */
    overflow: visible;
    /* height: 60px; */
    /* 设置固定高度 */
    line-height: 60px;
    /* 边框阴影 */
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}


/* 图标 */

.icon {
    width: 24px;
    /* 设置图标的宽度 */
    height: 24px;
    /* 设置图标的高度 */
    transition: transform 0.3s ease;
}


/* 鼠标悬停在上面*/

.icon:hover {
    transform: scale(1.2);
    /* 鼠标悬停时放大 */
}


/* 导航栏字体 */

.navbar-left-content a,
.navbar-right-content a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 16px;
    font-weight: normal;
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* 鼠标悬停在上面*/

.navbar-left-content a:hover {
    background-color: rgba(0, 0, 0, .1);
    color: #0f0e0e;
}


/* 导航栏标题 */

.navbar-left-content .nav-title {
    font-family: 'Courier New', Courier, monospace;
    color: rgb(0, 0, 0);
    font-size: 24px;
    font-weight: bold;
}


/* 导航栏非标题 */

.navbar-left-content .nav-link-left {
    font-family: 'Courier New', Courier, monospace;
    color: rgb(0, 0, 0);
    font-size: 24px;
    font-weight: normal;
}

.navbar-left-content {
    display: flex;
    /* 链接之间的间距 */
    gap: 20px;
    padding-left: 80px;
    height: 100%;
    /* 确保子元素高度占满父元素 */
}

.navbar-right-content {
    display: flex;
    /* 链接之间的间距 */
    gap: 20px;
    /* 这会将.right-links推到最右边 */
    margin-right: 20px;
    /* padding-right: 80px; */
    height: 100%;
    /* 确保子元素高度占满父元素 */
}


.top {
    position: relative;
    /* position: fixed; */
    /* 设置为相对定位 */
    width: 100%;
    /* height: 800px; */
    height: 60vh;
    background: rgba(0, 0, 0, 0);
    z-index: 1
}


/* 上边背景 */

.top-bg {
    background-image: url('../images/kokomi002.jpg');
    height: 100%;
    width: 100%;
    /*     background-size: 100% 100%; */
    background-size: cover;
    background-position: center;
    background-color: #0f0e0e !important;
    background-repeat: no-repeat;
    z-index: 1;
    /* 边框阴影 */
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}



/* 遮罩层样式 */
.LoginOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.LoginModal {
    display: none;
    /* 默认隐藏 */
    position: fixed;
    z-index: 1000;
    top: 50%;
    /* 垂直居中 */
    left: 50%;
    /* 水平居中 */
    transform: translate(-50%, -50%);
    overflow: auto;

}

.LoginModal-content,
.register-content {
    display: none;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    /* 可以根据需要调整 */
    max-width: 600px;
    min-width: 400px;
    max-height: 60%;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, .5); */
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}


.LoginModal-close,
.register-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: default;
}

.LoginModal.close:hover,
.LoginModal.close:focus,
.register-close:hover,
.register-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.LoginModal h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.8rem;
}

/* 输入框组 */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

/* 输入框样式 */
.input-group input {
    width: 100%;
    padding: 10px 0;
    /* 上下内边距让输入框看起来更像横线 */
    border: none;
    border-bottom: 2px solid #ccc;
    /* 底部横线 */
    outline: none;
    /* 去掉默认的聚焦边框 */
    font-size: 16px;
    transition: border-color 0.3s ease-in-out;
    /* 添加过渡效果 */
    background: transparent;
    /* 背景透明 */
}


/* 输入框聚焦时的效果 */
/* 焦点时底部横线变蓝色 */
.input-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #007bff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.7s ease;
}

.input-group input:focus ~ ::after,
.input-group:hover::after {
    transform: scaleX(1);
}


/* 占位符样式 */
.input-group input::placeholder {
    color: #aaa;
    /* 设置占位符颜色 */
}


.btn_wp {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 400px;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 40px;
    text-align: center;
}


.btn_regit,
.btn_back_login {
    box-sizing: border-box;
    width: 194px;
    height: 40px;
    cursor: pointer;
    color: #18191c;
    background: #fff;
    border: 1px solid #e3e5e7;
    border-radius: 8px
}

.btn_regit:hover,
.btn_back_login:hover {
    background: #e0dddd;
}

.btn_login,
.btn_regit_submit {
    box-sizing: border-box;
    width: 194px;
    height: 40px;
    cursor: pointer;
    color: #fff;
    background: #00aeec;
    border-radius: 8px;
}

.btn_login:hover,
.btn_regit_submit:hover {
    background: #0d99e4d0;
}

.switch-text {
    text-align: auto;
    margin-top: 25px;
    color: #7f8c8d;
    font-size: 1rem;
}

.switch-text span {
    color: #3498db;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.switch-text span:hover {
    color: #6a11cb;
}

.switch-text span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3498db;
    transform: scaleX(0);
    transition: transform 0.3s;
}

.switch-text span:hover::after {
    transform: scaleX(1);
}