.loader {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
}

        /* 端口网格布局 */
        .port-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 10px;
            margin-top: 20px;
        }
        
        /* 端口项样式 - 桌面端 */
        .port-item {
            padding: 12px;
            border-radius: 6px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            background-color: #fff;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .port-number {
            font-weight: bold;
            font-size: 1.1rem;
        }
        
        .port-status {
            font-size: 1.3rem;
            margin: 5px 0;
        }
        
        .port-latency {
            font-size: 0.85rem;
            color: #666;
        }
        
        /* 状态颜色 */
        .port-open {
            background-color: #d4edda;
            border-left: 4px solid #28a745;
        }
        .port-closed {
            background-color: #f8d7da;
            border-left: 4px solid #dc3545;
        }
        .port-error {
            background-color: #fff3cd;
            border-left: 4px solid #ffc107;
        }
        /* 电脑端专属样式 - 仅影响宽度≥768px的设备 */
@media (min-width: 768px) {
    .port-item {
        height: 100px; /* 固定高度 */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 15px;
    }
    
    .port-info {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        height: 50%; /* 占上半部分 */
    }
    
    .port-number {
        font-size: 1.8rem !important; /* 大字号 */
        font-weight: 700;
        line-height: 1;
        color: #333; /* 深色更醒目 */
        flex-grow: 1; /* 占满剩余空间 */
    }
    
    .port-status {
        font-size: 1.5rem !important; /* 保持较小 */
        margin-left: 10px;
    }
    
    .port-latency {
        height: 50%; /* 占下半部分 */
        display: flex;
        align-items: flex-end;
        justify-content: center;
        font-size: 1rem;
        font-weight: 600;
        color: #555;
    }
    
    /* 状态色块调整 */
    .port-open {
        background: linear-gradient(to bottom, #e8f5e9 0%, #c8e6c9 100%);
    }
    .port-closed {
        background: linear-gradient(to bottom, #ffebee 0%, #ffcdd2 100%);
    }
    .port-error {
        background: linear-gradient(to bottom, #fff8e1 0%, #ffecb3 100%);
    }
}
.port-number {
    font-family: 'Georgia','Verdana', 'KaiTi', cursive;  
    font-weight: bold;
    color: #333;
}
        /* 移动端优化 */
        @media (max-width: 768px) {
            .port-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }
            
            .port-item {
                flex-direction: row;
                justify-content: space-between;
                padding: 10px 12px;
                align-items: center;
            }
            
            .port-info {
                display: flex;
                align-items: center;
                gap: 8px;
            }
            
            .port-number {
                font-size: 1rem;
            }
            
            .port-status {
                font-size: 1.1rem;
                margin: 0;
            }
            
            .port-latency {
                text-align: right;
                font-size: 0.8rem;
            }
        }
        
        /* 状态容器 */
        .status-container {
            margin-top: 20px;
            padding: 15px;
            border-radius: 8px;
            background-color: #f8f9fa;
            grid-column: 1 / -1;
            text-align: center;
        }
        
        .status-row {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }
        
        .status-item {
            font-weight: bold;
            white-space: nowrap;
        }
        
        .status-good {
            color: #28a745;
        }
        
        .status-bad {
            color: #dc3545;
        }
        
        .status-warning {
            color: #ffc107;
        }
        
        .info-text {
            color: #6c757d;
            margin-top: 1px;
            text-align: center;
            line-height: 1.6;
        }
        
        .loader {
            display: none;
            text-align: center;
            margin: 20px 0;
        }
        
        .footer-text {
            font-size: 0.8rem;
            color: #6c757d;
            margin-top: 10px;
        }
 .port-status {
    font-size: 1.2em;
    font-weight: bold;
}
.port-open .port-status {
    color: green;
}
.port-closed .port-status, 
.port-error .port-status {
    color: red;
}       
        /* 响应式调整 */
        @media (max-width: 768px) {
.status-row {
    display: flex;
    flex-wrap: nowrap;       
    overflow-x: auto;       
    white-space: nowrap;    
    -webkit-overflow-scrolling: touch; 
    gap: 10px;            
    padding-bottom: 5px; 
}
    /* 滚动条样式 */
    #resultContainer::-webkit-scrollbar {
        width: 5px;
    }
    #resultContainer::-webkit-scrollbar-thumb {
        background: #666;
        border-radius: 5px;
    }
    
    /* 调整页脚避免遮挡 */
    .footer-five {
        height: 0px; /* 固定高度 */
    }

        }
        
        
        
        