/* =====================================================
   balance_bar.css — 余额栏组件 (Windows 7 Aero Glass)
   ===================================================== */

/* ---------- 余额栏容器 ---------- */
.aero-balance {
    padding: 20px 24px 0;
    animation: aero-balance-fade-in 0.5s ease 0.1s both;
}

@keyframes aero-balance-fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aero-balance__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

/* 顶部高光 (Aero Glass 特征) */
.aero-balance__inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* ---------- 左侧：说明区域 ---------- */
.aero-balance__info {
    flex: 1;
    min-width: 0;
}

.aero-balance__title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.aero-balance__desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    max-width: 520px;
}

/* ---------- 右侧：点数区域 ---------- */
.aero-balance__points {
    flex-shrink: 0;
    text-align: right;
    min-width: 140px;
}

.aero-balance__points-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.aero-balance__points-value {
    font-size: 30px;
    font-weight: 800;
    background: linear-gradient(135deg, #4fc3f7, #2196f3, #1565c0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    transition: transform 0.2s ease;
    font-variant-numeric: tabular-nums;
}

/* 数值更新闪烁动效 */
.aero-balance__points-value--updated {
    animation: aero-balance-bump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes aero-balance-bump {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* ---------- 响应式 ---------- */

/* 平板 */
@media (max-width: 768px) {
    .aero-balance {
        padding: 16px 16px 0;
    }

    .aero-balance__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }

    .aero-balance__points {
        text-align: left;
        width: 100%;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .aero-balance__title {
        font-size: 16px;
    }

    .aero-balance__points-value {
        font-size: 26px;
    }
}

/* 手机 */
@media (max-width: 480px) {
    .aero-balance {
        padding: 12px 12px 0;
    }

    .aero-balance__inner {
        padding: 16px;
        gap: 12px;
    }

    .aero-balance__title {
        font-size: 15px;
    }

    .aero-balance__desc {
        font-size: 12px;
    }

    .aero-balance__points-value {
        font-size: 22px;
    }
}
