/* tuop home theme — overrides + hero swiper */

.logo-icon {
    max-height: 36px;
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

.btn-back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 44px;
    height: 44px;
    background: #4c6ef5;
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-back-to-top:hover {
    background: #3b5bdb;
    color: #fff;
}

/* 右上角登录/注册下拉 */
.auth-dropdown {
    position: relative;
}

.auth-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    background: #1a73e8;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.auth-dropdown-toggle:hover {
    background: #1557b0;
}

.header.scrolled .auth-dropdown-toggle {
    color: #fff;
    background: #1a73e8;
}

.auth-caret {
    transition: transform 0.2s ease;
}

.auth-dropdown.open .auth-caret {
    transform: rotate(180deg);
}

.auth-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 128px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.18);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.auth-dropdown.open .auth-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.auth-dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s ease, color 0.15s ease;
}

.auth-dropdown-menu a:hover {
    background: #f0f7ff;
    color: #1a73e8;
}

/* ===== 仿 zxqyun 动态轮播 Banner ===== */
.home-swiper {
    position: relative;
    width: 100%;
    height: 640px;
    overflow: hidden;
    background: #0b1a3a;
}

.banner-swiper,
.banner-swiper .swiper-wrapper,
.banner-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.banner-swiper .swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    background: #0b1a3a;
}

.slide-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.slide-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 18, 48, 0.72) 0%, rgba(8, 18, 48, 0.35) 55%, rgba(8, 18, 48, 0.15) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin-left: 280px;
    padding: 0 24px;
    color: #fff;
}

.slide-content h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.slide-content p {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
}

.slide-btn {
    display: inline-block;
    padding: 12px 36px;
    background: #276cff;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.slide-btn:hover {
    opacity: 0.92;
    color: #fff;
    transform: translateY(-1px);
}

.slide-illust {
    display: none;
}

.swiper-side-nav {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 200px;
}

.side-nav-item {
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.side-nav-item h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #fff;
}

.side-nav-item p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.side-nav-item:hover,
.side-nav-item.active {
    background: rgba(39, 108, 255, 0.85);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(39, 108, 255, 0.35);
}

.banner-indicators {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}

.banner-indicator {
    width: 28px;
    height: 4px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.banner-indicator.active {
    width: 42px;
    background: #fff;
}

/* 轮播页顶栏默认白字（未滚动时） */
.home-swiper ~ * .noop { }

@media (max-width: 992px) {
    .home-swiper {
        height: 520px;
    }

    .swiper-side-nav {
        display: none;
    }

    .slide-content {
        margin-left: 24px;
        max-width: 70%;
    }

    .slide-content h2 {
        font-size: 30px;
    }

    .slide-illust {
        right: 2%;
        width: min(280px, 40vw);
        opacity: 0.85;
    }
}

@media (max-width: 768px) {
    .contact {
        background: url(./assets/image/footer-banner.png) no-repeat !important;
        background-size: cover !important;
    }

    .header-right {
        display: flex !important;
        margin-right: 4px;
    }

    .auth-dropdown-toggle {
        padding: 7px 12px;
        font-size: 13px;
    }

    .home-swiper {
        height: 460px;
    }

    .slide-content {
        margin-left: 16px;
        max-width: 100%;
        padding-right: 16px;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .slide-illust {
        display: none;
    }

    .banner-indicators {
        bottom: 18px;
    }
}
