.content-auto {
    content-visibility: auto;
}
.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.bg-blur {
    backdrop-filter: blur(8px);
}
.image-zoom {
    transition: transform 0.5s ease;
}
.image-zoom:hover {
    transform: scale(1.03);
}
.breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin: 0 8px;
    color: #999;
}
/* 基础动画与全局样式 */
body {
    background-color: #F5F5F5; /* 统一背景色 */
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

/* 导航栏样式 - 添加隐藏效果 */
#main-header {
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 40;
    position: fixed;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

/* 导航栏隐藏效果 */
#main-header.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* 导航栏文字加粗 */
.nav-link, .nav-item .nav-link {
    font-weight: 700 !important;
    line-height: 1.5;
}

/* 导航搜索框 */
.search-container {
    position: relative;
}
.search-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    width: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 16px;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}
.search-container:hover .search-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 侧边导航样式 */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 25%;
    height: 100vh;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 60;
    overflow-y: auto;
}

#sidebar.open {
    transform: translateX(0);
}

.sidebar-content {
    padding: 20px;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sidebar-category {
    margin-bottom: 25px;
}

.sidebar-category-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #3A3A3A;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    line-height: 1.5;
}

.sidebar-category-items {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.sidebar-category-items li {
    margin-bottom: 10px;
}

.sidebar-category-items a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    padding: 5px 0;
    line-height: 1.5;
}

.sidebar-category-items a:hover {
    color: #F1C4C4;
}

/* 侧边栏遮罩 */
#sidebarOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 55;
}

#sidebarOverlay.show {
    opacity: 1;
    visibility: visible;
}

/* 面包屑导航 - 调整与产品头部的距离 */
.breadcrumb-section {
    padding: 120px 0 10px; /* 减少底部 padding 使距离更近 */
    background-color: #F5F5F5; /* 统一背景色 */
}

.breadcrumb {
    display: flex;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #F1C4C4;
}

.breadcrumb-item:last-child {
    color: #3A3A3A;
    font-weight: 500;
}

/* 小分类导航 - 横向排列，可自动换行 */
.subcategory-section {
    padding: 20px 0;
    background-color: #F5F5F5; /* 统一背景色 */
    margin-bottom: 40px;
}

.subcategory-container {
    max-width: 68%;
    margin: 0 auto;
    padding: 0 1rem;
}

.subcategory-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.subcategory-item {
    white-space: nowrap;
}

.subcategory-link {
    display: inline-block;
    padding: 8px 18px;
    color: #3A3A3A;
    text-decoration: none;
    border-radius: 30px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.subcategory-link:hover {
    background-color: rgba(76,111,104,0.1);
    border-color: rgba(76,111,104,0.5);
    color: rgba(76,111,104,1);
}

.subcategory-link.active {
    background-color: rgba(76,111,104,1);
    color: white;
    border-color: rgba(76,111,104,1);
}

/* 产品列表头部 - 只保留两行文字 */
.product-list-header {
    padding: 30px 0; /* 减少上下 padding 使与面包屑距离更近 */
    background-color: #F5F5F5; /* 整体背景色与产品模块一致 */
    margin-bottom: 0;
}

.product-header-content {
    max-width: 68%;
    margin: 0 auto;
    background-color: rgba(76,111,104,1); /* 中间部分背景色 */
    padding: 40px 0; /* 调整内边距 */
    position: relative;
}

.header-text-container {
    margin-left: 25%; /* 文字从左侧25%位置开始 */
    padding-right: 5%; /* 右侧留一些空间 */
}

.product-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.product-slogan {
    color: white;
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    margin: 0;
}

/* 产品列表区域 - 列表形式 */
.products-section {
    padding: 20px 0 30px;
    background-color: #F5F5F5;
}

.products-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-item {
    display: flex;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image-container {
    width: 200px;
    flex-shrink: 0;
    height: 200px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.product-item:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    flex-grow: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #3A3A3A;
    margin-bottom: 10px;
    line-height: 1.5;
}

.product-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    max-width: calc(100% - 160px);
}

.product-description {
    /* 保留之前的其他样式 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制显示2行 */
    -webkit-box-orient: vertical;
    line-height: 1.6; /* 确保行高一致 */
    max-height: 3.2em; /* 2行 × 1.6行高 = 3.2em */
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.feature-tag {
    background-color: rgba(76,111,104,0.1);
    color: rgba(76,111,104,1);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.product-actions {
    display: flex;
    align-items: center;
    padding: 0 25px;
    /* 关键修改：确保操作区有足够宽度 */
    min-width: 160px;
    justify-content: flex-end;
}

.explore-link {
    color: rgba(76,111,104,1);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
    /* 确保文本不换行 */
    white-space: nowrap;
}

.explore-link:hover {
    color: #F1C4C4;
}

.explore-link:hover i {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

/* 加载更多按钮模块 - 简化版 */
.load-more-section {
    padding: 20px 0 60px; /* 适当的上下内边距 */
    background-color: #F5F5F5; /* 与产品模块背景一致 */
    text-align: center; /* 居中显示 */
}

.load-more-btn {
    padding: 12px 30px;
    background-color: rgba(76,111,104,1); /* 使用主题色 */
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

/* 图片展示区样式 */
.gallery-section {
    padding: 40px 0 80px;
    background-color: #F5F5F5; /* 统一背景色 */
}

.gallery-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: #3A3A3A;
    line-height: 1.5;
}

.gallery-container {
    display: flex;
    gap: 15px;
    width: 100%;
    height: 600px;
}

/* 大图占40%宽度 */
.gallery-main {
    flex: 2;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
}

/* 小图容器占60%宽度 */
.gallery-thumbs {
    flex: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    height: 100%;
}

.gallery-thumb {
    flex: 1;
    min-width: calc(33.333% - 10px);
    border-radius: 4px;
    overflow: hidden;
    height: calc(50% - 7.5px);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 页脚区域 */
footer {
    background-color: #3A3A3A;
    color: white;
    padding: 120px 0 60px;
}

.footer-container {
    max-width: 68%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.5;
}

.footer-description {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.5;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.5;
}

.footer-links a:hover {
    color: #F1C4C4;
}

/* 公众号关注部分 */
.wechat-section {
    margin-top: 20px;
}

.wechat-qrcode {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border: 1px solid #555;
    padding: 5px;
    margin-bottom: 15px;
    background-color: white;
}

.wechat-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: white;
    line-height: 1.5;
}

.wechat-description {
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    color: #bbb;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: white;
    border-color: #F1C4C4;
    background-color: rgba(241, 196, 196, 0.1);
}

.footer-bottom {
    max-width: 68%;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /*display: flex;*/
    text-align: center;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-link {
    color: #888;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.5;
}

.footer-bottom-link:hover {
    color: #F1C4C4;
}

/* 响应式调整和边距优化 */
.main-container {
    max-width: 68%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.gallery-section .container,
.products-section .container,
.load-more-section .container {
    max-width: 68%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .product-description {
        max-width: calc(100% - 140px);
    }

    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .header-text-container {
        margin-left: 20%; /* 平板端适当减小左侧距离 */
    }
}

@media (max-width: 768px) {
    /* 图片展示区响应式 */
    .gallery-container {
        flex-direction: column;
        height: auto;
    }

    .gallery-main, .gallery-thumbs {
        width: 100%;
        flex: none;
    }

    .gallery-main {
        height: 300px;
    }

    .gallery-thumb {
        min-width: calc(50% - 10px);
        height: 150px;
    }

    #sidebar {
        width: 70%;
    }

    .main-container,
    .gallery-section .container,
    .products-section .container,
    .load-more-section .container,
    .footer-container,
    .footer-bottom,
    .subcategory-container,
    .product-header-content {
        max-width: 80%;
    }

    /* 小分类在移动端的样式调整 */
    .subcategory-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .header-text-container {
        margin-left: 15%; /* 移动端进一步减小左侧距离 */
        padding-right: 5%;
    }

    .product-title {
        font-size: 2rem;
    }

    /* 列表视图移动端调整 */
    .product-item {
        flex-direction: column;
    }

    .product-image-container {
        width: 100%;
        height: 200px;
    }

    .product-actions {
        padding: 0 25px 25px;
        min-width: auto;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .gallery-thumb {
        min-width: 100%;
        height: 200px;
    }

    .main-container,
    .gallery-section .container,
    .products-section .container,
    .load-more-section .container,
    .footer-container,
    .footer-bottom,
    .subcategory-container,
    .product-header-content {
        max-width: 90%;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-text-container {
        margin-left: 10%; /* 手机端最小左侧距离 */
        padding-right: 5%;
    }

    .product-title {
        font-size: 1.8rem;
    }

    .load-more-btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}