.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);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
.tab-btn.active {
    border-bottom-color: #F1C4C4;
    color: #F1C4C4;
}
.star-rating .star {
    color: #D4D4D4;
    transition: color 0.3s ease;
}
.star-rating .star.filled {
    color: #F9D5A7;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* 基础动画与全局样式 */
body {
    background-color: #F5F5F5; /* 淡灰色背景 - 所有模块的统一背景色 */
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

/* 轮播动画 - 使用Swiper.js */
.banner-slider {
    position: relative;
    overflow: hidden;
    height: 90vh; /* 轮播图高度为视口的90% */
}

/* 修复轮轮播图幻灯片高度 - 确保内部div占满整个高度 */
.banner-swiper {
    height: 100% !important;
}

.banner-swiper .swiper-wrapper {
    height: 100% !important;
}

.banner-swiper .swiper-slide {
    height: 100% !important;
    background-position: center;
    background-size: cover;
}

/* 分类导航模块样式 - 整体体高度缩减30%，背景色与其他模块一致 */
.categories-section {
    background-color: #F5F5F5; /* 修改为与其他模块一致的淡灰色背景 */
    padding: 42px 0; /* 原60px缩减30% */
}

.categories-container {
    display: flex;
    width: 100%;
}

/* 左侧整体占50%宽度，菜单和图片放在一起 */
.categories-left {
    flex: 1; /* 占总宽度的50% */
    position: relative;
    padding: 0 40px;
    min-height: 420px; /* 原600px缩减30% */
}

/* 导航列表样式 */
.categories-list {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 21px; /* 原30px缩减30% */
    position: relative;
    z-index: 10; /* 确保菜单在图片上方 */
}

/* 添加所有所有类目标标题样式 */
.all-categories {
    font-weight: 600;
    font-size: 1.2rem;
    color: #000000; /* 一直为黑色 */
    padding: 7px 0; /* 原10px缩减30% */
    margin-bottom: 7px; /* 原10px缩减30% */
    line-height: 1.5; /* 确保文字完整显示 */
}

/* 动态图片容器 - 固定位置 */
.categories-dynamic-container {
    position: absolute;
    top: 21px; /* 与"所有类目"标题顶部对齐，原30px缩减30% */
    left: 280px; /* 调整左侧位置，与最长菜单文字保持间隙 */
    width: 40%; /* 占左侧50%总宽度的40% */
    height: 35%; /* 原50%缩减30% */
    z-index: 5; /* 确保在文字下方 */
    overflow: hidden;
}

/* 动态图片样式 */
.category-dynamic-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: all 0.7s ease;
}

/* 显示当前图片的样式 */
.category-dynamic-image.active {
    opacity: 1;
    visibility: visible;
}

/* 分类项目样式 - 限制交互区域为横线和文字 */
.category-item {
    padding: 8px 0; /* 增加上下内边距，解决文字显示不全问题 */
    position: relative;
    cursor: default; /* 默认无指针样式 */
    transition: all 0.3s ease;
    overflow: visible; /* 改为可见，确保文字不被裁剪 */
    height: auto; /* 改为自动高度，让内容决定高度 */
    box-sizing: border-box;
}

/* 交互区域容器 */
.category-interactive {
    display: inline-flex;
    align-items: flex-start; /* 顶部对齐，为英文翻译留出空间 */
    cursor: pointer; /* 交互区域有指针样式 */
    color: #4c6f68; /* 默认文字颜色 */
    line-height: 1.5; /* 增加行高，确保文字完整显示 */
    font-size: 1.1rem; /* 微调字体大小 */
    flex-direction: row; /* 水平排列 - 确保横线在左边 */
}

/* 文字容器 - 包含中文和英文 */
.category-text {
    display: flex;
    flex-direction: column;
}

/* 中文名称样式 */
.category-name {
    font-size: 1rem; /* 设置字体大小为1rem */
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block; /* 确保文字不被截断 */
}

/* 英文翻译样式 */
.category-english {
    font-size: 0.7rem; /* 英文较小 */
    text-transform: uppercase; /* 英文大写 */
    letter-spacing: 0.5px; /* 字母间距 */
    opacity: 0.7; /* 稍淡一些 */
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* 横线样式 - 保持在左侧 */
.category-item .category-line {
    display: inline-block;
    width: 40px; /* 默认短横线 */
    height: 1px;
    background-color: #4c6f68; /* 默认横线颜色 */
    margin-right: 25px; /* 增加间距，为横线变长预留空间 */
    transition: width 0.5s ease, background-color 0.3s ease; /* 同步颜色过渡 */
    vertical-align: middle;
    align-self: center; /* 垂直居中对齐 */
    margin-top: 8px; /* 调整横线位置 */
}

/* 悬停状态 - 横线和文字同时变色 */
.category-interactive:hover .category-line {
    width: 80px; /* 变长的横线 */
    background-color: #000000; /* 悬停时横线颜色 */
}

.category-interactive:hover .category-name,
.category-interactive:hover .category-english {
    color: #000000; /* 悬停时文字颜色 */
}

/* 右侧固定图片区域，占50%宽度 */
.category-fixed-image-container {
    flex: 1; /* 占总宽度的50% */
    position: relative;
}

.dynamic-image-wrapper,
.fixed-image-wrapper {
    height: 56vh; /* 原80vh缩减30% */
    position: relative;
    overflow: hidden;
}

.category-fixed-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    visibility: visible;
}

/* 即刻探索按钮移至右侧固定图片上 */
.category-explore {
    position: absolute;
    bottom: 35px; /* 原50px缩减30% */
    left: 0;
    padding-left: 50px;
    z-index: 20;
}

.explore-button {
    background-color: transparent;
    color: white; /* 文字改为白色 */
    border: 1px solid white; /* 边框框改为白色 */
    padding: 12px 30px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.explore-button:hover {
    background-color: rgba(255, 255, 255, 0.2); /* 悬停时背景半透明白色 */
    color: white;
}

.explore-button i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.explore-button:hover i {
    transform: translateX(5px);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px; /* 原100px缩减30% */
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    z-index: 10;
}

/* 新增的大图模块样式 */
.hero-banner-container {
    width: 100%;
    padding: 10px
}

.hero-banner {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    margin: 10px auto;
    max-width: 68%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    bottom: 150px;
    left: 0;
    padding-left: 5%;
    /*max-width: 600px;*/
    z-index: 20;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: white;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-button {
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    color: white;
    border: 1px solid white;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-button:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 60%);
    z-index: 10;
}

/* 加载动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* 导航栏样式 - 字体加粗，移除下拉功能 */
#main-header {
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1),
    background-color 0.5s ease,
    opacity 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
    opacity: 1;
    z-index: 40;
}

#main-header.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#main-header.scrolled .nav-link,
#main-header.scrolled .nav-icon {
    color: #3A3A3A !important;
}

/* 导航栏文字加粗 */
.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;
}

/* 评论展示模块 - 添加用户反馈标题 */
.reviews-section {
    padding: 80px 0;
    background-color: transparent;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 每行固定3个评论 */
    gap: 30px;
}

.review-item {
    width: 100%; /* 确保每个评论占满网格空间 */
    margin: 0; /* 移除可能的外边距 */
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-name {
    font-weight: 600;
    color: #3A3A3A;
}

.review-date {
    font-size: 0.9rem;
    color: #999;
    margin-top: auto;
    padding-top: 15px;
}

.review-content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 1.1rem;
    flex-grow: 1;
}

.review-product {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 10px;
}

/* 页签商品展示区样式 */
.tabs-section {
    padding: 80px 0 40px;
    background-color: transparent;
}

.tabs-container {
    background-color: transparent;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
    justify-content: center;
}

.tab-btn {
    padding: 10px 20px 15px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 1.1rem;
    font-weight: 500;
    color: #3A3A3A;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 20px;
    line-height: 1.5; /* 确保页签文字完整显示 */
}

.tab-btn:hover {
    color: #F1C4C4;
}

/* 所有产品网格统一为25%宽度，每行4个 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.product-card-inner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-name {
    margin-top: 8px;
    font-weight: 500;
    color: #3A3A3A;
    text-align: center;
    position: relative;
    z-index: 10;
    line-height: 1.5; /* 确保产品名称完整显示 */
}

/* 产品卡片悬停效果 - 背景改为纯白色 */
.product-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white; /* 改为纯白色背景 */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 顶部对齐 */
    align-items: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s ease;
    z-index: 5;
}

/* 悬停图片高度占50% */
.overlay-image {
    width: 100%;
    height: 50%; /* 高度为容器的50% */
    object-fit: cover;
    margin-bottom: 15px;
}

.product-card:hover .product-card-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.explore-link {
    color: #F1C4C4;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: 20px; /* 增加与图片的距离 */
    line-height: 1.5;
}

.explore-link:hover i {
    transform: translateX(5px);
}

/* 新产品展示区 - 固定25%宽度，每行4个 */
.new-products-section {
    padding: 80px 0 40px;
    background-color: transparent;
    position: relative;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    color: #3A3A3A;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 10px;
    line-height: 1.5; /* 确保标题完整显示 */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #F1C4C4;
}

/* 新产品网格布局 - 固定25%宽度，每行4个，第5个自动换行 */
.new-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4列，每列25%宽度 */
    gap: 30px;
    box-sizing: border-box;
}

/* 图片展示区样式 - 1张大图(40%)和6张小图(60%)，高度一致对齐 */
.gallery-section {
    padding: 40px 0 80px;
    background-color: transparent;
}

.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; /* 40%宽度 */
    border-radius: 4px;
    overflow: hidden;
    height: 100%; /* 占满容器高度 */
}

/* 小图容器占60%宽度 */
.gallery-thumbs {
    flex: 3; /* 60%宽度 */
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    height: 100%; /* 占满容器高度 */
}

.gallery-thumb {
    flex: 1;
    min-width: calc(33.333% - 10px); /* 每行3个小图，填满空间 */
    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); /* 改为5列布局 */
    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; /* 确保logo文字完整显示 */
}

.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;
}

.banner-slider .container,
.reviews-section .container,
.gallery-section .container,
.tabs-section .container,
.new-products-section .container,
.categories-section .container {
    max-width: 68%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1440px) {
    .products-grid,
    .new-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .products-grid,
    .new-products-grid { /* 新产品在中等屏幕每行3个 */
        grid-template-columns: repeat(3, 1fr);
    }

    .reviews-container {
        grid-template-columns: repeat(2, 1fr); /* 中等屏幕每行2个 */
    }

    .review-item {
        width: 100%;
    }

    .categories-container {
        flex-direction: column;
    }

    .categories-left {
        width: 100%;
    }

    .dynamic-image-wrapper,
    .fixed-image-wrapper {
        height: 35vh; /* 原50vh缩减30% */
        margin-top: 0;
    }

    .category-explore {
        bottom: 21px; /* 原30px缩减30% */
        padding-left: 30px;
    }

    /* 响应式调整动态图片容器位置 */
    .categories-dynamic-container {
        left: 220px;
    }

    /* 页脚响应式 */
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .reviews-container {
        grid-template-columns: 1fr; /* 小屏幕每行1个 */
    }
    /* 图片展示区响应式 - 堆叠布局 */
    .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); /* 移动端每行2个小图 */
        height: 150px; /* 移动端小图固定高度 */
    }

    #sidebar {
        width: 70%;
    }

    .tab-btn {
        font-size: 1rem;
        padding: 8px 12px 12px;
        margin-right: 10px;
    }

    /* 新产品在平板屏幕每行2个 */
    .new-products-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 小屏幕导航调整 */
    .category-item .category-name {
        font-size: 1rem;
        left: 90px; /* 小屏幕减少距离 */
    }

    .category-item .category-line {
        margin-right: 20px; /* 小屏幕减少间距 */
    }

    /* 小屏幕动态图片容器位置调整 */
    .categories-dynamic-container {
        left: 180px;
        width: 45%;
    }

    .main-container,
    .banner-slider .container,
    .reviews-section .container,
    .gallery-section .container,
    .tabs-section .container,
    .new-products-section .container,
    .categories-section .container,
    .hero-banner,
    .footer-container,
    .footer-bottom {
        max-width: 80%;
    }
}

@media (max-width: 480px) {
    .gallery-thumb {
        min-width: 100%; /* 移动端每行1个小图 */
        height: 200px; /* 移动端小图固定高度 */
    }

    .gallery-section, .tabs-section, .reviews-section, .new-products-section {
        padding: 40px 0;
    }

    .products-grid,
    .new-products-grid { /* 移动端每行1个产品 */
        grid-template-columns: 1fr;
    }

    .tabs-header {
        flex-wrap: wrap;
    }

    .tab-btn {
        margin-bottom: 10px;
    }

    .product-card-inner {
        height: 400px;
    }

    .overlay-image {
        height: 50%; /* 保持移动端高度也为50% */
    }

    .hero-banner {
        height: 50vh;
    }

    .hero-content {
        bottom: 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    /* 导航进一步调整 */
    .category-item .category-name {
        font-size: 0.9rem;
        left: 80px;
    }

    .category-item .category-line {
        margin-right: 15px;
    }

    /* 移动端隐藏动态图片 */
    .categories-dynamic-container {
        display: none;
    }

    .main-container,
    .banner-slider .container,
    .reviews-section .container,
    .gallery-section .container,
    .tabs-section .container,
    .new-products-section .container,
    .categories-section .container,
    .hero-banner,
    .footer-container,
    .footer-bottom {
        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;
    }
}