
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #2b7a30;
    transition: all 0.3s ease;
}

a:hover {
    color: #1e5722;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    color: #2b7a30;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: #2b7a30;
    color: #fff;
}

/* 主要内容区域 */
.main-content {
    margin-top: 90px;
    padding: 40px 0;
}

/* 首页轮播图 */
.slider {
    position: relative;
    overflow: hidden;
    height: 500px;
    margin-bottom: 40px;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 20px;
}

.slider-caption h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* 内容卡片 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2b7a30;
}

.card-text {
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #2b7a30;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #1e5722;
    color: #fff;
}

/* 关于我们 */
.about-section {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: center;
}

.about-img {
    flex: 1;
    max-width: 500px;
}

.about-img img {
    width: 100%;
    border-radius: 8px;
}

.about-content {
    flex: 1;
}

.section-title {
    font-size: 2rem;
    color: #2b7a30;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #2b7a30;
}

/* 服务范围 */
.service-item {
    display: flex;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.service-img {
    flex: 1;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    flex: 2;
    padding: 30px;
}

/* 案例展示 */
.case-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.case-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
}

.case-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(43, 122, 48, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.5s ease;
    padding: 20px;
    text-align: center;
}

.case-item:hover .case-overlay {
    opacity: 1;
}

.case-item:hover .case-img {
    transform: scale(1.1);
}

.case-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.case-desc {
    color: #fff;
}

/* 新闻资讯 */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.news-img {
    height: 200px;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2b7a30;
}

/* 联系我们 */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.info-item {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.info-icon {
    width: 40px;
    height: 40px;
    background-color: #2b7a30;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: #fff;
    font-size: 1.2rem;
}

.info-content h4 {
    margin-bottom: 5px;
    color: #2b7a30;
}

/* 表单样式 */
.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

/* 加入我们 */
.job-list {
    display: grid;
    gap: 20px;
}

.job-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.job-title {
    font-size: 1.3rem;
    color: #2b7a30;
    margin-bottom: 10px;
}

.job-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #777;
}

.job-desc {
    margin-bottom: 15px;
}

.job-requirements h4 {
    margin-bottom: 10px;
    color: #2b7a30;
}

.job-requirements ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

/* 公司文化 */
.culture-section {
    margin-bottom: 40px;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.culture-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.culture-img {
    height: 250px;
}

.culture-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.culture-content {
    padding: 20px;
    flex-grow: 1;
}

.culture-title {
    font-size: 1.3rem;
    color: #2b7a30;
    margin-bottom: 10px;
}

/* 页脚 */
footer {
    background-color: #2b7a30;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo h2 {
    font-size: 1.3rem;
    color: #fff;
}

.footer-about p {
    margin-bottom: 15px;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #fff;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #eee;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact-icon {
    margin-right: 10px;
    min-width: 20px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-section {
        flex-direction: column;
    }

    .about-img {
        max-width: 100%;
    }

    .service-item {
        flex-direction: column;
    }

    .service-img {
        height: 250px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }

    .nav-menu {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-menu li {
        margin: 5px;
    }

    .slider {
        height: 350px;
    }

    .culture-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .slider {
        height: 250px;
    }

    .slider-caption h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.7rem;
    }
}
