body {
    background-color: #F0F8FF; /* 设置页面背景色 */
    font-family: Arial, sans-serif; /* 设置字体 */
    padding: 20px; /* 设置页面内边距 */
}

h1 {
    color: #blue; /* 设置标题颜色 */
    text-align: center; /* 将标题居中显示 */
}

.centered {
    text-align: center;
}

.inline {
    display: inline-block;
    margin: 0 10px;
    text-align: center;
}

button {
    padding: 8px 15px; /* 设置按钮内边距 */
    background-color: #007bff; /* 设置按钮背景色 */
    color: #fff; /* 设置按钮字体颜色 */
    border: none; /* 移除按钮边框 */
    border-radius: 5px; /* 设置按钮圆角 */
    cursor: pointer; /* 设置鼠标样式为手型 */
}

button:hover {
    background-color: #0056b3; /* 设置鼠标悬停时的按钮背景色 */
}

th, td {
    padding: 8px; /* 设置单元格内边距 */
    text-align: center; /* 将单元格内容水平居中 */
    border: 1px solid #ddd; /* 设置单元格边框 */
}

th {
    background-color: #fff; /* 设置表头背景色 */
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 表格样式优化 */
.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 12px 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 12px 8px;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.table tbody tr:nth-child(even) {
    background-color: rgba(52, 152, 219, 0.05);
}

.table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: scale(1.001);
    transition: all 0.2s ease;
}

/* 表单元素样式 */
.form-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: white;
    cursor: pointer;
    min-width: 100px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233498db' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.763L10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.form-select:hover {
    border-color: var(--secondary-color);
}

.form-select:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-select option {
    padding: 8px;
    font-size: 0.95rem;
}

/* 按钮样式 */
.btn-custom {
    position: relative;
    overflow: hidden;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-custom:hover::after {
    width: 300px;
    height: 300px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .table th,
    .table td {
        padding: 8px 4px;
        font-size: 0.9rem;
    }

    .table th {
        white-space: nowrap;
    }

    .page-selector {
        padding: 8px 12px;
    }

    .form-select {
        min-width: 80px;
    }

    .page-navigation {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-container {
    animation: fadeIn 0.5s ease-out;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 页面选择器容器样式 */
.page-selector {
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.page-selector:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}