/* 我的钱包页面样式 */

/* 账户余额卡片 */
.wallet-balance-card {
    background: linear-gradient(135deg, #00823C, #006e33);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 130, 60, 0.2);
    position: relative;
    overflow: hidden;
}

.wallet-balance-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.wallet-balance-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
}

.balance-info {
    position: relative;
    z-index: 2;
}

.balance-label {
    font-size: 16px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.balance-amount {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.balance-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 6px;
    padding: 8px 15px;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.action-btn i {
    font-size: 16px;
}

.balance-icon {
    position: relative;
    z-index: 2;
    font-size: 60px;
    opacity: 0.8;
}

/* 余额明细筛选 */
.transaction-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 5px;
}

.filter-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.filter-options {
    display: flex;
    gap: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    color: #666;
}

/* 美化下拉选择器 */
.select-wrapper {
    position: relative;
    display: inline-block;
}

/* 自定义选择器样式 */
.custom-select {
    position: relative;
    min-width: 100px;
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 8px 30px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}

.filter-select:hover {
    border-color: #00823C;
}

.filter-select:focus {
    border-color: #00823C;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 130, 60, 0.1);
}

/* 现代化下拉菜单样式 */
.filter-select option {
    padding: 10px;
    background-color: #fff;
    color: #333;
}

/* 自定义下拉箭头 */
.select-wrapper i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    transition: all 0.3s;
    font-size: 18px;
}

.select-wrapper:hover i {
    color: #00823C;
}

/* 自定义下拉菜单打开样式 */
.custom-select .filter-select:focus + i {
    transform: translateY(-50%) rotate(180deg);
    color: #00823C;
}

/* 余额明细列表 */
.transaction-list {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 0; /* 移除底部边距，与分页器连接 */
}

.transaction-header {
    display: grid;
    grid-template-columns: 120px 1fr 120px 180px;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: 500;
    color: #666;
}

.transaction-item {
    display: grid;
    grid-template-columns: 120px 1fr 120px 180px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-item:hover {
    background-color: #f8f9fa;
}

.transaction-type {
    display: flex;
    align-items: center;
    gap: 10px;
}

.type-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.income .type-icon {
    background-color: rgba(0, 130, 60, 0.1);
    color: #00823C;
}

.expense .type-icon {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.type-text {
    font-size: 14px;
    color: #666;
}

.transaction-desc {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.desc-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.desc-detail {
    font-size: 13px;
    color: #888;
}

.transaction-amount {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.income .transaction-amount {
    color: #00823C;
}

.expense .transaction-amount {
    color: #dc3545;
}

.transaction-date {
    color: #888;
    font-size: 14px;
    display: flex;
    align-items: center;
}

/* 分页容器 */
.pagination-container {
    background-color: #fff; /* 修改为白色背景，与列表保持一致 */
    border-top: 1px solid #eee;
    padding: 15px 0;
    margin-top: 0; /* 移除顶部边距 */
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* 添加阴影与列表一致 */
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.page-btn, .page-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid #eee;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    background-color: #f8f9fa;
}

.page-btn:hover, .page-number:hover {
    border-color: #00823C;
    color: #00823C;
}

.page-number.active {
    background-color: #00823C;
    border-color: #00823C;
    color: #fff;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.page-ellipsis {
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* 空状态提示 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    text-align: center;
}

.empty-icon {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-text {
    font-size: 16px;
    color: #999;
    margin-bottom: 20px;
}

/* 自定义下拉菜单样式 */
select::-ms-expand {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wallet-balance-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }
    
    .balance-icon {
        align-self: flex-end;
        margin-top: -60px;
    }
    
    .transaction-filter {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .filter-options {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .transaction-header {
        grid-template-columns: 100px 1fr 100px;
    }
    
    .transaction-item {
        grid-template-columns: 100px 1fr 100px;
        padding: 15px;
    }
    
    .th-date, .transaction-date {
        display: none;
    }
} 