/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f9f5ff;
    color: #6a1b9a;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    font-size: 28px;
    margin: 20px 0 10px;
    color: #7b1fa2;
}

.subtitle {
    text-align: center;
    font-size: 14px;
    color: #9c27b0;
    margin-bottom: 30px;
}

/* 金额展示框 */
.amount-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.amount-card {
    background-color: #6a1b9a;
    color: white;
    border-radius: 15px;
    padding: 25px;
    width: calc(50% - 15px);
    min-width: 250px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.amount-title {
    font-size: 14px;
    margin-bottom: 10px;
}

.amount-value {
    font-size: 32px;
    font-weight: bold;
}

/* 分配情况 */
.allocation-title {
    font-size: 18px;
    margin: 20px 0;
    color: #7b1fa2;
}

.allocation-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.allocation-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    width: calc(25% - 15px);
    min-width: 200px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(106, 27, 154, 0.1);
    display: flex;
    align-items: center;
}

.allocation-icon {
    width: 40px;
    height: 40px;
    background-color: #f3e5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.allocation-icon img {
    width: 20px;
    height: 20px;
}

.allocation-content {
    flex: 1;
}

.allocation-category {
    font-size: 14px;
    margin-bottom: 5px;
}

.allocation-percentage {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.allocation-value {
    font-size: 12px;
    color: #9c27b0;
}

/* 赞助者列表 */
.sponsors-title {
    font-size: 18px;
    margin: 20px 0;
    color: #7b1fa2;
}

.sponsors-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sponsor-card {
    background-color: #f3e5f5;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
}

.sponsor-info {
    flex: 1;
}

.sponsor-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.sponsor-message {
    font-size: 12px;
    color: #9c27b0;
    margin-bottom: 5px;
}

.sponsor-date {
    font-size: 10px;
    color: #9c27b0;
}

.sponsor-amount {
    color: #6a1b9a;
    font-weight: bold;
}

/* 信息卡片 */
.info-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(106, 27, 154, 0.1);
    margin-bottom: 30px;
}

.info-card p {
    color: #7b1fa2;
    font-size: 16px;
}

/* 赞助金额开支明细 */
.expenses-title {
    font-size: 24px;
    margin: 30px 0 20px;
    color: #7b1fa2;
}

.expenses-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(106, 27, 154, 0.1);
}

.expenses-table th {
    background-color: #6a1b9a;
    color: white;
    padding: 15px;
    text-align: left;
}

.expenses-table td {
    padding: 15px;
    border-bottom: 1px solid #f3e5f5;
}

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

.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 10px;
}

.pagination-info {
    margin-right: 20px;
    color: #6a1b9a;
}

.pagination-buttons {
    display: flex;
    align-items: center;
}

.pagination-button {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    border-radius: 5px;
    background-color: #f3e5f5;
    color: #6a1b9a;
    border: none;
    cursor: pointer;
}

.pagination-button.active {
    background-color: #6a1b9a;
    color: white;
}

.pagination-ellipsis {
    margin: 0 5px;
    color: #9c27b0;
}

/* 新增的支出统计卡片 */
.expense-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.expense-stat-card {
    background-color: white;
    border: 1px solid #d1c4e9;
    border-radius: 8px;
    padding: 20px;
    width: calc(33.33% - 15px);
    min-width: 200px;
    margin-bottom: 15px;
}

.expense-stat-title {
    font-size: 14px;
    color: #6a1b9a;
    margin-bottom: 8px;
}

.expense-stat-value {
    font-size: 22px;
    font-weight: bold;
    color: #6a1b9a;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .amount-card {
        width: 100%;
    }
    
    .allocation-card {
        width: calc(50% - 10px);
    }
    
    .sponsors-container {
        grid-template-columns: 1fr;
    }
    
    .expenses-table th, .expenses-table td {
        padding: 10px;
        font-size: 14px;
    }
    
    .expense-stat-card {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .allocation-card {
        width: 100%;
    }
    
    .expenses-table {
        font-size: 12px;
    }
    
    .expenses-table th, .expenses-table td {
        padding: 8px;
    }
}