/* 产品中心部分样式 */
.products-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: transparent;
    touch-action: pan-y pinch-zoom;
}

/* 背景图容器 */
.products-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.products-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: blur(0px);
    transform: scale(1.05);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.products-section:hover .products-bg img {
    transform: scale(1);
    opacity: 0.3;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    position: relative;
}

.products-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.products-title h2 {
    font-size: 42px;
    color: var(--neutral-800);
    margin-bottom: 5px;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.5);
}

.products-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.products-title .products-subtitle {
    font-size: 64px;
    color: rgba(0, 0, 0, 0.06);
    font-weight: 800;
    line-height: 1;
    margin-top: -20px;
    letter-spacing: -0.03em;
}

/* 标签导航样式 */
.products-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 30px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.products-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.tab-item {
    padding: 8px 16px;
    background-color: rgba(66, 133, 244, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    white-space: normal;
    text-align: center;
}

.tab-item::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.tab-item:hover {
    background-color: rgba(66, 133, 244, 0.2);
    transform: translateY(-2px);
}

.tab-item.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.tab-item.active::after {
    width: 80%;
}

/* 产品内容区域样式 */
.products-sections {
    min-height: 500px;
    position: relative;
}

.product-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-section.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 产品网格布局 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
}

/* 产品卡片样式 */
.product-card {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    height: 100%;
    max-width: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background-color: rgba(255, 255, 255, 0.95);
}

.product-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.03);
    overflow: hidden;
    position: relative;
}

.product-image img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* 移除任何可能的调试信息标签 */
.product-image::before,
.product-image::after {
    display: none !important;
}

.product-image img::before,
.product-image img::after {
    display: none !important;
}

/* 确保内容显示正常 */
.product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 2;
    /* 提高层级 */
    background-color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.product-title {
    font-size: 18px;
    color: var(--neutral-800);
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    display: block !important;
    /* 强制显示 */
}

.product-details {
    color: var(--neutral-700);
    font-size: 14px;
    line-height: 1.6;
    display: block !important;
    /* 强制显示 */
    z-index: 3;
    /* 提高层级 */
    position: relative;
}

.product-details p {
    margin-bottom: 10px;
    display: block !important;
    /* 强制显示 */
}

/* 了解更多按钮样式 */
.product-more-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: none;
    text-align: center;
    align-self: flex-start;
}

.product-more-btn:hover {
    background-color: #1565C0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .products-section {
        padding: 80px 0;
    }

    .products-title h2 {
        font-size: 36px;
    }

    .products-title .products-subtitle {
        font-size: 54px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .products-section {
        padding: 60px 10px;
        overflow: hidden;
    }

    .products-container {
        padding: 0;
        width: 100%;
        max-width: 100%;
        min-width: 320px;
        margin: 0 auto;
        overflow: hidden;
    }

    .products-header {
        flex-direction: column;
        margin-bottom: 20px;
        width: 100%;
    }

    .products-title h2 {
        font-size: 32px;
    }

    .products-title .products-subtitle {
        font-size: 48px;
    }

    /* 标签导航换行 */
    .products-tabs {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px;
        gap: 8px;
        margin-bottom: 20px;
        width: 100%;
        overflow: visible;
    }

    .tab-item {
        flex: 0 0 auto;
        white-space: normal;
        padding: 6px 12px;
        font-size: 13px;
        margin-bottom: 5px;
        max-width: calc(50% - 8px);
        text-align: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        padding: 0;
    }

    .product-card {
        text-align: left;
        align-items: flex-start;
        margin: 0 auto;
        width: 100%;
        max-width: 400px;
        min-height: auto;
        box-sizing: border-box;
    }

    .product-image {
        justify-content: center;
        height: 220px;
    }

    .product-image img {
        max-width: 85%;
        max-height: 85%;
        object-fit: contain;
    }

    .product-content {
        align-items: flex-start;
    }

    .product-details {
        display: block !important;
        font-size: 14px;
        line-height: 1.5;
        color: var(--neutral-700);
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        z-index: 5;
    }

    .product-details p {
        margin-bottom: 8px;
        display: block !important;
        visibility: visible !important;
    }

    img+img[alt],
    img+div,
    img+span {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .products-section {
        padding: 50px 8px;
    }

    .products-container {
        padding: 0;
    }

    .products-header {
        padding: 0 8px;
    }

    .products-tabs {
        padding: 8px;
        margin: 0 -8px 15px -8px;
        width: calc(100% + 16px);
    }

    .tab-item {
        padding: 6px 12px;
        font-size: 13px;
    }

    .products-grid {
        padding: 0 8px;
    }

    .products-title h2 {
        font-size: 28px;
    }

    .products-title .products-subtitle {
        font-size: 42px;
    }

    .tab-item {
        padding: 8px 14px;
        font-size: 13px;
    }

    .product-card {
        max-width: 100%;
    }

    .product-image {
        height: 180px;
        justify-content: center;
        padding: 10px;
        background: rgba(0, 0, 0, 0.15);
        display: flex;
        align-items: center;
    }

    .product-image img {
        width: auto;
        height: auto;
        max-width: 90%;
        max-height: 90%;
        min-height: 80px;
        min-width: 80px;
        object-fit: contain;
        border-radius: 4px;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
        margin: 0 auto;
    }

    .product-content {
        padding: 15px;
    }

   

    .logo-container {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .products-section {
        padding: 40px 5px;
        min-width: 300px;
    }

    .products-container {
        min-width: 300px;
    }

    .products-header {
        padding: 0 5px;
    }

    .products-tabs {
        padding: 5px;
        gap: 6px;
    }

    .tab-item {
        padding: 5px 10px;
        font-size: 12px;
        margin-bottom: 4px;
        max-width: calc(50% - 6px);
    }

    .products-grid {
        padding: 0 5px;
    }

    .products-title h2 {
        font-size: 24px;
    }

    .products-title .products-subtitle {
        font-size: 36px;
    }

    .product-card {
        min-height: 300px !important;
        margin: 0 auto;
        max-width: 400px;
    }

    .product-image {
        max-height: 150px !important;
    }

    .product-content {
        min-height: 150px !important;
    }

    .product-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .product-details p {
        font-size: 12px;
        line-height: 1.3;
        margin-bottom: 5px;
    }

    

    .logo-container {
        max-width: 90px;
    }
}

/* 从内联样式转移过来的样式 */
/* 强制隐藏图片调试信息和非必要元素 */
img::after,
img::before,
img+span[style*="position: absolute"],
.product-image span,
.product-image>*:not(img) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* 强制显示产品内容 */
.product-details,
.product-title,
.product-content,
.product-details p {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
}

/* 防调试保护 - 确保在开发者工具打开时内容正常显示 */
body * {
    overflow: visible !important;
}

.product-card {
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
}

.product-content {
    position: relative !important;
    z-index: 5 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    padding: 20px !important;
}

.product-title {
    color: #343a40 !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
}

.product-details p {
    margin-bottom: 10px !important;
    color: #495057 !important;
}

/* 限制页面滑动 */
body {
    overflow-x: hidden;
    touch-action: pan-y pinch-zoom;
    width: 100%;
    min-width: 320px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
}

/* 确保所有容器不超出视口 */
.header,
.main,
.footer {
    width: 100%;
    max-width: 100%;
    min-width: 320px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}