body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: white;
    color: black;
}

.header {
    background-color: white;
    color: black;
    padding: 10px 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
}

.header .logo {
    font-size: 24px;
    font-weight: bold;
}

.header nav {
    display: flex;
    align-items: center;
}

.header nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.header nav ul li {
    display: inline;
}

.header nav ul li a {
    color: black;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.header nav ul li a:hover {
    background-color: #f5f5f5;
    color: black;
    box-shadow: 0 5px 15px rgba(245, 245, 245, 0.2);
}

.header nav ul li a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: none;
    border-radius: 1px;
    opacity: 0;
    transition: all 0.3s ease;
}

.header nav ul li a:hover::before {
    opacity: 0;
}

.content {
    flex: 1;
    padding: 20px;
}

.footer {
    background-color: white;
    color: black;
    text-align: center;
    padding: 5px 0;
    margin-top: auto;
    border-top: 1px solid #ccc;
}

iframe {
    width: 100%;
    height: 83vh;
    border: none;
}

.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .header nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white;
        position: absolute;
        top: 60px;
        left: 0;
        border-bottom: 1px solid #ccc;
        padding: 10px 0;
    }
    .header nav ul.active {
        display: flex;
    }
    .header nav ul li {
        width: 100%;
        text-align: center;
    }
    .menu-icon {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }
}

.section {
    padding: 40px 0;
}
.white-bg {
    background-color: white;
}
.gray-bg {
    background-color: #f5f5f5;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.slider {
    position: relative;
    overflow: hidden;
}
.slide {
    display: none;
}
.slide.active {
    display: block;
}
.slide-nav {
    text-align: center;
    margin-top: 20px;
}
.slide-nav button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
.info-block {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding: 40px 0;
}
.info-block:nth-child(even) {
    flex-direction: row-reverse;
    background-color: #f5f5f5;
}
.info-block:nth-child(odd) {
    background-color: white;
}
.info-block img {
    width: 50%;
    max-width: 500px;
}
.info-text {
    width: 50%;
    padding: 0 20px;
}
.certifications {
    list-style-type: none;
    padding: 0;
}
.certification {
    margin-bottom: 10px;
}
.certification-header {
    background-color: #f0f0f0;
    padding: 10px;
    cursor: pointer;
}
.certification-content {
    display: none;
    padding: 10px;
    background-color: white;
}
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}
.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}
.modal.show .modal-content {
    transform: scale(1);
}
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
.modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
}
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* 产品页面样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 20px;
    padding: 10px;
    max-width: 1000px;
    margin: 0 auto;
}
.product-item {
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-color: #f8f8f8;
    border-radius: 10px;
}
.product-icon {
    font-size: 35px;
    margin-bottom: 10px;
    color: black;
    transition: all 0.3s ease;
}
.product-name {
    transition: all 0.3s ease;
    text-align: center;
}
.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.05);
    transform: scale(0);
    transition: transform 0.3s ease;
}
.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.product-item:hover::before {
    transform: scale(1);
}
.product-item:hover .product-icon {
    transform: scale(1.1);
}
.product-item:hover .product-name {
    font-weight: bold;
}
.product-detail {
    display: block;
    padding: 20px;
    background-color: #f5f5f5;
    color: black;
    margin-bottom: 20px;
    border-radius: 10px;
}
.product-detail img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}
.catalog-button {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 10px;
    text-align: center;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.catalog-button:hover {
    background-color: #0056b3;
}

/* 粘性头部样式 */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    z-index: 1000;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none;
    transition: transform 0.3s ease-in-out;
}

.sticky-header.show {
    display: block;
    transform: translateY(0);
}

#stickyProductDetail {
    margin-bottom: 10px;
}

/* 为了避免内容被固定头部遮挡 */
body {
    padding-top: 0;
    transition: padding-top 0.3s ease-in-out;
}

body.has-sticky-header {
    padding-top: 150px; /* 调整这个值以匹配sticky-header的高度 */
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}