/* DNS劫持检测专属样式（原内联样式迁移） */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 10px;
    color: #666;
}
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #eee;
    border-top: 2px solid #28a745;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
}
.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.result-section {
    display: none;
    margin-top: 20px;
}
.result-header {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.result-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 15px;
}
.result-table {
    width: 100%;
    border-collapse: collapse;
}
.result-table th {
    text-align: left;
    padding: 10px 15px;
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}
.result-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    color: #666;
}
.result-table tr:last-child td {
    border-bottom: none;
}
.detect-point {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 关键修改：降低默认样式优先级，仅作为兜底 */
.detect-point .operator {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    /* 移除默认背景色和文字色，让专属类生效 */
    background: transparent;
    color: inherit;
}

/* 运营商标签颜色样式 - 提升优先级（加.detect-point前缀） */
.detect-point .operator-电信 {
    background-color: #e53e3e !important; /* 电信-红色 */
    color: #ffffff !important;
}
.detect-point .operator-联通 {
    background-color: #4299e1 !important; /* 联通-蓝色 */
    color: #ffffff !important;
}
.detect-point .operator-移动 {
    background-color: #48bb78 !important; /* 移动-绿色 */
    color: #ffffff !important;
}
.detect-point .operator-广电 {
    background-color: #9f7aea !important; /* 广电-紫色 */
    color: #ffffff !important;
}
.detect-point .operator-鹏博士 {
    background-color: #ed8936 !important; /* 鹏博士-橙色 */
    color: #ffffff !important;
}
.detect-point .operator-阿里云 {
    background-color: #f56565 !important; /* 阿里云-浅红 */
    color: #ffffff !important;
}
.detect-point .operator-腾讯云 {
    background-color: #38b2ac !important; /* 腾讯云-青绿色 */
    color: #ffffff !important;
}
.detect-point .operator-华为云 {
    background-color: #4299e1 !important; /* 华为云-蓝色（同联通） */
    color: #ffffff !important;
}
.detect-point .operator-BGP {
    background-color: #fcc367 !important; /* BGP-黄色 */
    color: #333333 !important;
}
.detect-point .operator-京东云 {
    background-color: #e53e3e !important; /* 京东云-红色（同电信） */
    color: #ffffff !important;
}
.detect-point .operator-未知 {
    background-color: #718096 !important; /* 未知-灰色 */
    color: #ffffff !important;
}

.domain-status {
    font-weight: 600;
}
.domain-status.error {
    color: #dc3545;
}
.domain-status.normal {
    color: #28a745;
}
.checkbox-wrap {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}
.checkbox-wrap input {
    margin-right: 5px;
}
.use-desc-container {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}
.use-desc-container h3 {
    font-size: 15px;
    margin: 10px 0;
    color: #333;
}
.use-desc-container p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 状态文字颜色样式 - 正常绿色 */
.status-normal {
    color: #00b42a !important;
    font-weight: 500;
}
/* 状态文字颜色样式 - 劫持红色 */
.status-hijacked {
    color: #ff4d4f !important;
    font-weight: 500;
}

/* 表格单元格垂直居中（优化显示） */
.result-table td {
    vertical-align: middle;
    padding: 8px 12px;
}
/* 加载进度条样式 */
.loading-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.loading-text {
    font-size: 14px;
    color: #4299e1;
}
.progress-bar-container {
    width: 80%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background-color: #28a745;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}
.progress-percent {
    font-size: 12px;
    color: #666;
}
/* 隐藏原来的加载转圈图标（不需要了） */
.loading-spinner {
    display: none;
}
/* 劫持状态提示框样式 */
.hijack-status-tip {
    padding: 16px 20px;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 未被劫持（绿色） */
.hijack-status-safe {
    background-color: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #166534;
}

/* 被劫持（红色） */
.hijack-status-hijacked {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
}

/* 状态图标样式（可选，和截图一致） */
.hijack-status-tip::before {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    background-size: 12px 10px;
    background-position: center;
    background-repeat: no-repeat;
}

.hijack-status-safe::before {
    background-color: #22c55e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 6L9 17L4 12'/%3E%3C/svg%3E");
}

.hijack-status-hijacked::before {
    background-color: #ef4444;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z'/%3E%3C/svg%3E");
}