
table{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1rem 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(49, 8, 84, 0.08);
    font-family: "Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
    font-size: 14px;
    color: #2f1e63;
}

table caption{
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0.4rem 0 0.7rem;
    color: #4a148c;
    text-align: left;
}

th,td{
    padding: 0.5rem 0.75rem;
    line-height: 1.35;
    text-align: left;
    border-bottom: 1px solid #ece1f3;
}

table thead th{
    background: #5e35b1;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #4a148c;
}

table tbody tr{
    background-color: #fff;
    transition: background 0.15s ease;
}

table tbody tr:nth-child(odd){
    background-color: #fbf8ff;
}

table tbody tr:hover{
    background-color: #efe3ff;
}

table tbody tr:last-child td{
    border-bottom: none;
}

table tfoot tr td{
    text-align: right;
    padding-right: 20px;
    background: #faf5ff;
    border-bottom: none;
}

td {
    word-wrap: break-word; /* 长单词换行 */
    white-space: normal; /* 处理空白字符 */
}

.table-summary-row td{
    background: #f5ecff;
    font-weight: 600;
    color: #4a148c;
    border-bottom: none;
    text-align: left;
}

.table-button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.85rem;
    border-radius: 24px;
    background: #7b1fa2;
    color: #fff !important;
    text-decoration: none;
    border: 1px solid #7b1fa2;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.table-button:hover{
    background: #9c27b0;
    border-color: #9c27b0;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.25);
}

.table-button--ghost{
    background: transparent;
    color: #5e35b1 !important;
    border-color: #b39ddb;
}

.table-button--ghost:hover{
    background: #f3e5f5;
    border-color: #9c27b0;
}

.table-button--active{
    background: #5e35b1;
    border-color: #5e35b1;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(94, 53, 177, 0.35);
}

td .table-button + .table-button{
    margin-left: 0.35rem;
}
