/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #FF4500;
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #E03E00;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    color: #FF4500;
}

/* 导航栏 */
.header {
    background-color: #FF4500;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px;
    margin-right: 10px;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
}

.nav ul {
    display: flex;
}

.nav li {
    margin-left: 30px;
}

.nav a {
    font-size: 16px;
    transition: opacity 0.3s;
}

.nav a:hover {
    opacity: 0.8;
}

/* 主横幅 */
.hero-banner {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    width: 50%;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: linear-gradient(135deg, #FF4500 0%, #FF6347 100%);
    color: white;
}

.mission {
    max-width: 500px;
}

.mission h3 {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 20px;
}

.mission h1 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
}

.slide-image {
    width: 50%;
    background-size: cover;
    background-position: center;
}

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

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

.dot.active {
    background-color: white;
}

/* 关于我们 */
.about-section {
    padding: 100px 0;
    background-color: #FFF3E0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
}

.about-image {
    flex: 1;
}

.stats {
    display: flex;
    margin-top: 40px;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 36px;
    font-weight: 600;
    color: #FF4500;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
}

/* 产品部分 */
.products-section {
    padding: 100px 0;
    background-color: #FFEBCD;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.product-card {
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    background-color: white;
}

.product-card:hover {
    transform: translateY(-10px);
}

/* 产品卡片容器 */
.product-card {
    width: 300px; /* 固定卡片宽度 */
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    background-color: white;
}

.product-card:hover {
    transform: translateY(-10px);
}

/* 产品图片容器 */
.product-image {
    height: 300px;
    width: 100%;
    background-size: cover;
    background-position: center; /* 新增居中定位 */
    background-repeat: no-repeat;
}

/* 产品网格容器 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 响应式布局 */
    justify-items: center; /* 新增网格项水平居中 */
    gap: 40px;
    padding: 20px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #FF4500;
}

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

/* 页脚 */
.footer {
    background-color: #FF4500;
    color: white;
    padding: 60px 0 30px;
}

.footer-top {
    display: flex;
    margin-bottom: 50px;
}

.footer-logo {
    flex: 1;
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 36px;
    margin-right: 10px;
}

.footer-links {
    flex: 3;
    display: flex;
}

.footer-column {
    flex: 1;
    padding: 0 15px;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

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

.footer-column ul li a {
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-column ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.6;
}

.social-links {
    display: flex;
}

.social-icon {
    margin-left: 20px;
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .slide-content {
        width: 100%;
        padding: 0 10%;
    }
    
    .slide-image {
        display: none;
    }
    
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
    }
    
    .nav li {
        margin: 5px 10px;
    }
    
    .mission h1 {
        font-size: 36px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 30px;
    }
    
    .footer-links {
        flex-wrap: wrap;
    }
    
    .footer-column {
        flex: 0 0 50%;
        margin-bottom: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        margin-top: 20px;
        justify-content: center;
    }
    
    .social-icon {
        margin: 0 10px;
    }
}

/* 新增二维码样式 */
.qrcode-section {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.qrcode-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: #FF4500;
}

.qrcode-description {
    color: #666;
    margin-bottom: 30px;
}

.qrcode-image {
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qrcode-image img {
    width: 100%;
    height: auto;
}