/* ==============================================
   product.css 产品页专属样式
   功能：仅控制 product.html 页面样式
   说明：完全保留原始布局，无任何样式改动，只修复冗余/重复/错误
================================================= */

/* ==============================================
   模块1：顶部全屏主视觉 Banner
   作用：页面最上方全屏大图、标题、滚动提示
================================================= */
.hero-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

/* 滚动向下提示动画 */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #FFFFFF;
    text-align: center;
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-hint-text {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.scroll-hint i {
    color: #FFFFFF;
    font-size: 1rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-8px) translateX(-50%);
    }

    60% {
        transform: translateY(-4px) translateX(-50%);
    }
}

/* ==============================================
   模块2：产品丰富展示区（大图 + 双图 + 6张功能图）
   作用：产品外观展示、场景介绍、核心功能图
================================================= */
.rich-showcase-section {
    padding: 80px 0;
    background: #fff;
}

.rich-showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 模块标题 */
.showcase-title {
    text-align: center;
    margin-bottom: 60px;
}

.showcase-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1D2129;
    margin-bottom: 20px;
}

.showcase-title p {
    font-size: 18px;
    color: #4E5969;
    max-width: 800px;
    margin: 0 auto;
}

/* 布局容器 */
.showcase-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 中间描述文字 */
.showcase-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.showcase-text p {
    font-size: 18px;
    color: #4E5969;
    line-height: 1.8;
    text-align: center;
}

/* 顶部大长方形展示图 */
.showcase-large-rect {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.showcase-large-rect img {
    width: 100%;
    height: auto;
    display: block;
}

/* 场景标题 & 详情标题 */
.showcase-scene-title,
.showcase-detail-title {
    text-align: center;
    margin: 30px 0;
}

.showcase-scene-title h3,
.showcase-detail-title h3 {
    font-size: 28px;
    font-weight: 600;
    color: #1D2129;
    margin-bottom: 12px;
    text-align: center;
}

.showcase-scene-title p,
.showcase-detail-title p {
    font-size: 16px;
    color: #4E5969;
    text-align: center;
}

/* 横向双图展示 */
.showcase-middle-row {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.showcase-middle-item {
    flex: 1;
    text-align: center;
}

.showcase-middle-item img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
}

.item-desc {
    font-size: 16px;
    font-weight: 500;
    color: #1D2129;
    text-align: center;
}

/* ========== 6张功能图（强制一样大小、一样高度）========== */
.showcase-three-images {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    height: 220px;
    /* 统一高度 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 强制一样大 */
    display: block;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .showcase-three-images {
        flex-direction: column;
    }

    .showcase-middle-row {
        flex-direction: column;
    }

    .feature-image {
        height: auto;
    }
}

/* ==============================================
   模块3：大疆风格全屏滚动展示区
   作用：滚动吸附、文字切换、背景图片放大效果
================================================= */
.dji-showcase-section {
    position: relative;
    width: 100%;
    height: 500vh;
    background: #f5f5f5;
}

.showcase-sticky {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* 真正全屏 */
    overflow: hidden;
    /* 无留白 */
}

.showcase-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.showcase-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 铺满全屏 */
    object-position: center;
    /* 永远居中 */
    transform: scale(1.05);
    /* 初始轻微缩小，防止放大失真 */
    transition: transform 0.6s ease-out;
    will-change: transform;
    user-select: none;
    pointer-events: none;
}

.showcase-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 0 clamp(1.5rem, 6vw, 4rem);
}

.text-stages {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
}

.text-stage {
    position: absolute;
    top: 50%;
    width: 100%;
    max-width: 600px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    transform: translateY(-50%);
    backface-visibility: hidden;
}


/* 大疆风格展示全屏滑动的所有文字改为：右侧垂直居中 */
#stage1,
#stage2,
#stage3,
#stage4 {
    left: auto;        /* 取消左侧50% */
    right: 4%;        /* 距离右侧距离，可自行调整 */
    top: 50%;         /* 垂直居中 */
    transform: translateY(-50%); /* 垂直居中 */
    text-align: left; /* 文字左对齐（更美观） */
    padding: 0;
    max-width: 600px; /* 防止文字太宽 */
}

.text-stage.active {
    opacity: 1;
    visibility: visible;
}

/* 统一淡出动画，不左右飘 */
#stage1.inactive,
#stage1.fading-out,
#stage2.inactive,
#stage2.fading-out,
#stage3.inactive,
#stage3.fading-out,
#stage4.inactive,
#stage4.fading-out {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -60%);
    /* 向上淡出，更美观 */
}

.text-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.2rem;
    line-height: 1.1;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.text-description {
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    max-width: 500px;
    font-weight: 400;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

#stage1 .text-description,
#stage3 .text-description,
#stage5 .text-description {
    margin-left: 0;
    margin-right: auto;
}

#stage2 .text-description,
#stage4 .text-description {
    margin-right: 0;
    margin-left: auto;
}

/* ==============================================
   模块4：产品功能模块（12K画质、快速拍摄、工程节点）
   作用：上下结构：文字介绍 + 大图展示，全部居中
================================================= */
.product-module {
    padding: 80px 0;
    background: #fff;
    text-align: center;
}

.product-module.bg-light {
    background: #F2F3F5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 模块标题 */
.module-title {
    text-align: center;
    margin-bottom: 60px;
}

.module-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1D2129;
    margin-bottom: 20px;
    text-align: center;
}

.module-title .subtitle {
    font-size: 18px;
    color: #4E5969;
    text-align: center;
}

/* 上下布局 */
.vertical-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 文字内容全部居中 */
.text-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center !important;
}

.text-content p {
    font-size: 18px;
    color: #4E5969;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center !important;
}

.text-content ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    text-align: center !important;
}

.text-content li {
    font-size: 16px;
    color: #4E5969;
    margin-bottom: 12px;
    text-align: center !important;
}

/* 展示图片 */
.img-container {
    width: 100%;
}

.img-full-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.img-full-container img {
    width: 100%;
    max-width: 800px;
    /* 统一宽度 */
    height: 450px;
    /* 统一高度（和工程节点完全一样） */
    object-fit: cover;
    /* 强制横屏、不变形、不失真 */
    object-position: center;
    display: block;
    margin: 0 auto;
}

/* 底部购买按钮区域 */
.cta-container {
    text-align: center;
}

/* ==============================================
   模块5：产品参数模块
   作用：6个参数卡片网格展示
================================================= */
.params-module {
    padding: 80px 0;
    background: #fff;
}

.params-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.param-card {
    background: #F9FAFB;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.param-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1D2129;
    margin-bottom: 20px;
    text-align: center;
}

.param-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.param-card li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #E5E6EB;
}

.param-card li:last-child {
    border-bottom: none;
}

.label {
    font-size: 16px;
    color: #4E5969;
    font-weight: 500;
}

.value {
    font-size: 16px;
    color: #1D2129;
    font-weight: 400;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .params-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .params-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================================
   修复：搜索弹窗样式（防止被覆盖、关不掉）
================================================= */
.search-modal-overlay {
    display: none !important;
    /* 强制默认隐藏 */
}

.search-modal-overlay:not(.hidden) {
    display: flex !important;
    /* JS控制显示 */
}

.search-modal {
    position: relative;
    z-index: 100;
}

.search-modal-close {
    cursor: pointer;
    background: none;
    border: none;
}

/* 修复大疆区域文字显示 */
.text-stage {
    opacity: 0 !important;
    visibility: hidden !important;
}

.text-stage.active {
    opacity: 1 !important;
    visibility: visible !important;
}