/* 服务页面特定样式 */

/* 服务页面导航栏 */
.service-navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 1000;
}

.service-navbar .nav-container {
    background: transparent;
}

.service-navbar .nav-menu .nav-link {
    color: #ffffff;
}

.service-navbar .nav-menu .nav-link:hover {
    color: #f0f0f0;
}

.service-navbar .nav-logo h2 {
    color: #ffffff !important;
}

.service-navbar .nav-link {
    color: #333;
}

.service-navbar .nav-link:hover {
    color: #27ae60;
}

.service-navbar .nav-link.active {
    color: #27ae60;
    font-weight: 600;
}

/* 顶部Banner */
.service-banner {
    position: relative;
    height: 450px;
    overflow: hidden;
    margin-bottom: -30px;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    z-index: 2;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 85px;
    color: white;
    text-align: center;
}

.banner-title {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-bottom: 10px;
}

.banner-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: white;
}

.banner-subtitle {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 10px;
    opacity: 0.9;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.banner-desc {
    font-size: 14px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* 内容区 */
.content-section {
    background: #f5f5f5;
    padding: 0;
    margin-top: -50px;
    margin-bottom: 60px;
}

/* Footer背景色恢复 */
.footer {
    background: #ffffff;
}

/* 修复间距区域背景色 */
body {
    background: #f5f5f5;
}

.content-white-box {
    max-width: 1400px;
    min-height: 400px;
    margin: 0 auto;
    background: white;
    border-radius: 0;
    /* box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); */
    padding: 40px;
    position: relative;
    z-index: 10;
}

/* 案例展示区 */
.cases-section {
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #27ae60;
}

.cases-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    position: relative;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
    display: inline-block;
}

.section-subtitle {
    font-size: 12px;
    color: #999;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cases-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 改为 3 列 */
    gap: 24px;
    width: 100%;
    margin: 0 auto;
}

.case-card {
    width: 100%;
    background: #f8f9fa;
    overflow: hidden;
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    .cases-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cases-container {
        grid-template-columns: 1fr; /* 手机端 1 列 */
    }
}

.case-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-info {
    padding: 20px;
}

.case-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.case-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.case-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #e8f5e8;
    color: #27ae60;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}
.tag:hover {
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .service-banner {
        height: 280px;
    }
    
    .banner-content {
        height: 280px;
        padding-bottom: 60px;
    }
    
    .banner-title {
        font-size: 20px;
    }
    
    .banner-subtitle {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .banner-desc {
        font-size: 13px;
        padding: 0 20px;
    }
    
    .content-white-box {
        padding: 20px;
        margin: 0 20px;
        min-height: auto;
    }
    
    .cases-container {
        gap: 20px;
        justify-content: center;
    }
    .case-card {
        width: 100%;
        flex: 1 1 100%;
    }
    
    .cases-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .case-info {
        padding: 15px;
    }
    
    .case-info h3 {
        font-size: 15px;
    }
    
    .case-info p {
        font-size: 13px;
    }
    .views-count-text {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 18px;
    }
    
    .banner-desc {
        font-size: 12px;
    }
    
    .content-white-box {
        padding: 15px;
        margin: 0 15px;
    }
    
    .case-image {
        height: 150px;
    }
    
    .cases-title {
        font-size: 15px;
    }
}

/* 列表页样式2 */
/* 内容卡片样式 */
.content-cards {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.card {
    background-color: #fafafa;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.card-header h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 400;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

.card-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.card-text {
    flex: 1;
}

.card-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.card-image {
    flex: 1;
    overflow: hidden;
    border-radius: 4px;
}

.card-image img {
    width: 500px;
    height: 360px;
    object-fit: cover;
    transition: transform 0.3s;
}

/* 确保父容器不限制图片尺寸 */
.card-image {
    flex: 1;
    overflow: hidden;
    border-radius: 4px;
    min-width: 0; /* 防止flex子元素溢出 */
}

.card-image img:hover {
    transform: scale(1.02);
}

.card-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.card-actions .btn-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.card-actions .btn-group a {
    padding: 5px 20px;
    margin-bottom: 12px;
}

.card-actions .btn-group a:last-child {
    margin-bottom: 0;
}

.btn-transparent {
    padding: 8px 20px;
    border: 1px solid transparent;
    background-color: transparent;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    border-radius: 2px;
}

.btn-transparent:hover {
    color: #333;
    border-color: #ddd;
}

/* 手机端响应式设计 */
@media (max-width: 768px) {
    .content-cards {
        gap: 30px; /* 减小卡片间距 */
    }
    
    .card {
        padding: 20px; /* 减小卡片内边距 */
    }
    
    .card-header h3 {
        font-size: 18px; /* 调小标题字体 */
        margin-bottom: 15px; /* 减小标题间距 */
        padding-left: 10px; /* 减小左边距 */
    }
    
    .card-content {
        flex-direction: column; /* 改为垂直布局 */
        gap: 15px; /* 减小内容间距 */
        align-items: flex-start; /* 内容左对齐 */
        width: 100%;
    }
    
    .card-text {
        order: 1; /* 文字区域在上方 */
        width: 100%; /* 占满宽度 */
    }
    
    .card-text p {
        font-size: 14px; /* 调小正文字体 */
        line-height: 1.6; /* 调整行高 */
        margin-bottom: 0; /* 移除段落底部间距 */
    }
    
    .card-image {
        order: 2; /* 图片区域在中间 */
        width: 100%; /* 占满宽度 */
        margin-bottom: 15px; /* 图片下方添加间距 */
    }
    
    .card-image img {
        height: auto; /* 手机端自适应高度 */
        max-width: 100%; /* 不超过容器宽度 */
        max-height: 300px; /* 限制最大高度 */
    }
    
    .card-actions {
        order: 3; /* 按钮区域在图片下方 */
        margin-top: 0; /* 移除按钮顶部间距 */
        margin-bottom: 5px; /* 添加按钮底部小间距 */
        gap: 10px; /* 减小按钮间距 */
        justify-content: center; /* 按钮居中 */
        width: 100%; /* 占满宽度 */
    }
    
    .btn-outline, .btn-transparent {
        padding: 8px 20px; /* 调整按钮内边距 */
        font-size: 13px; /* 调小按钮字体 */
        flex: 1; /* 按钮平分空间 */
        text-align: center; /* 按钮文字居中 */
    }
}

@media (max-width: 480px) {
    .card {
        padding: 15px;
    }
    
    .card-header h3 {
        font-size: 16px;
    }
    
    .card-text p {
        font-size: 13px;
    }
}
/* 列表页样式2 */


/* Inline styles for date-row list */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { display: flex; align-items: flex-start; gap: 20px; padding: 18px 0; border-bottom: 1px solid #eee; }

.date-box { width: 80px; min-width: 80px; height: 80px; background: #f2f2f2; border: 1px solid #e6e6e6; border-radius: 4px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.date-day { font-size: 28px; font-weight: 600; color: #666; line-height: 1; }
.date-month { margin-top: 8px; font-size: 12px; color: #8c8c8c; }

.news-main { flex: 1; min-width: 0; }
.news-title { margin: 2px 0 8px; font-size: 18px; color: #333; font-weight: 500; line-height: 1.4; text-decoration: none; }
.news-title:hover { color: var(--primary-color); }
.news-desc { margin: 0 0 10px; color: #666; font-size: 14px; line-height: 1.6; min-height: 20px; }

.news-meta { display: flex; justify-content: space-between; align-items: center; color: #999; font-size: 13px; }
.news-views { color: #999; }
.news-more { color: #999; text-decoration: none; }
.news-more:hover { color: #666; text-decoration: underline; }

/* Responsive: stack layout on small screens */
@media (max-width: 768px) {
.news-item { gap: 14px; }
.date-box { width: 64px; min-width: 64px; height: 64px; }
.date-day { font-size: 22px; }
.news-title { font-size: 14px; }
.news-desc { font-size: 12px; min-height: auto; }
.news-meta { font-size: 12px; }
}

/* image-box: news item cover image, keeps layout consistent with date-box */
.news-list .image-box {
    width: 160px;
    height: 110px;
    background-color: #f2f2f2;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-list .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 768px) {
.news-list .image-box {
    width: 80px;
    height: 60px;
    margin-top: 5px;
}
}

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; }
.page-btn { min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid #e6e6e6; border-radius: 4px; background: #fff; color: #666; font-size: 14px; line-height: 32px; text-align: center; text-decoration: none; cursor: pointer; }
.page-btn:hover { border-color: var(--primary-color); color: #fff; }
.page-btn.is-active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.page-btn.is-disabled { color: #bbb; cursor: not-allowed; background: #fafafa; }
.pagination .ellipsis { color: #999; padding: 0 6px; }
@media (max-width: 768px) {
.pagination { gap: 6px; margin-top: 18px; }
.page-btn { min-width: 30px; height: 30px; line-height: 28px; font-size: 13px; }
}





