/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    background-color: #2E7D32;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #1B5E20;
}

.btn-secondary {
    display: inline-block;
    background-color: #1976D2;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #1565C0;
}

/* 导航栏 */
.navbar {
    background-color: #2E7D32;
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo h1 {
    color: white;
    font-size: 24px;
    margin-bottom: 2px;
}

.logo p {
    color: #81C784;
    font-size: 12px;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 20px 0;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #81C784;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

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

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.slide-content p {
    font-size: 20px;
    max-width: 500px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.slider-nav button {
    background-color: rgba(46, 125, 50, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-nav button:hover {
    background-color: rgba(46, 125, 50, 1);
}

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

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

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

/* 公司简介概览 */
.company-overview {
    padding: 80px 0;
    background-color: white;
}

.company-overview h2 {
    text-align: center;
    font-size: 36px;
    color: #2E7D32;
    margin-bottom: 50px;
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.overview-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.overview-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 产品展示 */
.products-showcase {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.products-showcase h2 {
    text-align: center;
    font-size: 36px;
    color: #2E7D32;
    margin-bottom: 50px;
}

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

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 24px;
    color: #2E7D32;
    padding: 20px 20px 10px;
}

.product-card p {
    font-size: 16px;
    color: #666;
    padding: 0 20px 20px;
    line-height: 1.6;
}

.product-card .btn-secondary {
    margin: 0 20px 20px;
}

/* 服务优势 */
.advantages {
    padding: 80px 0;
    background-color: white;
}

.advantages h2 {
    text-align: center;
    font-size: 36px;
    color: #2E7D32;
    margin-bottom: 50px;
}

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

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    transition: transform 0.3s;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.advantage-item h3 {
    font-size: 20px;
    color: #2E7D32;
    margin-bottom: 15px;
}

.advantage-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* 联系方式快捷入口 */
.contact-quick {
    padding: 80px 0;
    background-color: #2E7D32;
    color: white;
    text-align: center;
}

.contact-quick h2 {
    font-size: 36px;
    margin-bottom: 50px;
}

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

.contact-item {
    padding: 20px;
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 18px;
    color: #81C784;
}

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

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

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #81C784;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
}

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

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #81C784;
}

.footer-bottom {
    border-top: 1px solid #2E7D32;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 导航栏移动端优化 */
    .hamburger {
        display: flex;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .logo p {
        font-size: 10px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #2E7D32;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .nav-menu a {
        font-size: 18px;
        padding: 15px 0;
        display: block;
    }
    
    /* 容器移动端优化 */
    .container {
        padding: 0 15px;
    }
    
    /* 轮播图移动端优化 */
    .hero {
        height: 400px;
        margin-top: 70px;
    }
    
    .slide-content {
        left: 15px;
        right: 15px;
        text-align: center;
    }
    
    .slide-content h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .slide-content p {
        font-size: 14px;
        max-width: 100%;
    }
    
    .slider-nav button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .slider-dots {
        bottom: 20px;
    }
    
    .dot {
        width: 12px;
        height: 12px;
    }
    
    /* 按钮移动端优化 */
    .btn-primary {
        padding: 15px 25px;
        font-size: 16px;
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }
    
    .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }
    
    /* 标题移动端优化 */
    .company-overview h2,
    .products-showcase h2,
    .advantages h2,
    .contact-quick h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    /* 内容区域移动端优化 */
    .company-overview,
    .products-showcase,
    .advantages,
    .contact-quick {
        padding: 50px 0;
    }
    
    .overview-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .overview-text p {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .overview-image img {
        height: 250px;
    }
    
    /* 产品卡片移动端优化 */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card {
        margin: 0 10px;
    }
    
    .product-card h3 {
        font-size: 20px;
        padding: 15px 15px 10px;
    }
    
    .product-card p {
        font-size: 14px;
        padding: 0 15px 15px;
    }
    
    .product-card .btn-secondary {
        margin: 0 15px 15px;
    }
    
    /* 优势卡片移动端优化 */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .advantage-item {
        padding: 25px 15px;
        margin: 0 10px;
    }
    
    .advantage-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .advantage-item h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .advantage-item p {
        font-size: 14px;
    }
    
    /* 联系信息移动端优化 */
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .contact-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .contact-item h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .contact-item p {
        font-size: 16px;
    }
    
    /* 页脚移动端优化 */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .footer-section p {
        font-size: 13px;
    }
    
    .footer-section ul li a {
        font-size: 13px;
    }
}

/* 小屏幕手机优化 (480px以下) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        height: 300px;
        margin-top: 60px;
    }
    
    .slide-content h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .slide-content p {
        font-size: 12px;
    }
    
    .company-overview h2,
    .products-showcase h2,
    .advantages h2,
    .contact-quick h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .company-overview,
    .products-showcase,
    .advantages,
    .contact-quick {
        padding: 40px 0;
    }
    
    .overview-text p {
        font-size: 14px;
    }
    
    .overview-image img {
        height: 400px;
    }
    
    .product-card {
        margin: 0 5px;
    }
    
    .advantage-item {
        margin: 0 5px;
        padding: 20px 10px;
    }
    
    .advantage-icon {
        font-size: 36px;
    }
    
    .advantage-item h3 {
        font-size: 16px;
    }
    
    .advantage-item p {
        font-size: 13px;
    }
    
    .contact-icon {
        font-size: 36px;
    }
    
    .contact-item h3 {
        font-size: 16px;
    }
    
    .contact-item p {
        font-size: 14px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        padding: 15px 20px;
    }
    
    .nav-menu a {
        min-height: 44px;
        padding: 15px 0;
    }
    
    .slider-nav button {
        min-width: 44px;
        min-height: 44px;
    }
    
    .dot {
        min-width: 20px;
        min-height: 20px;
    }
    
    /* 移除hover效果，避免在触摸设备上的问题 */
    .product-card:hover,
    .advantage-item:hover {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        background-color: inherit;
    }
}

