
/* 滑块切换按钮样式 */
.toggle-switch {
    position: relative;
    display: flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 32px;
    padding: 4px;
    cursor: pointer;
    /*width: 140px;*/
    /*height: 36px;*/
}

.toggle-switch input[type="radio"] {
    display: none;
}

.toggle-label {
    flex: 1;
    text-align: center;
    padding: 6px 12px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease;
    position: relative;
    font-weight: 500;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: rgba(67, 207, 124, 1);
    border-radius: 32px;
    transition: transform 0.3s ease;
    z-index: 1;
}

/* 选中状态 */
#weekly:checked ~ .toggle-slider {
    transform: translateX(0);
}

#monthly:checked ~ .toggle-slider {
    transform: translateX(100%);
}

#weekly:checked ~ .toggle-label[for="weekly"],
#monthly:checked ~ .toggle-label[for="monthly"] {
    color: #fff;
}
