/* 灵动岛通知 */
.bars {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
}
.bar {
    width: 2px;
    height: 13px;
    background-color: green;
    animation: bounce 1s infinite ease-in-out;
    animation-direction: alternate;
}
.bar:nth-child(1) {animation-duration:1s;}
.bar:nth-child(2) {animation-duration:0.9s;}
.bar:nth-child(3) {animation-duration:0.8s;}
.bar:nth-child(4) {animation-duration:0.7s;}
.bar:nth-child(5) {animation-duration:0.6s;}
.bar:nth-child(6) {animation-duration:0.9s;}
.bar:nth-child(7) {animation-duration:0.7s;}

/* 玻璃边缘+高斯+白底优化，内容清晰 */
.dynamic-island {
    position: fixed;
    left: 50%;
    top: 20px; /* 默认顶部距离 */
    transform: translateX(-50%) scale(0);
    transform-origin: center;
    width: auto;
    max-width: 80%;
    height: 40px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
    z-index: 999999;
    padding-left: 35px;
    padding-right: 20px;
    opacity: 0;
    color: #181C20; /* 主色深色，适配白底 */
    /* 玻璃核心样式 ↓ */
    background: rgba(255,255,255,0.04) !important; /* 近乎全透明，轻微提亮 */
    border: 1.5px solid rgba(180,180,200,0.21);
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.15),
        0 0 0 3px rgba(255,255,255,0.11) inset;
    backdrop-filter: blur(18px) saturate(130%) brightness(1.05) !important;
    -webkit-backdrop-filter: blur(18px) saturate(130%) brightness(1.05) !important;
    transition: transform 0.4s ease-in-out, height 0.6s, border-radius 0.6s, box-shadow 0.5s, opacity 0.5s;
}

.dynamic-island.active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}
.dynamic-island.inactive {
    transform: translateX(-50%) scale(0);
    opacity: 0;
}

/* 内容区：深色字+白色描边高光，保证白底也能看清 */
.island-content {
    opacity: 0;
    transition: opacity 0.9s, filter 0.8s;
    font-weight: bold;
    flex-grow: 1;
    text-align: right;
    width: 100%;
}
.dynamic-island.active .island-content {
    opacity: 1;
}
.dynamic-island .bars p,
.dynamic-island .island-content {
    color: #181C20 !important;
    text-shadow: 
        0 2px 8px rgba(255,255,255,0.34), 
        0 1px 0 #fff, 
        0 -1px 0 #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.dynamic-island img {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 20px;
    object-fit: cover;
    filter: drop-shadow(0 2px 8px rgba(220,220,220,0.25));
    transition: height 0.8s, width 0.8s, filter 0.8s;
}

@keyframes bounce {
    0% {transform: scaleY(0.3); background-color: green;}
    50% {transform: scaleY(1); background-color: orange;}
    100% {transform: scaleY(0.3); background-color: green;}
}
