/* 数据分析报表页面样式 */

/* 解决方案区块样式 */
.solution-block {
    background: #fff;
    border-radius: 16px;
    border: 2px solid #f0f6ff;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 40px;
    position: relative;
}

.solution-block:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 覆盖product-design.css中的向上移动动画 */
.inspiration-block:hover {
    transform: none;
}

.inspiration-item:hover {
    transform: none;
}

.inspiration-item:hover .inspiration-tag {
    transform: none;
}

/* 区块1样式 - 实时可视化仪表盘 */
.block-1 {
    border-top: 8px solid rgba(76, 175, 80, 0.1);
    border-right: 2px solid rgba(76, 175, 80, 0.1);
    border-bottom: 2px solid rgba(76, 175, 80, 0.1);
    border-left: 2px solid rgba(76, 175, 80, 0.1);
}

.block-1:hover {
    border-top: 8px solid #4CAF50;
    border-right: 2px solid #4CAF50;
    border-bottom: 2px solid #4CAF50;
    border-left: 2px solid #4CAF50;
}

.block-1 .icon-circle {
    background: rgba(76, 175, 80, 0.1);
}

.block-1 .feature-tag {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.block-1 .feature-item:hover {
    border-color: rgba(76, 175, 80, 0.3);
    background: rgba(76, 175, 80, 0.05);
}

.block-1 .feature-item:hover .icon-circle {
    background: rgba(76, 175, 80, 0.2);
}

.block-1 .feature-item:hover .feature-tag {
    background: rgba(76, 175, 80, 0.2);
}

/* 区块2样式 - 深度分析报告 */
.block-2 {
    border-top: 8px solid rgba(33, 150, 243, 0.1);
    border-right: 2px solid rgba(33, 150, 243, 0.1);
    border-bottom: 2px solid rgba(33, 150, 243, 0.1);
    border-left: 2px solid rgba(33, 150, 243, 0.1);
}

.block-2:hover {
    border-top: 8px solid #2196F3;
    border-right: 2px solid #2196F3;
    border-bottom: 2px solid #2196F3;
    border-left: 2px solid #2196F3;
}

.block-2 .icon-circle {
    background: rgba(33, 150, 243, 0.1);
}

.block-2 .feature-tag {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.block-2 .feature-item:hover {
    border-color: rgba(33, 150, 243, 0.3);
    background: rgba(33, 150, 243, 0.05);
}

.block-2 .feature-item:hover .icon-circle {
    background: rgba(33, 150, 243, 0.2);
}

.block-2 .feature-item:hover .feature-tag {
    background: rgba(33, 150, 243, 0.2);
}

/* 区块3样式 - 可配置报表 */
.block-3 {
    border-top: 8px solid rgba(255, 152, 0, 0.1);
    border-right: 2px solid rgba(255, 152, 0, 0.1);
    border-bottom: 2px solid rgba(255, 152, 0, 0.1);
    border-left: 2px solid rgba(255, 152, 0, 0.1);
}

.block-3:hover {
    border-top: 8px solid #FF9800;
    border-right: 2px solid #FF9800;
    border-bottom: 2px solid #FF9800;
    border-left: 2px solid #FF9800;
}

.block-3 .icon-circle {
    background: rgba(255, 152, 0, 0.1);
}

.block-3 .feature-tag {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.block-3 .feature-item:hover {
    border-color: rgba(255, 152, 0, 0.3);
    background: rgba(255, 152, 0, 0.05);
}

.block-3 .feature-item:hover .icon-circle {
    background: rgba(255, 152, 0, 0.2);
}

.block-3 .feature-item:hover .feature-tag {
    background: rgba(255, 152, 0, 0.2);
}

/* 区块描述 */
.block-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* 仪表盘容器 */
.dashboard-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dashboard-left,
.dashboard-center {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

/* 订单交付状态饼图 */
.delivery-pie-chart,
.inventory-pie-chart {
    text-align: center;
    margin-bottom: 30px;
}

.pie-segment {
    transform-origin: center;
    animation: pie-segment-appear 1s ease-out forwards;
    opacity: 0;
}

.pie-segment:nth-child(1) {
    animation-delay: 0.1s;
}

.pie-segment:nth-child(2) {
    animation-delay: 0.2s;
}

.pie-segment:nth-child(3) {
    animation-delay: 0.3s;
}

.pie-segment:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes pie-segment-appear {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.pie-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.pie-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #666;
}

.pie-legend .legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* 产品开发卡片 */
.product-cards h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1D2129;
    margin: 0 0 20px 0;
}

.cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
}

.card-content {
    flex: 1;
}

.card-label {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 8px;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1D2129;
    margin-bottom: 8px;
}

.card-status {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 4px 22px;
    border-radius: 12px;
    display: inline-block;
}

.status-normal {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.status-warning {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

/* SKU分析 */
.sku-analysis {
    margin-top: 30px;
}

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

.analysis-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1D2129;
    margin: 0;
}

/* 散点图 */
.scatter-chart {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 20px;
}

.y-axis {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.x-axis {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.chart-area {
    position: absolute;
    top: 20px;
    left: 60px;
    right: 20px;
    bottom: 50px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.quadrant-line {
    position: absolute;
    background: #e0e0e0;
}

.quadrant-line.vertical {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
}

.quadrant-line.horizontal {
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
}

/* 象限标签 */
.quadrant-label {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 10;
}

.quadrant-label .label-title {
    display: block;
    margin-bottom: 4px;
}

.quadrant-label .label-desc {
    display: block;
    font-size: 0.6875rem;
    font-weight: 400;
}

.quadrant-label.q1 {
    top: 10px;
    right: 10px;
    background: rgba(156, 39, 176, 0.1);
    color: #9C27B0;
}

.quadrant-label.q2 {
    top: 10px;
    left: 10px;
    background: rgba(103, 58, 183, 0.1);
    color: #673AB7;
}

.quadrant-label.q3 {
    bottom: 10px;
    right: 10px;
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.quadrant-label.q4 {
    bottom: 10px;
    left: 10px;
    background: rgba(158, 158, 158, 0.1);
    color: #9E9E9E;
}

/* SKU点 */
.sku-point {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: point-appear 0.5s ease-out forwards;
    opacity: 0;
    transform: scale(0);
}

@keyframes point-appear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.sku-point:hover {
    transform: scale(1.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 20;
}

.point-tooltip {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #1D2129;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.sku-point:hover .point-tooltip {
    opacity: 1;
    visibility: visible;
}

.point-tooltip strong {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9375rem;
}

/* 不同类型的SKU点 */
.star-product {
    background: #9C27B0;
}

.potential-product {
    background: #673AB7;
}

.problem-product {
    background: #FF9800;
}

.slow-product {
    background: #9E9E9E;
}

/* 象限说明 */
.quadrant-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.quadrant-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #666;
}

.quadrant-legend .legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}


/* 响应式设计 */
@media (max-width: 1199px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .card-value {
        font-size: 1.5rem;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .quadrant-label {
        font-size: 0.6875rem;
        padding: 6px 10px;
    }
    
    .quadrant-label .label-desc {
        font-size: 0.625rem;
    }
    
    .sku-point {
        width: 12px;
        height: 12px;
    }
    
    .point-tooltip {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
}
