@charset "UTF-8";

/* 全局样式 */
body {
    font-family: 'Poppins', "Microsoft YaHei", "微软雅黑", sans-serif;
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* 顶部信息容器样式 */
.top-info {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}

/* 标题样式 */
h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

/* 移除全局链接样式 */
a {
    text-decoration: none;
    position: static;
    display: inline;
    padding: 0;
    background: none;
}

/* 退出登录链接样式 */
.logout-link {
    display: inline-block;
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 15px;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.logout-link:hover {
    background-color: #c82333;
}

/* 在线人数统计样式 */
p {
    color: #666;
    font-size: 16px;
}

/* 模块容器样式 */
.module-container {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* 模块标题样式 */
.module-title {
    background-color: #007BFF;
    color: white;
    padding: 12px;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
    width: 200px;
}

.module-title:hover {
    background-color: #0056b3;
}

/* 模块内容样式 */
.module-content {
    display: none;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: calc(100% - 220px);
}

/* 默认显示首页内容 */
#home {
    display: block;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: white;
}

th,
td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    transition: background-color 0.3s ease;
}

th {
    background-color: #007BFF;
    color: white;
}

tr:hover {
    background-color: #f2f2f2;
}

/* 删除按钮样式 */
button {
    padding: 8px 15px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #c82333;
}

/* 登录和注册表单样式 */
.container {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    margin: 20px auto;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
    outline: none;
}

.form-group input:focus {
    border-color: #7986cb;
    box-shadow: 0 0 0 2px rgba(121, 134, 203, 0.1);
}

.form-group input::placeholder {
    color: #999;
    font-size: 14px;
}

/* 按钮样式优化 */
.form-group button {
    width: 100%;
    height: 44px;
    background: #7986cb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    padding: 0;  /* 重置内边距 */
}

.form-group button:hover {
    background: #5c6bc0;
    transform: none;  /* 移除悬停时的上移效果 */
    box-shadow: none;
}

/* 切换链接样式 */
.switch-form {
    text-align: center;
    margin-top: 16px;
}

.switch-form a {
    color: #7986cb;
    font-size: 14px;
    text-decoration: none;
}

.switch-form a:hover {
    color: #5c6bc0;
    background: none;
}

/* 标题样式 */
h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
}

h2:after {
    display: none;  /* 移除标题下方的装饰线 */
}

/* 移动端适配 */
@media (max-width: 480px) {
    .container {
        margin: 10px;
        padding: 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }
}