/* 基本样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th,
td {
    padding: 15px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

/* 表头样式 */
th {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

/* 表格行 hover 样式 */
tbody tr:hover {
    background-color: #f4f6f9;
}

/* 奇数行背景色 */
tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

/* 鼠标悬停时，行背景色 */
tbody tr:hover {
    background-color: #f1f1f1;
}

/* 表格数据居中 */
td {
    font-family: 'Arial', sans-serif;
    font-size: 15px;
}

/* 表格边框、内边距 */
table,
th,
td {
    border: 1px solid #ddd;
}

/* 优化行高 */
tbody tr {
    height: 50px;
}

/* 添加圆角 */
table {
    border-radius: 8px;
    overflow: hidden;
}

/* 表格宽度自适应 */
table th,
table td {
    width: auto;
    white-space: nowrap;
}