.container {
    max-width: 1340px;
    margin: 0 auto;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
}

h1 {
    text-align: center;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 2.2rem;
}

.description {
    text-align: center;
    margin-bottom: 30px;
    color: #7f8c8d;
    font-size: 1.1rem;
}

.content-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.input-section,
.output-section {
    flex: 1;
}

.control-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-group input {
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.control-group input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.control-group .hint {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

h2 {
    margin-bottom: 15px;
    color: #3498db;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}

h2 i {
    margin-right: 10px;
    font-size: 1.5rem;
}

textarea {
    width: -webkit-fill-available;
    width: -moz-available;
    /*兼容火狐浏览器*/
    height: 400px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s;
}

textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

button {
    padding: 12px 24px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(0);
}

button.secondary {
    background-color: #2ecc71;
}

button.secondary:hover {
    background-color: #27ae60;
}

button.tertiary.danger {
    background: #ff1100;
}

button.tertiary {
    background-color: #95a5a6;
}

button.tertiary:hover {
    background-color: #7f8c8d;
}

.example {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.example h3 {
    margin-bottom: 10px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.example pre {
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 14px;
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 10px 15px;
    background-color: #2ecc71;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(-20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.error {
    background-color: #e74c3c;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #7f8c8d;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }

    textarea {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .buttons {
        flex-direction: column;
    }

    button {
        width: 100%;
    }
}