* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: #0b0d12;
    color: #f3f5f4;
    font-family: Arial, "Noto Sans", sans-serif
}

.shell {
    max-width: 760px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 22px 27px 30px;
    background: #181b24;
    box-shadow: 0 0 45px #0008
}

.brand {
    text-align: center;
    margin-bottom: 22px
}

.brand img {
    width: min(280px, 65%);
    height: auto;
    object-fit: contain
}

.slider {
    position: relative;
    overflow: hidden;
    border: 2px solid #42e854;
    border-radius: 23px;
    aspect-ratio: 3.65/1;
    background: #13231a
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .45s ease
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    display: block
}

.slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    background: #1018189c;
    color: white;
    font-size: 27px;
    cursor: pointer
}

.prev {
    left: 9px
}

.next {
    right: 9px
}

.dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 7px
}

.dot {
    width: 8px;
    height: 8px;
    background: #ffffff80;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    padding: 0
}

.dot.active {
    background: #fef034;
    width: 19px;
    border-radius: 8px
}

.notice {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #34383b;
    border-radius: 45px;
    padding: 10px 19px;
    margin: 23px 8px 21px;
    overflow: hidden;
    font-size: clamp(14px, 2.8vw, 23px);
    letter-spacing: .5px
}

.speaker {
    color: #4af45d;
    font-size: 26px;
    font-weight: bold;
    flex: none
}

.marquee {
    white-space: nowrap;
    overflow: hidden
}

.links {
    display: grid;
    gap: 17px
}

.linkrow {
    border: 1px solid #43b751;
    border-radius: 60px;
    background: linear-gradient(180deg, #30483a 0%, #20252e 32%, #1c202a 76%, #315038 100%);
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    min-height: 68px;
    padding: 8px 12px 8px 25px;
    gap: 7px
}

.latency {
    color: #54f45d;
    font-size: clamp(16px, 2.9vw, 23px);
    white-space: nowrap
}

.chain {
    font-size: 20px;
    margin-right: 10px
}

.linkname {
    text-align: center;
    color: #fff233;
    font-size: clamp(17px, 3vw, 25px)
}

.masuk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 136px;
    padding: 10px 13px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 800;
    font-size: clamp(18px, 3vw, 24px);
    color: #693800;
    border: 1px solid #fffca0;
    background: linear-gradient(180deg, #ffffc1 0%, #ffff36 25%, #fff600 51%, #ffc400 80%, #ff9f00 100%);
    box-shadow: inset 0 3px 3px #ffffffa6, inset 0 -4px 0 #dc8000, 0 5px 10px #0008, 0 0 12px #ffe6005e;
    transition: filter .2s, transform .2s
}

.masuk:hover {
    filter: brightness(1.13);
    transform: translateY(-2px)
}

.masuk:focus-visible,
.greenbtn:focus-visible,
.social a:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px
}

.tip {
    text-align: center;
    color: #59ee64;
    font-size: clamp(14px, 2.8vw, 19px);
    margin: 24px 0 14px
}

.vpn {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px
}

.greenbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55px;
    text-align: center;
    padding: 9px 8px;
    background: linear-gradient(#55ec58, #159443);
    border-radius: 40px;
    color: white;
    text-decoration: none;
    font-size: clamp(13px, 2.5vw, 18px);
    font-weight: 700;
    box-shadow: inset 0 2px 1px #aaffad33
}

.explain {
    color: #b8b9bd;
    line-height: 1.6;
    font-size: clamp(15px, 2.5vw, 19px);
    margin: 23px 7px
}

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

/* 底部四个社交入口：保留深绿色渐变背景、绿色描边和文字，仅小图标为图片 */
.social a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 81px;
    padding: 12px 14px;
    border: 1px solid #4bc65a;
    border-radius: 14px;
    background: linear-gradient(180deg, #284b39 0%, #1d332a 47%, #181d24 100%);
    text-decoration: none;
    color: #fff;
    transition: border-color .2s, filter .2s
}

.social a:hover {
    border-color: #7dff8a;
    filter: brightness(1.1)
}

.social-icon {
    display: block;
    flex: 0 0 49px;
    width: 49px;
    height: 49px;
    object-fit: contain;
    border-radius: 11px
}

.social-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0
}

.social-title {
    font-size: clamp(13px, 2.4vw, 17px);
    font-weight: 750;
    line-height: 1.2
}

.social-subtitle {
    font-size: clamp(11px, 2vw, 14px);
    color: #b6c7bc;
    line-height: 1.25
}

footer {
    text-align: center;
    color: #9ea0a8;
    margin: 28px 0 4px;
    font-size: 17px
}

@media(max-width:600px) {
    body {
        background: #181b24
    }

    .shell {
        padding: 18px 18px 28px;
        box-shadow: none
    }

    .brand img {
        width: min(260px, 66%)
    }

    .slider {
        border-radius: 18px
    }

    .links {
        gap: 14px
    }

    .linkrow {
        min-height: 62px;
        padding: 7px 9px 7px 13px;
        grid-template-columns: 1fr .9fr auto
    }

    .chain {
        font-size: 16px;
        margin-right: 4px
    }

    .masuk {
        min-width: 105px;
        padding: 9px 10px
    }

    .social {
        gap: 8px
    }

    .social a {
        padding: 10px 9px;
        gap: 8px;
        min-height: 70px
    }

    .social-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px
    }

    .notice {
        margin: 20px 0
    }

    .vpn {
        gap: 9px
    }
}

@media(max-width:370px) {
    .shell {
        padding: 14px 11px
    }

    .linkrow {
        padding-left: 9px;
        gap: 3px
    }

    .masuk {
        min-width: 88px;
        font-size: 17px
    }

    .linkname {
        font-size: 17px
    }

    .latency {
        font-size: 15px
    }

    .chain {
        display: none
    }

    .vpn {
        grid-template-columns: 1fr
    }

    .social {
        grid-template-columns: 1fr 1fr
    }
}

@media(prefers-reduced-motion:reduce) {
    .slides {
        transition: none
    }
}

/* V5 公告：左侧喇叭使用独立图片；文字匀速从右向左移动 */
.speaker-image {
    width: 35px;
    height: 35px;
    object-fit: contain;
    flex: 0 0 35px;
    display: block
}

.notice .marquee {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap
}

.marquee-text {
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
    animation: notice-scroll var(--marquee-duration, 12s) linear infinite;
    animation-play-state: running
}

@keyframes notice-scroll {
    from {
        transform: translateX(var(--marquee-start, 100%))
    }

    to {
        transform: translateX(var(--marquee-end, -100%))
    }
}

@media(max-width:600px) {
    .speaker-image {
        width: 30px;
        height: 30px;
        flex-basis: 30px
    }
}

@media(prefers-reduced-motion:reduce) {
    .marquee-text {
        animation: none !important;
        transform: none !important
    }

    .notice .marquee {
        overflow-x: auto
    }
}

@media(max-width:360px) {
    .social a {
        padding: 8px 6px;
        gap: 6px
    }

    .social-icon {
        width: 33px;
        height: 33px;
        flex-basis: 33px
    }

    .social-title {
        font-size: 11px
    }

    .social-subtitle {
        font-size: 10px
    }
}