/* ============================================================
   index.css - 首页
   结构: 1.Hero 2.Product 3.Marquee 4.Video 5.Slogan 6.Testimonial
         7.响应式(按断点合并)
   ============================================================ */

/* ========== 1. Hero Slider ========== */
.hero-slider {
    width: 100%;
    overflow: hidden;
}

.hero-slider__wrapper {
    width: 100%;
}

.hero-slider__swiper {
    width: 100%;
    height: auto;
}

.hero-slider__swiper .swiper-slide {
    width: 100%;
}

.hero-slider__swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

/* ========== 2. Product ========== */
.product__card {
    text-align: center;
    position: relative;
    width: 100%;
}

.product__img {
    width: 100%;
    overflow: hidden;
}

.product__img img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.product__content {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.product__info {
    font-size: var(--font-size-2xl);
    color: #000;
    margin-bottom: 30px;
    font-weight: 600;
}

.product__link {
    background: #FF481F;
    color: #fff;
    padding: 12px 50px;
    border-radius: 25px;
    font-size: var(--font-size-lg);
    line-height: 46px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

/* 平板 */
@media (max-width: 768px) {
    .product__content {
        bottom: 24px;
    }
    .product__info {
        font-size: var(--font-size-subheading);
        margin-bottom: 16px;
    }
    .product__link {
        font-size: var(--font-size-body);
        padding: 10px 32px;
        line-height: 1.4;
    }
}

/* 移动端 */
@media (max-width: 480px) {
    .product__content {
        bottom: 16px;
    }
    .product__info {
        font-size: var(--font-size-body);
        margin-bottom: 12px;
    }
    .product__link {
        font-size: var(--font-size-small);
        padding: 8px 24px;
    }
}



/* ========== 3. Marquee ========== */
.marquee {
    width: 100vw;
    height: 100px;
    overflow: hidden;
    position: relative;
    margin: 3rem auto;
}

.marquee::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: solid 1px white;
    pointer-events: none;
}

.marquee__list {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    height: 100px;
    width: max-content;
    min-width: 100vw;
}

.marquee__item {
    width: 200px;
    height: 100px;
    margin-right: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee__item img {
    max-height: 80%;
    max-width: 90%;
}


/* ========== 4. Video ========== */
.video {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 2.5rem;
    margin: 4rem auto;
    padding: 0 var(--container-padding);
}

.video__title {
    font-size: var(--font-size-4xl);
    font-style: normal;
    margin-top: 1.8rem;
    font-weight: 500;
}

.video__desc {
    font-size: var(--font-size-lg);
    font-weight: 500;
}

.video__card {
    cursor: pointer;
    max-width: 50%;
    flex: 1;
}

.video__cover {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.video__cover img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

.video__text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 900;
    font-size: var(--font-size-display-lg);
    line-height: 46px;
    letter-spacing: 0%;
    color: #fff;
}

/* 笔记本 */
@media (min-width: 1024px) and (max-width: 1919px) {
    .video {
        gap: 2rem;
        margin: 3rem auto;
    }
    .video__title {
        font-size: var(--font-size-3xl);
        margin-top: 1.25rem;
    }
    .video__desc {
        font-size: var(--font-size-lead);
    }
    .video__text {
        font-size: var(--font-size-5xl);
    }
}

/* 平板及以下：垂直堆叠 */
@media (max-width: 768px) {
    .video {
        flex-direction: column;
        gap: 2rem;
        margin: 2.5rem auto;
    }
    .video__card {
        max-width: 100%;
        width: 100%;
    }
    .video__title {
        font-size: var(--font-size-heading);
        margin-top: 1rem;
    }
    .video__desc {
        font-size: var(--font-size-body);
    }
    .video__text {
        font-size: var(--font-size-3xl);
    }
}

@media (max-width: 480px) {
    .video {
        gap: 1.5rem;
        margin: 2rem auto;
    }
    .video__title {
        font-size: var(--font-size-subheading);
    }
    .video__desc {
        font-size: var(--font-size-small);
    }
    .video__text {
        font-size: var(--font-size-xl);
    }
}


/* ========== 5. Slogan ========== */
.slogan {
    text-align: center;
    margin: 4rem auto;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slogan__img {
    width: 100%;
    position: relative;
}

.slogan__img img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

.slogan__content {
    font-size: clamp(4rem, 8vw, 12rem);
    font-weight: 700;
    color: #000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    max-width: 100vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== 6. Testimonial ========== */
.testimonial {
    position: relative;
}

.testimonial__bg {
    position: relative;
    z-index: 1;
}

.testimonial__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(243, 243, 243, 0.7) 0%, rgba(243, 243, 243, 0) 55%);
    pointer-events: none;
}

.testimonial__bg {
    width: 100%;
    overflow: hidden;
}

.testimonial__bg img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

.testimonial__foreground {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 150px;
    z-index: 4;
    overflow: visible;
    padding-top: 8rem;
}

.testimonial__people {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    z-index: 5;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

.testimonial__people img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    animation: people-float 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes people-float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.testimonial__title {
    color: #fff;
    text-align: center;
    font-size: var(--font-size-section);
    font-weight: 800;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 20%;
    width: 100%;
    max-width: 100%;
    z-index: 6;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.testimonial__slider {
    display: flex;
    position: relative;
    width: max-content;
    will-change: transform;
    margin-bottom: 4rem;
}

.testimonial__card {
    width: 360px;
    margin-right: 2.5rem;
    flex: 0 0 auto;
    background: rgba(243, 243, 243, 0.4);
    border: 1px solid #000;
    border-radius: 15px;
    padding: 1rem;
}

.testimonial__avatar {
    margin-bottom: 1rem;
    width: 52px;
    height: 52px;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial__content {
    font-size: var(--font-size-body);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.testimonial__name {
    font-size: var(--font-size-lead);
    font-weight: 700;
}

.testimonial__location {
    font-size: var(--font-size-small);
    opacity: 0.7;
}

/* 6 响应式 (1024–1919 / 768 / 480) */
@media (min-width: 1024px) and (max-width: 1919px) {
    .testimonial__foreground {
        bottom: 120px;
        padding-top: 6rem;
    }
    .testimonial__people {
        max-width: 500px;
    }
    .testimonial__title {
        font-size: clamp(2.5rem, 3vw, 3.25rem);
        top: 18%;
    }
    .testimonial__card {
        width: 320px;
        margin-right: 2rem;
    }
}

@media (max-width: 768px) {
    .testimonial__foreground {
        bottom: 100px;
        padding-top: 5rem;
        overflow-x: hidden;
    }
    .testimonial {
        overflow-x: hidden;
        min-height: 100vh;
        padding-bottom: 2rem;
    }
    .testimonial__bg {
        min-height: 100%;
        position: absolute;
        inset: 0;
    }
    .testimonial__bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .testimonial__people {
        max-width: 380px;
    }
    .testimonial__title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        top: 15%;
    }
    .testimonial__card {
        width: 300px;
        margin-right: 1.5rem;
        padding: 0.875rem;
    }
    .testimonial__content {
        font-size: var(--font-size-small);
    }
    .testimonial__name {
        font-size: var(--font-size-body);
    }
    .testimonial__location {
        font-size: var(--font-size-xs);
    }
}

@media (max-width: 480px) {
    .testimonial__foreground {
        bottom: 80px;
        padding-top: 4rem;
        overflow-x: hidden;
    }
    .testimonial {
        min-height: 100vh;
        padding-bottom: 1.5rem;
    }
    .testimonial__people {
        max-width: 280px;
    }
    .testimonial__title {
        font-size: clamp(1.25rem, 6vw, 2rem);
        top: 5%;
    }
    .testimonial__card {
        width: 260px;
        margin-right: 1.25rem;
        padding: 0.75rem;
    }
    .testimonial__avatar {
        width: 44px;
        height: 44px;
        margin-bottom: 0.75rem;
    }
    .testimonial__content {
        font-size: var(--font-size-xs);
        margin-bottom: 0.75rem;
    }
    .testimonial__name {
        font-size: var(--font-size-small);
    }
    .testimonial__location {
        font-size: var(--font-size-caption);
    }
}

/* ========== 7. 响应式 (按断点合并) ========== */

/* --- 7.1 笔记本 1024–1919px --- */
@media (min-width: 1024px) and (max-width: 1919px) {
    .marquee {
        height: 110px;
    }

    .marquee__list {
        height: 110px;
    }

    .marquee__item {
        width: 220px;
        height: 110px;
        margin-right: 3.5rem;
    }

    .product__info {
        font-size: var(--font-size-3xl);
    }

    .product__link {
        font-size: var(--font-size-heading);
        padding: 14px 60px;
    }

    .video__title {
        font-size: var(--font-size-title);
    }

    .video__desc {
        font-size: var(--font-size-subheading);
    }

    .video__text {
        font-size: var(--font-size-display-xl);
    }

    .slogan__content {
        font-size: clamp(5rem, 7vw, 10rem);
    }

    .testimonial__title {
        font-size: clamp(3rem, 3.5vw, 4rem);
        top: 10%;
    }

    .testimonial__card {
        width: 400px;
    }

    .testimonial__avatar {
        width: 58px;
        height: 58px;
    }
}

/* --- 7.2 平板 max-width: 768px --- */
@media (max-width: 768px) {
    .marquee {
        height: 70px;
    }

    .marquee__item {
        width: 140px;
        height: 70px;
    }

    .marquee__item img {
        max-height: 70%;
    }

    .slogan__content {
        font-size: clamp(3rem, 12vw, 6rem);
    }
}

/* --- 7.3 移动端 max-width: 480px --- */
@media (max-width: 480px) {
    .marquee {
        height: 60px;
    }

    .marquee__item {
        width: 120px;
        height: 60px;
    }

    .marquee__item img {
        max-height: 60%;
    }

    .slogan__content {
        font-size: clamp(2rem, 10vw, 4rem);
    }
}

/* --- 7.4 大屏 min-width: 1920px --- */
@media (min-width: 1920px) {
    .marquee {
        height: 120px;
    }

    .marquee__list {
        height: 120px;
        min-width: 200vw;
    }

    .marquee__item {
        width: 250px;
        height: 120px;
        margin-right: 4rem;
    }

    .slogan__content {
        font-size: clamp(10rem, 6vw, 16rem);
    }

    .hero-slider__swiper .swiper-slide img,
    .product__img img,
    .video__cover img,
    .slogan__img img,
    .testimonial__bg img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .testimonial__title {
        font-size: clamp(3.25rem, 4vw, 5rem);
        z-index: 6;
        top: 8%;
    }

    .testimonial__avatar {
        width: 65px;
        height: 65px;
    }

    .testimonial__avatar img {
        width: 100%;
        height: 100%;
    }

    .testimonial__people {
        max-width: 800px;
        z-index: 3;
    }

    .testimonial__people img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

/* --- 7.5 超宽 min-width: 2560px --- */
@media (min-width: 2560px) {
    .marquee {
        height: 140px;
    }

    .marquee__list {
        height: 140px;
        min-width: 300vw;
    }

    .marquee__item {
        width: 300px;
        height: 140px;
        margin-right: 5rem;
    }

    .slogan__content {
        font-size: clamp(12rem, 5vw, 20rem);
    }

    .hero-slider__swiper .swiper-slide img,
    .product__img img,
    .video__cover img,
    .slogan__img img,
    .testimonial__bg img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .testimonial__title {
        font-size: clamp(3.25rem, 4vw, 6rem);
        z-index: 6;
        top: 8%;
    }

    .testimonial__avatar {
        width: 78px;
        height: 78px;
    }

    .testimonial__avatar img {
        width: 100%;
        height: 100%;
    }

    .testimonial__people {
        max-width: 1000px;
        z-index: 3;
    }

    .testimonial__people img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

/* --- 7.6 4K min-width: 3840px --- */
@media (min-width: 3840px) {
    .marquee {
        height: 160px;
    }

    .marquee__list {
        height: 160px;
        min-width: 400vw;
    }

    .marquee__item {
        width: 350px;
        height: 160px;
        margin-right: 6rem;
    }

    .slogan__content {
        font-size: clamp(16rem, 4vw, 24rem);
    }

    .hero-slider__swiper .swiper-slide img,
    .product__img img,
    .video__cover img,
    .slogan__img img,
    .testimonial__bg img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .testimonial__title {
        font-size: clamp(3.25rem, 3vw, 7rem);
        z-index: 6;
        top: 8%;
    }

    .testimonial__avatar {
        width: 104px;
        height: 104px;
    }

    .testimonial__avatar img {
        width: 100%;
        height: 100%;
    }

    .testimonial__people {
        max-width: 1200px;
        z-index: 6;
    }

    .testimonial__people img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}
