/* 繁简体转换工具样式 */
.converter-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* 转换方向选择 */
.direction-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.direction-btn {
    flex: 1;
    max-width: 200px;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.direction-btn:hover {
    border-color: #cbd5e0;
}

.direction-btn.active {
    border-color: #667eea;
    background: #edf2f7;
}

.direction-icon {
    font-size: 24px;
    color: #667eea;
    margin-bottom: 8px;
}

.direction-text {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
}

/* 文本区域 */
.text-areas {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.text-area-wrapper {
    position: relative;
}

.text-area-label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.char-count {
    font-size: 12px;
    color: #718096;
    font-weight: normal;
}

.text-area {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.text-area:focus {
    outline: none;
    border-color: #667eea;
}

.text-area::placeholder {
    color: #cbd5e0;
}

/* 转换按钮 */
.convert-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.convert-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #667eea;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.convert-btn:hover {
    background: #5568d3;
    transform: scale(1.1);
}

.convert-btn:active {
    transform: scale(0.95);
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.action-btn {
    padding: 8px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #4a5568;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.action-btn i {
    margin-right: 5px;
}

/* 快捷示例 */
.examples {
    margin-top: 20px;
}

.examples-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.example-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.example-tag {
    padding: 8px 15px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s;
}

.example-tag:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* 响应式 */
@media (max-width: 768px) {
    .text-areas {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .convert-arrow {
        flex-direction: row;
    }
    
    .convert-btn {
        transform: rotate(90deg);
    }
    
    .direction-selector {
        flex-direction: column;
    }
    
    .direction-btn {
        max-width: 100%;
    }
}