/* Shell运算符页面专用样式 */
.operator-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.operator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.operator-type-card {
    border-top: 4px solid;
    height: 100%;
}

.arithmetic-operator { border-top-color: #0d6efd; }
.relational-operator { border-top-color: #198754; }
.logical-operator { border-top-color: #ffc107; }
.string-operator { border-top-color: #dc3545; }
.file-operator { border-top-color: #6f42c1; }

.operator-table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
}

.operator-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem;
    text-align: left;
}

.operator-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.operator-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.operator-badge {
    font-family: 'Courier New', monospace;
    background-color: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: bold;
}

.operator-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.example-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .example-grid {
        grid-template-columns: 1fr;
    }
}

.comparison-demo {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.comparison-result {
    font-family: 'Courier New', monospace;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border-radius: 0.25rem;
}

.result-true {
    background-color: #d1edff;
    border-left: 4px solid var(--success-color);
}

.result-false {
    background-color: #ffeaea;
    border-left: 4px solid var(--danger-color);
}
