        /* 全局样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
        }

        body {
            background-color: #f5f7fa;
            padding: 0;
            min-width: 1200px; /* 电脑端最小宽度 */
        }

        /* 导航栏样式 */
        .navbar {
            background-color: #28a745;
            color: #fff;
            padding: 15px 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 999;
        }
        .navbar-container {
            max-width: 1920px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .navbar-logo {
            font-size: 20px;
            font-weight: 700;
        }
        .navbar-menu {
            display: flex;
            gap: 30px;
        }
        .navbar-menu a {
            color: #fff;
            text-decoration: none;
            font-size: 14px;
            transition: opacity 0.3s;
        }
        .navbar-menu a:hover {
            opacity: 0.8;
            text-decoration: underline;
        }

        /* 页脚样式 */
        .footer {
            background-color: #333;
            color: #ccc;
            padding: 20px 15px;
            margin-top: 40px;
        }
        .footer-copyright {
            text-align: center;
            font-size: 12px;
            color: #999;
            line-height: 1.6;
        }

        /* 容器样式 */
        .container {
            width: 98%;
            max-width: 1920px;
            margin: 0 auto;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 2px 15px rgba(0,0,0,0.05);
            padding: 30px;
            margin-top: 20px;
            margin-bottom: 20px;
        }

        /* 检测表单样式 */
        .ping-form-section {
            margin-bottom: 30px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 15px;
        }

        .form-group {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .form-group label {
            font-weight: 600;
            color: #333;
            font-size: 14px;
        }

        .target-input {
            width: 400px;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
        }

        .select-control {
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
            min-width: 80px;
        }

        .operator-checkboxes {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .checkbox-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .detect-btn {
            padding: 10px 30px;
            background: #28a745;
            color: #fff;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s;
        }

        .detect-btn:hover {
            background: #218838;
        }

        .detect-btn:disabled {
            background: #6c757d;
            cursor: not-allowed;
        }

        /* 文字说明区域样式 */
        .info-section {
            margin-bottom: 15px;
            padding: 15px 20px;
            background: #e8f4f8;
            border-radius: 8px;
            border-left: 4px solid #28a745;
            width: 100%;
            margin-left: auto;
            margin-right: auto;
            display: block;
        }

        .info-section p {
            color: #333;
            font-size: 14px;
            line-height: 1.6;
            margin: 5px 0;
        }

        /* 历史记录区域样式 */
        .history-section {
            margin-bottom: 20px;
            padding: 15px 20px;
            background: #f8f9fa;
            border-radius: 8px;
            width: 100%;
            margin-left: auto;
            margin-right: auto;
        }

        .history-title {
            font-size: 15px;
            font-weight: 600;
            color: #333;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .clear-history {
            font-size: 12px;
            color: #007bff;
            cursor: pointer;
            background: none;
            border: none;
            padding: 2px 8px;
        }

        .clear-history:hover {
            color: #0056b3;
            text-decoration: underline;
        }

        .history-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            max-height: 150px;
            overflow-y: auto;
            padding-right: 5px;
        }

        .history-item {
            padding: 6px 12px;
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 13px;
            color: #333;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .history-item:hover {
            background: #e8f4f8;
            border-color: #28a745;
            color: #28a745;
        }

        .history-empty {
            color: #999;
            font-size: 13px;
            padding: 10px 0;
        }

        /* 结果区域样式 */
        .result-section {
            display: none;
            margin-top: 20px;
        }

        /* 结果标题 */
        #resultTitle {
            font-size: 28px;
            font-weight: 600;
            color: #333;
            margin-bottom: 20px;
            padding-left: 8px;
            border-left: 4px solid #28a745;
        }

        /* 数据表格样式 */
        .table-container {
            overflow-x: auto;
            margin-top: 20px;
        }

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

        .ping-table th {
            background: #f8f9fa;
            padding: 12px 15px;
            text-align: left;
            font-weight: 600;
            color: #333;
            border-bottom: 2px solid #eee;
            font-size: 14px;
            white-space: nowrap;
        }

        .ping-table td {
            padding: 12px 15px;
            border-bottom: 1px solid #eee;
            font-size: 14px;
            color: #555;
            white-space: nowrap;
        }

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

        .operator-tag {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 4px;
            color: #fff;
            font-size: 12px;
            font-weight: 500;
        }

        .delay-bar {
            height: 8px;
            border-radius: 4px;
            width: 100%;
            background: #eee;
            overflow: hidden;
        }

        .delay-progress {
            height: 100%;
            border-radius: 4px;
        }

        /* 加载状态 */
        .loading {
            text-align: center;
            padding: 50px;
            font-size: 16px;
            color: #666;
            display: none;
        }

        /* DNS质量颜色类 */
        .dns-level-1 { color: #10b981; font-weight: bold; }
        .dns-level-2 { color: #34d399; font-weight: bold; }
        .dns-level-3 { color: #f59e0b; font-weight: bold; }
        .dns-level-4 { color: #ef4444; font-weight: bold; }
        .dns-level-5 { color: #991b1b; font-weight: bold; }

        /* 手机端自适应样式 (768px以下) */
        @media only screen and (max-width: 767px) {
            body {
                min-width: unset;
                width: 100%;
                overflow-x: hidden;
            }

            .container {
                width: 100%;
                padding: 15px;
                margin: 10px auto;
                border-radius: 8px;
            }
            
            .navbar {
                padding: 10px 15px;
            }
            .navbar-container {
                flex-direction: column;
                gap: 10px;
                align-items: flex-start;
            }
            .navbar-menu {
                gap: 10px;
                flex-wrap: wrap;
                width: 100%;
            }
            .navbar-menu a {
                font-size: 12px;
            }

            .ping-form-section {
                padding: 12px;
                align-items: flex-start;
                justify-content: flex-start;
                gap: 12px;
            }
            .form-group {
                width: 100%;
                flex-wrap: wrap;
                gap: 8px;
            }
            .form-group label {
                min-width: 70px;
                font-size: 13px;
            }
            .target-input {
                width: 100%;
                font-size: 13px;
                padding: 8px 12px;
            }
            .select-control {
                flex: 1;
                min-width: unset;
            }
            .operator-checkboxes {
                width: 100%;
                padding-left: 70px;
                flex-wrap: wrap;
                gap: 8px;
            }
            .checkbox-item {
                flex: 0 0 calc(50% - 8px);
                max-width: calc(50% - 8px);
                font-size: 13px;
            }
            .detect-btn {
                width: 100%;
                padding: 12px 30px;
                margin-top: 10px;
            }

            .info-section {
                padding: 12px 15px;
            }
            .info-section p {
                font-size: 13px;
            }

            #resultTitle {
                font-size: 18px;
                margin-bottom: 15px;
            }

            .ping-table th, .ping-table td {
                padding: 10px 12px;
                font-size: 12px;
            }
            .operator-tag {
                padding: 2px 6px;
                font-size: 11px;
            }

            .loading {
                padding: 30px;
                font-size: 14px;
            }
        }
        /* 完全复用图2的标题样式 */
.title-btn-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}
.title-btn-container h2 {
    margin: 0;
    color: #2c3e50; /* 深灰色文字 */
    font-size: 20px;
    padding-left: 10px;
    border-left: 4px solid #28a745; /* 绿色竖线 */
    font-weight: 700;
}