.index-header {
    padding: 15px 30px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.index-nav li a.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

/* 弹窗样式 */
.popup {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: white;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    min-width: 180px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 关闭按钮样式 */
.close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #9ca3af;
}

.popup button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 5px;
    background-color: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
}

.popup button:hover {
    background-color: #f3f4f6;
}

/* 新的账号显示样式 */
#account-display {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 50px;
    background-color: #f0f0f0;
    border-radius: 5px;
}

#account-display span {
    margin-left: 5px;
}


.popup-label {
    margin-right: 10px;
    color: #6b7280;
}

/* 登录框样式 */
.login-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1001;
    min-width: 350px;
}

.login-popup.close-btn{
    top: 10px;
    right: 10px;
}

.login-popup input{
    display: block;
    width: calc(100% - 24px);
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-popup button {
    background-color: #007bff;
    color: white;
    padding: 12px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.login-popup button:hover{
    background-color: #0056b3;
}

/*注册弹窗样式*/
.register-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1001;
    min-width: 350px;
    /* 新增宽度控制，防止在小屏幕下过宽 */
    width: 90%;
    max-width: 400px;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #9ca3af;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.required-mark {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #dc2626;
    font-size: 1.2em;
    font-weight: bold;
}

.register-popup input {
    width: calc(100% - 52px);
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.register-popup input:focus {
    border-color: #007bff;
    outline: none;
}

.register-popup button {
    background-color: #007bff;
    color: white;
    padding: 12px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.register-popup button:hover {
    background-color: #0056b3;
}

/* 账号信息弹窗和修改密码弹窗样式 */
.account-info-popup, .change-password-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    max-width: 90%;
    background-color: white;
    padding: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1002; /* 高于登录注册弹窗 */
}

.account-info-popup .close-btn, .change-password-popup .close-btn {
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
}

.user-info p {
    margin: 15px 0;
    line-height: 1.6;
    color: #374151;
}

.change-password-popup input {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    box-sizing: border-box;
}

.change-password-popup button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.change-password-popup button:hover {
    background-color: #0056b3;
}

/*重置密码*/
.reset-password-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; /* 调整为自适应宽度，最大 400px */
    max-width: 400px;
    background-color: white;
    padding: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1003;
}

.reset-password-popup input {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    box-sizing: border-box; /* 确保内边距和边框不会影响宽度 */
}

.reset-password-popup button {
    background-color: #007bff;
    color: white;
    padding: 12px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.reset-password-popup button:hover {
    background-color: #0056b3;
}
.verify-code-container {
    display: flex; /* 使用 flex 布局 */
    align-items: center; /* 垂直居中 */
    justify-content: space-between; /* 元素之间间隔分布 */
}

#send-verify-code {
    padding: 10px 12px; /* 适当减少内边距 */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap; /* 防止按钮内容换行 */
    width: auto; /* 设置合适宽度 */
}

#countdown {
    font-size: 14px;
    white-space: nowrap; /* 防止倒计时文本换行 */
    margin-left: 10px;
}
#send-verify-code.disabled {
    background-color: #ccc; /* 灰色背景 */
    cursor: not-allowed; /* 禁用鼠标指针样式 */
    pointer-events: none; /* 禁止点击事件 */
}