/* 文本编码器工具样式 */
.text-encoder-tool {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* 文本编辑器样式 */
.encoder-textarea {
    border: none;
    border-radius: 0;
    resize: none;
    font-size: 14px;
    line-height: 1.6;
    background: #fafafa;
}

.encoder-textarea:focus {
    box-shadow: none;
    background: #ffffff;
}

/* 工具栏样式 */
.text-toolbar {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px 6px 0 0;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.text-toolbar .btn {
    min-width: 80px;
}

.text-toolbar-divider {
    width: 1px;
    height: 24px;
    background: #dee2e6;
    margin: 0 0.5rem;
}

/* 状态栏样式 */
.text-status-bar {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* 统计项样式 */
.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.stat-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #495057;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* 编码信息样式 */
.encoding-info {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .text-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .text-toolbar-divider {
        width: auto;
        height: 1px;
        margin: 0.5rem 0;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .encoder-textarea {
        font-size: 13px;
    }

    .stat-value {
        font-size: 1.25rem;
    }
}

/* 深色主题支持 */
@media (prefers-color-scheme: dark) {
    .text-encoder-tool {
        background: #1a1a1a;
        color: #e9ecef;
    }

    .encoder-textarea {
        background: #2d3748;
        color: #e9ecef;
    }

    .text-toolbar {
        background: #2d3748;
        border-color: #4a5568;
    }

    .text-status-bar {
        background: #2d3748;
        color: #a0aec0;
    }

    .stat-item {
        background: #2d3748;
        border-color: #4a5568;
    }

    .stat-item:hover {
        background: #4a5568;
    }
}

/* 渐变文本效果 */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}