:root {
    --primary-green: #4CAF50;
    --dark-green: #2E7D32;
    --light-green: #81C784;
    --bg-light: #f8f9fa;
    --text-dark: #212121;
    --text-light: #666;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* 颜色主题 */
.bg-green {
    background-color: var(--primary-green) !important;
}

.bg-dark-green {
    background-color: var(--dark-green) !important;
}

.text-green {
    color: var(--primary-green) !important;
}

.btn-green {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.btn-green:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
    color: white;
}

/* 导航栏 */
.navbar-brand img {
    max-height: 40px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--light-green) !important;
}

/* 轮播图 */
.carousel-item {
    height: 500px;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
}

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

/* 服务卡片 */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

/* 城市网格 */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.city-item {
    background: white;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.city-item:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

/* 优势列表 */
.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.advantage-icon {
    color: var(--primary-green);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* 流程步骤 */
.process-step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

/* 新闻卡片 */
.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

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

.news-image {
    height: 200px;
    overflow: hidden;
}

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

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

.news-content {
    padding: 1.5rem;
}

.news-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

.news-meta span {
    margin-right: 1rem;
}

/* 客户评价 */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    height: 100%;
    border: 1px solid #eee;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.testimonial-author h6 {
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}

/* 页脚 */
footer {
    background: var(--text-dark) !important;
}

footer h5 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-green);
}

/* 联系卡片 */
.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

/* 表单样式 */
.form-container {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--primary-green);
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* 时间线 */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-green);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-date {
    background: var(--primary-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
}

.timeline-content {
    width: 45%;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* 侧边栏 */
.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid #eee;
}

.widget-title {
    color: var(--primary-green);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-green);
}

.sidebar-news-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 1rem;
}

.sidebar-news-content h6 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.sidebar-news-content small {
    color: var(--text-light);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption {
        padding: 1rem;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .city-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
    }
    
    .timeline-content {
        width: 100%;
        margin-top: 1rem;
    }
    
    .form-container {
        padding: 2rem;
    }
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 页面标题 */
.page-title {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green)) !important;
    color: white;
}

.page-title h1 {
    color: white;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-item.active {
    color: white;
}

/* 详情页 */
.news-detail-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.news-detail-image {
    text-align: center;
}

.news-detail-image img {
    max-height: 400px;
    width: auto;
}

.content {
    line-height: 1.8;
    color: #333;
}

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

.content h2,
.content h3,
.content h4 {
    color: var(--primary-green);
    margin: 1.5rem 0 1rem;
}

/* 相关新闻 */
.related-news-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.related-news-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.related-news-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 1rem;
}

/* FAQ样式 */
.accordion-button {
    background: white;
    color: var(--text-dark);
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-green);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* 统计数字 */
.company-stats {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* 团队成员 */
.team-member {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    overflow: hidden;
}

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

/* 加载动画 */
.spinner-border {
    color: var(--primary-green);
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-green);
    transform: translateY(-5px);
}

/* 打印样式 */
@media print {
    .navbar,
    footer,
    .back-to-top,
    .sidebar {
        display: none !important;
    }
    
    .news-detail-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

.keyword-card { transition: .3s; }
.keyword-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,.08) !important; }
.text-green { color: var(--primary-green) !important; }
.btn-outline-green {
color: var(--primary-green);
border-color: var(--primary-green);
}
.btn-outline-green:hover {
background: var(--primary-green);
color: #fff;
}