/* ========== 文字颜色对比度修复 ========== */

/* 修复浅色背景上的白色文字问题 */

/* 1. 修复按钮内白色文字与浅色背景的对比度问题 */
.action-btn {
    /* 确保未悬停状态下文字颜色有足够对比度 */
    color: #007bff !important;
    background: rgba(255, 255, 255, 0.95);
}

.action-btn:hover,
.action-btn:focus {
    /* 悬停状态下使用白色文字和彩色背景 */
    background: #007bff !important;
    color: white !important;
}

/* 2. 修复不同颜色按钮的对比度 */
.action-btn#comment-btn {
    color: #28a745 !important;
    background: rgba(255, 255, 255, 0.95);
}

.action-btn#comment-btn:hover,
.action-btn#comment-btn:focus {
    background: #28a745 !important;
    color: white !important;
}

.action-btn#stats-btn {
    color: #856404 !important; /* 使用更深的黄色以提高对比度 */
    background: rgba(255, 255, 255, 0.95);
}

.action-btn#stats-btn:hover,
.action-btn#stats-btn:focus {
    background: #ffc107 !important;
    color: #212529 !important; /* 深色文字在黄色背景上 */
}

.action-btn#share-btn {
    color: #dc3545 !important;
    background: rgba(255, 255, 255, 0.95);
}

.action-btn#share-btn:hover,
.action-btn#share-btn:focus {
    background: #dc3545 !important;
    color: white !important;
}

/* 3. 修复移动端浮动菜单按钮的对比度 */
.mobile-menu-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #007bff !important;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:active {
    background: #007bff !important;
    color: white !important;
}

.mobile-menu-btn.comments-btn {
    color: #28a745 !important;
}

.mobile-menu-btn.comments-btn:hover,
.mobile-menu-btn.comments-btn:active {
    background: #28a745 !important;
    color: white !important;
}

.mobile-menu-btn.stats-btn {
    color: #856404 !important; /* 深色黄色 */
}

.mobile-menu-btn.stats-btn:hover,
.mobile-menu-btn.stats-btn:active {
    background: #ffc107 !important;
    color: #212529 !important; /* 深色文字 */
}

.mobile-menu-btn.share-btn {
    color: #dc3545 !important;
}

.mobile-menu-btn.share-btn:hover,
.mobile-menu-btn.share-btn:active {
    background: #dc3545 !important;
    color: white !important;
}

/* 4. 修复工具栏按钮的对比度 */
.tool-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important; /* 深色文字确保对比度 */
    border: 2px solid #007bff;
}

.tool-btn:hover,
.tool-btn:focus {
    background: #007bff !important;
    color: white !important;
}

.tool-btn.active {
    background: #007bff !important;
    color: white !important;
}

/* 5. 修复进度条文字颜色 */
.progress-container label {
    color: #333 !important; /* 深色文字确保在所有背景上可见 */
    font-weight: 600;
}

.progress-text {
    color: #333 !important;
    font-weight: 700;
}

/* 6. 修复状态栏文字颜色 */
.status-bar {
    color: #fff !important; /* 白色文字在深色背景上 */
}

.status-bar-simplified .anger-meter {
    color: #ff4757 !important; /* 红色怒火值 */
    font-weight: 700;
}

/* 7. 修复场景描述文字颜色 */
.scene-description h2 {
    color: #333 !important;
    font-weight: 700;
}

.scene-description p {
    color: #666 !important;
    font-weight: 500;
}

/* 8. 修复模态框文字颜色 */
.mobile-modal-content {
    background: white !important;
    color: #333 !important;
}

.mobile-modal-title {
    color: #333 !important;
}

.mobile-modal-close {
    color: #6c757d !important;
    background: #f8f9fa !important;
}

.mobile-modal-close:hover {
    color: #495057 !important;
    background: #e9ecef !important;
}

/* 9. 修复留言列表文字颜色 */
.comment-item {
    background: #f8f9fa !important;
    color: #333 !important;
}

.comment-item .comment-header {
    color: #666 !important;
}

.comment-item .comment-content {
    color: #333 !important;
}

/* 10. 修复点击提示文字颜色 */
.click-hint {
    color: #666 !important;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* 11. 修复随机事件文字颜色 */
.random-event {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
    border: 2px solid #007bff;
}

.random-event .event-title {
    color: #007bff !important;
    font-weight: 700;
}

.random-event .event-description {
    color: #666 !important;
}

/* 12. 修复通知文字颜色 */
.notification {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
    border-left: 4px solid #007bff;
}

.notification.success {
    border-left-color: #28a745;
}

.notification.warning {
    border-left-color: #ffc107;
    color: #856404 !important;
}

.notification.error {
    border-left-color: #dc3545;
}

/* 13. 确保所有按钮文字可见性 */
button, .btn {
    color: #333 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #007bff;
    font-weight: 500;
}

button:hover, .btn:hover {
    background: #007bff !important;
    color: white !important;
}

button:focus, .btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* 14. 响应式对比度调整 */
@media (max-width: 768px) {
    .action-btn {
        color: #007bff !important;
        background: rgba(255, 255, 255, 0.98) !important;
        font-weight: 600;
    }
    
    .tool-btn {
        color: #333 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        font-weight: 600;
    }
    
    .scene-description p {
        color: #555 !important;
        font-weight: 500;
    }
}

/* 15. 高对比度模式支持 */
@media (prefers-contrast: high) {
    .action-btn {
        color: #000 !important;
        background: white !important;
        border-width: 3px;
    }
    
    .tool-btn {
        color: #000 !important;
        background: white !important;
        border-width: 3px;
    }
    
    .progress-container label,
    .progress-text {
        color: #000 !important;
        font-weight: 700;
    }
}

/* 16. 维权数据模态框文字颜色修复 */
#stats-modal .modal-content {
    color: white !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

#stats-modal .modal-header {
    flex-shrink: 0 !important;
}

#stats-modal .modal-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 20px !important;
    -webkit-overflow-scrolling: touch !important;
}

#stats-modal .modal-header h3 {
    color: white !important;
    font-weight: 700;
}

#stats-modal .modal-close {
    color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#stats-modal .modal-close:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

/* 统计内容样式 */
#stats-modal .stats-content {
    color: white !important;
    min-height: 300px !important;
}

#stats-modal .stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

#stats-modal .stat-item {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#stats-modal .stat-item h4 {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

#stats-modal .stat-number {
    color: #ff4757 !important; /* 红色数字 */
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 77, 87, 0.3);
}

#stats-modal .scene-stats {
    margin-top: 24px;
}

#stats-modal .scene-stats h4 {
    color: white !important;
    font-size: 1.1rem;
    margin-bottom: 16px;
    font-weight: 600;
}

#stats-modal .scene-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#stats-modal .scene-name {
    color: white !important;
    font-weight: 500;
    flex: 1;
}

#stats-modal .scene-stat-number {
    color: #ff4757 !important; /* 场景统计数字也改为红色 */
    font-weight: 600;
    margin-left: 12px;
}

#stats-modal .scene-percentage {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
    margin-left: 8px;
}

#stats-modal .loading-text {
    color: white !important;
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
}

#stats-modal .error-text {
    color: #ff6b6b !important;
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 统一使用PC端模态框样式 */
    #stats-modal .modal-content,
    #comment-modal .modal-content,
    #share-modal .modal-content {
        max-height: 90vh !important;
        margin: 10px !important;
        width: 95% !important;
        max-width: 400px !important;
    }
    
    #stats-modal .modal-body,
    #comment-modal .modal-body,
    #share-modal .modal-body {
        padding: 15px !important;
        max-height: 65vh !important;
    }
    
    #stats-modal .stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    #stats-modal .stat-item {
        padding: 12px;
    }
    
    #stats-modal .stat-number {
        font-size: 1.5rem;
    }
    
    #stats-modal .scene-stat-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }
    
    #stats-modal .scene-name {
        margin-bottom: 4px;
        font-size: 0.9rem;
    }
    
    #stats-modal .scene-stat-number,
    #stats-modal .scene-percentage {
        margin-left: 0;
        font-size: 0.85rem;
    }
    
    #comment-modal .modal-footer {
        flex-direction: column;
        gap: 8px;
        padding: 15px !important;
    }
    
    #comment-modal .submit-btn,
    #comment-modal .cancel-btn {
        width: 100%;
        padding: 14px;
    }
    
    #comment-modal #comment-input {
        min-height: 100px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    /* 确保移动端所有模态框都有白色文字 */
    .modal-content {
        color: white !important;
    }
    
    .modal-header h3 {
        color: white !important;
    }
    
    .modal-close {
        color: rgba(255, 255, 255, 0.8) !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    .modal-body {
        color: white !important;
    }
    
    /* 禁用移动端专用元素 */
    .mobile-floating-menu,
    .mobile-fullscreen-modal {
        display: none !important;
    }
}

/* 17. 分享弹窗文字颜色修复 */
#share-modal .modal-content {
    color: white !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

#share-modal .modal-header {
    flex-shrink: 0 !important;
}

#share-modal .modal-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 20px !important;
    -webkit-overflow-scrolling: touch !important;
}

#share-modal .modal-header h3 {
    color: white !important;
    font-weight: 700;
}

#share-modal .modal-close {
    color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#share-modal .modal-close:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

#share-modal .share-content {
    color: white !important;
}

#share-modal .share-text {
    color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

#share-modal .share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#share-modal .share-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#share-modal .share-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* 18. 我要吐槽模态框文字颜色修复 */
#comment-modal .modal-content {
    color: white !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

#comment-modal .modal-header {
    flex-shrink: 0 !important;
}

#comment-modal .modal-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 20px !important;
    -webkit-overflow-scrolling: touch !important;
    color: white !important;
}

#comment-modal .modal-footer {
    flex-shrink: 0 !important;
    padding: 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#comment-modal .modal-header h3 {
    color: white !important;
    font-weight: 700;
}

#comment-modal .modal-close {
    color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#comment-modal .modal-close:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

#comment-modal #comment-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    font-size: 1rem;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

#comment-modal #comment-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

#comment-modal #comment-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

#comment-modal .char-count {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
    text-align: right;
    margin-top: 8px;
}

#comment-modal .notice {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem;
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#comment-modal .modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

#comment-modal .submit-btn {
    background: #28a745 !important;
    color: white !important;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#comment-modal .submit-btn:hover {
    background: #218838 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

#comment-modal .cancel-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#comment-modal .cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    #comment-modal .modal-content {
        max-height: 90vh !important;
        margin: 20px 10px !important;
    }
    
    #comment-modal .modal-body {
        padding: 15px !important;
    }
    
    #comment-modal .modal-footer {
        flex-direction: column;
        gap: 8px;
        padding: 15px !important;
    }
    
    #comment-modal .submit-btn,
    #comment-modal .cancel-btn {
        width: 100%;
        padding: 14px;
    }
    
    #comment-modal #comment-input {
        min-height: 100px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    /* 修复移动端毛玻璃工具栏按钮文字颜色 */
    .tools-bar {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    .tool-btn {
        background: transparent !important;
        color: #007bff !important;
        border: 2px solid #007bff !important;
        transition: all 0.3s ease !important;
    }
    
    .tool-btn:hover,
    .tool-btn:active,
    .tool-btn.active {
        background: #007bff !important;
        color: white !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
    }
    
    .tool-btn i {
        color: inherit !important;
    }
    
    .tool-btn span {
        color: inherit !important;
    }
    
    /* 修复维权数据模态框的滚动问题 */
    #stats-modal .modal-content {
        max-height: 90vh !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    #stats-modal .modal-header {
        flex-shrink: 0 !important;
    }
    
    #stats-modal .modal-body {
        flex: 1 !important;
        overflow-y: auto !important;
        max-height: calc(90vh - 120px) !important;
        padding: 15px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    #stats-modal .modal-footer {
        flex-shrink: 0 !important;
    }
    
    /* 确保场景统计列表可滚动 */
    #stats-modal .scene-stats {
        max-height: none !important;
        overflow: visible !important;
    }
    
    #stats-modal .scene-stat-item {
        margin-bottom: 8px !important;
        padding: 10px !important;
        border-radius: 6px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    /* 修复移动端场景进度条显示 */
    #stats-modal .scene-progress {
        flex: 2 !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    #stats-modal .scene-bar {
        flex: 1 !important;
        height: 8px !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border-radius: 4px !important;
        overflow: hidden !important;
    }
    
    #stats-modal .scene-fill {
        height: 100% !important;
        background: linear-gradient(90deg, #ff4757, #ff6b7a) !important;
        transition: width 0.5s ease !important;
    }
    
    #stats-modal .scene-percent {
        font-size: 0.9rem !important;
        color: rgba(255, 255, 255, 0.8) !important;
        min-width: 40px !important;
    }
    
    #stats-modal .scene-count {
        font-size: 0.9rem !important;
        color: #ff4757 !important;
        min-width: 60px !important;
        text-align: right !important;
    }
    
    /* 分享图片样式优化 */
    #share-modal .share-image {
        text-align: center;
        margin: 20px 0;
        max-height: 400px;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
    
    #share-modal .share-image canvas {
        max-width: 100%;
        max-height: 400px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    #share-modal .share-text {
        margin: 20px 0;
    }
    
    #share-modal .share-text textarea {
        width: 100%;
        min-height: 80px;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        font-size: 14px;
        resize: vertical;
    }
    
    #share-modal .share-text textarea:focus {
        outline: none;
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
    }
    
    #share-modal .share-buttons {
        display: flex;
        gap: 12px;
        justify-content: center;
        margin-top: 20px;
    }
    
    #share-modal .share-btn {
        flex: 1;
        padding: 12px 20px;
        border: none;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    #share-modal .share-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }
    
    #share-modal .share-btn i {
        font-size: 16px;
    }
    
    /* 强制修复移动端所有统计数字为红色 */
    @media (max-width: 768px) {
        .modal-content .stat-number,
        #stats-modal .stat-number {
            color: #ff4757 !important;
            font-size: 1.4rem !important;
        }
        
        .modal-content .scene-stat-number,
        #stats-modal .scene-stat-number {
            color: #ff4757 !important;
        }
        
        .modal-content .scene-count,
        #stats-modal .scene-count {
            color: #ff4757 !important;
        }
        
        /* 强制显示进度条 */
        .modal-content .scene-progress,
        #stats-modal .scene-progress {
            display: flex !important;
            align-items: center !important;
            gap: 8px !important;
            width: 100% !important;
        }
        
        .modal-content .scene-bar,
        #stats-modal .scene-bar {
            flex: 1 !important;
            height: 6px !important;
            background: rgba(255, 255, 255, 0.2) !important;
            border-radius: 3px !important;
            overflow: hidden !important;
            display: block !important;
            visibility: visible !important;
        }
        
        .modal-content .scene-fill,
        #stats-modal .scene-fill {
            height: 100% !important;
            background: linear-gradient(90deg, #ff4757, #ff6b7a) !important;
            transition: width 0.5s ease !important;
            display: block !important;
            visibility: visible !important;
        }
        
        .modal-content .scene-percent,
        #stats-modal .scene-percent {
            font-size: 0.8rem !important;
            color: rgba(255, 255, 255, 0.8) !important;
            min-width: 35px !important;
        }
    }
}

/* 分享模态框文本输入框样式增强 - 确保移动端可见性 */
#share-content {
    background-color: rgba(0, 0, 0, 0.7) !important; /* 深灰色半透明背景 */
    color: #ffffff !important; /* 白色文字 */
    border: 2px solid #ff4757 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    min-height: 80px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    resize: vertical !important;
}

#share-content:focus {
    outline: none !important;
    border-color: #ff6b81 !important;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.3) !important;
    background-color: rgba(0, 0, 0, 0.8) !important; /* 聚焦时背景更深 */
}

#share-content::placeholder {
    color: rgba(255, 255, 255, 0.6) !important; /* 占位符文字 */
}

/* 移动端分享模态框样式增强 */
@media (max-width: 768px) {
    #share-modal #share-content {
        background-color: rgba(0, 0, 0, 0.85) !important; /* 移动端背景更深 */
        color: #ffffff !important;
        font-size: 16px !important; /* 移动端字体稍大 */
        padding: 16px !important;
        min-height: 100px !important;
        border: 2px solid #ff4757 !important;
        border-radius: 10px !important;
    }
    
    #share-modal #share-content:focus {
        background-color: rgba(0, 0, 0, 0.9) !important;
        border-color: #ff6b81 !important;
        box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.4) !important;
    }
    
    #share-modal #share-content::placeholder {
        color: rgba(255, 255, 255, 0.7) !important;
    }
}

/* 文本控制按钮样式 */
.text-controls {
    margin-top: 10px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.text-controls .char-count {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 12px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
}

.text-controls .regenerate-btn,
.text-controls .filter-btn {
    background: rgba(255, 71, 87, 0.8) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.text-controls .regenerate-btn:hover,
.text-controls .filter-btn:hover {
    background: rgba(255, 71, 87, 1) !important;
}

@media (max-width: 768px) {
    .text-controls {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .text-controls .regenerate-btn,
    .text-controls .filter-btn {
        width: 100% !important;
        margin: 2px 0 !important;
        padding: 10px !important;
        font-size: 14px !important;
    }
}
