* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部联系栏 */
.top-bar {
    background-color: #7a7a7a;
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flag-icon {
    width: 30px;
    height: 20px;
    object-fit: cover;
}

.contact-info span {
    margin-left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.contact-info i {
    color: #fff;
}

.tagline {
    font-weight: bold;
    font-size: 16px;
}

/* 导航栏 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

.logo h1 {
    color: #d0021b;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.logo p {
    font-size: 14px;
    color: #666;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d0021b, #ff4d4d);
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a:hover {
    color: #d0021b;
}

.nav a.active {
    color: #d0021b;
}

/* 轮播图 */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
}

.slide-content {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.slide-content h2 {
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 3px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.5);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #fff;
}

/* 产品展示区 */
.products-section {
    padding: 60px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: #1a1a1a;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.title-line {
    width: 100px;
    height: 2px;
    background: #1a1a1a;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    border: 1px solid #e0e0e0;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 20px;
    color: #333;
    font-weight: 400;
}

/* 右侧悬浮社交图标 */
.social-float {
    position: fixed;
    right: 0;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-float-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #f0f0f0;
    color: #333;
    font-size: 24px;
    transition: all 0.3s;
    text-decoration: none;
}

.social-float-item:hover {
    background-color: #d0021b;
    color: #fff;
    transform: translateX(-5px);
}

/* 微信二维码 */
.wechat-item {
    position: relative;
}

.wechat-qr {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    opacity: 0;
    transition: all 0.3s ease;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.wechat-qr img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    display: block;
}

.wechat-item:hover .wechat-qr {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* 页脚 */
.footer {
    background-color: #f5f5f5;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-column a:hover {
    color: #d0021b;
}

.footer-column ul li:not(:last-child) {
    margin-bottom: 8px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #e0e0e0;
    color: #333;
    border-radius: 3px;
    transition: background 0.3s, color 0.3s;
}

.social-links a:hover {
    background: #d0021b;
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    font-size: 14px;
    color: #666;
}

.copyright a {
    color: #666;
    text-decoration: none;
}

.copyright a:hover {
    color: #d0021b;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #333;
    font-size: 20px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #d0021b;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .slide-content h2 {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}