:root {
    --red: #c62f2f;
    --primary-color: #c62f2f;
    --secondary-color: #d9534f;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #495057;
    --border-radius: 10px;
    --box-shadow: 0 5px 15px rgba(198, 47, 47, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
    background-color: #f5f7fa;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 轮播图 */
.heroSwiper {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden; 
}

.heroSwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    background-size: 100% 100%; /* 改为这个 */
    background-position: center;
}

.slide-inner {
    background: rgba(0, 0, 0, .45);
    padding: 40px 60px;
    border: 1px solid rgba(255, 255, 255, .3);
}

.slide-inner h3 {
    font-size: 36px;
    margin-bottom: 10px;
}

.slide-inner p {
    font-size: 18px;
}

/* 自定义导航按钮容器 */
.custom-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
    pointer-events: none;
}

/* 自定义按钮基础样式 */
.custom-prev-btn,
.custom-next-btn {
    width: 50px;
    height: 50px;
    background: rgba(128, 128, 128, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.699);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    position: absolute;
}

.custom-prev-btn {
    left: 2px;
}

.custom-next-btn {
    right: 2px;
}

/* SVG容器*/
.custom-prev-btn svg,
.custom-next-btn svg {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
    display: block;
}

/* 悬停效果 */
.custom-prev-btn:hover,
.custom-next-btn:hover {
    background: rgba(128, 128, 128, 0.5);
    transform: scale(1.05);
}

/* 点击效果 */
.custom-prev-btn:active,
.custom-next-btn:active {
    transform: scale(0.95);
}

/* 禁用状态 */
.custom-prev-btn.swiper-button-disabled,
.custom-next-btn.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(1);
}

/* 通用部分样式 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--red);
    margin-bottom: 10px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--red);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-color);
    letter-spacing: 2px;
    margin-top: 20px;
}

/* 中心概况区域样式 */
.section.section-anchor {
    padding-top: 30px;    /* 减少顶部内边距 */
    padding-bottom: 30px; /* 减少底部内边距 */
}
.overview-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.overview-left {
    flex: 1;
}

.overview-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 图片样式 */
.overview-image {
    margin-bottom: 0;
}

.overview-image img {
    width: 100%;
    height: 400px ;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 文字内容区域 */
.overview-text {
    min-height: 200px;
    height: auto; /* 根据内容自动调整 */
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
    border-left: 4px solid #c62f2f;
    box-shadow: 0 3px 10px rgba(198, 47, 47, 0.1);
}

.overview-text p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}



/* 响应式设计 */
@media (max-width: 768px) {
    .overview-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .overview-image img {
        height: 300px;
    }
    
    .overview-text, .cta-section {
        padding: 25px;
    }
    
    .overview-right {
        gap: 25px;
    }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
    .overview-content {
        gap: 20px;
    }
    
    .overview-image img {
        height: 250px;
    }
    
    .overview-text, .cta-section {
        padding: 20px;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* 服务项目 - 两列布局 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(198, 47, 47, 0.15);
    border-color: var(--red);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

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

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

.service-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--red);
    text-align: center;
}

.service-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.7;
    flex-grow: 1;
    text-align: justify;
}

.service-contact {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid var(--red);
}

.service-contact strong {
    color: var(--red);
    display: block;
    margin-bottom: 5px;
}

/* 预约服务 */
#booking {
    padding: 10px 0 80px; /* 减少上下内边距 */
}
.booking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.booking-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.booking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(198, 47, 47, 0.15);
}

.booking-header {
    background-color: var(--red);
    color: white;
    padding: 25px;
    text-align: center;
}

.booking-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.booking-header p {
    color: rgba(255, 255, 255, 0.9);
}

.booking-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.booking-features {
    margin-bottom: 25px;
    flex-grow: 1;
}

.booking-features h4 {
    color: var(--red);
    margin: 20px 0 10px;
    font-size: 1.1rem;
}

.booking-features h4:first-child {
    margin-top: 0;
}

.booking-features ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.booking-features li {
    margin-bottom: 8px;
    color: #666;
}

/* 统一按钮容器 */
.button-container {
    margin-top: auto;
    padding-top: 15px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background-color: var(--red);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background-color: #a02626;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(198, 47, 47, 0.2);
}

.btn-block {
    display: block;
    width: 100%;
}



/* 新闻动态与知识科普模块专用样式 - 使用cd-前缀避免冲突 */
.cd-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.cd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cd-section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.cd-section-title h2 {
    font-size: 2.2rem;
    color: var(--red);
    margin-bottom: 15px;
    font-weight: 600;
}

.cd-section-title p {
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.cd-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--red);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* 分类筛选样式 */
.cd-category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.cd-filter-btn {
    padding: 10px 25px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cd-filter-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

.cd-filter-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

/* 内容网格样式 */
.cd-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.cd-content-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.cd-content-card.cd-visible {
    opacity: 1;
    transform: translateY(0);
}

.cd-content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.cd-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.cd-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.cd-card-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.cd-news-tag {
    background: #4a7b9d;
}

.cd-knowledge-tag {
    background: #5a9367;
}

.cd-cases-tag {
    background: #c47a5e;
}

.cd-card-content {
    padding: 25px;
}

.cd-card-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark-color);
    line-height: 1.4;
}

.cd-card-date {
    display: flex;
    align-items: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.cd-card-date i {
    margin-right: 8px;
}

.cd-card-desc {
    color: var(--text-color);
    line-height: 1.7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cd-content-grid {
        grid-template-columns: 1fr;
    }
    
    .cd-category-filter {
        gap: 10px;
    }
    
    .cd-filter-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
    
    .cd-section-title h2 {
        font-size: 1.8rem;
    }
    
    .cd-section {
        padding: 60px 0;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .booking-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .overview-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .overview-left {
        order: 2;
    }
    
    .overview-right {
        order: 1;
    }
    
    .overview-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .cta-section {
        padding: 25px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .booking-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .heroSwiper {
        height: 300px;
    }
    
    .slide-inner {
        padding: 20px 30px;
    }
    
    .slide-inner h3 {
        font-size: 24px;
    }
    
    .slide-inner p {
        font-size: 16px;
    }
    
    .cta-content h3 {
        font-size: 1.3rem;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-content {
        grid-template-columns: 1fr;
    }
    
    .payment-section {
        padding: 25px;
    }
    
    .custom-prev-btn,
    .custom-next-btn {
        width: 40px;
        height: 40px;
    }
    
    .custom-prev-btn svg,
    .custom-next-btn svg {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .overview-content {
        gap: 30px;
    }
    
    .cta-section {
        padding: 20px;
    }
    
    .service-content,
    .booking-content {
        padding: 15px;
    }
    
    .payment-section {
        padding: 20px;
    }
    
    .custom-nav {
        padding: 0 15px;
    }
}

/* 等高布局版本 */
.overview-content {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.overview-left, .overview-right {
    display: flex;
    flex-direction: column;
}

.overview-text, .cta-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}