/* 端口扫描工具专用样式 */

.port-info-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.port-info-section h2 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.port-table {
    overflow-x: auto;
    margin-top: 1rem;
}

.port-table table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.port-table th,
.port-table td {
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
    border: 1px solid #dee2e6;
}

.port-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #495057;
    border: 1px solid #dee2e6;
}

.port-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.port-table tr:hover {
    background-color: #f8f9fa;
}

/* 端口扫描结果样式 */
.port-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.port-result:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.port-number {
    font-weight: bold;
    font-size: 1.1rem;
    color: #1e3c72;
    min-width: 80px;
}

.status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.port-open .status {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.port-closed .status {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.service {
    color: #666;
    font-size: 0.9rem;
    flex: 1;
    text-align: right;
    padding-left: 1rem;
}

.target-info {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1e3c72;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #1e3c72;
}

.port-results {
    margin-top: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .port-table {
        font-size: 0.875rem;
    }
    
    .port-table th,
    .port-table td {
        padding: 0.5rem;
    }
    
    .port-result {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .service {
        text-align: left;
    }
}