/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 主要内容区域 */
main {
    flex: 1;
    padding: 40px 8%;
    margin-top: 70px;
}

/* 海报轮播样式 */
.poster-carousel {
    position: relative;
    width: 100%;
    height: 80vh;
    max-height: 800px;
    overflow: hidden;
}

.poster-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.poster-slide.active {
    opacity: 1;
}

.poster-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #fff;
}

/* 小屏幕调整 */
@media (max-width: 768px) {
    .poster-carousel {
        height: 60vh;
    }
}

@media (max-width: 480px) {
    .poster-carousel {
        height: 50vh;
    }
}



/* ==================== */
/* 头部导航栏 - 完全保留原有样式 */
/* ==================== */
.nav_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%; /* 减小了一些上下padding */
    background-color: rgba(255, 255, 255,0.8);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    height: 70px; /* 高度略微减小 */
    position: fixed; /* 新增固定定位 */
    top: 0; /* 固定在顶部 */
    left: 0;
    right: 0;
    z-index: 1000; /* 确保导航栏在最上层 */
    transition: all 0.3s ease;
}

.nav_header h1 {
    color: #2c3e50;
    font-size: 28px;
    letter-spacing: 1px;
}

.nav_header ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav_header a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
}

.nav_header a:hover {
    color: #3498db;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: #555;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #3498db;
    padding-left: 25px;
}

.dropdown > a::after {
    content: "▼";
    font-size: 10px;
    margin-left: 6px;
    vertical-align: middle;
    color: #7f8c8d;
}

/* ==================== */
/* 底部设计 */
/* ==================== */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 50px 8% 30px;

}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;

}

.footer-brand {
    grid-column: 1;
    padding-right: 20px;

}

.footer-brand h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-brand p {
    color: #bdc3c7;
    line-height: 1.6;
    font-size: 14px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    grid-column: 2;

}

.footer-column h3 {
    color: #3498db;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #3498db;
}

.footer-contact {
    grid-column: 3;
    text-align: right;
}

.footer-contact h3 {
    color: #3498db;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-contact ul {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 12px;
    color: #ecf0f1;
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #3498db;
}

.copyright {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid #3a4e63;
    color: #7f8c8d;
    font-size: 13px;
}
#copyright1,#copyright2  {
    color:inherit;
    text-decoration: none;
}

/* 新增二级下拉菜单样式 */
.dropdown-submenu {
    position: relative;
}

.submenu-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 0 8px 8px 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
}

.dropdown-submenu:hover .submenu-content {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.dropdown-submenu > a::after {
    content: "▶";
    font-size: 10px;
    margin-left: 6px;
    vertical-align: middle;
    color: #7f8c8d;
}



/* 产品展示区域样式 */
.product-showcase {
    padding: 60px 8%;
}

.product-category h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.product-category h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #3498db;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image {
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .product-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* 分类标题样式 */
.category-header {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.category-header h2 {
    font-size: 20px;
    color: #95a5a6;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.category-header h2.active {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

.category-header h2.active::after {
    content: "";
    position: absolute;
    bottom: -17px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: #3498db;
}

.category-header h2.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.category-header h2:not(.disabled):hover {
    background-color: rgba(52, 152, 219, 0.05);
    color: #747778;
}




/* 调整底部链接布局 */
.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 三列布局 */
    gap: 120px;
    grid-column: 2;
    position: absolute;
    right: 40px
}

/* 产品展示区域样式 */
.product-showcase {
    padding: 60px 8%;
}

.product-category {
    margin-bottom: 80px;
}

.product-category:last-child {
    margin-bottom: 40px;
}

.category-header {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.category-header h2 {
    font-size: 20px;
    color: #95a5a6;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 10px;
}

.category-header h2.active {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

.category-header h2.active::after {
    content: "";
    position: absolute;
    bottom: -17px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: #3498db;
}

.category-header h2.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.category-header h2:not(.disabled):hover {
    background-color: rgba(52, 152, 219, 0.05);
    color: #2980b9;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image {
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .product-image {
        height: 250px;
    }

    .category-header {
        gap: 10px;
    }

    .category-header h2 {
        font-size: 18px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .category-header {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .category-header h2.active::after {
        bottom: -8px;
    }
}


/* 洗脸盆产品特殊样式 */
.product-thumbnails {
    display: none;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
}

.product-thumbnails img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-thumbnails img:hover {
    border-color: #3498db;
    transform: scale(1.1);
}

.product-card:hover .product-thumbnails {
    display: flex;
}

.view-more {
    color: #3498db;
    font-size: 14px;
    margin-top: 8px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.view-more:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 无图片提示样式 */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #95a5a6;
    font-size: 16px;
}

.product-card.no-image .product-image {
    background: #f8f9fa;
}

/* 图片查看模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

/* 响应式调整 */
@media (max-width: 600px) {
    .product-thumbnails {
        display: none !important;
    }

    .modal-content {
        max-width: 95%;
        max-height: 80%;
    }
}

/* 全宽图片样式 */
.one {
    width: 100%;
    margin: 40px 0;
    overflow: hidden;
}

.one img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .one img {
        height: auto;
    }
}

@media (max-width: 768px) {
    .one {
        margin: 30px 0;
    }
}

@media (max-width: 480px) {
    .one {
        margin: 20px 0;
    }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 80%;
    background: linear-gradient(135deg, #000000, #000000);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 28px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
}



/*!* 可选：滚动时导航栏变透明 *!*/
/*.nav_header.scrolled {*/
/*    background-color: rgba(255,255,255,0.9);*/
/*    backdrop-filter: blur(5px);*/
/*}*/

/*!* 对应的JS *!*/
/*window.addEventListener('scroll', function() {*/
/*    const nav = document.querySelector('.nav_header');*/
/*    if (window.scrollY > 50) {*/
/*nav.classList.add('scrolled');*/
/*} else {*/
/*      nav.classList.remove('scrolled');*/
/*  }*/
/*});*/