/* 首页专用样式 */

/* 全局变量 */
:root {
    --primary-color: #378CFF;
    --secondary-color: #FF963D;
    --dark-bg: #040C1A;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border-color: #EEEEEE;
    /* --bg-light: #F4F4F4; */
    --bg-light: #0D172C;
    --bg-blue: #F6FBFF;
    --white: #FFFFFF;
    --gradient-dark: linear-gradient(337deg, #222222 0%, #181818 34%, #101010 36%, #070707 64%, #00003A 64%, #001B40 84%, #000C1D 90%, #242222 92%, #222222 100%);
}


/* banner区域 */
.hero {
    position: relative;
    /* height: 645px; */
    margin-top: 96px;
    overflow: hidden;
}

section {
    padding: 0;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-wrapper {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-swiper .swiper-pagination {
    bottom: 20px;
    z-index: 10;
}

.hero-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    width: 12px;
    height: 12px;
    opacity: 1;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #378CFF;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: rgba(255, 255, 255, 0.8);
    width: 44px;
    height: 44px;
    margin-top: -22px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.5);
    color: white;
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 18px;
}

/* 保持原有样式兼容性 */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* 通用样式 */
.container {
    max-width: 100%;
    margin: 0 auto;
    /* padding: 0 120px; */
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 85px;
    color: var(--text-dark);
    font-family: 'Source Han Sans CN', sans-serif;
}

.section-title.white {
    color: var(--white);
}

.text-center {
    text-align: center;
}

.btn-more {
    width: 96px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 2px;
    box-sizing: border-box;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    font-family: 'Source Han Sans CN', sans-serif;
}

.btn-more:hover {
    background: #2c7ae0;
    transform: translateY(-2px);
}

.btn-more.white {
    background: var(--primary-color);
    color: var(--white);
}



/* 新品推荐 */
.new-products {
    padding: 80px 0;
    /* background: var(--white); */
}

.new-products-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}


/* 轮播相关样式 */
.new-products-content {
    position: relative;
}

.new-products-content:hover .product-details {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* 轮播指示器 */
.carousel-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(55, 140, 255, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-indicator.paused {
    background: rgba(255, 150, 61, 0.8);
}

/* 悬停提示 */
.hover-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.new-products-content:hover .hover-hint {
    opacity: 1;
}

.product-image {
    width: 450px;
    height: 450px;
    background: var(--white);
    /* background: linear-gradient(28deg, #0B0C0E 16%, #232426 43%, #2A2C30 45%, #2F3541 79%, #5B6374 91%); */
    border: 1px solid var(--border-color);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-details {
    flex: 1;
    width: 570px;
    height: 450px;
    max-width: 570px;
    position: relative;
    min-height: 400px;
    /* 设置最小高度保持占位 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0.8;
    transform: translateX(20px);
    transition: all 0.5s ease;
}

.product-info {
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-info .title {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.product-info span {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Source Han Sans CN', sans-serif;
    transition: all 0.3s ease;
}

.info-section {
    /* background: var(--bg-blue); */
    background: rgba(0, 0, 0, 0.6);
    border-left: 6px solid rgba(55, 140, 255, 0.6);
    padding: 12px;
    min-height: 122px;
    transition: all 0.3s ease;
    transform: translateY(0);
    &:last-child {
        min-height: 298px;
    }
}

.info-section h5 {
    font-size: 16px;
    font-weight: 700;
    /* color: var(--primary-color); */
    color: white;
    margin-bottom: 12px;
    font-family: 'Source Han Sans CN', sans-serif;
}

.info-section p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0;
    font-family: 'Source Han Sans CN', sans-serif;
}

/* 左侧导航轮播 */
.product-nav-swiper {
    width: 120px;
    /* height: 450px; */
    height: 630px;
    background: var(--bg-light);
    border-radius: 2px;
    padding: 20px;
    position: relative;
    /* 控制上下按钮尺寸的变量，统一管理 */
    --nav-btn-size: 80px;
}

.product-nav-swiper .swiper {
    position: absolute;
    left: 20px;
    right: 20px;
    width: 80px;
    /* 只显示4个缩略图：卡片80px + 间距20px */
    --slide-size: 80px;
    --space: 24px;
    height: calc(4 * var(--slide-size) + 3 * var(--space));
    top: 50%;
    transform: translateY(-50%);
}

.product-nav-swiper .swiper-wrapper {
    flex-direction: column;
    padding: 20px 0;
}

.product-nav-swiper .swiper-slide {
    width: 80px;
    height: 80px !important;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.product-nav-swiper .swiper-slide.swiper-slide-active,
.product-nav-swiper .swiper-slide.active-nav-item {
    /* border: 2px solid var(--primary-color); */
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.10);
    opacity: 1;
}

.product-nav-swiper .swiper-slide:hover {
    opacity: 1;
    transform: scale(1.05);
}

.product-nav-swiper .swiper-slide img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.product-nav-swiper .swiper-button-next,
.product-nav-swiper .swiper-button-prev {
    color: var(--white);
    background: var(--primary-color);
    width: var(--nav-btn-size);
    height: var(--nav-btn-size);
    border-radius: 2px;
    /* 按钮水平居中覆盖，不参与布局 */
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    margin: 0;
    transition: all 0.3s ease;
    position: absolute;
    z-index: 10;
}

.product-nav-swiper .swiper-button-prev {
    top: 20px;
    bottom: auto;
}

.product-nav-swiper .swiper-button-next {
    top: auto;
    bottom: 20px;
}

.product-nav-swiper .swiper-button-next:hover,
.product-nav-swiper .swiper-button-prev:hover {
    background: #2c7ae0;
}

.product-nav-swiper .swiper-button-prev::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8px solid var(--white);
    font-size: 0;
}

.product-nav-swiper .swiper-button-next::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--white);
    font-size: 0;
}

/* 热销产品 */
.hot-products {
    padding: 80px 0;
}

.product-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    padding: 18px 40px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Source Han Sans CN', sans-serif;
}

.tab-btn.active {
    color: var(--text-dark);
    font-size: 24px;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.tab-btn:hover {
    color: var(--text-dark);
}

.products-grid {
    margin-bottom: 40px;
}

.product-category {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-bottom: 40px;
    width: 1196px;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    margin-bottom: 10px;
}

.product-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin: 0;
    font-family: 'Source Han Sans CN', sans-serif;
}

/* 企业简介 */
.company-intro {
    position: relative;
    background: var(--gradient-dark);
    padding: 46px 0 0;
}

.intro-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    z-index: 2;
}

.company-intro .container {
    position: relative;
    z-index: 3;
}

.intro-header {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.intro-badge {
    display: flex;
    border-radius: 2px;
    overflow: hidden;
}

.badge-primary {
    background: var(--secondary-color);
    color: var(--white);
    padding: 15px 20px;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Source Han Sans CN', sans-serif;
}

.badge-secondary {
    background: transparent;
    border: 1px solid var(--white);
    border-left: none;
    color: var(--white);
    padding: 15px 20px;
    font-size: 20px;
    font-weight: 400;
    font-family: 'Source Han Sans CN', sans-serif;
}

.intro-content {
    text-align: justify;
    margin-bottom: 40px;
    padding: 0px 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    font-family: 'Source Han Sans CN', sans-serif;
}

/* 统计数据 */
.stats-section {
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-card {
    background: var(--white);
    border: 1px solid #CCCCCC;
    position: relative;
    overflow: hidden;
}

.stat-bar {
    height: 20px;
    background: var(--secondary-color);
    width: 100%;
}

.stat-content {
    padding: 40px 20px;
    text-align: center;
}

.stat-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.counter {
    font-size: 48px;
    font-weight: 400;
    color: var(--secondary-color);
    font-family: 'HarmonyOS Sans TC', sans-serif;
}

.unit {
    font-size: 16px;
    color: #767676;
    font-family: 'Source Han Sans CN', sans-serif;
}

.unit-small {
    font-size: 16px;
    color: #767676;
    font-family: 'Source Han Sans CN', sans-serif;
}

.stat-label {
    font-size: 16px;
    color: #767676;
    font-family: 'Source Han Sans CN', sans-serif;
}

/* 知识产权与专利 */
.patents {
    padding: 0 0 80px;
    background: var(--white);
}

.patents-hero {
    background-image: url('../images/home/zhishi.jpg');
}

.contact-hero {
    background-image: url('../images/home/technology.jpg');
}

.patents-hero,
.contact-hero {
    width: 100%;
    position: relative;
    height: 488px;
    overflow: hidden;
    margin-bottom: 60px;

    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


.patents-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.patents-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(3, 22, 36, 0.8) 0%, rgba(3, 22, 36, 0.24) 66%);
}

.patents-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.patents-hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    font-family: 'Source Han Sans CN', sans-serif;
}


/* 专利轮播样式 */
.swiper-container {
    padding: 0px 20px;
    background-color: #F4F4F4;
    width: 100%;
}

.patents-swiper {
    width: 100%;
    height: 246px;
    background-color: #F4F4F4;
}

.patents-swiper .swiper-wrapper {
    display: flex;
    align-items: center;
}

.patents-swiper .swiper-slide {
    width: 150px !important;
    height: 206px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.patent-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.patent-image {
    width: 150px;
    height: 206px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.patent-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.patent-image.loaded {
    opacity: 1;
}

.patent-image.error {
    opacity: 0.5;
    background: #f0f0f0;
}

/* 联系我们 */
.contact-section {
    padding: 0 0 80px;
    background: var(--white);
}


.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(3, 22, 36, 0.8) 0%, rgba(3, 22, 36, 0.24) 66%);
}

.contact-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.contact-hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    font-family: 'Source Han Sans CN', sans-serif;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 521px;
    gap: 50px;
    align-items: start;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-family: 'Source Han Sans CN', sans-serif;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}


.contact-item .label {
    font-size: 16px;
    color: var(--text-light);
    min-width: 80px;
    font-family: 'Source Han Sans CN', sans-serif;
}

.contact-item .value {
    font-size: 16px;
    color: var(--text-light);
    flex: 1;
    font-family: 'Source Han Sans CN', sans-serif;
}

.contact-note {
    font-size: 16px;
    color: var(--text-dark);
    margin-top: 30px;
    font-family: 'Source Han Sans CN', sans-serif;
}

.contact-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}


/* 响应式设计 */
@media (max-width: 1200px) {

    /* 轮播指示器响应式 */
    .carousel-indicator {
        font-size: 11px;
        padding: 3px 6px;
    }
}

@media (max-width: 768px) {

    .new-products-content {
        flex-direction: column;
        align-items: center;
    }

    .product-image {
        width: 100%;
        max-width: 400px;
    }

    .product-details {
        width: 100%;
        max-width: 400px;
        height: auto;
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    .product-category {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* 移动端轮播指示器调整 */
    .carousel-indicator {
        top: 5px;
        right: 5px;
        font-size: 10px;
        padding: 2px 4px;
    }

    .hover-hint {
        display: none;
        /* 移动端隐藏悬停提示 */
    }
}

@media (max-width: 480px) {

    .section-title {
        font-size: 24px;
    }

    .product-category {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.count-animation {
    animation: countUp 0.8s ease forwards;
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 过渡效果 */
.transition-all {
    transition: all 0.3s ease;
}

/* 产品中心 2x2 卡片模块 */
.product-center {
    padding: 40px 0 80px;
    background: #fff;
}

.product-center .section-title {
    margin-bottom: 40px;
}

.pc-grid {
    width: 1196px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.pc-card {
    position: relative;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    height: 332px;
    background: #222 center/cover no-repeat;
    background-image: var(--bg);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    transition: transform .3s ease, box-shadow .3s ease;
}

.pc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}

.pc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.65) 100%);
}

.pc-content {
    position: absolute;
    left: 24px;
    bottom: 22px;
    right: 24px;
    color: #fff;
    z-index: 1;
}

.pc-content h3 {
    margin: 0 0 8px;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.pc-content p {
    margin: 0;
    font-size: 16px;
    opacity: 0.6;
}

/* 响应式 */
@media (max-width: 1280px) {
    .pc-grid { width: 100%; padding: 0 20px; box-sizing: border-box; }
}

@media (max-width: 768px) {
    .pc-grid { grid-template-columns: 1fr; gap: 18px; }
    .pc-card { height: 200px; }
    .pc-content h3 { font-size: 22px; }
}