/* XML格式化工具页面特定样式 */
.card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid var(--header-border);
    transition: background 0.3s, border 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--text-color);
}

textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--input-text);
    font-family: 'Consolas', 'Courier New', monospace;
    resize: vertical;
    transition: background 0.3s, border 0.3s, color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #00dbde;
}

.control-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(90deg, #00dbde, #fc00ff);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.code-container {
    background: var(--code-bg);
    border-radius: 10px;
    overflow-x: auto;
    border: 1px solid var(--header-border);
    transition: background 0.3s, border 0.3s;
    min-height: 200px;
}

pre {
    color: var(--code-text);
    line-height: 1.6;
    padding: 1rem;
    margin: 0;
    transition: color 0.3s;
    font-family: 'Consolas', 'Courier New', monospace;
    white-space: pre-wrap;
}

ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .control-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-group > * {
        width: 100%;
    }
    
    .btn {
        padding: 1rem;
    }
}