/* 积分明细页面样式 - 与会员页面风格保持一致 */

/* 积分明细容器样式 */
.transaction-container {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 1px 3px var(--shadow-light);
    transition: all var(--transition-normal);
}

.transaction-container:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

@media (max-width: 1024px) {
    .transaction-container {
        padding: 15px;
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    .transaction-container {
        padding: 12px;
        margin: 8px 0;
    }
}

/* 筛选条件样式 */
.transaction-filter {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px var(--shadow-light);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

@media (max-width: 768px) {
    .transaction-filter {
        padding: 15px;
        margin-bottom: 15px;
    }
}

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

@media (max-width: 768px) {
    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

.filter-select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    min-width: 120px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(36, 190, 88, 0.1);
}

.filter-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.filter-btn:active {
    transform: translateY(0);
}

/* 积分明细列表样式 */
.transaction-list {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 1px 3px var(--shadow-light);
}

.transaction-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    transition: all var(--transition-normal);
}

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

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

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.transaction-type {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.transaction-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
}

.transaction-time {
    color: var(--text-tertiary);
    font-size: 13px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.transaction-amount {
    font-weight: 700;
    font-size: 18px;
    text-align: right;
}

.amount-income {
    color: var(--primary-color);
}

.amount-expense {
    color: #ff6b6b;
}

.transaction-balance {
    color: var(--text-tertiary);
    font-size: 12px;
}

.transaction-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-completed {
    background: #e8f5e8;
    color: var(--primary-color);
    border: 1px solid #c3e6cb;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-tertiary);
}

.empty-state div {
    font-size: 48px;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* 分页控件样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    gap: 10px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px var(--shadow-light);
    margin-top: 20px;
}

.pagination-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #f5f5f5;
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .transaction-item {
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 12px 15px;
    }
    
    .transaction-time {
        grid-column: 1 / -1;
        text-align: left;
        margin-top: 5px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .transaction-type {
        font-size: 15px;
    }
    
    .transaction-amount {
        font-size: 16px;
    }
    
    .pagination {
        padding: 10px;
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .pagination-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .transaction-item {
        padding: 10px 12px;
    }
    
    .transaction-type {
        font-size: 14px;
    }
    
    .transaction-amount {
        font-size: 15px;
    }
    
    .transaction-time {
        font-size: 12px;
    }
}

/* 统计图表样式 */
.stats-section {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px var(--shadow-light);
}

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

.stat-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid var(--primary-color);
}

.stat-card h3 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-size: 16px;
}

.chart-container {
    height: 200px;
    background: white;
    border-radius: 6px;
    padding: 10px;
    border: 1px solid #e9ecef;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 8px;
}

.overview-item {
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.overview-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.overview-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 分析报告样式 */
.analysis-section {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px var(--shadow-light);
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.analysis-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.period-selector {
    display: flex;
    gap: 10px;
}

.period-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.period-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.period-btn:hover:not(.active) {
    background: #f5f5f5;
}

.analysis-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.analysis-item {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.analysis-item h4 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
    font-size: 16px;
}

.analysis-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.data-item {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.data-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.data-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .analysis-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .period-selector {
        justify-content: center;
    }
}