/* 首页轮播：图片为背景层，文案为可维护的独立文本。 */
.home-banner-slide {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 320px;
    aspect-ratio: 1920 / 630;
    background: #2854a2;
    color: #fff;
    text-align: left;
}
.home-banner-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.home-banner-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
}
.home-banner .swiper-slide-active .home-banner-background img {
    animation: home-banner-zoom 6500ms ease-out both;
}
.home-banner .swiper-slide-active .home-banner-content > * {
    animation: home-banner-enter 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.home-banner .swiper-slide-active .home-banner-content p { animation-delay: 120ms; }
.home-banner .swiper-slide-active .home-banner-content .home-banner-button { animation-delay: 240ms; }
@keyframes home-banner-zoom {
    from { transform: scale(1.015); }
    to { transform: scale(1.06); }
}
@keyframes home-banner-enter {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
.home-banner .swiper-pagination {
    bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
}
.home-banner .swiper-pagination[hidden] { display: none; }
.home-banner .swiper-pagination .swiper-pagination-bullet {
    position: relative;
    width: 12px;
    height: 12px;
    margin: 0 9px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: width 400ms ease, background-color 250ms ease, border-color 250ms ease;
}
.home-banner .swiper-pagination .swiper-pagination-bullet::before {
    content: '';
    position: absolute;
    inset: -10px -8px;
}
.home-banner .swiper-pagination .swiper-pagination-bullet:hover { background: #fff; }
.home-banner .swiper-pagination .swiper-pagination-bullet-active {
    width: 38px;
    border-color: #20d3c2;
    background: #20d3c2;
}
.home-banner .swiper-pagination .swiper-pagination-bullet:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 5px;
}
.home-banner-content {
    position: relative;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding-top: 44px;
    padding-bottom: 54px;
    overflow-wrap: anywhere;
}
.home-banner-content h2 {
    max-width: 900px;
    margin: 0 0 12px;
    font-size: clamp(26px, 1.875vw, 36px);
    font-weight: 600;
    line-height: 1.4;
}
.home-banner-content p {
    max-width: 720px;
    margin: 0 0 36px;
    font-size: 18px;
    line-height: 1.5;
    white-space: pre-line;
}
.home-banner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 187px;
    min-height: 47px;
    max-width: 100%;
    padding: 10px 24px;
    border-radius: 4px;
    background: #20d3c2;
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}
.home-banner-button:hover,
.home-banner-button:focus-visible {
    background: #16bbaa;
    color: #fff;
}
.home-banner-button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (max-width: 1199px) {
    .home-banner-slide { aspect-ratio: 1200 / 830; }
}
@media (max-width: 767px) {
    .home-banner-slide { min-height: 390px; padding-top: 50px; }
    .home-banner-content { padding-top: 36px; padding-bottom: 48px; }
    .home-banner-content h2 { font-size: 24px; }
    .home-banner-content p { font-size: 14px; margin-bottom: 24px; }
    .home-banner-button { min-width: 140px; min-height: 42px; font-size: 14px; }
    .home-banner .swiper-pagination { bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-banner .swiper-slide-active .home-banner-background img,
    .home-banner .swiper-slide-active .home-banner-content > * { animation: none; }
    .home-banner-background img { transform: none; }
    .home-banner .swiper-pagination .swiper-pagination-bullet { transition: none; }
}
