/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* 配色方案 */
:root {
    --primary: #1a936f;
    --primary-dark: #0a7c5a;
    --primary-light: #88d498;
    --secondary: #114b5f;
    --accent: #f9dc5c;
    --light: #f3f9f7;
    --dark: #1a1a1a;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* 标题样式 */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    margin: 15px auto 30px;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

/* 导航栏样式 */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Logo容器 */
.logo {
    display: flex;
    align-items: center; /* 确保logo内部元素垂直居中对齐 */
    gap: 10px;
    text-decoration: none;
    height: 100%; /* 添加高度100%以对齐 */
}

/* Logo图片样式 */
.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* 内切圆效果 */
    display: block;
    object-fit: cover; /* 确保图片内容适配容器 */
    object-position: center; /* 图片居中显示 */
    vertical-align: middle; /* 添加垂直对齐 */
    margin: 0; /* 清除默认边距 */
	margin-left: 0; /* LOGO完全贴边 */
}

/* Logo文字样式 */
.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center; /* 确保文字垂直居中 */
    height: 100%; /* 添加高度100%以对齐 */
}

.logo-text span {
    color: var(--primary);
}

/* 导航菜单 */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 0;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
    background: none;
    border: none;
}

/* 英雄横幅区域 */
.hero {
    background: linear-gradient(135deg, rgba(17, 75, 95, 0.9), rgba(26, 147, 111, 0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800" opacity="0.1"><path d="M0,0h1200v800H0V0z" fill="%23000"/><circle cx="300" cy="200" r="80" fill="%23fff"/><circle cx="900" cy="400" r="120" fill="%23fff"/><circle cx="600" cy="600" r="100" fill="%23fff"/></svg>');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 180px 0 120px;
    margin-top: 70px;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-badge {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    font-size: 1.2rem;
}

/* 公司简介区域 */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-title {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.about-description {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--gray);
    font-size: 0.95rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    height: 400px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb, #90caf9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-content {
    text-align: center;
    color: var(--secondary);
    padding: 30px;
}

.about-image-content i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.about-image-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.about-image-content p {
    font-size: 1rem;
    line-height: 1.6;
}

/* 产品中心区域 */
.products {
    padding: 100px 0;
    background-color: var(--light);
}

.product-categories {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-category {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
}

.product-category:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-category-img {
    width: 40%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--white);
    flex-shrink: 0;
}

.product-category-content {
    width: 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-category-title {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.product-category-desc {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.7;
}

/* 不同产品行的背景色 */
.product-img-1 {
    background: linear-gradient(135deg, #e8f5e9, #a5d6a7);
}

.product-img-2 {
    background: linear-gradient(135deg, #e3f2fd, #90caf9);
}

.product-img-3 {
    background: linear-gradient(135deg, #f3e5f5, #ce93d8);
}

.product-img-4 {
    background: linear-gradient(135deg, #e0f7fa, #80deea);
}

.product-img-5 {
    background: linear-gradient(135deg, #fff3e0, #ffcc80);
}

/* 新闻资讯区域 */
.news {
    padding: 100px 0;
    background-color: var(--white);
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-item-img {
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--white);
}

.news-item-content {
    padding: 25px;
}

.news-item-date {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-item-title {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-item-desc {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 新闻图片背景 */
.news-img-1 {
    background: linear-gradient(135deg, #e0f7fa, #80deea);
}

.news-img-2 {
    background: linear-gradient(135deg, #e8f5e9, #a5d6a7);
}

.news-img-3 {
    background: linear-gradient(135deg, #f3e5f5, #ce93d8);
}

/* 底部区域 */
footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 70px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    color: var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo-text span {
    color: var(--primary-light);
}

.footer-about p {
    opacity: 0.8;
    line-height: 1.7;
    margin-top: 15px;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-icon {
    margin-right: 12px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.qrcode-container {
    background-color: var(--white);
    width: 150px;
    height: 150px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.qrcode-placeholder {
    text-align: center;
    color: var(--secondary);
    font-size: 0.9rem;
}

.qrcode-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.qrcode-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}



.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .product-category {
        flex-direction: column;
    }
    
    .product-category-img,
    .product-category-content {
        width: 100%;
    }
    
    .product-category-img {
        min-height: 200px;
    }
    
    .product-category-content {
        padding: 30px;
    }
    
    .about-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-menu ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: left 0.4s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu ul.active {
        left: 0;
    }
    
    .nav-item {
        margin: 0 0 25px;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1000;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-badge {
        width: 100%;
        max-width: 300px;
    }
    
    .about, .products, .news {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .news-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .product-category-content {
        padding: 25px;
    }
    
    .product-category-title {
        font-size: 1.5rem;
    }
    
    .product-category-img {
        min-height: 180px;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .stat-item {
        min-width: 120px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}