/* 统计报表页面样式 */

/* 报表区域头部样式 */
.report-section-header {
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.report-section-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.report-section-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-section-header-icon {
    font-size: 18px;
    color: #666;
}

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

.report-section-header-period {
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

/* 不同统计周期的头部颜色 */
.week-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.week-header .report-section-header-icon,
.week-header .report-section-header-title {
    color: white;
}

.week-header .report-section-header-period {
    color: rgba(255, 255, 255, 0.8);
}

.month-header {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
}

.month-header .report-section-header-icon,
.month-header .report-section-header-title {
    color: white;
}

.month-header .report-section-header-period {
    color: rgba(255, 255, 255, 0.8);
}

.year-header {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
}

.year-header .report-section-header-icon,
.year-header .report-section-header-title {
    color: white;
}

.year-header .report-section-header-period {
    color: rgba(255, 255, 255, 0.8);
}

.total-header {
    background: linear-gradient(135deg, #F093FB 0%, #F5576C 100%);
}

.total-header .report-section-header-icon,
.total-header .report-section-header-title {
    color: white;
}

.total-header .report-section-header-period {
    color: rgba(255, 255, 255, 0.8);
}

/* 统计项容器 */
.stats-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    margin-bottom: 15px;
}

/* 紧凑型统计项 */
.stats-item.compact {
    padding: 12px;
    margin-bottom: 10px;
    min-height: 75px;
}

.stats-item.compact .stats-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    font-size: 16px;
}

.stats-item.compact .stats-content .stats-title {
    font-size: 12px;
    margin-bottom: 3px;
}

.stats-item.compact .stats-content .stats-value {
    font-size: 16px;
    font-weight: 600;
}

.stats-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 统计图标 */
.stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
    color: white;
}

/* 周统计图标颜色 */
.week-deposit {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
}

.week-withdraw {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
}

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

.week-net {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* 月统计图标颜色 */
.month-deposit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.month-withdraw {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
}

.month-profit {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
}

.month-net {
    background: linear-gradient(135deg, #F093FB 0%, #F5576C 100%);
}

/* 年统计图标颜色 */
.year-deposit {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
}

.year-withdraw {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.year-profit {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
}

.year-net {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* 总统计图标颜色 */
.total-deposit {
    background: linear-gradient(135deg, #F093FB 0%, #F5576C 100%);
}

.total-withdraw {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
}

.total-profit {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
}

.total-net {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 统计内容 */
.stats-content {
    flex: 1;
}

.stats-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.stats-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

/* 盈亏颜色 */
.profit-positive {
    color: #52c41a !important;
}

.profit-negative {
    color: #ff4d4f !important;
}

/* 报表区域 */
.report-section {
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.report-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
}

/* 卡片头部样式优化 */
.layui-card-header {
    position: relative;
    overflow: hidden;
}

.layui-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.layui-card:hover .layui-card-header::before {
    left: 100%;
}

/* 响应式设计 - 强制1行3列布局 */
/* 通用1行3列布局强制规则 */
.layui-row.layui-col-space10 .layui-col-md3 {
    width: 33.333333% !important;
    max-width: 33.333333% !important;
    flex: 0 0 33.333333% !important;
    float: left !important;
    box-sizing: border-box !important;
    clear: none !important;
}

.layui-row.layui-col-space10 .layui-col-md3:nth-child(3n+1) {
    clear: left !important;
}

@media (max-width: 1200px) {
    .layui-col-md3 {
        width: 33.333333% !important;
        max-width: 33.333333% !important;
        flex: 0 0 33.333333% !important;
    }
    
    .layui-col-lg6 {
        width: 50%;
        margin-bottom: 10px;
    }
}

@media (max-width: 992px) {
    .layui-col-md3 {
        width: 33.333333% !important;
        max-width: 33.333333% !important;
        flex: 0 0 33.333333% !important;
    }

    .layui-col-lg6 {
        width: 100%;
        margin-bottom: 10px;
    }
    .stats-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .stats-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-right: 12px;
    }
    
    .stats-value {
        font-size: 20px;
    }
    
    .stats-title {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .layui-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .layui-col-md3 {
        width: 33.333333% !important;
        max-width: 33.333333% !important;
        flex: 0 0 33.333333% !important;
        float: left !important;
    }
    
    .layui-row.layui-col-space10 {
        margin: 0 -5px;
        display: block !important;
    }
    
    .layui-row.layui-col-space10 > [class*="layui-col-"] {
        padding: 0 5px;
    }
    
    .stats-item {
        padding: 12px;
        margin-bottom: 8px;
        min-height: 70px;
        /* 保持水平布局，不改为垂直 */
        flex-direction: row;
        align-items: center;
    }
    
    .stats-item.compact {
        padding: 10px;
        margin-bottom: 8px;
        min-height: 65px;
        /* 确保紧凑模式也保持水平布局 */
        flex-direction: row;
        align-items: center;
    }
    
    .stats-item.compact .stats-icon {
        width: 35px;
        height: 35px;
        margin-right: 8px;
        font-size: 14px;
        /* 确保图标保持圆形 */
        flex-shrink: 0;
    }
    
    .stats-item.compact .stats-content .stats-title {
        font-size: 11px;
        margin-bottom: 2px;
    }
    
    .stats-item.compact .stats-content .stats-value {
        font-size: 14px;
    }
    
    .stats-icon {
        margin-right: 8px;
        width: 35px;
        height: 35px;
        font-size: 16px;
        /* 确保图标不被压缩 */
        flex-shrink: 0;
    }
    
    .stats-value {
        font-size: 18px;
    }
    
    .stats-title {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .layui-card-header {
        padding: 15px !important;
    }
    
    .layui-card-body {
        padding: 15px !important;
    }
    
    .layui-row.layui-col-space20 {
        margin: 0 -10px;
    }
    
    .layui-row.layui-col-space20 > [class*="layui-col-"] {
        padding: 2px 10px;
    }
    
    .layui-card-header h2 {
        font-size: 18px;
    }
    
    .layui-card-header span {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .layui-container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .layui-col-md3 {
        width: 33.333333% !important;
        max-width: 33.333333% !important;
        flex: 0 0 33.333333% !important;
        float: left !important;
        box-sizing: border-box !important;
        margin-bottom: 10px;
        clear: none !important;
    }
    
    .layui-col-md3:nth-child(3n+1) {
        clear: left !important;
    }
    
    .layui-row.layui-col-space10 {
        margin: 0 -5px;
        display: block !important;
        overflow: hidden;
    }
    
    .layui-row.layui-col-space10 > [class*="layui-col-"] {
        padding: 0 5px;
    }
    
    .stats-item {
        padding: 8px;
        margin-bottom: 8px;
        /* 保持水平布局 */
        flex-direction: row;
        align-items: center;
    }
    
    .stats-item.compact {
        padding: 8px;
        min-height: 55px;
        /* 确保紧凑模式保持水平布局 */
        flex-direction: row;
        align-items: center;
    }
    
    .stats-item.compact .stats-icon {
        width: 30px;
        height: 30px;
        margin-right: 6px;
        font-size: 12px;
        /* 防止图标被压缩 */
        flex-shrink: 0;
    }
    
    .stats-item.compact .stats-content .stats-value {
        font-size: 12px;
    }
    
    .stats-icon {
        width: 30px;
        height: 30px;
        margin-right: 6px;
        font-size: 14px;
        /* 防止图标被压缩 */
        flex-shrink: 0;
    }
    
    .stats-value {
        font-size: 16px;
    }
    
    .stats-title {
        font-size: 11px;
    }
    
    .stats-content .stats-title {
        font-size: 10px;
        margin-bottom: 2px;
    }
    
    .stats-content .stats-value {
        font-size: 12px;
    }
    
    .layui-card-header {
        padding: 12px 15px;
    }
    
    .layui-card-header h2 {
        font-size: 16px;
    }
    
    .layui-card-header span {
        font-size: 12px;
    }
    
    .layui-card-header p {
        font-size: 11px;
    }
    
    .report-section {
        margin-bottom: 15px;
    }
    
    /* 移动端头部样式调整 */
    .report-section-header-icon {
        font-size: 16px;
    }
    
    .report-section-header-title {
        font-size: 14px;
    }
    
    .report-section-header-period {
        font-size: 12px;
    }
    
    .report-section-header-left {
        gap: 6px;
    }
}

/* 中等小屏幕强制1行3列布局 */
@media (max-width: 360px) {
    .layui-col-md3 {
        width: 33.333333% !important;
        max-width: 33.333333% !important;
        flex: 0 0 33.333333% !important;
        float: left !important;
        box-sizing: border-box !important;
        clear: none !important;
    }
    
    .layui-col-md3:nth-child(3n+1) {
        clear: left !important;
    }
    
    .layui-row.layui-col-space10 {
        margin: 0 -4px;
        display: block !important;
        overflow: hidden;
    }
    
    .layui-row.layui-col-space10 > [class*="layui-col-"] {
        padding: 0 4px;
    }
    
    .stats-item.compact {
        padding: 7px;
        min-height: 52px;
    }
    
    .stats-item.compact .stats-icon {
        width: 28px;
        height: 28px;
        margin-right: 6px;
        font-size: 11px;
    }
    
    .stats-item.compact .stats-content .stats-title {
        font-size: 10px;
        margin-bottom: 2px;
    }
    
    .stats-item.compact .stats-content .stats-value {
        font-size: 12px;
    }
    
    /* 超小屏幕头部样式调整 */
    .report-section-header-icon {
        font-size: 14px;
    }
    
    .report-section-header-title {
        font-size: 13px;
    }
    
    .report-section-header-period {
        font-size: 11px;
    }
    
    .report-section-header-left {
        gap: 5px;
    }
}

/* 超小屏幕强制1行3列布局 */
@media (max-width: 320px) {
    .layui-col-md3 {
        width: 33.333333% !important;
        max-width: 33.333333% !important;
        flex: 0 0 33.333333% !important;
        float: left !important;
        box-sizing: border-box !important;
        clear: none !important;
    }
    
    .layui-col-md3:nth-child(3n+1) {
        clear: left !important;
    }
    
    .layui-row.layui-col-space10 {
        margin: 0 -3px;
    }
    
    .layui-row.layui-col-space10 > [class*="layui-col-"] {
        padding: 0 3px;
    }
    
    .stats-item.compact {
        padding: 4px;
        min-height: 45px;
    }
    
    .stats-item.compact .stats-icon {
        width: 24px;
        height: 24px;
        margin-right: 4px;
        font-size: 10px;
    }
    
    .stats-item.compact .stats-content .stats-title {
        font-size: 9px;
        margin-bottom: 1px;
    }
    
    .stats-item.compact .stats-content .stats-value {
        font-size: 10px;
    }
    
    .stats-item.compact .stats-icon {
        width: 25px;
        height: 25px;
        margin-right: 5px;
        font-size: 10px;
    }
    
    .stats-item.compact .stats-content .stats-title {
        font-size: 9px;
        margin-bottom: 1px;
    }
    
    .stats-item.compact .stats-content .stats-value {
        font-size: 11px;
    }
    
    /* 极小屏幕头部样式调整 */
    .report-section-header-icon {
        font-size: 13px;
    }
    
    .report-section-header-title {
        font-size: 12px;
    }
    
    .report-section-header-period {
        font-size: 10px;
    }
    
    .report-section-header-left {
        gap: 4px;
    }
}

/* 加载动画已在index.css中定义 */
.report-section {
    animation: fadeInUp 0.6s ease-out;
}

/* 空状态样式已在index.css中定义 */

/* 统计卡片特殊效果 */
.stats-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
    pointer-events: none;
}

.stats-item:hover::before {
    transform: translateX(100%);
}

.stats-item {
    position: relative;
    overflow: hidden;
}

/* 页面标题优化 */
.layui-card-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 统计数值动画 */
.stats-value {
    transition: all 0.3s ease;
}

.stats-item:hover .stats-value {
    transform: scale(1.05);
}

/* 卡片阴影层次 */
.layui-card {
    position: relative;
}

.layui-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset;
    pointer-events: none;
}

/* 暖色系主题优化 */
.layui-container {
    background-attachment: fixed;
}

.layui-card {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

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