:root {
    --primary-color: #2e7d32;
    --secondary-color: #4caf50;
    --light-green: #e8f5e9;
}

body {
    font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
}

/* 导航栏样式优化 */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
}

/* 激活状态样式 - 绿色背景，白色文字 */
.navbar-nav .nav-link.active {
    color: white !important;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%) !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    transform: translateY(-1px);
}

/* 添加脉冲动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.navbar-nav .nav-link.active {
    animation: pulse 0.5s ease;
}

/* 可选：添加下划线动画效果（不影响激活样式） */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 70%;
}

/* 激活状态下不显示下划线，保持背景绿色 */
.navbar-nav .nav-link.active::after {
    display: none;
}

/* 移动端响应式调整 */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
        text-align: center;
        border-radius: 6px;
    }
    
    .navbar-nav .nav-link.active {
        background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%) !important;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        background-color: rgba(0, 0, 0, 0.9);
        border-radius: 12px;
        padding: 10px;
    }
}

/* 轮播图样式 */
.carousel-item img {
    height: 500px;
    object-fit: cover;
    width: 100%;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    bottom: 50px;
}

/* 确保轮播容器全宽 */
#banner-carousel .container-fluid {
    padding: 0;
}

#banner-carousel .carousel,
#banner-carousel .carousel-inner,
#banner-carousel .carousel-item {
    width: 100%;
}

/* 首页Banner样式 */
.hero-section {
    background: linear-gradient(rgba(46, 125, 50, 0.8), rgba(46, 125, 50, 0.9)), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-4.0.3') center/cover;
    color: white;
    padding: 120px 0;
    text-align: center;
}

.section-title {
    color: var(--primary-color);
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
    margin: 40px 0 30px;
}

.feature-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    height: 100%;
    border: 1px solid #e0e0e0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.team-member {
    text-align: center;
    margin-bottom: 30px;
}

/* 专家团队头像样式优化 */
.team-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid var(--light-green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.team-member {
    text-align: center;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.result-card {
    background-color: var(--light-green);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.characteristic-item {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
}

.characteristic-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    font-weight: bold;
}

/* 实测效果图片样式 */
.result-img {
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

/* 产品图片样式 */
.product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

footer {
    background-color: #1b5e20;
    color: white;
    padding: 50px 0 20px;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--secondary-color);
}

/* 联系人二维码样式 */
.contact-qr-code {
    text-align: center;
}

.contact-qr-code img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.contact-qr-code img:hover {
    transform: scale(1.05);
}

.contact-qr-code p {
    color: #e0e0e0;
    font-size: 0.9rem;
}

.slogan {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin: 30px 0;
    color: var(--primary-color);
}

/* ==================== 企业动态卡片样式 ==================== */
.enterprise-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: white;
}

/* 鼠标悬停效果 - 与新闻动态卡片保持一致 */
.enterprise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12) !important;
}

/* 悬停时标题变色 */
.enterprise-card:hover .enterprise-title {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

/* 悬停时图标放大 */
.enterprise-card:hover .enterprise-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* 悬停时按钮效果 - 与新闻动态一致 */
.enterprise-card:hover .enterprise-btn {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateX(3px);
    transition: all 0.3s ease;
}

/* 企业动态图标样式 */
.enterprise-icon {
    transition: transform 0.3s ease;
}

.enterprise-icon.bg-success.bg-opacity-10 {
    background-color: rgba(40, 167, 69, 0.1) !important;
}

/* 企业动态标题样式 */
.enterprise-title {
    line-height: 1.4;
    min-height: 70px;
    transition: color 0.3s ease;
    color: #333;
}

/* 企业动态按钮样式 */
.enterprise-btn {
    transition: all 0.3s ease;
    border-radius: 6px;
}

.enterprise-btn:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
    transform: translateX(3px);
}

/* ==================== 新闻动态卡片样式（保持一致） ==================== */
.news-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12) !important;
}

.news-card:hover .news-title {
    color: var(--primary-color);
}

.news-card:hover .btn-outline-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateX(3px);
}

/* 新闻标题样式 */
.news-title {
    transition: color 0.3s ease;
    line-height: 1.4;
    color: #333;
}

/* 新闻按钮样式 */
.news-card .btn-outline-primary {
    transition: all 0.3s ease;
}

.news-card .btn-outline-primary:hover {
    transform: translateX(3px);
}

/* 新闻图片样式 */
.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

/* 新闻元数据样式 */
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-card .card-text {
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== Word 内容样式 ==================== */
.word-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.word-content p {
    margin-bottom: 1rem;
}

.word-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.word-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.word-content td,
.word-content th {
    border: 1px solid #ddd;
    padding: 8px;
}

.word-content h1,
.word-content h2,
.word-content h3,
.word-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.word-content ul,
.word-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.word-content li {
    margin-bottom: 0.5rem;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .carousel-item img {
        height: 300px;
    }
    
    .carousel-caption {
        bottom: 20px;
        padding: 10px;
    }
    
    .carousel-caption h3 {
        font-size: 1.2rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-meta .badge {
        margin-left: 0 !important;
        margin-top: 5px;
    }
    
    .enterprise-title {
        min-height: auto;
    }
}