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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    background: #f0f7f0; /* 更柔和的浅绿色背景 */
    color: #333;
}

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

/* 页面头部 */
.header {
    background: #ffffff; /* 纯白色背景 */
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

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

.logo h1 {
    color: #2e7d32; /* 深绿色 */
    font-size: 24px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.logo h1:hover {
    color: #1b5e20; /* 更深的绿色 */
    transform: scale(1.02);
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.navbar li {
    margin-left: 25px;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 17px;
}

.navbar a:hover {
    background: #e8f5e9; /* 浅绿色悬停背景 */
    color: #2e7d32; /* 深绿色文字 */
}

.navbar a.active {
    background: #4caf50; /* 主题绿色 */
    color: white;
}

.mobile-menu-btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #2e7d32;
}

/* 横幅区域 */
.banner {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%); /* 更自然的绿色渐变 */
    color: white;
    text-align: center;
    padding: 120px 0;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content h1 {
    font-size: 52px;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.banner-content h1:hover {
    transform: scale(1.02);
}

.banner-content p {
    font-size: 24px;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.banner-content p:hover {
    transform: translateY(-5px);
}

/* 主要内容区域 */
.main-content {
    padding: 30px 0 60px;
    animation: fadeInUp 0.8s ease;
}

.main-content h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2e7d32; /* 深绿色标题 */
    font-size: 38px;
    font-weight: 700;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.main-content h2:hover {
    color: #1b5e20; /* 更深的绿色 */
    transform: scale(1.02);
}

/* 产品分类 */
.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.category-item {
    background: #ffffff; /* 纯白色背景 */
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: bounceIn 0.8s ease;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #4caf50, #2e7d32);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.category-item:hover::before {
    transform: scaleX(1);
}

.category-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.category-item h3 {
    color: #2e7d32; /* 深绿色标题 */
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.category-item:hover h3 {
    color: #1b5e20; /* 更深的绿色 */
    transform: scale(1.05);
}

.category-item p {
    color: #555;
    font-size: 18px;
    line-height: 1.7;
    transition: all 0.3s ease;
}

.category-item:hover p {
    color: #333;
    transform: translateY(3px);
}

/* 产品展示 */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
    margin-bottom: 50px;
}

.product-item {
    background: #ffffff; /* 纯白色背景 */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    animation: slideInUp 0.6s ease;
}

.product-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-item h3 {
    color: #2e7d32; /* 深绿色标题 */
    padding: 20px 20px 10px;
    font-size: 22px;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.product-item:hover h3 {
    color: #1b5e20; /* 更深的绿色 */
    transform: translateX(5px);
}

.product-item p {
    color: #555;
    padding: 0 20px 20px;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.product-item:hover p {
    color: #333;
    transform: translateX(3px);
}

/* 荣誉资质 */
.honor-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.honor-item {
    background: #ffffff; /* 纯白色背景 */
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: bounceIn 0.8s ease;
}

.honor-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #4caf50, #2e7d32);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.honor-item:hover::before {
    transform: scaleX(1);
}

.honor-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.honor-item h2 {
    color: #2e7d32; /* 深绿色标题 */
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.honor-item h2:hover {
    color: #1b5e20; /* 更深的绿色 */
    transform: scale(1.02);
}

.honor-item h3 {
    color: #2e7d32; /* 深绿色标题 */
    margin: 25px 0 15px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.honor-item h3:hover {
    color: #1b5e20; /* 更深的绿色 */
    transform: translateX(10px);
}

.honor-item p {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    transition: all 0.3s ease;
}

.honor-item p:hover {
    color: #333;
    transform: translateX(5px);
}

/* 关于我们页面样式 */
.company-intro {
    background: #ffffff; /* 纯白色背景 */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    margin-bottom: 50px;
    position: relative;
    animation: fadeIn 0.8s ease;
}

.company-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #4caf50, #2e7d32);
    transition: all 0.4s ease;
}

.company-intro:hover::before {
    height: 8px;
}

.company-intro h2 {
    color: #2e7d32; /* 深绿色标题 */
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    transition: all 0.3s ease;
    text-align: center;
}

.company-intro:hover h2 {
    color: #1b5e20; /* 更深的绿色 */
    transform: scale(1.02);
}

.company-intro h3 {
    color: #2e7d32; /* 深绿色标题 */
    margin: 30px 0 15px;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.company-intro:hover h3 {
    color: #1b5e20; /* 更深的绿色 */
    transform: translateX(10px);
}

.company-intro p {
    color: #555;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.company-intro:hover p {
    color: #333;
    transform: translateX(5px);
}

/* 联系我们页面样式 */
.contact-section {
    background: #ffffff; /* 纯白色背景 */
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    margin-bottom: 50px;
    position: relative;
    animation: fadeIn 0.8s ease;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #4caf50, #2e7d32);
    transition: all 0.4s ease;
}

.contact-section:hover::before {
    height: 8px;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 35px;
    color: #2e7d32; /* 深绿色标题 */
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.contact-section h2:hover {
    color: #1b5e20; /* 更深的绿色 */
    transform: scale(1.02);
}

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

.contact-item {
    text-align: center;
    padding: 30px;
    background-color: #f8fff8; /* 极浅的绿色背景 */
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    animation: bounceIn 0.8s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background-color: #ffffff; /* 白色背景 */
}

.contact-item h3 {
    color: #2e7d32; /* 深绿色标题 */
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.contact-item:hover h3 {
    color: #1b5e20; /* 更深的绿色 */
    transform: scale(1.1);
}

.contact-item p {
    color: #555;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.contact-item:hover p {
    color: #333;
    transform: scale(1.05);
}

.contact-form .form-group {
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.contact-form .form-group:hover {
    transform: translateX(5px);
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2e7d32; /* 深绿色标签 */
    font-size: 17px;
    transition: all 0.3s ease;
}

.contact-form label:hover {
    color: #1b5e20; /* 更深的绿色 */
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
    line-height: 1.5;
    position: relative;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #4caf50; /* 主题绿色 */
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
    transition: all 0.3s ease;
}

.contact-form input:focus::placeholder,
.contact-form textarea:focus::placeholder {
    opacity: 0;
    transform: translateY(-10px);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%); /* 绿色渐变 */
    color: white;
    padding: 16px 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.4s ease;
    width: 100%;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.contact-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.6s ease;
}

.contact-form button:hover::before {
    left: 100%;
}

.contact-form button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.5);
}

.contact-form button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

/* 新闻动态 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    background: #ffffff; /* 纯白色背景 */
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #4caf50, #2e7d32);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.news-item:hover::before {
    transform: scaleX(1);
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.news-item h3 {
    color: #2e7d32; /* 深绿色标题 */
    margin-top: 0;
    font-size: 26px;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.news-item:hover h3 {
    color: #1b5e20; /* 更深的绿色 */
    transform: translateX(10px);
}

.news-meta {
    color: #7f8c8d;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.news-item:hover .news-meta {
    color: #555;
}

.news-item p {
    color: #555;
    line-height: 1.8;
    font-size: 17px;
    transition: all 0.3s ease;
}

.news-item:hover p {
    color: #333;
}

/* 新闻列表页面样式 */
.news-list-page .news-item {
    flex: 1;
    min-width: 300px;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #1b5e20 0%, #0d3c13 100%); /* 深绿色渐变 */
    color: white;
    text-align: center;
    padding: 50px 0;
    margin-top: 60px;
    position: relative;
    transition: all 0.4s ease;
}

.footer:hover {
    background: linear-gradient(135deg, #0d3c13 0%, #1b5e20 100%); /* 反向渐变 */
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #4caf50, #2e7d32);
    transition: all 0.4s ease;
}

.footer:hover::before {
    height: 8px;
}

.footer p {
    margin: 15px 0;
    font-size: 17px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.footer p:hover {
    transform: translateY(-3px);
}

.footer a {
    color: #c8e6c9; /* 浅绿色链接 */
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    font-weight: 500;
}

.footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: white;
    transition: width 0.3s ease;
}

.footer a:hover {
    color: white;
}

.footer a:hover::after {
    width: 100%;
}

/* 返回顶部按钮 */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%); /* 绿色渐变 */
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(100px);
}

#backToTop.show {
    opacity: 1;
    transform: translateY(0);
}

#backToTop:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

#backToTop:active {
    transform: translateY(0) scale(0.95);
}

/* 动画关键帧 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    .header-content {
        padding: 10px 0;
    }
    
    .navbar ul {
        gap: 15px;
    }
    
    .navbar li {
        margin-left: 15px;
    }
    
    .navbar a {
        padding: 10px 15px;
        font-size: 16px;
    }
    
    .banner {
        padding: 100px 0;
        margin-bottom: 40px;
    }
    
    .banner-content h1 {
        font-size: 44px;
        margin-bottom: 20px;
    }
    
    .banner-content p {
        font-size: 22px;
        max-width: 100%;
    }
    
    .main-content {
        padding: 25px 0 50px;
    }
    
    .main-content h2 {
        font-size: 34px;
        margin-bottom: 35px;
    }
    
    .category-list {
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .category-item {
        padding: 30px 20px;
    }
    
    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .honor-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .company-intro,
    .contact-section {
        padding: 40px;
        margin-bottom: 40px;
    }
    
    .company-intro h2,
    .contact-section h2 {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .contact-info {
        gap: 25px;
        margin-bottom: 35px;
    }
    
    .contact-item {
        padding: 25px;
    }
    
    .news-list {
        gap: 25px;
    }
    
    .news-item {
        padding: 30px;
    }
    
    .news-item h3 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .footer {
        padding: 45px 0;
        margin-top: 50px;
    }
    
    .footer p {
        font-size: 16px;
    }
    
    #backToTop {
        width: 55px;
        height: 55px;
        font-size: 26px;
        bottom: 25px;
        right: 25px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 15px 0;
    }
    
    .logo h1 {
        margin-bottom: 15px;
    }

    .navbar {
        width: 100%;
    }
    
    .navbar ul {
        flex-direction: column;
        margin-top: 20px;
        gap: 10px;
    }

    .navbar li {
        flex: none;
        margin: 8px 0;
        width: 100%;
    }

    .navbar a {
        padding: 15px 20px;
        display: block;
        text-align: center;
        border-radius: 8px;
        font-size: 18px;
        text-align: left;
    }
    
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(3px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }
    
    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
}