/* 查询页面样式 */
.query-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
    min-height: 600px;
}

.query-input-section {
    display: flex;
    flex-direction: column;
}

.query-input-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.query-input-section textarea {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    resize: none;
    margin-bottom: 15px;
}

.query-input-section textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.query-result-section {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 800px;
}

.query-result-section h2 {
    margin-bottom: 20px;
    color: #333;
    position: sticky;
    top: 0;
    background: white;
    padding-bottom: 10px;
}

.query-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.query-card.card-activated {
    border-left: 5px solid #4CAF50;
}

.query-card.card-notactivated {
    border-left: 5px solid #FFC107;
}

.query-card.card-error {
    border-left: 5px solid #F44336;
}

.query-license {
    background: #f5f5f5;
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.query-license code {
    font-family: 'Courier New', monospace;
    color: #667eea;
    font-weight: 600;
    font-size: 12px;
    word-break: break-all;
}

.query-info {
    padding: 15px;
}

.query-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    gap: 20px;
}

.query-row:last-child {
    border-bottom: none;
}

.query-col {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.query-row label {
    font-weight: 600;
    color: #666;
    min-width: 100px;
    white-space: nowrap;
}

.query-value {
    color: #333;
    flex: 1;
}

.query-value strong {
    color: #667eea;
}

.error-text {
    color: #F44336;
    margin: 0;
    font-size: 14px;
}

/* 批量操作面板 */
.action-panel {
    background: white;
    border-top: 1px solid #ddd;
    padding: 30px;
    margin: 0 30px;
}

.action-panel h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.action-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
}

.action-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.action-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

.action-desc {
    color: #999;
    font-size: 13px;
    margin-bottom: 15px;
}

.action-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.action-input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
}

.action-input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-action {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.btn-action.btn-danger {
    background: #F44336;
    color: white;
    width: 100%;
}

.btn-action.btn-danger:hover {
    background: #da190b;
}

.btn-action.btn-success {
    background: #4CAF50;
    color: white;
}

.btn-action.btn-success:hover {
    background: #45a049;
}

.btn-action.btn-info {
    background: #2196F3;
    color: white;
}

.btn-action.btn-info:hover {
    background: #0b7dda;
}

.action-card .alert {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
}

@media (max-width: 1200px) {
    .query-page {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .query-result-section {
        max-height: 600px;
    }
}

@media (max-width: 768px) {
    .query-page {
        padding: 15px;
        gap: 15px;
    }

    .action-cards {
        grid-template-columns: 1fr;
    }

    .action-input-group {
        flex-direction: column;
    }
}