/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #000;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
    overflow: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* 隐藏滚动条但保留滚动功能 */
body::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

body::-webkit-scrollbar-track {
    background: transparent !important;
    display: none !important;
}

body::-webkit-scrollbar-thumb {
    background: transparent !important;
    display: none !important;
}

/* Firefox */
body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* IE and Edge */
body {
    -ms-overflow-style: none !important;
    overflow: -moz-scrollbars-none !important;
}

/* 通用滚动条隐藏样式 */
* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

*::-webkit-scrollbar-track {
    background: transparent !important;
    display: none !important;
}

*::-webkit-scrollbar-thumb {
    background: transparent !important;
    display: none !important;
}

/* 主容器 */
.radio-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 60px 20px 80px;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

/* 背景磨砂质感效果 */
.radio-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 0;
}

/* 顶部调频模拟窗口区 */
.fm-window {
    width: 80%;
    max-width: 300px;
    height: 80px;
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fm-window:hover {
    background-color: rgba(35, 35, 35, 0.9);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.2);
    transform: translateY(-2px);
}

.fm-window:active {
    background-color: rgba(40, 40, 40, 0.9);
    box-shadow: 0 3px 15px rgba(255, 107, 107, 0.3);
    transform: translateY(0);
}

.fm-display {
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.9);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.fm-scale {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #333 0%, #666 50%, #333 100%);
    transform: translateY(-50%);
}

.fm-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 20px;
    background-color: #ff6b6b;
    border-radius: 2px;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.7);
    animation: pulse 2s infinite;
}

/* 心电波波动效果 */
.fm-wave {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.fm-wave::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 300%;
    height: 2px;
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(255, 107, 107, 0.2) 20%, 
        rgba(255, 107, 107, 0.8) 50%, 
        rgba(255, 107, 107, 0.2) 80%, 
        transparent 100%);
    transform: translateY(-50%);
    animation: wave 2s linear infinite;
}

.fm-wave::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 300%;
    height: 2px;
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(107, 179, 255, 0.2) 20%, 
        rgba(107, 179, 255, 0.8) 50%, 
        rgba(107, 179, 255, 0.2) 80%, 
        transparent 100%);
    transform: translateY(-50%) translateY(-10px);
    animation: wave 3s linear infinite 0.5s;
}

/* 调频信号点 */
.fm-signal {
    position: absolute;
    top: 50%;
    left: 20%;
    width: 60%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.fm-signal-point {
    width: 2px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
    animation: signalPulse 1.5s ease-in-out infinite alternate;
}

.fm-signal-point:nth-child(2) {
    animation-delay: 0.2s;
}

.fm-signal-point:nth-child(3) {
    animation-delay: 0.4s;
}

.fm-signal-point:nth-child(4) {
    animation-delay: 0.6s;
}

.fm-signal-point:nth-child(5) {
    animation-delay: 0.8s;
}

.fm-signal-point:nth-child(6) {
    animation-delay: 1s;
}

.fm-signal-point:nth-child(7) {
    animation-delay: 1.2s;
}

.fm-signal-point:nth-child(8) {
    animation-delay: 1.4s;
}

.fm-signal-point:nth-child(9) {
    animation-delay: 1.6s;
}

.fm-signal-point:nth-child(10) {
    animation-delay: 1.8s;
}

/* 中部电台名称展示区 */
.radio-info {
    text-align: center;
    margin: 40px 0;
    position: relative;
    z-index: 1;
}

.radio-info h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
    color: #fff;
    letter-spacing: 2px;
}

.radio-info p {
    font-size: 1rem;
    color: #aaa;
    font-weight: 200;
    letter-spacing: 1px;
}

/* 底部播放控制区 */
.play-control {
    margin-top: 20px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.play-button {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,107,0.2) 0%, rgba(255,255,255,0.05) 70%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.2);
}

.play-button:hover {
    background: radial-gradient(circle, rgba(255,107,107,0.3) 0%, rgba(255,255,255,0.1) 70%);
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.play-button:active {
    transform: scale(0.95);
    background: radial-gradient(circle, rgba(255,107,107,0.4) 0%, rgba(255,255,255,0.15) 70%);
    box-shadow: 0 2px 15px rgba(255, 107, 107, 0.4);
}

.play-button.touching {
    transform: scale(0.95);
    background: radial-gradient(circle, rgba(255,107,107,0.4) 0%, rgba(255,255,255,0.15) 70%);
    box-shadow: 0 2px 15px rgba(255, 107, 107, 0.4);
}

/* 播放按钮加载状态 */
.play-button.loading {
    position: relative;
    pointer-events: none;
}

.play-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 音频波形效果 */
.wave-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-button.playing .wave-container {
    opacity: 1;
}

.wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 50%;
    animation: wave-animation 2s ease-in-out infinite;
}

.wave:nth-child(2) {
    animation-delay: 0.3s;
    width: 140%;
    height: 140%;
    border-color: rgba(255, 107, 107, 0.2);
}

.wave:nth-child(3) {
    animation-delay: 0.6s;
    width: 160%;
    height: 160%;
    border-color: rgba(255, 107, 107, 0.1);
}

@keyframes wave-animation {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

.play-icon,
.pause-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 0 20px 32px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 4px;
    opacity: 1;
    transform-origin: center;
}

.pause-icon {
    width: 24px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.pause-icon::before,
.pause-icon::after {
    content: '';
    width: 8px;
    height: 32px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.pause-icon::before {
    margin-right: 8px;
}

/* 播放状态 */
.play-button.playing .play-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) rotate(90deg);
}

.play-button.playing .pause-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 脉冲效果 */
.play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,107,0.1) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
    pointer-events: none;
}

.play-button:active::before {
    transform: scale(1.5);
    opacity: 1;
}

.play-button.touching::before {
    transform: scale(1.5);
    opacity: 1;
}

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 10px rgba(255, 107, 107, 0.7);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.9);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 10px rgba(255, 107, 107, 0.7);
    }
}

/* 心电波波动动画 */
@keyframes wave {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 信号点脉冲动画 */
@keyframes signalPulse {
    0% {
        height: 8px;
        background-color: rgba(255, 255, 255, 0.3);
        transform: translateY(0);
    }
    100% {
        height: 16px;
        background-color: rgba(255, 107, 107, 0.8);
        transform: translateY(-4px);
        box-shadow: 0 0 8px rgba(255, 107, 107, 0.6);
    }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .radio-container {
        padding: 40px 20px 60px;
    }
    
    .fm-window {
        width: 90%;
        height: 70px;
    }
    
    .radio-info h1 {
        font-size: 2rem;
    }
    
    .play-button {
        width: 90px;
        height: 90px;
        box-shadow: 0 3px 15px rgba(255, 107, 107, 0.2);
    }
    
    .play-icon {
        border-width: 18px 0 18px 28px;
        margin-left: 3px;
    }
    
    .pause-icon {
        width: 20px;
        height: 28px;
    }
    
    .pause-icon::before,
    .pause-icon::after {
        width: 7px;
        height: 28px;
    }
    
    .pause-icon::before {
        margin-right: 6px;
    }
    
    .wave {
        width: 110%;
        height: 110%;
    }
    
    .wave:nth-child(2) {
        width: 130%;
        height: 130%;
    }
    
    .wave:nth-child(3) {
        width: 150%;
        height: 150%;
    }
    
    .play-button.loading::after {
        width: 50px;
        height: 50px;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 320px) {
    .radio-info h1 {
        font-size: 1.8rem;
    }
    
    .play-button {
        width: 80px;
        height: 80px;
        box-shadow: 0 2px 12px rgba(255, 107, 107, 0.2);
    }
    
    .play-icon {
        border-width: 16px 0 16px 24px;
        margin-left: 3px;
    }
    
    .pause-icon {
        width: 18px;
        height: 24px;
    }
    
    .pause-icon::before,
    .pause-icon::after {
        width: 6px;
        height: 24px;
    }
    
    .pause-icon::before {
        margin-right: 5px;
    }
    
    .wave {
        width: 105%;
        height: 105%;
    }
    
    .wave:nth-child(2) {
        width: 120%;
        height: 120%;
    }
    
    .wave:nth-child(3) {
        width: 140%;
        height: 140%;
    }
    
    .play-button.loading::after {
        width: 40px;
        height: 40px;
        transform: translate(-50%, -50%);
    }
}

/* 频道选择器样式 */
.channel-selector {
    width: 100%;
    height: 240px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    margin: 20px 0;
    overflow: hidden;
    background: transparent;
    gap: 20px;
}

/* 定时倒计时显示区样式 */
.timer-display-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 10px 0;
    padding: 10px 20px;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timer-display-main:hover {
    background: rgba(35, 35, 35, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.timer-display-main .timer-text {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-display-main .timer-countdown {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* 当前频道显示样式 */
.current-channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.current-channel .channel-name {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: #ffffff;
    text-align: center;
}

.current-channel .channel-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    color: #cccccc;
    text-align: center;
}

/* 频道列表链接样式 */
.channel-list-link {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 107, 107, 0.5);
    border-radius: 25px;
    color: #ff6b6b;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.channel-list-link:hover {
    background: rgba(40, 40, 40, 0.9);
    border-color: rgba(255, 107, 107, 0.8);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
}

.channel-list-link:active {
    background: rgba(50, 50, 50, 0.9);
    box-shadow: 0 3px 15px rgba(255, 107, 107, 0.4);
    transform: translateY(0);
}

/* 频道列表页面样式 */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: #ffffff;
    letter-spacing: 2px;
}

.page-header p {
    font-size: 1rem;
    color: #aaa;
    font-weight: 200;
    letter-spacing: 1px;
}

.channel-list-page {
    width: 85%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
    max-height: 60vh;
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y mandatory;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
}

/* 优化所有可滚动元素的滑动体验 */
.channel-list, .modal-content, .favorite-modal-content {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y mandatory;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
}

/* 隐藏频道列表滚动条 */
.channel-list-page::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
}

.channel-list-page::-webkit-scrollbar-track {
    background: transparent !important;
}

.channel-list-page::-webkit-scrollbar-thumb {
    background: transparent !important;
}

.channel-list-page {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.channel-list-page .channel-item {
    display: flex;
    flex-direction: column;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.channel-list-page .channel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.2), transparent);
    transition: left 0.6s ease;
}

.channel-list-page .channel-item:hover::before {
    left: 100%;
}

.channel-list-page .channel-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.3);
}

.channel-list-page .channel-item:active {
    transform: translateY(0);
    box-shadow: 0 3px 15px rgba(255, 107, 107, 0.3);
}

.channel-list-page .channel-item .channel-name {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 4px;
    color: #ffffff;
    transition: all 0.3s ease;
    display: block;
}

.channel-list-page .channel-item .channel-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    color: #cccccc;
    transition: all 0.3s ease;
    display: block;
}

.page-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

.back-link {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-link:hover {
    background: rgba(40, 40, 40, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.back-link:active {
    background: rgba(50, 50, 50, 0.9);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .channel-selector {
        height: 220px;
        gap: 15px;
    }
    
    .current-channel {
        width: 90%;
        padding: 16px;
    }
    
    .current-channel .channel-name {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }
    
    .current-channel .channel-subtitle {
        font-size: 1.1rem;
    }
    
    .channel-list-link {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
    }
    
    .channel-list-page {
        width: 90%;
        gap: 12px;
        max-height: 55vh;
    }
    
    .channel-list-page .channel-item {
        padding: 14px;
    }
    
    .channel-list-page .channel-item .channel-name {
        font-size: 1.1rem;
    }
    
    .channel-list-page .channel-item .channel-subtitle {
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    .channel-selector {
        height: 200px;
        gap: 12px;
    }
    
    .current-channel {
        padding: 14px;
    }
    
    .current-channel .channel-name {
        font-size: 1.4rem;
    }
    
    .current-channel .channel-subtitle {
        font-size: 1rem;
    }
    
    .channel-list-link {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    .page-header h1 {
        font-size: 1.4rem;
    }
    
    .channel-list-page {
        max-height: 50vh;
    }
    
    .channel-list-page .channel-item {
        padding: 12px;
    }
    
    .channel-list-page .channel-item .channel-name {
        font-size: 1rem;
    }
    
    .channel-list-page .channel-item .channel-subtitle {
        font-size: 0.75rem;
    }
}

/* 频道列表弹窗样式 */
.channel-list-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(40, 40, 40, 0.9) 100%);
    border-radius: 16px;
    padding: 20px;
    width: 85%;
    max-width: 340px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* 隐藏弹窗滚动条 */
.modal-content::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent !important;
}

.modal-content::-webkit-scrollbar-thumb {
    background: transparent !important;
}

.modal-content {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
    width: 100%;
}

.header-actions .search-container {
    flex: 1;
    max-width: 280px;
    margin: 0;
}

.modal-header h1 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: #ffffff;
    letter-spacing: 1px;
}

/* 搜索框样式 */
.search-container {
    margin: 10px 0 15px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(35, 35, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 300;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-input::placeholder {
    color: #aaa;
    font-weight: 200;
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
    background: rgba(40, 40, 40, 0.9);
}

.close-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* 收藏按钮样式 */
.favorite-btn,
.settings-btn {
    background: none;
    border: 1px solid transparent;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.favorite-btn:hover,
.settings-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.favorite-btn.active {
    background-color: rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.5);
    color: #ffffff;
}

.favorite-btn:active,
.settings-btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.favorite-text,
.settings-text {
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* 收藏弹窗样式 */
.favorite-modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(40, 40, 40, 0.95) 100%);
    border-radius: 20px;
    padding: 30px;
    width: 80%;
    max-width: 320px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* 收藏弹窗头部样式 */
.favorite-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    position: relative;
}

.favorite-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    letter-spacing: 1px;
}

/* 定时功能样式 */
.timer-options {
    margin-top: 20px;
}

.timer-label {
    font-size: 1rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 15px;
}

.timer-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.timer-option-btn {
    padding: 10px 15px;
    background: rgba(35, 35, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timer-option-btn:hover {
    background: rgba(45, 45, 45, 0.9);
    border-color: rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
}

.custom-timer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.custom-timer label {
    font-size: 0.9rem;
    color: #ffffff;
    text-align: center;
}

.custom-timer-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

#custom-timer-input {
    padding: 10px 15px 10px 15px;
    background: rgba(35, 35, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.9rem;
    text-align: center;
    flex: 1;
    appearance: none;
    -moz-appearance: textfield;
}

/* 去掉输入框的上下箭头 */
#custom-timer-input::-webkit-inner-spin-button,
#custom-timer-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#custom-timer-input:focus {
    outline: none;
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.input-unit {
    position: absolute;
    right: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    pointer-events: none;
}

.timer-display {
    text-align: center;
    padding: 15px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

#timer-countdown {
    font-size: 1.2rem;
    font-weight: 500;
    color: #ff6b6b;
    margin-left: 5px;
}

#cancel-timer-btn {
    margin-top: 10px;
}

/* 隐藏收藏弹窗滚动条 */
.favorite-modal-content::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
}

.favorite-modal-content::-webkit-scrollbar-track {
    background: transparent !important;
}

.favorite-modal-content::-webkit-scrollbar-thumb {
    background: transparent !important;
}

.favorite-modal-content {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.favorite-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.favorite-icon-large {
    position: relative;
    width: 32px;
    height: 32px;
    background-color: #EE6161;
    transform: rotate(45deg);
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 0 0 15px 0;
    display: block;
    box-shadow: 0 0 15px rgba(238, 97, 97, 0.5);
}

.favorite-icon-large::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: inherit;
    border-radius: 50%;
}

.favorite-icon-large::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background-color: inherit;
    border-radius: 50%;
}

.favorite-icon-large:hover {
    transform: rotate(45deg) scale(1.1);
}

.favorite-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    letter-spacing: 1px;
}

.favorite-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.favorite-modal-body p {
    font-size: 0.9rem;
    color: #ffffff;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

.current-channel-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
}

.current-channel-info .channel-name {
    font-size: 1.2rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 5px;
    display: block;
}

.current-channel-info .channel-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    color: #cccccc;
    display: block;
}

.favorite-modal-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.favorite-btn-primary,
.favorite-btn-secondary {
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

.favorite-btn-primary {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.9) 0%, rgba(255, 87, 87, 1) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.favorite-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, rgba(255, 107, 107, 1) 0%, rgba(255, 77, 77, 1) 100%);
}

.favorite-btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.5);
}

.favorite-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.favorite-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.favorite-btn-secondary:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.15);
}

/* 弹窗动画 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}



/* 空收藏列表提示 */
.empty-favorites {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
    font-size: 1rem;
}

/* 频道项中的收藏图标 */
.channel-item .favorite-icon {
    color: #EE6161;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#favorite-list .channel-item .favorite-icon {
    margin-left: 10px;
}

.channel-list-page .channel-item .favorite-icon,
.channel-list .channel-item:not(#favorite-list .channel-item) .favorite-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    margin-left: 0;
}

.channel-item .favorite-icon:hover {
    transform: scale(1.2);
}

.channel-item .favorite-icon.favorited {
    opacity: 1;
}

.channel-item .favorite-icon:not(.favorited) {
    opacity: 0.5;
}

.channel-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0;
}

/* 频道列表不再需要滚动条样式 */

.channel-item {
    display: flex;
    flex-direction: column;
    background: rgba(35, 35, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    min-height: 80px;
    box-sizing: border-box;
}

#favorite-list .channel-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    min-height: 80px;
    padding: 16px;
}

#favorite-list .channel-item .channel-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    margin-right: 10px;
}

.channel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.2), transparent);
    transition: left 0.6s ease;
}

.channel-item:hover::before {
    left: 100%;
}

.channel-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.3);
}

.channel-item:active {
    transform: translateY(0);
    box-shadow: 0 3px 15px rgba(255, 107, 107, 0.3);
}

.channel-item .channel-name {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 4px;
    color: #ffffff;
    display: block;
}

.channel-item .channel-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    color: #cccccc;
    display: block;
}

/* 弹窗动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}



/* 分页按钮样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-btn {
    background: rgba(35, 35, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #ffffff;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 80px;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(45, 45, 45, 0.9);
    border-color: rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(25, 25, 25, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .modal-content {
        width: 90%;
        padding: 16px;
        max-height: 85vh;
    }
    
    .modal-header h1 {
        font-size: 1.4rem;
    }
    
    .modal-header p {
        font-size: 0.8rem;
    }
    
    .channel-list {
        max-height: 55vh;
        gap: 10px;
    }
    
    .channel-list .channel-item {
        padding: 14px;
    }
    
    .channel-list .channel-item .channel-name {
        font-size: 1.1rem;
    }
    
    .channel-list .channel-item .channel-subtitle {
        font-size: 0.8rem;
    }
    
    .pagination-container {
        gap: 10px;
        margin-top: 15px;
        padding-top: 12px;
    }
    
    .pagination-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        min-width: 70px;
    }
}

@media (max-width: 320px) {
    .modal-content {
        width: 95%;
        padding: 14px;
        max-height: 85vh;
    }
    
    .modal-header h1 {
        font-size: 1.2rem;
    }
    
    .modal-header p {
        font-size: 0.75rem;
    }
    
    .channel-list {
        max-height: 50vh;
        gap: 10px;
    }
    
    .channel-list .channel-item {
        padding: 12px;
    }
    
    .channel-list .channel-item .channel-name {
        font-size: 1rem;
    }
    
    .channel-list .channel-item .channel-subtitle {
        font-size: 0.75rem;
    }
}

/* 设置页面样式 */
.settings-trigger {
    text-align: center;
    padding: 40px;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-trigger h1 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: #ffffff;
    letter-spacing: 2px;
}

.settings-trigger p {
    font-size: 1rem;
    color: #aaa;
    font-weight: 200;
    letter-spacing: 1px;
}

.settings-trigger:hover {
    transform: scale(1.05);
}

.settings-page {
    width: 85%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.settings-section {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 1px;
    margin: 0;
}

.close-settings-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-settings-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* 表单样式 */
.custom-radio-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 400;
    color: #ffffff;
}

.form-input {
    padding: 12px 16px;
    background: rgba(35, 35, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 300;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: #aaa;
    font-weight: 200;
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
    background: rgba(40, 40, 40, 0.9);
}

/* 添加电台按钮 */
.add-radio-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
}

.add-radio-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.add-radio-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

.manage-radio-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
}

.manage-radio-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.manage-radio-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

.system-update-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
}

.system-update-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.system-update-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

/* 自定义电台列表 */
.custom-radio-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-radio-item {
    display: flex;
    flex-direction: column;
    background: rgba(35, 35, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.custom-radio-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.3);
}

.custom-radio-item .custom-radio-name {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 4px;
    color: #ffffff;
}

.custom-radio-item .custom-radio-subtitle {
    font-size: 0.8rem;
    font-weight: 300;
    margin-bottom: 8px;
    color: #cccccc;
}

.custom-radio-item .custom-radio-url {
    font-size: 0.75rem;
    font-weight: 300;
    color: #aaa;
    word-break: break-all;
    margin-bottom: 10px;
}

.custom-radio-item .custom-radio-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.custom-radio-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-radio-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.custom-radio-btn.delete-btn {
    background: rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.5);
}

.custom-radio-btn.delete-btn:hover {
    background: rgba(255, 107, 107, 0.5);
    border-color: rgba(255, 107, 107, 0.8);
}

/* 备份恢复区域样式 */
.backup-restore-section {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.backup-restore-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    justify-content: center;
}

.backup-btn,
.restore-btn {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    min-width: 80px;
}

.backup-btn:hover,
.restore-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.backup-btn:active,
.restore-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.15);
}

.backup-hint {
    font-size: 0.75rem;
    color: #aaa;
    text-align: center;
    font-weight: 300;
    margin-top: 5px;
}

/* 空列表提示 */
.empty-custom-radios {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
    font-size: 1rem;
}

/* 成功提示弹窗 */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.success-modal .modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(40, 40, 40, 0.95) 100%);
    border-radius: 20px;
    padding: 30px;
    width: 80%;
    max-width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.success-modal .modal-header h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: #ffffff;
    text-align: center;
}

.success-modal .modal-body p {
    font-size: 1rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

.success-modal .modal-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.success-modal .close-btn {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.9) 0%, rgba(255, 87, 87, 1) 100%);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-modal .close-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .settings-page {
        width: 90%;
        gap: 20px;
    }
    
    .settings-section {
        padding: 16px;
    }
    
    .settings-section h2 {
        font-size: 1.1rem;
    }
    
    .form-input {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
    
    .add-radio-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .manage-radio-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .system-update-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .custom-radio-item {
        padding: 14px;
    }
    
    .custom-radio-item .custom-radio-name {
        font-size: 1rem;
    }
    
    .custom-radio-item .custom-radio-subtitle {
        font-size: 0.75rem;
    }
    
    .custom-radio-item .custom-radio-url {
        font-size: 0.7rem;
    }
    
    /* 备份恢复按钮响应式 */
    .backup-restore-section {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .backup-restore-buttons {
        gap: 6px;
    }
    
    .backup-btn,
    .restore-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .backup-hint {
        font-size: 0.65rem;
    }
}

@media (max-width: 320px) {
    .settings-section h2 {
        font-size: 1rem;
    }
    
    .form-input {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .add-radio-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .manage-radio-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .system-update-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}