/* 公共样式 */
html, body {
    background-color: rgb(245, 245, 245);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
    cursor: pointer;
}

header, footer {
    background-color: white;
}

.header-container, .footer-container {
    width: 1200px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo {
    flex-direction: column;

}

.header-logo-title {
    color: rgb(255, 165, 0);
    font-size: 28px;
    position: relative;
    top: 5px;
}

.header-logo-desc {
    color: #333;
    font-size: 16px;
    position: relative;
    top: -10px;
}

.header-menu {
    display: flex;
    flex: 1;
    margin: 0 120px;
    height: 40px;
    line-height: 40px;
    justify-content: space-between;
}

.header-menu-item {
    color: #333;
    font-size: 16px;
    margin: 0 10px;
}

.header-menu-item span {
    position: relative;
    z-index: 2;
}

.header-menu-item-active::after {
    background-color: rgb(255, 165, 0);
    content: '';
    width: 100%;
    height: 8px;
    border-radius: 10px;
    display: block;
    position: relative;
    top: -15px;
    z-index: 1;
}

.user-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #fff;
    margin-right: 8px;
}

.user-name {
    color: black;
    font-size: 14px;
}

.login-btn {
    width: 120px;
    height: 40px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    color: #fff;
    background-color: rgba(241, 127, 25, 1);
    cursor: pointer;
}


/* 登录框 */
.bg {
    width: 100%;
    height: 200vh;
    position: absolute;
    top: 80px;
    left: 0;
    z-index: 999;
    background-color: rgba(51, 51, 51, 0.8);
    display: none;
}

.login-box {
    width: 400px;
    height: 350px;
    border-radius: 8px;
    background-color: rgba(248, 249, 250, 1);
    border: 1px solid rgba(224, 224, 224, 1);
    margin: 100px auto;
    position: relative;
    padding: 20px;
}

.close {
    position: absolute;
    font-size: 12px;
    right: 10px;
    top: 5px;
    cursor: pointer;
}

.login-title {
    text-align: center;
    color: #333;
    font-size: 14px;
    margin-bottom: 40px;
}

.login-title img {
    position: relative;
    top: 10px;
}

.login-box input {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 1);
    color: rgba(255, 255, 255, 1);
    font-size: 14px;
    border: 1px solid #e5e5e5;
    padding: 10px;
    display: block;
    margin-bottom: 12px;
    outline: none;
}

.login-box input::placeholder {
    color: #999;
}

.login-box input:focus {
    border: 1px solid rgba(241, 127, 25, 1);
}

.login-box button {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    background-color: rgba(241, 127, 25, 1);
    color: #fff;
    border: none;
    cursor: pointer;
    display: block;
    margin-top: 10px;
}

.wechat-div {
    position: fixed;
    right: 15px; /* 距离右侧的距离，根据需要可调整 */
    bottom: 15px; /* 距离底部的距离，根据需要可调整 */
    width: 195px;
    height: 280px;
    padding: 15px;
    background-color: rgba(45, 37, 38, 0.52);
    border: 1px solid rgba(241, 193, 157, 1);
    text-align: center;
    color: #fff;
    line-height: 25px;
    font-size: 14px;
}


.old-user {
    display: none;
}

.login-type {
    text-align: center;
    margin-bottom: 20px;
}

.login-type span {
    display: inline-block;
    font-size: 14px;
    color: #666;
    margin: 0 20px;
    cursor: pointer;
}

.login-type .act {
    color: #333;
    border-bottom: 2px solid rgba(255, 107, 53, 1);
}

.new-user {
    font-size: 12px;
    color: #999;
    text-align: center;
}

.ewm {
    width: 125px;
    height: 125px;
    background-color: #000;
    margin: 15px auto;
}

.login-after {
    display: none;
    font-size: 12px;
    color: #333;
    text-align: center;
    line-height: 25px;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 30px;
    min-width: 140px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    padding: 6px 0;
    z-index: 9999;
}

.user-dropdown-item {
    display: block;
    padding: 10px 14px;
    color: #222;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
}

.user-dropdown-item:hover {
    background: rgba(0, 0, 0, .05);
}


.user-logo.isLogin,
.user-name.isLogin{
  cursor: pointer;
}

.user-logo.isLogin:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
  transition: transform .15s ease, box-shadow .15s ease;
}

.user-name.isLogin:hover{
  text-decoration: underline;
}


.user-menu-trigger{
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.user-menu-trigger .caret{
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(0,0,0,.55);
  transform: translateY(1px);
  transition: transform .15s ease;
}

/* 菜单展开时箭头翻转 */
.user-menu-wrap.is-open + .user-menu-trigger .caret,
.user-menu-trigger.is-open .caret{
  transform: translateY(1px) rotate(180deg);
}
