/* ================================================================
 * product-page-common.css
 * Shared styles for product category pages:
 * detection / jamming / module / system / accessories
 * ================================================================ */

/* ----------------------------------------------------------------
 * Block 1: Product Sub-Nav & Mobile Nav
 * ---------------------------------------------------------------- */

/* 导航栏整体样式 */
.product-sub-nav {
    background: #f5f5f5;
    padding: 1px 0;
}
.product-sub-nav .con .right ul li a {
    line-height: 30px !important;
}
.product-sub-nav .con {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.product-sub-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 10px 12px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
}

/* 左侧 Logo 区域 */
.product-sub-nav .left {
    flex-shrink: 0;
    min-width: 150px;
}

.product-sub-nav .left h2 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.product-sub-nav .left a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.product-sub-nav .con .right ul li a {
    line-height: 20px;
    display: flex;
}

.product-sub-nav .left a:hover {
    color: #007bff;
}

/* 右侧导航区域 */
.product-sub-nav .right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-sub-nav .right ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.product-sub-nav .right ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: none !important;
}

.product-sub-nav .right ul li:hover {
    transform: translateY(-3px);
    border-bottom: none !important;
}

/* 系列按钮容器特殊处理 */
.product-sub-nav .right ul li.series-nav-item,
.product-sub-nav .right ul li.series-nav-item:hover {
    border-bottom: none !important;
}

/* 导航链接样式 */
.product-sub-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    gap: 5px;
    padding: 15px 0 0 0;
    transition: all 0.3s;
    position: relative;
    text-align: center;
}

.product-sub-nav .nav-link:hover {
    color: #007bff;
}

.product-sub-nav .nav-link.active {
    color: #007bff;
    font-weight: 600;
}

.product-sub-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #007bff;
}

/* 图标容器 */
.nav-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);*/
    transition: all 0.3s;
    overflow: hidden;
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
    /*box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);*/
    /*background: #f0f7ff;*/
}

.nav-icon svg {
    width: 28px;
    height: 28px;
    fill: #666;
    transition: fill 0.3s;
}

.nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.nav-link:hover .nav-icon svg,
.nav-link.active .nav-icon svg {
    fill: #007bff;
}

/* 手机端样式 */
@media screen and (max-width: 768px) {
    /* Prevent horizontal scrolling on mobile */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    /* Ensure all containers don't exceed viewport width */
    .w1500,
    .con {
        width: 90% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    /* Hide video scroll containers on mobile */
    .video-scroll-container {
        display: none !important;
    }

    /* Show mobile image lists on mobile */
    .ctn1-mobile.liebiao,
    .ctn2-mobile.lunbo,
    .ctn3-mobile.liebiao {
        display: block !important;
    }

    /* Mobile image list styles */
    .ctn1-mobile.liebiao ul,
    .ctn3-mobile.liebiao ul {
        padding: 0;
        margin: 0;
        list-style: none;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }

    .ctn1-mobile.liebiao li,
    .ctn3-mobile.liebiao li {
        margin-bottom: 15px;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }

    .ctn1-mobile.liebiao img,
    .ctn3-mobile.liebiao img {
        width: 100%;
        height: auto;
        display: block;
        max-width: 100%;
    }

    /* Mobile swiper styles */
    .ctn2-mobile.lunbo {
        padding: 20px 0;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }

    .ctn2-mobile .swiper-container {
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }

    .ctn2-mobile .swiper-slide img {
        width: 100%;
        height: auto;
        display: block;
        max-width: 100%;
    }

    /* Ensure all images in the page don't cause overflow */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    .product-sub-nav {
        display: none !important;
    }

    /* 移动端底部固定导航 */
    .mobile-nav {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        z-index: 999;
        padding: 8px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* 给页面底部添加内边距，防止内容被导航栏遮挡 */
    body {
        padding-bottom: 60px !important;
    }

    .mobile-nav-container {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 0 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mobile-nav-container::-webkit-scrollbar {
        display: none;
    }

    .mobile-nav-item {
        flex-shrink: 0;
        padding: 8px 16px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        color: #fff;
        font-size: 13px;
        text-decoration: none !important;
        white-space: nowrap;
        transition: all 0.3s;
    }

    .mobile-nav-item.active {
        background: #1E9FFF;
        border-color: #1E9FFF;
    }

    .mobile-nav-item:active {
        transform: scale(0.95);
    }

    /* 移动端系列按钮 */
    .mobile-nav-item.series {
        background: rgba(30, 159, 255, 0.2);
        border-color: rgba(30, 159, 255, 0.5);
    }
}

/* ----------------------------------------------------------------
 * Block 2: Product Info Wrapper, Detail/Series Buttons
 * ---------------------------------------------------------------- */

/* Hide mobile-only content on desktop */
.ctn1-mobile.liebiao,
.ctn2-mobile.lunbo,
.ctn3-mobile.liebiao {
    display: none;
}

.product-info-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
}

.product-info-wrapper h2 {
    margin: 0;
    white-space: nowrap;
}

.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: #1E9FFF;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.learn-more-btn svg {
    transition: transform 0.3s ease;
}

.learn-more-btn:hover {
    background: #fff;
    transform: translateX(3px);
}

.learn-more-btn:hover svg {
    transform: translateX(3px);
}

.learn-more-btn:active {
    transform: translateX(1px);
}

/* 产品详情按钮样式 - 隐藏 */
.detail-btn {
    display: none !important;
}

.detail-btn svg {
    transition: transform 0.3s ease;
}

.detail-btn:hover {
    background: #fff;
    color: #1E9FFF;
}

.detail-btn:hover svg {
    transform: translateX(3px);
}

.detail-btn:active {
    transform: translateX(1px);
}

/* 系列产品链接样式 */
.series-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: none !important;
    position: relative;
}

/* 移除任何可能的伪元素下划线 */
.series-nav-item::after,
.series-nav-item::before {
    display: none !important;
    border-bottom: none !important;
}

.product-sub-nav .right ul li.series-nav-item::after {
    display: none !important;
    content: none !important;
}

.series-link,
.series-link:hover,
.series-link:active,
.series-link:focus,
.series-link:visited {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    outline: none !important;
    -webkit-text-decoration: none !important;
    -moz-text-decoration: none !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

.series-link::after,
.series-link::before {
    display: none !important;
    border-bottom: none !important;
    content: none !important;
}

.series-link span {
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    border-bottom: none !important;
}

.product-sub-nav .right ul .series-nav-item .series-link,
.product-sub-nav .right ul .series-nav-item .series-link:hover,
.product-sub-nav .right ul .series-nav-item .series-link:active,
.product-sub-nav .right ul .series-nav-item .series-link:focus {
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    -moz-text-decoration: none !important;
    border-bottom: none !important;
}

.series-link svg {
    transition: transform 0.3s ease;
}

.series-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.series-link:hover svg {
    transform: rotate(90deg);
}

.series-link:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .product-info-wrapper {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .detail-btn {
        padding: 5px 14px;
        font-size: 11px;
    }

    .series-nav-item {
        margin-left: 10px;
        padding-left: 10px;
    }

    .series-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* ----------------------------------------------------------------
 * Block 3: Video Scroll Container
 * ---------------------------------------------------------------- */

.video-scroll-container {
    position: relative;
    width: 100%;
    min-height: 700vh;
    background-color: #000;
}

.video-section-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.video-section-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: none;
}

.video-section-wrapper video.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* 视频结束文字样式 */
.video-end-text {
    position: absolute;
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    background: transparent;
    padding: 30px 40px;
    border: none;
    border-radius: 4px;
    z-index: 10;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    -ms-transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-end-text.show {
    opacity: 1;
}

.video-end-text .text-content {
    color: #fff !important;
}

.video-end-text .main-title {
    font-size: 36px;
    font-weight: bold;
    color: #ff6600 !important;
    margin-bottom: 20px;
    line-height: 1.4;
    display: block;
}

.video-end-text .specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.video-end-text .specs-list li {
    font-size: 18px;
    color: #cccccc !important;
    margin-bottom: 12px;
    line-height: 1.8;
    display: list-item;
}

@media (max-width: 768px) {
    .video-end-text {
        right: 10%;
        left: 10%;
        padding: 20px;
    }

    .video-end-text .main-title {
        font-size: 24px;
    }

    .video-end-text .specs-list li {
        font-size: 14px;
    }

    .video-scroll-container {
        min-height: 600vh;
    }

    .video-section-wrapper video {
        width: 100%;
        height: 100%;
    }
}

/* ===================================================================
 * 视频1专用样式 - 分两部分显示
 * =================================================================== */

/* 第一部分：标题 + 描述 */
.video-text-part1 {
    right: auto !important;
    left: 5% !important;
    top: 35% !important;
    transform: translateY(0) !important;
    opacity: 0 !important;
    transition: none !important;
}

.video-text-part1.show {
    /* opacity由JavaScript动态控制 */
}

.video-text-part1.fade-out {
    opacity: 0;
}

.video-text-part1 .text-content {
    max-width: 800px;
    text-align: left;
}

.video-text-part1 .product-badge {
    display: inline-block;
    background: #ff3333;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.video-text-part1 .main-title {
    font-size: 72px !important;
    font-weight: 800 !important;
    color: #fff !important;
    line-height: 1.1 !important;
    margin: 0 0 16px 0 !important;
    text-transform: uppercase;
}

.video-text-part1 .sub-title {
    font-size: 20px;
    color: #ff6600 !important;
    font-weight: 600;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.video-text-part1 .description {
    font-size: 16px;
    color: #ccc !important;
    line-height: 1.8;
    margin: 0;
    max-width: 700px;
}

/* 第二部分：特性网格 */
.video-text-part2 {
    right: 5% !important;
    left: auto !important;
    top: 50% !important;
    transform: translate(0, 50%) !important;
    opacity: 0 !important;
    transition: none !important;
}

.video-text-part2.show {
    /* transform和opacity由JavaScript动态控制 */
}

.video-text-part2 .text-content {
    max-width: 1100px;
    text-align: left;
}

.video-text-part2 .specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.video-text-part2 .spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 280px;
    max-width: 320px;
}

.video-text-part2 .spec-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 102, 0, 0.3);
}

.video-text-part2 .spec-item svg {
    flex-shrink: 0;
    width: 32px !important;
    height: 32px !important;
}

.video-text-part2 .spec-item div {
    flex: 1;
}

.video-text-part2 .spec-item strong {
    display: block;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.video-text-part2 .spec-item span {
    display: block;
    color: #ff3333 !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.video-text-part2 .footer-text {
    font-size: 14px;
    color: #999 !important;
    margin: 0;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式适配 */
@media (max-width: 1440px) {
    .video-text-part1 .main-title {
        font-size: 56px !important;
    }
    
    .video-text-part1 .sub-title {
        font-size: 18px;
    }
    
    .video-text-part2 .specs-grid {
        gap: 20px;
    }
}

@media (max-width: 1200px) {
    .video-text-part1 .main-title {
        font-size: 48px !important;
    }
    
    .video-text-part1 .product-badge {
        font-size: 20px;
        padding: 6px 16px;
    }
    
    .video-text-part2 .specs-grid {
        gap: 16px;
    }
    
    .video-text-part2 .spec-item {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .video-text-part1 .main-title {
        font-size: 36px !important;
    }
    
    .video-text-part1 .sub-title {
        font-size: 16px;
    }
    
    .video-text-part1 .description {
        font-size: 14px;
    }
    
    .video-text-part2 .specs-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .video-text-part2 .spec-item {
        padding: 12px;
        gap: 12px;
    }
    
    .video-text-part2 .spec-item svg {
        width: 24px;
        height: 24px;
    }
    
    .video-text-part2 .spec-item strong {
        font-size: 14px;
    }
    
    .video-text-part2 .spec-item span {
        font-size: 13px;
    }
}
