/* 表格基础样式 */
table {
    border-collapse: collapse;  /* 合并单元格边框 */
    width: 100%;               /* 表格宽度撑满容器 */
    margin: 15px 0;            /* 上下外边距15像素 */
    font-family: Arial, sans-serif;
    font-weight: normal;       /* 确保表格内容不加粗 */
    table-layout: fixed;       /* ? 固定表格布局，防止超内容拉伸 */
    word-break: break-word;    /* ? 表格整体允许自动换行 */
}

/* 表头单元格样式 */
table th {
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #f2f2f2;
    text-align: left;
    font-weight: normal;
    font-size: 16px;
    word-break: break-word;    /* ? 表头也允许换行 */
}

/* 普通单元格样式 */
table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-weight: normal;
    font-size: 15px;
    word-break: break-word;    /* ? 自动换行 */
    white-space: normal;       /* ? 强制内容换行（防止nowrap继承） */
}

/* 斑马条纹效果 */
table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 鼠标悬停效果 */
table tr:hover {
    background-color: #f1f1f1;
}
