/**
 * 账户资产 - 现代化样式
 */

/* 主容器 */
#page-cost-center {
    padding: 24px;
}

/* 顶部操作栏 */
.cost-top-bar {
    margin-bottom: 24px;
}

.cost-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

#rechargeBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#rechargeBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.balance-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 12px 24px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.balance-label {
    font-size: 14px;
    color: #6b7280;
}

.balance-amount {
    font-size: 18px;
    color: #1f2937;
    font-weight: 600;
}

.balance-number {
    font-size: 24px;
    color: #667eea;
    font-weight: 700;
}

/* 账单卡片 */
.bill-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    display: flex;
    gap: 48px;
}

.bill-left,
.bill-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bill-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bill-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.package-tag {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.type-label {
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
}

.bill-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.amount-value {
    font-size: 42px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.amount-unit {
    font-size: 16px;
    color: #9ca3af;
    font-weight: 500;
}

.bill-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.detail-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: #374151;
}

.num-value {
    color: #667eea;
    font-weight: 600;
    margin: 0 4px;
}

.bill-action {
    margin-top: 8px;
}

#openPackageBtn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

#openPackageBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 温馨提示 - 纯文字红色 */
.bill-tips {
    margin-top: 16px;
}

.tips-header {
    display: none;
}

.tips-content p {
    margin: 4px 0;
    font-size: 13px;
    color: #ef4444;
    line-height: 1.6;
}

/* 交易记录 */
.transaction-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.section-header {
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.transaction-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.transaction-table thead {
    background: #f9fafb;
}

.transaction-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
}

.transaction-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.transaction-table tbody tr:hover {
    background: #f9fafb;
}

.transaction-table .empty-data {
    text-align: center;
    color: #9ca3af;
    padding: 40px;
}

/* 分页 - 纯文字小巧样式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.pagination-info {
    font-size: 13px;
    color: #9ca3af;
}

.pagination-info span {
    color: #667eea;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-btn {
    padding: 0;
    border: none;
    background: none;
    color: #667eea;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: underline;
}

.page-btn:hover:not(:disabled) {
    color: #764ba2;
}

.page-btn:disabled {
    color: #d1d5db;
    cursor: not-allowed;
    text-decoration: none;
}

.page-jump {
    font-size: 13px;
    color: #9ca3af;
}

.page-input {
    width: 45px;
    padding: 4px 6px;
    border: none;
    border-bottom: 1px solid #d1d5db;
    border-radius: 0;
    text-align: center;
    font-size: 13px;
    background: transparent;
    color: #374151;
}

.page-input:focus {
    outline: none;
    border-bottom-color: #667eea;
}

.page-size-select {
    padding: 4px 8px;
    border: none;
    border-bottom: 1px solid #d1d5db;
    border-radius: 0;
    font-size: 12px;
    background: transparent;
    cursor: pointer;
    color: #6b7280;
}

.page-size-select:focus {
    outline: none;
    border-bottom-color: #667eea;
}

/* 响应式 */
@media (max-width: 1024px) {
    .bill-card {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    #page-cost-center {
        padding: 16px;
    }
    
    .cost-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    #rechargeBtn {
        width: 100%;
    }
    
    .bill-card {
        padding: 20px;
    }
    
    .amount-value {
        font-size: 32px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .pagination-controls {
        justify-content: center;
    }
}

