/* 同一套页面按视口排版，不再依赖 flexible.js 动态放大 rem。 */
html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    --page-padding: clamp(12px, 2.2vw, 24px);
    --section-gap: clamp(8px, 1.8vw, 20px);
    --notice-gap: clamp(12px, 3vw, 32px);
}
* { box-sizing: border-box; }
body, div, ul, li, p { margin: 0; padding: 0; }
li { list-style: none; }
em, i { font-style: normal; }
a { text-decoration: none; }
a:focus-visible { outline: 2px solid #bf242a; outline-offset: 3px; }
img { max-width: 100%; border: 0; }
body {
    width: 100%;
    max-width: 1080px;
    min-width: 0;
    margin: 0 auto;
    background: #f7f7f7;
    color: #333;
    font: 16px/1.6 'STHeiti', 'Microsoft YaHei', Helvetica, Arial, sans-serif;
    font-size: clamp(.875rem, 1vw + .625rem, 1rem);
}
.swiper-container, .swiper-wrapper, .swiper-slide { width: 100%; }
.swiper-slide a, .swiper-slide img { display: block; }
.swiper-slide img { width: 100%; height: auto; }
.gonggao {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.2vw, 12px);
    padding: clamp(10px, 1.5vw, 16px) var(--page-padding);
    background: #fff;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    color: #666;
}
.gonggao .title { flex: 0 0 auto; }
.gonggao .gundong { flex: 1; min-width: 0; overflow: hidden; }
.gonggao marquee { display: block; }
.gonggao .gundong span { margin-right: 20px; }
.testing { background: #fff; }
.testing .hd {
    padding: clamp(12px, 1.5vw, 16px) var(--page-padding);
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}
.testing .bd { padding: var(--page-padding); }
.testing .bd li {
    display: grid;
    grid-template-columns: minmax(72px, 84px) minmax(0, 1fr) auto;
    grid-template-areas: 'ms url open';
    align-items: stretch;
    gap: clamp(8px, 1.2vw, 12px);
    margin-bottom: clamp(12px, 1.6vw, 20px);
}
.testing .bd li:last-child { margin-bottom: 0; }
.testing .bd .ms, .testing .bd .url {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    background: #fff;
}
.testing .bd .ms {
    grid-area: ms;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-wrap: anywhere;
}
.testing .bd .url {
    grid-area: url;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.testing .bd .url em { display: inline-block; margin-right: clamp(8px, 1.5vw, 16px); }
.testing .bd .btn-open {
    grid-area: open;
    display: flex;
    border-radius: 5px;
    background: #bf242a;
}
.testing .bd .btn-open a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px clamp(12px, 2vw, 20px);
    color: #fff;
    font-weight: bold;
    white-space: nowrap;
}
.testing .bd .btn-open a:hover { background: #a51f24; border-radius: 5px; }
.quicklink {
    padding: clamp(12px, 2vw, 24px) var(--page-padding);
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    background: #fff;
    text-align: center;
    overflow-wrap: anywhere;
}
.quicklink .aa1 { font-size: clamp(.875rem, 1.6vw, 1.125rem); line-height: 1.8; }
.download-panel { margin-top: var(--section-gap); }
#linkID {
    display: inline-block;
    max-width: 100%;
    min-height: 44px;
    padding: 4px 0;
    color: #00f;
    font-size: clamp(1.125rem, 5vw, 2rem);
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}
.notice-panel { margin-top: var(--notice-gap); }
.notice-panel .aa1 { font-weight: 700; }
.notice-panel p + p { margin-top: clamp(12px, 2vw, 24px); }
.notice-emphasis { color: #f00; }
.copyright {
    padding: clamp(12px, 2vw, 20px) var(--page-padding);
    background: #fff;
    color: #999;
    font-size: clamp(.75rem, 1.3vw, .875rem);
    text-align: center;
}
.tsetms { display: none; }
@media (max-width: 767px) {
    /* 先完整显示线路名称和域名，再显示测速与按钮，避免手机上被省略。 */
    .testing .bd li {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: 'url url' 'ms open';
        gap: clamp(8px, 2vw, 12px);
        margin-bottom: clamp(16px, 3vw, 24px);
    }
    .testing .bd .url { text-align: center; }
}
