/* 字符串转换器样式 */
.tool-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.input-section, .output-section {
    margin-bottom: 20px;
}

.input-section label, .output-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

/* 代码显示区域特定样式 */
.code-display {
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    min-height: 200px;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    resize: vertical;
    background-color: #fff;
}

textarea:focus {
    border-color: #4a6ee0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 110, 224, 0.1);
}

.button-section {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

/* 删除特定按钮的样式，使用全局样式 */
/* 
#convert-btn {
    background-color: #3498db;
    color: white;
}

#convert-btn:hover {
    background-color: #2980b9;
}

#clear-btn {
    background-color: #95a5a6;
    color: white;
}

#clear-btn:hover {
    background-color: #7f8c8d;
}

#copy-btn {
    background-color: #2ecc71;
    color: white;
    margin-top: 10px;
}

#copy-btn:hover {
    background-color: #27ae60;
}
*/

/* 保留按钮的位置样式 */
#copy-btn {
    margin-top: 10px;
}

/* Toast 提示样式 */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tool-container {
        padding: 15px;
    }
    
    .button-section {
        flex-wrap: wrap;
    }
    
    button {
        flex: 1;
        min-width: 100px;
    }
}

/* 修复Safari中的user-select问题 */
.btn, label {
    -webkit-user-select: none;
    user-select: none;
}

/* 添加一些额外的样式 */
.output-section {
    margin-bottom: 30px;
}

.output-section:last-child {
    margin-bottom: 0;
} 