/* 文本处理工具样式 */

/* 工具标题区 */
.tool-header {
    background-color: #ebf5fb;
    padding: 40px 0;
    border-bottom: 1px solid #d6eaf8;
}

.tool-desc {
    font-size: 18px;
    color: #34495e;
    margin-top: 10px;
}

/* 工具主体区 */
.tool-body {
    padding: 40px 0;
}

.tool-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.tool-sidebar {
    flex: 0 0 280px;
}

.tool-workspace {
    flex: 1;
    min-width: 300px;
}

.tool-actions {
    list-style: none;
}

.tool-actions li {
    margin-bottom: 10px;
}

.action-btn {
    width: 100%;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.action-btn:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.text-input {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    resize: vertical;
}

.result-container {
    min-height: 200px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 16px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.result-placeholder {
    color: #999;
    font-style: italic;
}

.copy-btn {
    margin-top: 15px;
}

/* 使用说明区 */
.tool-guide {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.guide-content {
    margin-top: 20px;
}

.guide-item {
    margin-bottom: 30px;
}

.guide-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.guide-item p {
    margin-bottom: 10px;
    color: #34495e;
}

.guide-item ul {
    margin-left: 20px;
    color: #34495e;
}

.guide-item ul li {
    margin-bottom: 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tool-container {
        flex-direction: column;
    }
    
    .tool-sidebar {
        order: -1;
        flex: none;
        width: 100%;
    }
}
