/* 专升本报录比页面样式 */
/* 使用 zsb- 前缀避免与主项目样式冲突 */

/* ========== 页面覆盖层内容区域 ========== */
.zsb-page-content {
    width: 100%;
    height: calc(100vh - 72px);
    overflow-y: auto;
    overflow-x: hidden;
    /* 隐藏滚动条 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.zsb-page-content::-webkit-scrollbar {
    display: none;
}

/* ========== 气泡背景 ========== */
.zsb-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.zsb-bubble {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7), rgba(173, 216, 230, 0.25));
    /* GPU加速优化 */
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.zsb-bubble-1 { width: 120px; height: 120px; top: 10%; left: 5%; animation: zsb-float1 8s ease-in-out infinite; }
.zsb-bubble-2 { width: 80px; height: 80px; top: 60%; right: 8%; animation: zsb-float2 10s ease-in-out infinite; }
.zsb-bubble-3 { width: 60px; height: 60px; bottom: 15%; left: 15%; animation: zsb-float3 12s ease-in-out infinite; }
.zsb-bubble-4 { width: 100px; height: 100px; top: 30%; right: 20%; animation: zsb-float4 9s ease-in-out infinite; }

@keyframes zsb-float1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    25% { transform: translate(20px, -30px) scale(1.05); opacity: 0.8; }
    50% { transform: translate(-15px, -10px) scale(0.95); opacity: 0.7; }
    75% { transform: translate(10px, -40px) scale(1.02); opacity: 0.5; }
}

@keyframes zsb-float2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    33% { transform: translate(-20px, -25px) scale(1.1); opacity: 0.7; }
    66% { transform: translate(25px, -15px) scale(0.9); opacity: 0.6; }
}

@keyframes zsb-float3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate(15px, -35px) scale(1.08); opacity: 0.6; }
}

@keyframes zsb-float4 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
    25% { transform: translate(-10px, -20px) scale(1.03); opacity: 0.75; }
    50% { transform: translate(15px, -35px) scale(0.97); opacity: 0.65; }
    75% { transform: translate(-5px, -15px) scale(1.05); opacity: 0.5; }
}

/* ========== 页面入场动画 ========== */
.zsb-page-preparing .zsb-card {
    opacity: 0;
}

.zsb-page-entering .zsb-card {
    animation: zsb-scaleIn 0.6s ease-out 0.2s both;
}

.zsb-page-entering .zsb-legend-item {
    animation: zsb-fadeInUp 0.5s ease-out both;
}

.zsb-page-entering .zsb-legend-item:nth-child(1) {
    animation-delay: 0.4s;
}

.zsb-page-entering .zsb-legend-item:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes zsb-scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zsb-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 容器和卡片 ========== */
.zsb-container {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.zsb-card {
    background: linear-gradient(135deg, #e3edf7, #d4e6f9);
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: 12px 12px 24px #b8bec8, -12px -12px 24px #ffffff;
    /* GPU加速优化 */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.zsb-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #4a6fa5;
    letter-spacing: 0.05em;
}

/* ========== 图例 ========== */
.zsb-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.zsb-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffffff, #e8f0f8);
    box-shadow: inset 2px 2px 4px #d4e6f9, inset -2px -2px 4px #ffffff;
}

.zsb-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.zsb-legend-dot.plan {
    background: linear-gradient(135deg, #ffffff, #9bdfff);
}

.zsb-legend-dot.actual {
    background: linear-gradient(135deg, #ff8899, #ffffff);
}

.zsb-legend-text {
    color: #4a6fa5;
    font-size: 0.875rem;
}

/* ========== 图表区域 ========== */
.zsb-chart-area {
    position: relative;
    width: 100%;
    height: 550px;
    /* GPU加速优化 */
    will-change: transform;
    transform: translateZ(0);
}

.zsb-chart-canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ========== Tooltip ========== */
.zsb-tooltip {
    position: absolute;
    background: linear-gradient(135deg, #ffffff, #e8f0f8);
    border-radius: 20px;
    padding: 15px 20px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px);
    z-index: 100;
    box-shadow: 8px 8px 16px #b8bec8, -8px -8px 16px #ffffff;
    font-size: 13px;
    min-width: 160px;
}

.zsb-tooltip.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.zsb-tooltip-title {
    font-weight: 700;
    margin-bottom: 4px;
    color: #4a6fa5;
}

.zsb-tooltip-subtitle {
    color: #7aa8d6;
    font-size: 12px;
    margin-bottom: 8px;
}

.zsb-tooltip-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
    color: #4a6fa5;
}

.zsb-tooltip-value {
    font-weight: 700;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .zsb-page-content {
        height: calc(100vh - 56px);
    }

    .zsb-container {
        padding: 15px;
    }

    .zsb-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .zsb-title {
        font-size: 1.2rem;
    }

    .zsb-legend {
        gap: 1rem;
    }

    .zsb-legend-item {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .zsb-chart-area {
        height: 450px;
    }

    .zsb-tooltip {
        padding: 10px 15px;
        font-size: 12px;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .zsb-page-content {
        height: calc(100vh - 48px);
    }

    .zsb-container {
        padding: 10px;
    }

    .zsb-card {
        padding: 1rem;
        border-radius: 15px;
    }

    .zsb-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .zsb-legend {
        gap: 0.8rem;
        margin-bottom: 1rem;
    }

    .zsb-legend-item {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .zsb-legend-dot {
        width: 10px;
        height: 10px;
    }

    .zsb-chart-area {
        height: 380px;
    }

    .zsb-tooltip {
        padding: 8px 12px;
        font-size: 11px;
        min-width: 120px;
    }
}
