* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    background-color: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

a {
    text-decoration: none;
}

/* 背景铺满且不随内容滚动；图片没加载出来时是纯黑底，线路按钮不受影响 */
.tz-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
}

.tz-bg-h5 {
    background-image: url("../img/transit/bg_h5.webp");
}

.tz-bg-pc {
    display: none;
    background-image: url("../img/transit/bg_pc.webp");
    background-position: center center;
}

.tz-page {
    width: 86%;
    max-width: 420px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    /* H5 尺寸随屏幕高度放大，避免高屏手机内容挤在上半部分；小屏取下限，放不下时正常滚动 */
    padding: clamp(22px, 4.6vh, 48px) 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tz-logo {
    display: block;
    width: clamp(160px, 25vh, 220px);
    /* 默认 Logo 切图带深色底，压暗底色后用滤色融进背景，四边渐隐避免露出切图边界 */
    mix-blend-mode: screen;
    filter: contrast(1.25);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 5%, #000 88%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 5%, #000 88%, transparent);
    mask-composite: intersect;
}

.tz-site {
    margin-top: 4px;
    font-size: clamp(16px, 2.4vh, 20px);
    line-height: 1.3;
    word-break: break-all;
    text-align: center;
}

.tz-slogan {
    margin-top: 5px;
    text-shadow: 0 1px 3px #000;
    display: flex;
    align-items: center;
    font-size: clamp(12px, 1.8vh, 15px);
    letter-spacing: 1px;
    color: #f6cf8d;
    text-align: center;
}

.tz-slogan::before,
.tz-slogan::after {
    content: "";
    flex: none;
    width: 24px;
    height: 1px;
    margin: 0 8px;
    background: #f6cf8d;
}

.tz-lines {
    width: 100%;
    margin-top: clamp(14px, 2.4vh, 24px);
}

.tz-line {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: clamp(48px, 6.8vh, 62px);
    margin-bottom: clamp(9px, 1.6vh, 14px);
    padding: 4px 12px;
    border: 1px solid #a6865f;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(50, 28, 14, .92), rgba(0, 0, 0, .86) 50%, rgba(50, 28, 14, .92));
}

.tz-line-name {
    max-width: 100%;
    font-size: clamp(15px, 2.1vh, 18px);
    line-height: 1.3;
    color: #fff;
}

.tz-line-url {
    max-width: 100%;
    font-size: clamp(12px, 1.75vh, 15px);
    line-height: 1.3;
    color: #ff9f2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tz-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: clamp(48px, 6.8vh, 62px);
    margin-top: clamp(6px, 1.2vh, 12px);
    padding: 4px 12px;
    border: 1px solid #a6865f;
    border-radius: 6px;
    background-color: #1c1008;
    background-image: linear-gradient(90deg, #321c0e, #000 50%, #321c0e);
    background-size: cover;
    background-position: center;
}

.tz-contact-icon {
    flex: none;
    width: clamp(18px, 2.8vh, 24px);
    height: clamp(18px, 2.8vh, 24px);
    margin-right: 8px;
    fill: #f7b24a;
}

.tz-contact-text {
    min-width: 0;
}

.tz-contact-title {
    display: block;
    font-size: clamp(15px, 2.1vh, 18px);
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.tz-contact-desc {
    display: block;
    font-size: clamp(12px, 1.75vh, 15px);
    line-height: 1.3;
    color: #ff9f2e;
    word-break: break-all;
}

.tz-social {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: clamp(14px, 2.6vh, 28px);
}

.tz-social a {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    font-size: clamp(11px, 1.6vh, 14px);
    color: #f6cf8d;
}

.tz-social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(36px, 5.6vh, 50px);
    height: clamp(36px, 5.6vh, 50px);
    margin-bottom: 5px;
    border-radius: 50%;
    background: rgba(32, 32, 32, .92);
}

.tz-social-icon svg {
    width: clamp(19px, 3vh, 26px);
    height: clamp(19px, 3vh, 26px);
    fill: #f7b24a;
}

.tz-copyright {
    text-shadow: 0 1px 3px #000;
    margin-top: auto;
    padding-top: 14px;
    font-size: 11px;
    line-height: 1.5;
    color: #a8a8a8;
    text-align: center;
}

.tz-copyright a {
    color: #d8d8d8;
}

/* PC 和 H5 只靠媒体查询切换：页面有整页缓存，不能按 User-Agent 输出 */
@media (min-width: 768px) {
    .tz-bg-h5 {
        display: none;
    }

    .tz-bg-pc {
        display: block;
    }

    .tz-page {
        width: 510px;
        max-width: 100%;
        padding-top: 24px;
    }

    .tz-logo {
        width: 232px;
    }

    .tz-site {
        font-size: 22px;
    }

    .tz-slogan {
        font-size: 15px;
    }

    .tz-slogan::before,
    .tz-slogan::after {
        width: 36px;
        margin: 0 12px;
    }

    .tz-lines {
        margin-top: 20px;
    }

    .tz-line {
        min-height: 64px;
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .tz-line-name {
        font-size: 18px;
    }

    .tz-line-url {
        font-size: 14px;
    }

    .tz-contact {
        min-height: 64px;
        margin-top: 8px;
        border-radius: 8px;
    }

    .tz-contact-icon {
        width: 26px;
        height: 26px;
        margin-right: 12px;
    }

    .tz-contact-title {
        font-size: 18px;
    }

    .tz-contact-desc {
        font-size: 14px;
    }

    .tz-social {
        width: 420px;
        margin-top: 20px;
    }

    .tz-social a {
        font-size: 13px;
    }

    .tz-social-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 6px;
    }

    .tz-social-icon svg {
        width: 24px;
        height: 24px;
    }
}
