* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    padding-top: 95px; /* 为固定头部留出空间 */
    position: relative; /* 用于右侧浮动模块定位 */
    background-color: #fafafa;
}

.container {
    max-width: 1400px;
    min-width: 1200px; /* PC端最小宽度1200px */
    margin: 0 auto;
    padding: 0 20px;
}

/* 全局健康类配色：绿色系（代表自然、健康、环保）- 合并变量，统一管理 */
:root {
    --primary-color: #2e7d32; /* 主深绿（按钮、标题） */
    --secondary-color: #4caf50; /* 中绿（hover、激活） */
    --light-color: #e8f5e9; /* 浅绿（背景、边框） */
    --text-dark: #263238; /* 文字深色 */
    --text-light: #546e7a; /* 文字浅色 */
    --shadow: 0 4px 12px rgba(0,0,0,0.08); /* 通用阴影 */
    --accent-purple: #6a1b9a; /* 辅助紫色（强调标题） */
    --footer-bg: #2c3e50; /* 底部深色背景 */
    --footer-text: #ecf0f1; /* 底部文字颜色 */
    --border-color: #d7e4d8; /* 边框颜色 */
}

/* -------------- 公共基础模块：头部、导航、通用组件 -------------- */
/* 头部样式 - 整合修复下拉菜单交互问题 */
header {
    background-color: #fff;
    height: 95px; /* 固定头部高度 */
    box-shadow: var(--shadow); /* 底部阴影 */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    max-height: 50px; /* 控制logo高度 */
}

/* 导航菜单 - 增加点击区域，优化hover体验 */
nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
    margin: 0 25px;
    padding: 10px 0; /* 扩大hover触发区域，避免下拉菜单中断 */
}

nav ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    padding: 8px 0;
    display: inline-block;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* 产品下拉菜单 - 优化层级与定位，避免遮挡 */
.products-dropdown {
    position: relative;
}

.products-dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 900px;
    background-color: #fff;
    box-shadow: var(--shadow);
    padding: 25px;
    border-radius: 4px;
    display: none;
    z-index: 1002; /* 提高层级，高于其他元素 */
    margin-top: 0; /* 消除间隙，确保hover不中断 */
}

.products-dropdown:hover .products-dropdown-content {
    display: block;
}

.products-tabs, .tab-content {
    pointer-events: auto; /* 确保子元素可交互 */
}

/* 右侧元素容器 - 搜索、语言选择、汉堡菜单 */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px; /* 元素间距统一 */
}

/* 搜索框样式 - 按钮嵌入布局 */
.search-container {
    position: relative;
}

.search-bar input {
    padding: 8px 15px;
    padding-right: 45px; /* 为搜索按钮留空间 */
    border: 1px solid var(--light-color);
    border-radius: 20px;
    outline: none;
    width: 180px;
    transition: border-color 0.3s;
    color: var(--text-dark);
}

.search-bar input:focus {
    border-color: var(--secondary-color);
}

.search-bar button {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 12px;
    border: none;
    border-radius: 15px;
    background-color: var(--primary-color);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: var(--secondary-color);
}

/* 语言选择器样式 - 下拉交互 */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background-color: var(--light-color);
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #dcedc8;
    color: var(--text-dark);
}

.language-icon {
    width: 20px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.language-icon img{ width: 20px;
    height: 16px;}
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    box-shadow: var(--shadow);
    border-radius: 4px;
    margin-top: 5px;
    min-width: 150px;
    z-index: 1001;
    display: none;
}

.language-dropdown.active {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--text-dark);
}

.language-option:hover {
    background-color: var(--light-color);
}

/* Tab 切换样式 - 产品下拉菜单内的Tab */
.products-tabs {
    display: flex;
    border-bottom: 1px solid var(--light-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    overflow-x: auto; /* 横向滚动适配 */
    scrollbar-width: none; /* 隐藏滚动条 */
}

.products-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: none;
    border: none;
    padding: 8px 18px;
    margin: 0 5px;
    cursor: pointer;
    color: var(--text-light);
    font-size: 14px;
    white-space: nowrap; /* 防止文字换行 */
    position: relative;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* Tab 内容区域 */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 18px;
}

.tab-content ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 10px 20px;
}

.tab-content ul li {
    flex: 0 0 calc(33.333% - 14px);
    margin: 0;
    padding: 5px 0;
}

.tab-content ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.tab-content ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.tab-content .view-all {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.tab-content .view-all:hover {
    background-color: var(--secondary-color);
}

/* 汉堡菜单样式 - 移动端导航 */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: none; /* 初始隐藏，小屏幕显示 */
    padding: 5px;
    color: var(--text-dark);
}

.mobile-menu {
    position: fixed;
    top: 95px;
    right: -300px;
    width: 300px;
    height: calc(100vh - 95px);
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 999;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu ul li {
    margin: 15px 0;
}

.mobile-menu ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 16px;
}

.mobile-menu .mobile-language {
    margin-top: auto; /* 固定在底部 */
}

/* 面包屑导航 - 统一页面路径导航样式 */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--text-light);
}

/* -------------- 首页专属模块：轮播、介绍、特色产品、认证 -------------- */
/* 1. 轮播图样式 - 高适配，半透明内容区 */
.banner {
    position: relative;
    height: 550px; /* 加高轮播高度 */
    overflow: hidden;
}

.banner-slides {
    position: relative;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out; /* 平滑过渡 */
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持比例填充 */
    object-position: center;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(46, 125, 50, 0.85); /* 主绿半透明 */
    color: #fff;
    padding: 30px 40px;
    max-width: 550px;
    border-radius: 8px;
    z-index: 2;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.banner-content h2 {
    font-size: 32px;
    margin-bottom: 18px;
    line-height: 1.3;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.banner-content .green-btn {
    background-color: #fff;
    color: var(--primary-color);
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.banner-content .green-btn:hover {
    background-color: var(--light-color);
    transform: translateY(-2px);
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.banner-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.banner-dot.active {
    background-color: #fff;
    transform: scale(1.2);
    border-color: var(--secondary-color);
}

/* 2. 轮播下的介绍模块 - 左图右文，滚动动画 */
.intro-module {
    padding: 100px 0;
    background-color: #fafafa;
    overflow: hidden;
}

.intro-wrap {
    display: flex;
    align-items: center;
    gap: 60px;
}

.intro-img {
    flex: 0 0 45%;
    position: relative;
    opacity: 0;
    transform: translateX(-50px); /* 初始左移隐藏 */
    transition: all 0.8s ease-out;
}

.intro-img.animate {
    opacity: 1;
    transform: translateX(0);
}

.intro-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px; /* 大圆角 */
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* 图片装饰元素 */
.intro-img::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background-color: var(--light-color);
    z-index: -1;
}

.intro-text {
    flex: 1;
    opacity: 0;
    transform: translateX(50px); /* 初始右移隐藏 */
    transition: all 0.8s ease-out 0.2s; /* 延迟触发，增强层次 */
}

.intro-text.animate {
    opacity: 1;
    transform: translateX(0);
}

.intro-text .section-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.intro-text h2 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.4;
}

.intro-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.intro-text .feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.intro-text .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-size: 16px;
}

.intro-text .feature-item svg {
    color: var(--primary-color);
    width: 20px;
    height: 20px;
}

.intro-text .intro-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.intro-text .intro-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* 3. 特色产品轮播模块 */
.featured-products {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.products-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid var(--light-color);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: var(--light-color);
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

/* 特色产品轮播卡片 - 父容器限定，避免冲突 */
.featured-products .product-card {
    flex: 0 0 calc(33.333% - 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-products .product-card img {
    width: 100%;
    height: 250px; /* 保留容器高度，或根据需求调整（如300px） */
    object-fit: contain; /* 关键修改：完整显示图片，不裁剪 */
    object-position: center; /* 图片居中对齐 */
    border-radius: 8px 8px 0 0;
    margin-bottom: 15px;
    background-color: #fff; /* 容器空白处填充浅灰，视觉更统一 */
}


.featured-products .product-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.featured-products .product-badges .badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    color: var(--primary-color);
}

.featured-products .product-card h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.btn-learn-more {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.btn-learn-more:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* 4. 产品详情模块（左文右图）- 首页简介类详情 */
.product-detail-home {
    padding: 100px 0;
    background-color: #fafafa;
    overflow: hidden;
}

.detail-wrap {
    display: flex;
    align-items: center;
    gap: 60px;
}

.detail-text {
    flex: 1;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.detail-text.animate {
    opacity: 1;
    transform: translateX(0);
}

.detail-text .new-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--accent-purple);
    color: white;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.detail-text h2 {
    font-size: 36px;
    color: var(--accent-purple);
    margin-bottom: 25px;
    line-height: 1.4;
}

.detail-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.detail-features {
    margin: 30px 0;
}

.detail-features h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.detail-features ul {
    list-style: none;
}

.detail-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-dark);
}

.detail-features li svg {
    color: var(--primary-color);
    margin-top: 4px;
    flex-shrink: 0;
}

.detail-img {
    flex: 0 0 45%;
    position: relative;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out 0.2s;
}

.detail-img.animate {
    opacity: 1;
    transform: translateX(0);
}

.detail-img img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* 5. 认证模块（左图右文 + 多徽章） */
.certifications {
    padding: 100px 0;
    background-color: #fff;
    overflow: hidden;
}

.cert-wrap {
    display: flex;
    align-items: center;
    gap: 60px;
}

.cert-img {
    flex: 0 0 45%;
    position: relative;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.cert-img.animate {
    opacity: 1;
    transform: translateX(0);
}

.cert-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.cert-content {
    flex: 1;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out 0.2s;
}

.cert-content.animate {
    opacity: 1;
    transform: translateX(0);
}

.cert-content .section-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.cert-content h2 {
    font-size: 36px;
    color: var(--accent-purple);
    margin-bottom: 25px;
    line-height: 1.4;
}

.cert-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cert-item {
    flex: 0 0 calc(50% - 10px);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.cert-icon {
    width: 60px;
    height: 60px;
    background-color: var(--light-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-icon svg {
    width: 35px;
    height: 35px;
    color: var(--primary-color);
}

.cert-info h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.cert-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

/* 6. 公司介绍 */
.company-intro {
    padding: 80px 0;
    background-color: #fff;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 32px;
}

.intro-content p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
}

/* -------------- 产品列表页专属模块：筛选、产品网格、分页 -------------- */
/* 页面标题 */
.page-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

/* 筛选区域 */
.filters-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
}

.filter-group {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.filter-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

.filter-title .toggle-icon {
    margin-left: auto;
    transition: transform 0.3s;
}

.filter-title .toggle-icon.rotate {
    transform: rotate(180deg);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-option {
    display: flex;
    align-items: center;
}

.filter-option input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--primary-color);
}

.filter-option label {
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.2s;
}

.filter-option label:hover {
    color: var(--primary-color);
}

/* 小分类筛选 */
.sub-filters {
    margin-left: 30px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
    display: none;
}

.sub-filters.active {
    display: block;
}

/* 筛选操作按钮 */
.filter-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.btn {
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--light-color);
}

/* 产品列表头部 - 计数与排序 */
.products-section {
    margin-bottom: 50px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.products-count {
    color: var(--text-light);
}

.sort-options {
    display: flex;
    align-items: center;
}

.sort-options label {
    margin-right: 10px;
    color: var(--text-dark);
}

.sort-select {
    padding: 6px 15px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    color: var(--text-dark);
    cursor: pointer;
}

/* 产品网格 - 列表页产品卡片布局 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* 列表页产品卡片 - 父容器限定 */
.products-grid .product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.products-grid .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-img {
    height: 220px; /* 固定图片高度，避免变形 */
    overflow: hidden;
    background-color: #f5f5f5; /* 加载占位背景 */
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s;
}

.products-grid .product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-badges {
    display: flex;
    gap: 8px;
    padding: 0 15px;
    margin-top: -15px;
    z-index: 1;
    position: relative;
}

.product-badge {
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.product-info-card {
    padding: 15px;
}

.product-title-card {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 文字超出2行省略 */
    -webkit-box-orient: vertical;
}

/* 产品属性 - 型号、包装等信息 */
.product-attributes {
    margin-bottom: 15px;
}

.product-attribute {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
    display: flex;
}

.product-attribute span:first-child {
    font-weight: 500;
    min-width: 70px;
}

/* 产品操作区 - 查看详情按钮 */
.product-actions {
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.btn-view-details {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    width: 100%;
    text-decoration: none;
    text-align: center;
}

.btn-view-details:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* 分页 - 列表页分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 5px;
}

.pagination-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-item a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s;
}

.pagination-item:hover {
    background-color: var(--light-color);
}

.pagination-item:hover a {
    color: var(--primary-color);
}

.pagination-item.active {
    background-color: var(--primary-color);
}

.pagination-item.active a {
    color: #fff;
    font-weight: 600;
}

.pagination-item.ellipsis {
    cursor: default;
}

.pagination-item.ellipsis:hover {
    background-color: transparent;
}

/* -------------- 产品详情页专属模块：图片画廊、参数、详情内容 -------------- */
/* 产品详情主体 - 左右分栏布局 */
.product-detail {
    padding: 30px 0;
    margin-bottom: 40px;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* 左侧产品图片展示区 - 带轮播与放大镜 */
.product-gallery {
    flex: 0 0 65%;
    position: relative;
}

/* 轮播容器 */
.carousel-container {
    position: relative;
    height: 600px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* 轮播图片容器 */
.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

/* 单个轮播图片 */
.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 图片切换按钮 */
.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none; /* 避免遮挡图片交互 */
}

.carousel-nav button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    transition: all 0.3s;
    margin: 0 15px;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    pointer-events: auto; /* 恢复按钮交互 */
    opacity: 0.8;
}

.carousel-nav button:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
    opacity: 1;
}

.carousel-nav button:active {
    transform: scale(0.95);
}

/* 放大镜效果 - 产品图片细节查看 */
.zoom-container {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.zoom-lens {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    display: none;
    z-index: 20;
}

.zoom-result {
    position: absolute;
    top: 0;
    left: 105%;
    width: 600px;
    height: 600px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    display: none;
    z-index: 100;
    background-color: #fff;
    box-shadow: var(--shadow);
}

/* 右侧产品信息区 - 参数、咨询按钮 */
.product-info {
    flex: 0 0 calc(35% - 50px);
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.product-title {
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

/* 产品标签 - 新品、推荐等标识 */
.product-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-badge {
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 产品简介 */
.product-short-desc {
    color: var(--text-light);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.7;
}

/* 产品参数表格 - 结构化展示属性 */
.product-specs {
    margin-bottom: 30px;
    border-collapse: collapse;
    width: 100%;
}

.product-specs tr {
    border-bottom: 1px solid var(--border-color);
}

.product-specs tr:last-child {
    border-bottom: none;
}

.product-specs td {
    padding: 10px 12px;
    font-size: 14px;
}

.product-specs td:first-child {
    font-weight: 500;
    color: var(--text-dark);
    width: 35%;
    background-color: var(--light-color);
}

.product-specs td:last-child {
    color: var(--text-light);
    word-break: break-all; /* 长文本换行 */
}

/* 咨询联系按钮 - 垂直布局 */
.contact-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
    flex-direction: column;
}

.contact-btn {
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    text-decoration: none;
    width: 100%;
}

/* 产品详情内容 - 富文本描述区 */
.product-description-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 60px;
}

/* 详情区标题 - 带下划线 */
.product-description-section .section-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    text-align: left; /* 左对齐，区别于其他section-title */
}

.product-description-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* 详情内容 - 富文本样式 */
.description-content {
    color: var(--text-light);
    line-height: 1.8;
}

.description-content p {
    margin-bottom: 20px;
}

.description-content h4 {
    color: var(--text-dark);
    margin: 30px 0 15px;
    font-size: 18px;
}

/* 详情页图片画廊 - 多图展示 */
.description-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.description-gallery img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* -------------- 推荐产品模块 - 多页面共用 -------------- */
.recommendations {
    margin: 60px 0 80px;
}

/* 推荐产品标题 - 居中带下划线 */
.recommendations .section-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.recommendations .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* 推荐产品网格 */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* 推荐产品卡片 - 复用基础样式，父容器限定 */
.recommendations-grid .product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.recommendations-grid .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* -------------- 公共模块：底部、浮动模块、动画 -------------- */
/* 底部样式 - 深色背景，多列布局 */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-contact, .footer-products, .footer-social {
    flex: 0 0 30%;
    margin-bottom: 30px;
}

.footer-contact h2, .footer-products h2, .footer-social h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-contact p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-contact .contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--secondary-color);
}

.footer-products ul {
    list-style: none;
}

.footer-products li {
    margin-bottom: 10px;
}

.footer-products a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-products a:hover {
    color: var(--secondary-color);
}

.footer-social .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    color: var(--footer-text);
}

.footer-social .social-icon:hover {
    background-color: var(--secondary-color);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
}

/* 右侧浮动模块 - 客服、二维码、返回顶部 */
.float-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.float-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    color: var(--text-dark);
}

.float-item:hover {
    transform: scale(1.1);
    background-color: var(--secondary-color);
    color: #fff;
}

.float-qrcode {
    position: absolute;
    right: 150px;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: 150px;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
}
.float-qrcode img{    width: 150px;
    height: 150px;}

.float-qrcode.active {
    display: block;
}

.float-item.whatsapp:hover .float-qrcode,
.float-item.qrcode:hover .float-qrcode {
    display: block;
}

.back-to-top {
    display: none;
}

.back-to-top.visible {
    display: flex;
}

/* 动画效果 - 通用淡入 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* -------------- 响应式调整 - 多屏幕适配 -------------- */
@media (max-width: 1024px) {
    .container {
        min-width: auto; /* 取消平板端最小宽度限制 */
    }

    nav ul li {
        margin: 0 15px; /* 缩小菜单项间距 */
    }

    .search-bar input {
        width: 160px; /* 缩短搜索框宽度 */
    }

    /* 首页轮播调整 */
    .banner {
        height: 450px;
    }

    /* 首页介绍/详情/认证模块 - 垂直布局 */
    .intro-wrap, .detail-wrap, .cert-wrap {
        flex-direction: column;
        gap: 40px;
    }

    .intro-img, .detail-img, .cert-img {
        flex: 0 0 100%;
    }

    .intro-img img, .detail-img img, .cert-img img {
        height: 350px;
    }

    /* 首页特色产品轮播 - 每行2个 */
    .featured-products .product-card {
        flex: 0 0 calc(50% - 15px);
    }

    /* 首页产品详情模块 - 图片在上 */
    .detail-wrap {
        flex-direction: column-reverse;
    }

    /* 产品列表页 - 网格每行3个 */
    .products-grid, .recommendations-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 产品详情页 - 垂直布局，隐藏放大镜结果 */
    .product-detail {
        flex-direction: column;
        gap: 30px;
        padding: 20px 0;
    }

    .product-gallery, .product-info {
        flex: 0 0 100%;
    }

    .carousel-container {
        height: 450px;
    }

    .zoom-result {
        display: none !important; /* 强制隐藏放大镜结果 */
    }

    /* 底部 - 两列布局 */
    .footer-contact, .footer-products, .footer-social {
        flex: 0 0 48%;
    }
}

@media (max-width: 768px) {
    .search-container {
        display: none; /* 隐藏手机端搜索框 */
    }

    nav ul, .language-selector {
        display: none; /* 隐藏桌面导航和语言选择器 */
    }

    .hamburger {
        display: block; /* 显示汉堡菜单 */
    }

    /* 首页轮播调整 */
    .banner {
        height: 350px;
    }

    .banner-content {
        padding: 20px 30px;
        max-width: 90%;
    }

    .banner-content h2 {
        font-size: 24px;
    }

    .banner-content p {
        font-size: 16px;
    }

    /* 首页介绍/详情/认证模块文字调整 */
    .intro-text h2, .detail-text h2, .cert-content h2 {
        font-size: 28px;
    }

    .intro-text p, .detail-text p, .cert-content p {
        font-size: 16px;
    }

    /* 产品下拉菜单 - 适配手机宽度 */
    .products-dropdown-content {
        min-width: 90vw;
        left: 5%;
        transform: none;
    }

    .tab-content ul li {
        flex: 0 0 100%; /* Tab内容项占满宽度 */
    }

    /* 首页特色产品轮播 - 每行1个 */
    .featured-products .product-card {
        flex: 0 0 100%;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    /* 首页认证徽章 - 每行1个 */
    .cert-item {
        flex: 0 0 100%;
    }

    /* 产品列表页 - 网格每行2个 */
    .products-grid, .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 产品筛选 - 缩小选项间距 */
    .filter-options {
        gap: 10px;
    }

    /* 产品详情页 - 调整样式 */
    .carousel-container {
        height: 350px;
    }

    .product-info {
        padding: 20px;
    }

    .product-title {
        font-size: 22px;
    }

    /* 详情页图片画廊 - 单行布局 */
    .description-gallery {
        grid-template-columns: 1fr;
    }

    /* 底部 - 单列布局 */
    .footer-contact, .footer-products, .footer-social {
        flex: 0 0 100%;
    }

    /* 右侧浮动模块 - 缩小尺寸 */
    .float-sidebar {
        right: 10px;
    }

    .float-item {
        width: 40px;
        height: 40px;
    }

    .float-qrcode {
        right: 50px;
        width: 120px;
    }
}

@media (max-width: 480px) {
    /* 产品列表页 - 网格单行1个，筛选按钮全屏 */
    .products-grid, .recommendations-grid {
        grid-template-columns: 1fr;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .filter-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    /* 产品详情页 - 轮播按钮缩小，参数表格字体调整 */
    .carousel-container {
        height: 280px;
    }

    .carousel-nav button {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }

    .product-specs td {
        padding: 8px 10px;
        font-size: 13px;
    }

    .contact-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* 详情内容区 - 缩小内边距 */
    .product-description-section {
        padding: 20px;
    }
}
