.knote {font-size:13px;color:gray;font-style: italic;}
.underline {text-decoration-line: underline;text-underline-offset:0.4em;}
.ul-black {text-decoration-color: black;}
.ul-blue {text-decoration-color: blue;}
.ul-red {text-decoration-color: red;}
.ul-green {text-decoration-color: green;}
.ul-solid {text-decoration-style: solid;}
.ul-wavy {text-decoration-style: wavy;}
.ul-dotted {text-decoration-style: dotted;}
.yj-nav {font-size:13px;color:gray;padding-bottom:20px}
.yj-a {font-size:13px;text-decoration: none;color:#4a5568}

.reader-controls {
    position: sticky;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    z-index: 1000;
    padding-bottom: 10px;
}

.reader-buttons {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* 改为 nowrap 确保元素不换行 */
    gap: 8px; /* 添加间距 */
}

.voice-controls {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* 防止压缩 */
}

.voice-selector {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 3px;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 8px;
    color: #B5B5B5;
    min-width: 90px; /* 设置最小宽度 */
    height: 32px; /* 与按钮高度一致 */
    box-sizing: border-box;
}

.voice-selector option {
    background: #2c3e50;
    font-size: 0.8rem;
}

.rate-control {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.rate-control i {
    font-size: 0.8rem;
    opacity: 0.8;
}

.rate-control input[type="range"] {
    width: 70px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    outline: none;
}

#rateValue {
    font-size: 0.75rem;
    min-width: 25px;
    text-align: center;
}

.reader-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    height: 32px;
    white-space: nowrap;
    color: #B5B5B5;
    flex-shrink: 0; /* 防止按钮被压缩 */
}

.reader-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

.reader-btn i {
    margin-right: 4px;
    font-size: 0.8rem;
}

.reader-status {
    font-size: 0.75rem;
    opacity: 0.8;
    white-space: nowrap;
    padding: 4px 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    color: #B5B5B5;
    margin-left: 8px; /* 添加左边距 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .reader-controls {
        justify-content: center;
        flex-wrap: nowrap; /* 移动端不换行 */
    }
    
    .reader-buttons {
        justify-content: center;
        width: auto; /* 改为自动宽度 */
        flex-wrap: nowrap; /* 确保不换行 */
    }
    
    .voice-controls {
        width: auto; /* 改为自动宽度 */
        justify-content: center;
        margin-right: 0;
    }
    
    .voice-selector {
        min-width: 80px; /* 移动端稍小一点 */
        font-size: 0.75rem;
        padding: 4px 6px;
    }
    
    .reader-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .reader-status {
        font-size: 0.7rem;
        padding: 4px 6px;
    }
}

@media (max-width: 480px) {
    .reader-controls {
        justify-content: center;
        flex-wrap: nowrap;
    }
    
    .voice-controls {
        flex-wrap: nowrap; /* 小屏幕也不换行 */
    }
    
    .voice-selector {
        min-width: 70px;
        font-size: 0.7rem;
    }
    
    .reader-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .reader-buttons {
        gap: 6px; /* 小屏幕间距更小 */
    }
}

/* 超小屏幕适配 */
@media (max-width: 360px) {
    .reader-buttons {
        gap: 4px;
    }
    
    .voice-selector {
        min-width: 65px;
        font-size: 0.65rem;
    }
    
    .reader-btn {
        padding: 4px 6px;
        font-size: 0.65rem;
    }
    
    .reader-btn i {
        margin-right: 2px;
        font-size: 0.65rem;
    }
}
