/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}
body {
    color: #333;
    background-color: #fff;
}
a {
    text-decoration: none;
    color: #333;
}
ul {
    list-style: none;
}

/* 头部容器 */
.header {
    width: 100%;
    padding: 0 20px;
    
}
/* 头部顶栏：logo + 电话 + 语言切换 */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    max-width: 1200px;
    margin: 0 auto;
}
/* logo 样式（完整图片） */
.logo img {
    height: 55px;
    display: block;
}
/* 电话样式（包含小图标） */
.tel {
    font-size: 18px;
    color: #666;
    display: flex;
    align-items: center;
}
/* 电话小图标样式 */
.tel-icon {
    width: 18px;
    height: 18px;
    background: url("/images/tp.jpg") no-repeat center;
    background-size: 100% 100%;
    margin-right: 8px;
    display: inline-block;
}
/* 语言切换 */
.lang {
    display: flex;
    gap: 15px;
    font-size: 14px;
    align-items: center;
}
.lang a {
    color: #666;
}
.lang a:hover {
    color: #009688;
}
/* 搜索图标 */
.search-icon {
    width: 16px;
    height: 16px;
    background: url("images/search-icon.png") no-repeat center;
    background-size: 100%;
    cursor: pointer;
}

/* 导航栏 */
.nav {
    max-width: 1200px;
    margin: 0 auto;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-bottom: 20px;
}
.nav li a {
    font-size: 18px;
    padding: 0 5px;
    position: relative;
}
/* 导航hover效果 */
.nav li a:hover::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #009688;
}

/* 导航当前页高亮（必生效）*/
.nav li a.active {
    color: #009688 !important;
}
.nav li a.active::after {
    content: "" !important;
    position: absolute !important;
    bottom: -5px !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background: #009688 !important;
}

/* 优先预约按钮 */
.reserve-btn {
    margin-left: 20px;
    background-color: #e0f2f1;
    color: #009688;
    padding: 8px 20px;
    border-radius: 4px;
    border: 1px solid #009688;
}
.reserve-btn:hover {
    background-color: #009688;
    color: #fff;
    transition: all 0.3s;
}

/* 优先预约 二维码（永不错乱）*/
.reserve-item {
    position: relative !important;
}
.qrcode-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    width: 150px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    border-radius: 6px;
    z-index: 99999 !important;
}
.qrcode-box img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}
.reserve-item:hover .qrcode-box {
    display: block !important;
}

/* 优化：banner 响应式适配（核心修改） */
.banner {
    width: 100%;
    min-height: 400px;
    height: calc(100vh - 130px);
    max-height: 600px;
    overflow: hidden;
}
.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* 医疗服务板块（简洁排版） */
.medical-service {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}
.service-title {
    font-size: 32px;
    color: #617d72;
    margin-bottom: 25px;
    font-weight: 500;
}
.service-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
}
.service-desc:last-child {
    margin-bottom: 0;
}

/* 优化：医疗服务图标板块（仅显示图片，移除文字） */
.service-icons {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}
/* 图标卡片（仅图片，无文字） */
.service-card {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-card:hover {
    box-shadow: 0 4px 12px rgba(97, 125, 114, 0.1);
    transform: translateY(-2px);
}
/* 图片容器（自适应卡片大小） */
.card-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
}
.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.img-container img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
}
.footer{
    background: #5e8c70;
    margin-top: 60px;
    padding-bottom:20px ;
}
.footer_c {
    color: #fff;
    font-size: 14px;
    text-align: center;
    padding-top:80px ;
}
.footer_c a{
    color: #fff;
}

.about-wrap {
    width: 100%;
    overflow: hidden;
    height: 732px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.about-banner {
    width: 1920px;
    height: 100%;
    object-fit: cover;
}

.about-container {
    width: 1000px;
    margin: 0 auto;
    padding: 60px 0;
    color: #656565;
}

/* 文本段落样式 */
.about-intro-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 32px;
    text-align: justify;
    color: #444;
}

.about-img-container img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
}

.ylfw-wrap {
    width: 100%;
    overflow: hidden;
    height: 732px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ylfw-banner {
    width: 1920px;
    height: 100%;
    object-fit: cover;
}

.ylfw-p{
    width: 1100px;
    margin: 0 auto;
    padding: 2px 0;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 32px;
    text-align: justify;
    color: #444;
}

.rehab-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
    align-items: center;
}
.rehab-content {
    flex: 1;
}
.rehab-title {
    font-size: 22px;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
}
.rehab-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ccc;
    line-height: 1.8;
}
.rehab-range-title {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
}
.rehab-range-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}
.rehab-image {
    flex: 0 0 300px;
    border-radius: 16px;
    overflow: hidden;
}
.rehab-image img {
    width: 100%;
    height: auto;
    display: block;
}

.zytd-wrap {
    width: 100%;
    overflow: hidden;
    height: 738px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.zytd-banner {
    width: 1920px;
    height: 100%;
    object-fit: cover;
}

/* ======================================
   仅导航栏手机适配 —— 其他内容完全不变
====================================== */
@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 0;
        justify-content: center;
        gap: 10px;
    }
    .nav {
        flex-direction: column;
        height: auto;
        gap: 0;
        padding: 10px 0;
    }
    .nav li {
        width: 100%;
        text-align: center;
        padding: 5px 0;
    }
    .nav li a {
        font-size: 16px;
        line-height: 44px;
    }
    .reserve-btn {
        margin: 10px 0;
        width: auto;
    }
}

/* ========================
   仅 PC 图片适配手机
======================== */
@media (max-width: 768px) {
    img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }
    .about-wrap,
    .ylfw-wrap,
    .zytd-wrap {
        height: auto !important;
        max-height: 350px !important;
    }
    .about-banner,
    .ylfw-banner,
    .zytd-banner {
        width: 100% !important;
        height: auto !important;
    }
    .about-container,
    .ylfw-p {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* 补充小屏适配 */
@media (max-width: 1200px) {
    .banner {
        max-height: 500px;
    }
}
@media (max-width: 1024px) {
    .service-icons {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .service-icons {
        grid-template-columns: repeat(2, 1fr);
    }
    .banner {
        min-height: 300px;
        max-height: 400px;
    }
}
@media (max-width: 480px) {
    .service-icons {
        grid-template-columns: 1fr;
    }
}
