@font-face {
    font-family: 'MiSans';
    src: url('../assets/MiSansVF.ttf');
    font-display: swap;
}

* {
    box-sizing: border-box;
}

.bg {
    background-image: url('../assets/bg.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
}

.bg::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 70%,
            rgba(255, 255, 255, 0.45) 100%);
    pointer-events: none;
    z-index: 0;
}



img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
}

.header-wrap {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    width: 80px;
    height: 80px;
    background-image: url('../assets/logoBG.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.nav {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    border-radius: 100px;
    padding: 0 32px;
    width: auto;
}

.nav-item a {
    color: #000000;
    text-decoration: none;
    font-size: 1.25rem;
    font-family: 'MiSans', system-ui, sans-serif;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-item a:hover {
    color: #2E8DFF;
}

.section-wrap {
    display: flex;
    gap: 20px;
    max-width: 1500px;
    margin: 120px auto 0;
    padding: 0 20px;
    align-items: stretch;
}

.poster {
    flex: 0 0 50%;
    width: 100%;
    max-width: 1200px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: stretch;
}

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

.poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, #000000 0.75%, rgba(54, 54, 54, 0) 50%);
    border-radius: 12px;
}

.poster>* {
    position: relative;
    z-index: 2;
}

.button-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background-image: url('../assets/left.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

.button-left:hover {
    opacity: 0.8;
    cursor: pointer;
}

.button-right {
    position: absolute;
    right: 12px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background-image: url('../assets/right.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

.button-right:hover {
    opacity: 0.8;
    cursor: pointer;
}

.poster-title {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 2;
    color: #ffffff;
    font-family: 'MiSans', system-ui, sans-serif;
}

.poster-currect {
    position: absolute;
    left: 20px;
    bottom: 8px;
    width: 40px;
    height: 8px;
    background: #2E8DFF;
    border-radius: 30px;
}

footer {
    width: 100%;
    max-width: 1520px;
    margin: 40px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.foot-left {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.foot-top-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footlogo {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.footlogo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.footer-text {
    font-size: 22px;
    margin: 0;
    white-space: nowrap;
}

.footer-copyright {
    font-size: 16px;
    margin: 0;
    white-space: nowrap;
}

.contact-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.contact {
    width: 100px;
    height: 100px;
    cursor: pointer;
    transition: transform 0.24s ease;
}

.contact:hover {
    transform: scale(1.02);
}

.contact:hover img {
    opacity: 0.85;
}

.contact img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ---------------- max‑width:1200px 小显示器、平板横屏 ---------------- */
@media (max-width: 1200px) {
    .section-wrap {
        flex-direction: column;
        margin-top: 100px;
        padding: 0 20px;
    }

    .poster {
        flex: none;
        width: 100%;
    }

    .nav {
        gap: 18px;
        padding: 0 24px;
    }

    .nav-item a {
        font-size: 1.15rem;
    }

    footer {
        gap: 24px;
        flex-wrap: wrap;
    }

    .footlogo {
        width: 88px;
        height: 88px;
    }

    .contact {
        width: 88px;
        height: 88px;
    }

    .footer-text {
        font-size: 20px;
    }
}

/* ---------------- max‑width:992px 平板竖屏、折叠大屏 ---------------- */
@media (max-width: 992px) {
    .header-wrap {
        gap: 12px;
    }

    .logo {
        width: 68px;
        height: 68px;
    }

    .nav {
        height: 54px;
        gap: 14px;
        padding: 0 18px;
    }

    .nav-item a {
        font-size: 1rem;
    }

    .section-wrap {
        margin-top: 90px;
    }

    .footlogo {
        width: 76px;
        height: 76px;
    }

    .contact {
        width: 76px;
        height: 76px;
    }

    .footer-text {
        font-size: 19px;
    }

    .footer-copyright {
        font-size: 15px;
    }
}

/* ---------------- max‑width:768px 手机端 ---------------- */
@media (max-width: 768px) {
    .header-wrap {
        left: 16px;
        transform: none;
        top: 16px;
        gap: 10px;
    }

    .logo {
        width: 52px;
        height: 52px;
    }

    .nav {
        height: 48px;
        gap: 10px;
        padding: 0 12px;
    }

    .nav-item a {
        font-size: 0.85rem;
    }

    .section-wrap {
        margin-top: 84px;
        padding: 0 16px;
    }

    footer {
        flex-direction: column-reverse;
        align-items: flex-start;
        margin-top: 32px;
        padding: 0 16px;
        gap: 20px;
    }

    .contact-group {
        gap: 12px;
    }

    .contact {
        width: 64px;
        height: 64px;
    }

    .foot-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footlogo {
        width: 72px;
        height: 72px;
    }

    .footer-text {
        font-size: 18px;
        white-space: normal;
    }

    .footer-copyright {
        font-size: 14px;
        white-space: normal;
    }
}

.toast-wrap {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    box-sizing: border-box;
    width: auto;
    min-width: 240px;
    max-width: min(600px, calc(100vw - 32px));
    background-color: #edf8fe;
    color: #4096ff;
    font-family: "MiSans", system-ui, sans‑serif;
    font-size: 18px;
    padding: 18px 22px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(64, 150, 255, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    position: relative;
}

/* 弹出动画 */
.toast-item.show {
    transform: translateX(0);
}

/* i图标 */
.toast-item::before {
    content: "i";
    flex: 0 0 36px;
    height: 36px;
    width: 36px;
    border-radius: 50%;
    background-color: #4096ff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
}

.toast-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    color: #82b8f0;
    border-radius: 6px;
    user-select: none;
}

.toast-close:hover {
    background-color: #e0f2fc;
}