/* @🍮 */
/* @🍮 API Switch and Slider Styles */
.param-group { background: #fff8fa; border-radius: 10px; padding: 12px; border: 1px solid #fce4ec; margin-bottom: 20px;}
.param-header { display: flex; justify-content: space-between; align-items: center; }
.param-header label { margin-bottom: 0; }
.switch { position: relative; display: inline-block; width: 40px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
.switch .slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 2px; bottom: 2px; background-color: white; transition: .4s; }
.switch input:checked + .slider { background-color: var(--primary-color); }
.switch input:checked + .slider:before { transform: translateX(20px); }
.switch .slider.round { border-radius: 20px; }
.switch .slider.round:before { border-radius: 50%; }
.param-slider-container { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.param-slider-container input[type=range] { flex-grow: 1; -webkit-appearance: none; height: 6px; background: #f0f0f0; border-radius: 3px; outline: none; padding: 0; border: none; }
.param-slider-container input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--primary-color); cursor: pointer; }
.param-slider-container span { font-size: 14px; color: var(--text-color); min-width: 24px; text-align: right; }

/* @🍮 引用消息样式 */
#quote-preview-bar {
    display: none;
    align-items: center;
    padding: 8px 15px;
    background-color: rgba(240, 240, 240, 0.95);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--primary-color);
    font-size: 13px;
    color: #555;
    position: relative;
    border-top: 1px solid #eee;
}
#quote-preview-bar .quote-content {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#quote-preview-bar .close-quote-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
    margin-left: 10px;
}
.bubble-quote {
    background-color: rgba(0, 0, 0, 0.05);
    border-left: 3px solid rgba(0, 0, 0, 0.2);
    padding: 5px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.3;
}
.message-wrapper.sent .bubble-quote {
    background-color: rgba(255, 255, 255, 0.2);
    border-left: 3px solid rgba(255, 255, 255, 0.5);
}
.quote-sender {
    font-weight: bold;
    margin-bottom: 2px;
    font-size: 11px;
    opacity: 0.8;
}
.quote-text {
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.quote-reply-content {
    word-wrap: break-word;
}


/* @🍮 夜间模式：一键让整个页面变成护眼的深色 */
body.night-mode {
    filter: invert(1) hue-rotate(180deg);
}
/* @🍮 让照片、头像、图标、表情包保持原来的颜色，不被染坏 */
body.night-mode img {
    filter: invert(1) hue-rotate(180deg);
}
