/* ==============================
   项目25：星空宇宙背景 (Starry Cosmos)
   ============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========== 左下角效果名称 ========== */
.effect-label {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 10;
    color: rgba(255, 255, 255, 0.35);
    font-size: 14px;
    letter-spacing: 0.15em;
    font-weight: 300;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* ========== 右下角切换面板 ========== */
.switch-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 12px 12px;
}

.panel-title {
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.effect-btn {
    display: block;
    width: 100%;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-align: left;
}

.effect-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.effect-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* ========== 响应式 ========== */
@media (max-width: 480px) {
    .switch-panel {
        bottom: 12px;
        right: 12px;
        padding: 10px 8px 8px;
    }

    .effect-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}
