/* 头部工具栏按钮 */
.tool_night,
.tool_login {
    display: inline-block;
    margin-right: 10px;
}

/* 移动端隐藏夜间模式和登录按钮 */
@media (max-width: 768px) {
    .tool_night,
    .tool_login {
        display: none;
    }
}

/* 登录弹窗外层遮罩 */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.login-modal.active {
    display: flex;
}

/* 登录弹窗内容框 */
.login-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 360px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 弹窗关闭按钮 */
.login-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
}

/* 弹窗标题 */
.login-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

/* 弹窗输入框 */
.login-modal input[type="text"],
.login-modal input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* 登录提交按钮 */
.login-modal button[type="submit"] {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
.login-modal button[type="submit"]:hover {
    background: #0056b3;
}

/* 登录消息提示 */
.login-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
    font-size: 14px;
}
.login-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}
.login-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}
.login-message.loading {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
    display: block;
}
