* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.h1, .h2, .h3, h1, h2, h3 {
    margin-top: 0px;
    margin-bottom:0px;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 头部导航 */
.header {
    background: linear-gradient(135deg, #E60012 0%, #cc0010 100%);
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(230, 0, 18, 0.3);
    transition: all 0.3s ease;
}

    .header.scrolled {
        padding: 10px 0;
        background: rgba(230, 0, 18, 0.95);
        backdrop-filter: blur(10px);
    }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

    .logo img {
        width: 150px;
        border-radius: 8px;
        transition: transform 0.3s ease;
    }

    .logo:hover img {
        transform: scale(1.1) rotate(5deg);
    }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 55px;
}

    .nav-menu > li {
        position: relative;
    }

    .nav-menu a {
        color: white;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
        padding: 10px 0;
        display: block;
        font-size: 15px;
    }

    .nav-menu > li > a {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .nav-menu a:hover {
        color: #FFD700;
        transform: translateY(-2px);
    }

    .nav-menu a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: #FFD700;
        transition: width 0.3s ease;
    }

    .nav-menu a:hover::after {
        width: 100%;
    }

/* 二级菜单样式 */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 110px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.nav-menu li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    color: #333;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 400;
    transition: all 0.3s ease;
}

    .dropdown a:last-child {
        border-bottom: none;
    }

    .dropdown a:hover {
        background: #f8f9fa;
        color: #E60012;
        transform: translateX(5px);
    }

    .dropdown a::after {
        display: none;
    }



.hotline {
    color: white;
    /*text-align: right;*/
}

.hotline-title {
    font-size: 14px;
    opacity: 0.9;
}

.hotline-number {
    font-size: 20px;
    font-weight: bold;
    margin-top: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

    .menu-toggle div {
        width: 25px;
        height: 3px;
        background: white;
        margin: 4px 0;
    }


/* 底部 */
.footer {
    background: linear-gradient(135deg, #E60012 0%, #cc0010 100%);
    color: white;
    padding:30px 0 10px;
    position: relative;
}

    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, #FFD700, #E60012, #FFD700);
    }

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.footer-info {
    font-size: 16px;
    line-height: 1.8;
}

    .footer-info h3 {
        font-size: 24px;
        margin-bottom: 20px;
        color: #FFD700;
    }

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #FFD700;
}

.footer-column ul {
    list-style: none;
}

    .footer-column ul li {
        margin-bottom: 10px;
    }

        .footer-column ul li a {
            color: white;
            text-decoration: none;
            transition: color 0.3s ease;
            font-size: 14px;
        }

            .footer-column ul li a:hover {
                color: #FFD700;
            }

.qr-section {
    text-align: center;
}

    .qr-section h4 {
        font-size: 18px;
        margin-bottom: 20px;
        color: #FFD700;
    }

    .qr-section img {
        width: 150px;
        height: 150px;
        border-radius: 15px;
        border: 3px solid rgba(255, 255, 255, 0.3);
    }

.copyright {
    text-align: center;
    padding-top:15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0.8;
}

/* 置顶按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #E60012, #ff3333);
    color: white;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 0, 18, 0.4);
    z-index: 1000;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(230, 0, 18, 0.6);
    }

/* 动画效果 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }
        .nav-container nav, .nav-container .hotline {
            display: none
        }
        .nav-menu {
            gap: 20px;
            flex-direction: column;
            text-align: center;
        }

    .menu-toggle {
        display: flex;
        margin-left: 60%;
        z-index:999;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        margin-top: 10px;
        border-radius: 5px;
    }

        .dropdown a {
            color: white;
            border-color: rgba(255,255,255,0.2);
        }

    .slide-title {
        font-size: 32px;
    }

    .slide-subtitle {
        font-size: 18px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .news-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .section-title {
        font-size: 28px;
    }

    .swiper-slide img {
     
        height: 300px; 
    }
    nav.active {
        display: flex;
    }

    .swiper-slide img {
        width: 100%; /* 图片宽度设置为100%，使其随容器宽度变化 */
        height: 300px !important; /* 高度根据宽度自动调整 */
        /* 如果你想固定图片高度，请在这里设置具体的height值 */
    }

}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    nav.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
        margin-left: 60%;
        z-index: 999;
    }
    .swiper-slide img {
        width: 100%; /* 图片宽度设置为100%，使其随容器宽度变化 */
        height: 300px !important; /* 高度根据宽度自动调整 */
        /* 如果你想固定图片高度，请在这里设置具体的height值 */
    }
}

.page-content-banner {
    width: 100%;
    height: 200px;
}

/* 分类 */
.page-categories {
    max-width: 1200px;
    margin: 20px auto 10px;
    padding: 0 10px;
}

.page-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .page-category-list span {
        background-color: #ffe6e6;
        color: #E60012;
        padding: 8px 16px;
        border-radius: 999px;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .page-category-list span:hover {
            background-color: #E60012;
            color: white;
        }
        .page-category-list span a:hover {
            color: white;
        }

    .page-category-list .active {
        background-color: #E60012;
        color: white;
    }
    .page-category-list span a {
        color: #E60012;
    }
        .page-category-list .active a {
            color: white;
        }

.back-link {
    margin-top: 30px;
    display: inline-block;
    text-decoration: none;
    color: #E60012;
    font-weight: bold;
}

.mt20{
    margin:20px;
}