/* 个人资金记录统计页面样式 */

/* 全局样式 */
/* body样式已移至navbar.css中统一管理，避免样式冲突 */

/* 卡片样式优化 */
.layui-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.layui-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.layui-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    padding: 15px 20px;
    font-weight: 600;
    border-bottom: none;
}

.layui-card-header h2 {
    color: white !important;
    font-size: 24px;
    font-weight: 700;
}

.layui-card-body {
    padding: 20px;
    background: white;
    border-radius: 0 0 8px 8px;
}

/* 按钮样式优化 */
.layui-btn {
    border-radius: 6px;
    transition: all 0.3s ease;
}

.layui-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.layui-btn-normal {
    background: linear-gradient(135deg, #1E9FFF 0%, #1890ff 100%);
    border: none;
}

.layui-btn-primary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
}

.layui-btn-group .layui-btn {
    margin: 0;
}

/* 表格样式优化 */
.layui-table {
    border-radius: 6px;
    overflow: hidden;
}

.layui-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    font-weight: 600;
}

.layui-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 徽章样式 */
.layui-badge {
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
}

/* 图表容器样式 */
.layui-card-body canvas {
    border-radius: 6px;
}

/* 表单样式优化 */
.layui-form-label {
    font-weight: 600;
    color: #495057;
}

.layui-input, .layui-textarea, .layui-select {
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.layui-input:focus, .layui-textarea:focus {
    border-color: #1E9FFF;
    box-shadow: 0 0 0 2px rgba(30, 159, 255, 0.2);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .layui-container {
        width: auto;
    }
    
    .layui-card-header {
        padding: 10px 15px;
    }
    
    .layui-card-header h2 {
        font-size: 18px;
    }
    
    .layui-card-body {
        padding: 15px;
    }
    
    .layui-btn-group {
        display: flex;
        flex-wrap: wrap;
    }
    
    .layui-btn-xs {
        margin: 2px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.layui-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 图标样式 */
.layui-icon {
    margin-right: 5px;
}

/* 数据统计卡片特殊样式 */
.stats-card {
    text-align: center;
    padding: 20px;
}

.stats-number {
    font-size: 28px;
    font-weight: 700;
    color: #1E9FFF;
    margin-bottom: 5px;
}

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

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1E9FFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 资金概览模块样式 */
.fund-overview-section {
    margin-top: 10px;
    margin-bottom: 10px;
}

.fund-overview-card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 120px;
}

.fund-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.fund-overview-card .layui-card-body {
    padding: 20px;
    height: 100%;
    position: relative;
}

.fund-overview-content {
    display: flex;
    align-items: center;
}

.fund-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background: rgba(255,255,255,0.2);
}

.fund-icon i {
    font-size: 24px;
    color: white;
}

.fund-info {
    flex: 1;
    color: white;
}

.fund-title {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
    font-weight: 500;
}

.fund-amount {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 5px;
}



/* 各卡片的渐变背景 */
.deposit-card .layui-card-body {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
}

.balance-card .layui-card-body {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
}

.withdraw-card .layui-card-body {
    background: linear-gradient(135deg, #A8EDEA 0%, #FED6E3 100%);
    color: #333 !important;
}

.withdraw-card .fund-info {
    color: #333 !important;
}

.withdraw-card .fund-icon {
    background: rgba(0,0,0,0.1);
}

.withdraw-card .fund-icon i {
    color: #333;
}

.profit-card .layui-card-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 响应式设计 */
@media (max-width: 995px) {
    /* 强制资金概览模块2行2列布局 */
    .fund-overview-section .layui-col-md6 {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
        float: left !important;
        box-sizing: border-box !important;
    }
    
    .fund-overview-section .layui-col-lg3 {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
        float: left !important;
        box-sizing: border-box !important;
    }
    
    .fund-overview-section .layui-row {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    .fund-overview-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 992px) {
    .fund-overview-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .fund-overview-card {
        height: auto;
    }
    
    .fund-overview-card .layui-card-body {
        padding: 15px;
    }
    
    .fund-amount {
        font-size: 20px;
    }
    
    .fund-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .fund-icon i {
        font-size: 20px;
    }
}

/* 滚动条样式已移至navbar.css中统一管理 */

/* 提示文字样式 */
.tip-text {
    color: #999;
    font-size: 13px;
    line-height: 1.5;
}

/* 成功/错误状态样式 */
.success-text {
    color: #5FB878;
    font-weight: 600;
}

.error-text {
    color: #FF5722;
    font-weight: 600;
}

/* 图表工具栏样式 */
.chart-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state .layui-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

/* 页面标题样式 */
.page-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin: 0;
}

/* 按钮组优化样式 */
.chart-period {
    position: relative;
    overflow: hidden;
}

.chart-period:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
}

.chart-period.layui-this {
    background: linear-gradient(135deg, #5FB878 0%, #009688 100%) !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(95, 184, 120, 0.4);
}

.chart-period.layui-this:hover {
    background: linear-gradient(135deg, #4CAF50 0%, #00796B 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.5);
}



/* 操作类型标签样式 */
.operation-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.operation-tag.deposit {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
}

.operation-tag.withdraw {
    background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%);
}

.operation-tag.profit {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
}

.operation-tag.loss {
    background: linear-gradient(135deg, #faad14 0%, #d48806 100%);
}

/* 金额样式 */
.amount-positive {
    color: #52c41a;
    font-weight: 600;
}

.amount-negative {
    color: #ff4d4f;
    font-weight: 600;
}

.amount-neutral {
    color: #595959;
    font-weight: 500;
}