:root {
    --content-width: 1240px;
    --bg: #eef6fd;
    --nav: #0e1c33;
    --panel: #ffffff;
    --line: #dbe8f6;
    --text: #344054;
    --muted: #8a96a8;
    --blue: #4d83ff;
    --blue-dark: #2f6df3;
    --green: #65bf50;
    --green-dark: #43a536;
    --yellow: #f5d95d;
    --orange: #f3ad4f;
    --red: #e7473c;
    --shadow: 0 8px 22px rgba(37, 76, 132, .09);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-width: 1280px;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(229, 242, 255, .9), rgba(239, 246, 253, .9) 260px),
        var(--bg);
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.brand-bar {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
    border-bottom: 1px solid #d5e6fb;
    box-shadow: 0 10px 28px rgba(41, 103, 184, .08);
}

.logo {
    display: grid;
    grid-template-columns: max-content auto;
    grid-template-rows: 20px 12px;
    column-gap: 8px;
    align-items: center;
    color: #17407c;
    text-decoration: none;
}

.logo--image {
    display: inline-flex;
    align-items: center;
    width: 200px;
    height: 70px;
}

.logo__image {
    display: block;
    width: 200px;
    height: 70px;
    max-width: calc(100vw - 32px);
    object-fit: contain;
}

.logo__icon {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(180deg, #4f95ff 0%, #2f6df3 100%);
    color: #ffffff;
    font-weight: 900;
    font-size: 20px;
    font-style: italic;
    box-shadow: 0 10px 18px rgba(47, 109, 243, .24);
}

.logo__icon.small {
    width: 18px;
    height: 18px;
    font-size: 12px;
}

.logo__icon.small.is-wide {
    border-radius: 6px;
    font-size: 9px;
    font-style: normal;
    padding: 0 4px;
    width: auto;
    min-width: 18px;
}

.logo__icon.is-wide {
    border-radius: 12px;
    font-size: 14px;
    font-style: normal;
    padding: 0 7px;
    width: auto;
    min-width: 34px;
}

.logo__icon.is-image {
    overflow: hidden;
    padding: 0;
}

.logo__icon img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.logo__word {
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1;
}

.logo__url {
    color: #6c8ebc;
    font-size: 11px;
    letter-spacing: 1px;
}

.site-nav {
    height: 42px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(241, 248, 255, .98) 100%);
    color: #5d7597;
    border-bottom: 1px solid #d8e7f8;
    box-shadow: 0 8px 18px rgba(36, 97, 179, .08);
}

.nav-inner {
    width: var(--content-width);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
}

.nav-inner a,
.nav-inner button {
    border: 0;
    background: transparent;
    color: #5f789d;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.nav-inner a:hover,
.nav-inner button:hover {
    color: #2f6df3;
}

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.nav-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0;
}

.nav-dropdown__trigger::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}

.nav-dropdown__menu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 20;
    display: grid;
    min-width: 176px;
    padding: 8px;
    border: 1px solid #d8e7f8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(37, 76, 132, .16);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 6px);
    transition: opacity .16s ease, transform .16s ease;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.nav-dropdown__menu a {
    display: flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 6px;
}

.nav-dropdown__menu a:hover {
    background: #f4f8ff;
}

.nav-dropdown.is-active .nav-dropdown__trigger {
    color: #2f6df3;
}

.nav-inner a.is-active {
    color: #2f6df3;
    position: relative;
}

.nav-inner a.is-highlight {
    color: #2f6df3;
    font-weight: 700;
}

.nav-inner a.is-active::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: -13px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #6eb6ff, #2f6df3);
}

.nav-inner button {
    margin-left: auto;
    height: 28px;
    padding: 0 12px;
    border: 1px solid #b7d4fb;
    border-radius: 999px;
    color: #2f6df3;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(47, 109, 243, .08);
}

.nav-inner .nav-dropdown__trigger {
    margin-left: 0;
    width: auto;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #5f789d;
}

.page {
    width: var(--content-width);
    margin: 0 auto;
    padding: 24px 0 60px;
}

.site-footer {
    width: var(--content-width);
    margin: 0 auto 40px;
    padding: 18px 20px;
    border: 1px solid #dbe8f6;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: var(--shadow);
}

.site-footer--wide {
    width: min(var(--content-width), calc(100% - 24px));
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 20px;
}

.site-footer__brand {
    display: grid;
    gap: 8px;
    color: #5f738e;
    font-size: 13px;
    line-height: 1.8;
}

.site-footer__brand strong {
    color: #173e79;
    font-size: 18px;
}

.site-footer__group {
    display: grid;
    gap: 8px;
    align-content: start;
}

.site-footer__group h3 {
    margin: 0;
    font-size: 14px;
    color: #173e79;
}

.site-footer__links {
    display: grid;
    gap: 8px;
}

.site-footer__links a {
    color: #5f738e;
    text-decoration: none;
    font-size: 13px;
}

.site-footer__beian {
    color: inherit;
    text-decoration: none;
}

.site-footer__meta {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e7eef8;
    color: #7890ad;
    font-size: 12px;
    line-height: 1.8;
}

.crumb {
    color: #8a96a8;
    font-size: 13px;
    margin: 0 0 16px;
}

.crumb a {
    color: inherit;
    text-decoration: none;
}

.card,
.query-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.query-card {
    padding: 28px 42px 26px;
    border-top: 2px solid rgba(77, 131, 255, .32);
}

.query-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 114px 114px 126px;
    max-width: 990px;
    margin: 0 auto;
    gap: 12px;
    align-items: center;
}

.target-history-field {
    position: relative;
    min-width: 0;
}

.query-form input,
.query-form select,
.dns-input {
    height: 43px;
    border: 1px solid #d9dee8;
    border-radius: 4px;
    background: #fff;
    color: #546173;
    outline: none;
}

.query-form input {
    padding: 0 13px;
}

.target-history-field #targetInput {
    width: 100%;
}

.target-history-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    max-height: 260px;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid rgba(151, 166, 190, .45);
    border-radius: 8px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 16px 38px rgba(31, 55, 92, .16);
}

.target-history-panel[hidden] {
    display: none;
}

.target-history-option {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #3f4c5f;
    font-size: 13px;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.target-history-option span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.target-history-option:hover,
.target-history-option.is-active {
    border-color: rgba(77, 131, 255, .18);
    background: rgba(77, 131, 255, .09);
    color: #244fbd;
}

.query-form select {
    padding: 0 8px;
}

#portInput[hidden] {
    display: none;
}

.query-form input:focus,
.query-form select:focus,
.dns-input:focus {
    border-color: #9fb9ff;
    box-shadow: 0 0 0 2px rgba(91, 134, 247, .14);
}

.btn {
    height: 43px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.btn-blue {
    background: linear-gradient(180deg, #5d8dff, #3f73f1);
}

.btn-green {
    background: linear-gradient(180deg, #58c473, #38a85a);
}

.btn-orange {
    background: linear-gradient(180deg, #ffc16b, #f2a64a);
}

.query-meta-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 990px;
    gap: 14px;
    margin: 18px auto 0;
}

.option-row,
.dns-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    color: #687589;
    font-size: 13px;
}

.option-row {
    flex: 1 1 auto;
    min-width: 0;
    gap: 14px;
    padding: 9px 14px;
    border: 1px solid #e3edf9;
    border-radius: 6px;
    background: #fbfdff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.option-row label,
.dns-row label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.node-filter {
    color: #687789;
    font-size: 13px;
    white-space: nowrap;
}

.option-row input,
.dns-row input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--blue);
}

.node {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.node strong {
    font-weight: 600;
}

.node span span {
    display: none;
}

.dns-row {
    flex: 0 0 auto;
    align-self: flex-start;
    min-height: 43px;
    padding: 0 14px;
    border: 1px solid #e3edf9;
    border-radius: 6px;
    background: #fbfdff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
    justify-content: flex-start;
    margin-top: 0;
    flex-wrap: nowrap;
}

.dns-input {
    width: 240px;
    padding: 0 10px;
    background: #fff;
}

.dns-input:disabled {
    background: #edf0f5;
    color: #96a2b2;
    cursor: not-allowed;
}

.captcha-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(14, 28, 51, .42);
}

.captcha-modal[hidden] {
    display: none;
}

.captcha-dialog {
    width: min(420px, calc(100% - 24px));
    padding: 24px 22px 20px;
    border-radius: 16px;
    border: 1px solid #d6e5fb;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 24px 60px rgba(24, 58, 105, .22);
}

.captcha-dialog h3 {
    margin: 0 0 10px;
    color: #17407c;
    font-size: 22px;
}

.captcha-dialog p {
    margin: 0;
    color: #6a7d95;
    line-height: 1.7;
}

.captcha-dialog__question {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px dashed #a9c2ef;
    background: #fff;
    color: #2f6df3;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.captcha-dialog__input {
    width: 100%;
    height: 46px;
    margin-top: 14px;
    padding: 0 14px;
    border: 1px solid #d9dee8;
    border-radius: 10px;
    outline: none;
    font: inherit;
}

.captcha-dialog__input:focus {
    border-color: #9fb9ff;
    box-shadow: 0 0 0 2px rgba(91, 134, 247, .14);
}

.captcha-dialog__hint {
    margin-top: 10px;
    min-height: 22px;
    color: #6d7f96;
    font-size: 13px;
    line-height: 1.6;
}

.captcha-dialog__actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.captcha-dialog__actions .btn {
    flex: 1;
}

.notice-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(14, 28, 51, .46);
}

.notice-dialog {
    width: min(420px, calc(100% - 24px));
    padding: 24px 22px 20px;
    border: 1px solid #d6e5fb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(24, 58, 105, .24);
    outline: none;
}

.notice-dialog h3 {
    margin: 0 0 10px;
    color: #17407c;
    font-size: 20px;
    line-height: 1.35;
}

.notice-dialog p {
    margin: 0;
    color: #52657e;
    font-size: 15px;
    line-height: 1.75;
}

.notice-dialog__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.notice-dialog__actions .btn {
    min-width: 112px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.map-card,
.stat-card {
    min-height: 550px;
}

.map-card {
    position: relative;
    min-height: 550px;
}

.stat-card {
    overflow: hidden;
}

.mini-head {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
}

.mini-logo {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #2d3748;
    font-size: 11px;
}

.map-tools {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #f05b5b;
}

.switch {
    width: 22px;
    height: 12px;
    border-radius: 999px;
    background: #74a2ff;
    position: relative;
}

.switch::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.map-stage {
    position: relative;
    height: 514px;
    margin: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 0 0 6px 6px;
}

.china-map {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-hover-tooltip {
    position: absolute;
    z-index: 5;
    max-width: 280px;
    padding: 9px 11px;
    border-radius: 6px;
    background: rgba(22, 35, 54, .94);
    color: #fff;
    box-shadow: 0 10px 24px rgba(31, 55, 92, .2);
    font-size: 12px;
    line-height: 1.7;
    pointer-events: none;
    white-space: nowrap;
}

.map-hover-tooltip[hidden] {
    display: none;
}

.map-hover-tooltip__title {
    font-weight: 800;
}

.china-outline-map {
    position: absolute;
    inset: 4px 8px 8px;
    width: calc(100% - 16px);
    height: calc(100% - 12px);
    transform: none;
    transform-origin: center center;
}

.china-geo-map {
    padding: 0;
}

.china-outline {
    fill: #4daf3c;
    stroke: #d7efce;
    stroke-width: 6;
}

.china-base {
    fill: #eef3f8;
    stroke: #d7efce;
    stroke-width: 6;
}

.province-shape {
    cursor: pointer;
    stroke: #ffffff;
    stroke-width: .8;
    vector-effect: non-scaling-stroke;
    transition: filter .16s ease, stroke .16s ease;
}

.province-shape--empty {
    cursor: default;
    stroke: #ffffff;
}

.province-shape:hover {
    filter: brightness(1.07) drop-shadow(0 2px 5px rgba(27, 67, 132, .18));
}

.province-shape--empty:hover {
    filter: none;
    stroke-width: .8;
}

.map-loading {
    height: 100%;
    display: grid;
    place-items: center;
    color: #7a8aa0;
    background: repeating-linear-gradient(
        135deg,
        rgba(77, 131, 255, .06) 0,
        rgba(77, 131, 255, .06) 8px,
        rgba(255, 255, 255, .2) 8px,
        rgba(255, 255, 255, .2) 16px
    );
}

.province-label {
    pointer-events: none;
    fill: rgba(255, 255, 255, .86);
    font-size: 13px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: middle;
    opacity: 0;
}

.province-label.is-active {
    opacity: .82;
}

.china-island {
    fill: #4daf3c;
    stroke: #d7efce;
    stroke-width: 4;
}

.china-boundaries {
    fill: none;
    stroke: #d7efce;
    stroke-width: 2;
    opacity: .85;
}

.south-china-sea-inset {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    width: 86px;
    height: 66px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    cursor: help;
}

.south-china-sea-map {
    width: 100%;
    height: 100%;
    display: block;
}

.south-china-sea-shape {
    fill: none;
    stroke: #6f97cb;
    stroke-width: 1.35;
    vector-effect: non-scaling-stroke;
}

.south-china-sea-inset::after {
    content: attr(data-title);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 7px);
    transform: translateX(-50%);
    padding: 4px 7px;
    border-radius: 3px;
    background: rgba(38, 53, 76, .92);
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}

.south-china-sea-inset:hover::after {
    opacity: 1;
}

.map-legend {
    display: grid;
    gap: 6px;
    width: 118px;
    position: absolute;
    left: 14px;
    bottom: 15px;
    z-index: 2;
    color: #6d7788;
    font-size: 12px;
}

.map-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 13px;
    height: 13px;
    border-radius: 2px;
}

.legend-dot.red {
    background: #e7473c;
}

.legend-dot.orange {
    background: #f3ad4f;
}

.legend-dot.yellow {
    background: #f5d95d;
}

.legend-dot.lime {
    background: #bfe95f;
}

.legend-dot.green2 {
    background: #78d44f;
}

.legend-dot.green {
    background: #58b33f;
}

.legend-dot.gray {
    background: #c8ced8;
}

.http-map-legend .legend-dot.red {
    background: #d93624;
}

.http-map-legend .legend-dot.orange {
    background: #e98532;
}

.http-map-legend .legend-dot.lime {
    background: #a7ee65;
}

.http-map-legend .legend-dot.green2 {
    background: #63d34f;
}

.http-map-legend .legend-dot.green {
    background: #43a139;
}

.stat-head {
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid var(--line);
}

.stat-tabs {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: nowrap;
    color: #69758a;
    font-size: 12px;
}

.stat-tabs button {
    flex: 0 0 auto;
    height: 28px;
    padding: 0 10px;
    border: 1px solid #d9e4f3;
    border-radius: 999px;
    background: #fff;
    color: #69758a;
    font-size: 12px;
    font-weight: 700;
}

.stat-tabs .is-active {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #7b8798;
    font-size: 11px;
}

.progress-info b {
    padding: 2px 6px;
    border-radius: 3px;
    background: #e6edff;
    color: #6f91ff;
}

.thin-progress {
    width: 138px;
    height: 9px;
    border-radius: 999px;
    background: #dfe6f2;
    overflow: hidden;
}

.thin-progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #5b86f7;
    transition: width .22s ease;
}

#progressText {
    color: #5b86f7;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.summary-table th,
.summary-table td,
.result-table th,
.result-table td {
    height: 34px;
    padding: 0 12px;
    border-bottom: 1px solid #eef1f5;
    text-align: center;
    color: #525f70;
    font-size: 13px;
    line-height: 1.2;
}

.summary-table th,
.result-table th {
    background: #fbfcfe;
    color: #7c8797;
    font-weight: 600;
}

.summary-table td:first-child,
.summary-table th:first-child,
.result-table td:first-child,
.result-table th:first-child {
    text-align: left;
}

.summary-table {
    table-layout: fixed;
}

.summary-table th:nth-child(1),
.summary-table td:nth-child(1) {
    width: 22%;
    padding-left: 18px;
}

.summary-table th:nth-child(2),
.summary-table td:nth-child(2) {
    width: 34%;
}

.summary-table th:nth-child(3),
.summary-table td:nth-child(3) {
    width: 28%;
}

.summary-table th:nth-child(4),
.summary-table td:nth-child(4) {
    width: 16%;
    text-align: right;
    padding-right: 18px;
}

.dns-card,
.result-card {
    margin-top: 16px;
}

.section-title {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    color: #5b6576;
}

.section-title strong {
    border-left: 3px solid #5b86f7;
    padding-left: 9px;
    font-size: 16px;
}

.section-title span {
    min-width: 16px;
    padding: 1px 5px;
    border-radius: 3px;
    background: #e7edff;
    color: #6d8dff;
    text-align: center;
    font-weight: 700;
}

.section-title button {
    height: 22px;
    border: 0;
    border-radius: 3px;
    background: #ffe6bd;
    color: #e19a38;
    font-size: 12px;
}

.section-title em {
    margin-left: auto;
    color: #6c7584;
    font-style: normal;
    font-size: 12px;
}

.dns-card .section-title {
    min-height: 44px;
    padding: 0 14px;
    gap: 8px;
    flex-wrap: nowrap;
}

.dns-card .section-title strong {
    flex: 0 0 auto;
    white-space: nowrap;
}

.dns-card .section-title span {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    background: #eaf0ff;
    color: #5178ef;
    line-height: 1;
}

.dns-card .section-title .dns-toggle {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 4px 0;
    color: #66758a;
    cursor: pointer;
    white-space: nowrap;
}

.dns-card .section-title .dns-toggle:hover,
.dns-card .section-title .dns-toggle:focus-visible {
    color: #2f6df3;
    outline: none;
}

.dns-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
}

.dns-list > span,
.dns-copy-item {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 142px;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid #e3eaf5;
    border-radius: 6px;
    background: #f7faff;
    color: #526174;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.dns-copy-item {
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease;
}

.dns-copy-item:hover,
.dns-copy-item:focus-visible {
    border-color: #abc2f8;
    background: #eef5ff;
    color: #345fc4;
    outline: none;
}

.dns-copy-item:active {
    transform: translateY(1px);
}

.dns-copy-toast {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1200;
    min-width: 156px;
    padding: 12px 14px 14px;
    overflow: hidden;
    border: 1px solid #cfe0ff;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(35, 66, 112, .18);
    color: #31425b;
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.dns-copy-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.dns-copy-toast i {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f80ff, #37b56d);
    transform-origin: left center;
}

.dns-copy-toast.is-visible i {
    animation: dns-toast-timeline 3s linear forwards;
}

@keyframes dns-toast-timeline {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

.dns-list b {
    color: #6d8dff;
}

.result-title {
    gap: 12px;
}

.share-snapshot-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #dce7f5;
    border-radius: 6px;
    background: #fbfdff;
}

.share-snapshot-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.share-snapshot-copy strong {
    color: #31425b;
}

.share-snapshot-copy span,
.share-snapshot-error {
    color: #7b8798;
    font-size: 12px;
}

.share-snapshot-controls,
.share-snapshot-result {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-snapshot-days {
    display: inline-flex;
    height: 34px;
    padding: 2px;
    border: 1px solid #d9dee8;
    border-radius: 4px;
    background: #fff;
}

.share-snapshot-days button {
    min-width: 54px;
    height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #66758a;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.share-snapshot-days button.is-active {
    background: #2f6df3;
    color: #fff;
}

.share-snapshot-days button:disabled {
    cursor: not-allowed;
    opacity: .62;
}

.share-snapshot-link {
    flex: 1 1 auto;
    min-width: 0;
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #b8cffb;
    border-radius: 4px;
    background: #f2f7ff;
    color: #2f6df3;
    font: inherit;
    font-size: 13px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: copy;
}

.share-snapshot-link:hover,
.share-snapshot-link:focus-visible {
    border-color: #2f6df3;
    box-shadow: 0 0 0 2px rgba(47, 109, 243, .12);
    outline: 0;
}

.share-snapshot-result {
    grid-column: 1 / -1;
}

.share-snapshot-error {
    grid-column: 1 / -1;
    color: #d84f43;
}

.result-tabs {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.result-tabs button {
    height: 23px;
    padding: 0 10px;
    border: 1px solid #e3e7ee;
    border-radius: 3px;
    background: #fff;
    color: #7a8494;
    font-size: 12px;
}

.result-tabs .is-active {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.result-tabs span {
    margin-left: 4px;
    background: #ff5b69;
    color: #fff;
}

.run-state {
    padding: 14px 16px;
    color: #7a8494;
    font-size: 14px;
}

.table-wrap {
    overflow-x: auto;
}

.result-table {
    min-width: 1000px;
}

.result-table--compact {
    min-width: 100%;
    table-layout: fixed;
}

.result-table--compact th,
.result-table--compact td {
    padding: 0 14px;
}

.result-table--compact th:nth-child(1),
.result-table--compact td:nth-child(1) {
    width: 24%;
}

.result-table--compact th:nth-child(2),
.result-table--compact td:nth-child(2) {
    width: 20%;
}

.result-table--compact th:nth-child(3),
.result-table--compact td:nth-child(3) {
    width: 34%;
}

.result-table--compact th:nth-child(4),
.result-table--compact td:nth-child(4) {
    width: 22%;
}

.isp-badge {
    display: inline-flex;
    align-items: center;
    height: 21px;
    padding: 0 7px;
    border-radius: 3px;
    background: #71bd57;
    color: #fff;
    font-weight: 700;
}

.muted {
    color: var(--muted);
    font-size: 11px;
}

.pending-label {
    color: #8c98ab;
}

.quality {
    display: flex;
    align-items: end;
    gap: 2px;
    height: 22px;
    justify-content: center;
}

.quality i {
    width: 4px;
    min-height: 3px;
    background: #4daf3c;
}

.quality--timeline {
    justify-content: flex-start;
    gap: 1px;
    height: 30px;
    width: 304px;
    min-width: 304px;
    max-width: 304px;
    padding: 0 2px;
    overflow: hidden;
}

.quality--timeline i {
    width: 2px;
    min-height: 4px;
    border-radius: 1px 1px 0 0;
    flex: 0 0 2px;
}

.quality i.pending {
    height: 4px !important;
    background: #dbe3ee;
}

.quality:not(.quality--timeline) i.pending {
    background: #dbe3ee;
}

.quality i.slow {
    background: #f5d95d;
}

.quality i.down {
    background: #e7473c;
}

.quality-canvas {
    display: block;
    width: 200px;
    height: 20px;
    margin: 0 auto;
}

.empty td {
    height: 52px;
    color: #9aa4b5;
    text-align: center !important;
}

.metrics {
    display: none;
}

@media (max-width: 1440px) {
    body {
        min-width: 100%;
    }

    .nav-inner,
    .page,
    .site-footer {
        width: min(var(--content-width), calc(100% - 32px));
    }

    .query-card {
        padding: 26px;
    }

    .query-form {
        grid-template-columns: minmax(0, 1fr) 114px 114px 126px;
    }
}
@media (max-width: 860px) {
    body {
        min-width: 100%;
        font-size: 14px;
    }

    .brand-bar {
        height: auto;
        padding: 12px 10px;
    }

    .logo {
        grid-template-columns: 30px auto;
        grid-template-rows: auto auto;
    }

    .logo--image {
        height: 42px;
    }

    .logo__image {
        height: 36px;
        max-width: calc(100vw - 32px);
    }

    .logo__icon {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .logo__word {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .logo__url {
        font-size: 10px;
    }

    .site-nav {
        height: auto;
    }

    .nav-inner {
        width: calc(100% - 20px);
        padding: 10px 0;
        gap: 10px;
        flex-wrap: wrap;
        white-space: normal;
    }

    .nav-inner a,
    .nav-inner button {
        font-size: 12px;
    }

    .nav-dropdown {
        height: auto;
    }

    .nav-dropdown__trigger {
        height: 28px;
    }

    .nav-dropdown__menu {
        left: auto;
        right: 0;
        max-width: calc(100vw - 20px);
        transform: translate(0, 6px);
    }

    .nav-dropdown:hover .nav-dropdown__menu,
    .nav-dropdown:focus-within .nav-dropdown__menu {
        transform: translate(0, 0);
    }

    .nav-inner button {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .nav-inner .nav-dropdown__trigger {
        width: auto;
        justify-content: flex-start;
    }

    .nav-inner a.is-active::after {
        bottom: -8px;
    }

    .page {
        width: calc(100% - 20px);
        padding: 14px 0 28px;
    }

    .site-footer {
        width: calc(100% - 20px);
        margin-bottom: 24px;
        padding: 16px;
    }

    .site-footer__top {
        grid-template-columns: 1fr;
    }

    .card,
    .query-card {
        border-radius: 10px;
    }

    .crumb {
        margin-bottom: 12px;
        font-size: 12px;
        line-height: 1.6;
        word-break: break-word;
    }

    .query-card {
        padding: 14px;
    }

    .query-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .query-form input,
    .query-form select,
    .dns-input,
    .btn {
        width: 100%;
    }

    .query-meta-row {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-top: 14px;
    }

    .option-row,
    .dns-row {
        gap: 10px;
    }

    .option-row {
        width: 100%;
        padding: 10px;
    }

    .dns-row {
        width: 100%;
        justify-content: flex-start;
        padding: 10px;
        min-height: 0;
        flex-wrap: wrap;
    }

    .dns-input {
        width: 100%;
    }

    .captcha-dialog {
        width: calc(100% - 12px);
        padding: 18px 16px 16px;
    }

    .captcha-dialog h3 {
        font-size: 20px;
    }

    .captcha-dialog__question {
        font-size: 22px;
    }

    .captcha-dialog__actions {
        flex-direction: column;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .map-card,
    .stat-card {
        min-height: 0;
    }

    .map-card {
        min-height: 0;
    }

    .map-stage {
        height: 320px;
        margin: 0 8px;
    }

    .china-outline-map {
        inset: 4px 4px 8px;
        width: calc(100% - 8px);
        height: calc(100% - 12px);
        transform: none;
    }

    .south-china-sea-inset {
        right: 14px;
        bottom: 14px;
        width: 72px;
        height: 54px;
    }

    .map-legend {
        position: static;
        width: auto;
        margin: 12px 14px 16px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 14px;
    }

    .stat-head,
    .section-title,
    .result-title {
        min-height: auto;
        height: auto;
        padding: 10px 12px;
        align-items: flex-start;
        gap: 8px;
        flex-direction: column;
    }

    .stat-tabs,
    .progress-info,
    .result-tabs,
    .share-snapshot-controls,
    .share-snapshot-result {
        width: 100%;
        flex-wrap: wrap;
    }

    .share-snapshot-panel {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .share-snapshot-controls button,
    .share-snapshot-days,
    .share-snapshot-link,
    .share-snapshot-result button {
        width: 100%;
    }

    .share-snapshot-days button {
        flex: 1 1 0;
        width: auto;
    }

    .stat-tabs {
        display: inline-flex;
        width: auto;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .stat-tabs button {
        white-space: nowrap;
    }

    .thin-progress {
        width: 100%;
    }

    .summary-table th,
    .summary-table td,
    .result-table th,
    .result-table td {
        padding: 8px 10px;
        height: auto;
        font-size: 13px;
        white-space: nowrap;
    }

    .dns-list {
        padding: 10px;
    }

    .dns-list > span,
    .dns-copy-item {
        min-width: 0;
        width: 100%;
        justify-content: space-between;
    }

    .dns-card .section-title {
        align-items: center;
        flex-wrap: nowrap;
        flex-direction: row;
        gap: 6px;
        min-height: 40px;
        padding: 0 10px;
    }

    .dns-card .section-title em {
        margin-left: auto;
        width: auto;
    }

    .dns-card .section-title strong {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dns-copy-toast {
        top: 12px;
        right: 12px;
        max-width: calc(100% - 24px);
    }

    .run-state {
        padding: 10px 12px;
        font-size: 13px;
    }

    .result-table {
        min-width: 820px;
    }

    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
