body {
    font-family: 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #e6f7ff; /* 将浅灰色背景改为淡蓝色 */
    color: #2c3e50;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between; /* 将靠左改为两端对齐 */
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .logo {
    font-size: 2rem; /* 增大字体 */
    font-weight: bold;
    color: #000;
    position: relative;
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, #ff4757, #e67e22); /* 将黄色替换为红色 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.2), /* 添加阴影 */
        -2px -2px 4px rgba(0, 0, 0, 0.2);
    animation: text-pulse 2s ease-in-out infinite alternate; /* 添加脉冲动画 */
}

@keyframes text-pulse {
    from {
        transform: scale(1);
        opacity: 0.9;
    }
    to {
        transform: scale(1.05);
        opacity: 1;
    }
}
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    position: relative;
    overflow: hidden;
    padding: 0.5rem 1rem;
}

header .logo::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -100%; /* 从右侧开始 */
    width: 100%;
    height: 50%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: slide 3s linear infinite;
    z-index: -1;
}

@keyframes slide {
    0% {
        right: -100%; /* 从右侧开始 */
    }
    100% {
        right: 100%; /* 移动到左侧 */
    }
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: auto;
}

nav li {
    display: inline-block; /* 确保横向排列 */
}

nav a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: block;
    position: relative;
    font-family: 'Microsoft YaHei UI', sans-serif; /* 更换字体 */
    font-size: 1.1rem; /* 稍微增大字体 */
    letter-spacing: 0.5px; /* 增加字间距 */
}

nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #ff4757;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 80%;
}

nav a.active::after {
    width: 100%;
    background-color: #e67e22;
}

nav a:hover {
    color: #f39c12;
    background-color: rgba(255,255,255,0.1);
}
    background-color: #333;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-section {
    padding: 2rem;
    text-align: center;
}

.factory-images {
    margin-top: 2rem;
}

.hero {
    height: 500px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('factory.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    background-color: #f39c12;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
    background-color: #333;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-section {
    padding: 2rem;
    text-align: center;
}

.factory-images {
    margin-top: 2rem;
}

.hero {
    position: relative;
    overflow: hidden;
    height: 500px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('factory.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-bg-image,
.hero-bg-image-left,
.hero-bg-image-center {
    position: absolute;
    top: 0;
    height: 100%;
    width: 33.33%; /* 将宽度均分为三部分 */
    object-fit: cover;
    z-index: 1;
    opacity: 0.8;
}

.hero-bg-image {
    right: 0;
}

.hero-bg-image-left {
    left: 0;
}

.hero-bg-image-center {
    left: 50%;
    transform: translateX(-50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 2.5rem; /* 保持较大字体 */
    font-weight: 600; /* 保持加粗 */
    margin-bottom: 2rem;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8), /* 保持阴影效果 */
        -2px -2px 4px rgba(0, 0, 0, 0.8);
    color: #f8f9fa; /* 使用更亮的白色 */
    letter-spacing: 2px; /* 保持字间距 */
}

.cta-button {
    background-color: #f39c12;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
body {
    line-height: 1.6;
    color: #333;
}

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.2rem;
    color: #666;
}
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.product-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1rem;
}

.product-card {
    width: 23%;
    margin: 0 1%;
}

#showMore {
    margin-top: 1rem;
    cursor: pointer;
}
    border: 1px solid #ddd;
    padding: 1rem;
    text-align: center;
}

.factory-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 2rem;
    padding: 0 2rem;
}

.image-popup {
    display: block;
    cursor: pointer;
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: contain; /* 将cover改为contain，确保完整显示图片 */
    border-radius: 4px;
    margin-bottom: 1rem;
    background-color: #f5f5f5; /* 添加背景色 */
    padding: 5px; /* 添加内边距 */
    border: 1px solid #ddd; /* 添加边框 */
}

.product-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 增强hover效果 */
}

.factory-image img {
    width: 100%;
    height: 180px; /* 将工厂图片高度从200px调整为180px */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-section {
    padding: 4rem 2rem;
    background-color: #2c3e50;
    color: white;
}

.contact-item {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 8px;
}

.contact-item h3 {
    color: #f39c12;
    margin-bottom: 1rem;
}

.contact-item p {
    color: #eee;
}
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-item h3 {
    color: #007bff;
    margin-bottom: 1rem;
}

.advantages-section {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.advantage-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.advantage-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.advantage-card p {
    color: #666;
    line-height: 1.8;
}