/* 全局样式 */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-attachment: fixed;
}

/* 容器样式 */
.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 420px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

/* 标题样式 */
.container h1 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #4CAF50;
    font-weight: bold;
}

/* 输入框样式 */
.input-area, .output-area {
    margin-bottom: 15px;
    width: 100%;
}

textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: none;
    font-size: 15px;
    font-family: 'Courier New', monospace;
    transition: border-color 0.3s;
}

textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

/* 按钮样式 */
button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #45a049;
    transform: translateY(-3px);
}

/* 提示信息样式 */
.error-message {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

.success-message {
    color: green;
    font-size: 14px;
    margin-top: 10px;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
