/**
 * Hero Slider Styles
 * 首页轮播横幅样式
 */

/* 移除轮播图所有交互元素的蓝色边框 */
.hero-slider button,
.hero-slider a,
.hero-slider__nav,
.hero-slider__dot {
	outline: none !important;
	-webkit-tap-highlight-color: transparent !important;
}

.hero-slider button:focus,
.hero-slider button:active,
.hero-slider a:focus,
.hero-slider a:active,
.hero-slider__nav:focus,
.hero-slider__nav:active,
.hero-slider__dot:focus,
.hero-slider__dot:active {
	outline: none !important;
	-webkit-tap-highlight-color: transparent !important;
}

.hero-slider button:focus-visible,
.hero-slider a:focus-visible,
.hero-slider__nav:focus-visible,
.hero-slider__dot:focus-visible {
	outline: none !important;
}

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--laifen-gray-100, #f8f9fa);
}

.hero-slider__wrapper {
    position: relative;
    width: 100%;
}

/* 单个轮播项 */
.hero-slider__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.hero-slider__slide:first-child {
    position: relative;
}

.hero-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* 图片样式 */
.hero-slider__image {
    display: block;
    width: 100%;
}

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

/* 内容覆盖层 */
.hero-slider__content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    padding-left: 80px;
    background: linear-gradient(to right, rgba(0,0,0,0.1) 0%, transparent 50%);
}

.hero-slider__text {
    text-align: left;
    max-width: 600px;
    color: #333;
}

.hero-slider__heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: #1a1a1a;
}

.hero-slider__subheading {
    font-size: 1rem;
    color: var(--laifen-primary, #007bff);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-slider__button {
    display: inline-block;
    padding: 12px 32px;
    text-decoration: none;
    border-radius: var(--laifen-radius-md, 8px);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    border-radius: 24px !important;
}

.hero-slider__button:hover {
    opacity: 0.9;
    transform: none;
    box-shadow: none;
}

/* 导航箭头 - 隐藏 */
.hero-slider__nav {
    display: none;
}

.hero-slider__nav:hover {
    background: rgba(0, 0, 0, 0.7);
    box-shadow: none;
}

.hero-slider__nav--prev {
    left: 20px;
}

.hero-slider__nav--next {
    right: 20px;
}

.hero-slider__nav img {
    width: 24px;
    height: 24px;
    display: block;
}

/* 指示点 */
.hero-slider__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-slider__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-slider__dot:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 0, 0, 0.7);
}

.hero-slider__dot.is-active {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(0, 0, 0, 0.7);
}

/* 响应式样式 */
@media (max-width: 991px) {
    .hero-slider__heading {
        font-size: 2rem;
    }

    .hero-slider__nav {
        width: 40px;
        height: 40px;
    }

    .hero-slider__nav--prev {
        left: 10px;
    }

    .hero-slider__nav--next {
        right: 10px;
    }
}

@media (max-width: 767px) {
    .hero-slider__content {
        padding: 1rem 20px;
        padding-left: 20px;
        align-items: flex-end;
        padding-bottom: 60px;
    }

    /* 移动端内容位置变体 */
    .hero-slider__content.mobile-position-bottom-left {
        align-items: flex-end;
        justify-content: flex-start;
        padding-bottom: 30px;
        background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 100%);
        height: 40%;
        top: auto;
        bottom: 0;
    }

    .hero-slider__content.mobile-position-bottom-left .hero-slider__text {
        text-align: left;
    }

    .hero-slider__content.mobile-position-bottom-center {
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 60px;
    }

    .hero-slider__content.mobile-position-bottom-center .hero-slider__text {
        text-align: center;
    }

    .hero-slider__content.mobile-position-top-center {
        align-items: flex-start;
        justify-content: center;
        padding-top: 40px;
        padding-bottom: 1rem;
    }

    .hero-slider__content.mobile-position-top-center .hero-slider__text {
        text-align: center;
    }

    .hero-slider__content.mobile-position-center {
        align-items: center;
        justify-content: center;
        padding-top: 1rem;
        padding-bottom: 60px;
    }

    .hero-slider__content.mobile-position-center .hero-slider__text {
        text-align: center;
    }

    .hero-slider__heading {
        font-size: 1.5rem;
    }

    .hero-slider__subheading {
        font-size: 0.875rem;
        margin-bottom: 0.75rem !important;
    }

    .hero-slider__button {
        padding: 8px 14px !important;
        font-size: 0.875rem;
        border-radius: 20.5px !important;
    }

    .hero-slider__nav {
        width: 36px;
        height: 36px;
    }

    .hero-slider__dots {
        bottom: 15px;
    }

    .hero-slider__dot {
        width: 10px;
        height: 10px;
    }
}
