/* 自定义样式 */
:root {
    --primary-color: #2c7a5e; /* 绿色主题 */
    --secondary-color: #1a5c45;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

.navbar-brand img {
    max-height: 40px;
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-color);
    font-weight: 500;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

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

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

section {
    padding: 80px 0;
}

section h2 {
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

section h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

footer a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* 首页Banner */
.banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 150px 0 100px;
}

.banner h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.banner p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .banner h1 {
        font-size: 2.5rem;
    }
    section {
        padding: 60px 0;
    }
}

/* 业务页面优化 */
.business-section {
    padding: 40px 0 !important;
}

.business-section .card {
    
    height: auto !important;
    min-height: auto !important;
}

.business-section .card-body {
    padding: 1.5rem !important;
}

/* 粘性页脚布局 */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > nav {
    flex-shrink: 0;
}

body > section {
    flex: 1 0 auto;
    width: 100%;
}

footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* 内容区域样式 */
.content-section {
    padding-bottom: 3rem !important;
}

/* 确保业务页面有足够空间 */
.business-section .container {
    min-height: calc(100vh - 350px);
}

/* 公司简介背景样式 */
.company-intro-bg {
    position: relative;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
                url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.company-intro-bg .card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

/* 备用背景选项（注释掉，需要时启用） */
/*
.company-intro-bg {
    background: linear-gradient(135deg, rgba(44, 122, 94, 0.1) 0%, rgba(26, 92, 69, 0.05) 100%);
    border: 1px solid rgba(44, 122, 94, 0.1);
}
*/

/* 核心优势图标样式 */
.advantage-icon {
    height: 80px;
    width: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.advantage-icon i {
    font-size: 2rem;
}

.advantage-icon:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* 首页核心业务图标样式 */
.service-icon {
    height: 60px;
    width: 60px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.service-icon i {
    font-size: 1.5rem;
}

.service-icon:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* 核心优势卡片样式 */
#honors .card,
.about-section .card,
#services .card {
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 122, 94, 0.1);
}

#honors .card:hover,
.about-section .card:hover,
#services .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}