﻿/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
    max-width:640px;
    margin:0 auto;
}

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

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 100%;
    padding: 0 15px;
}

/* 第一板块：Logo */

.logo-section{
    padding:10px 0px;
    margin-bottom:2px;
    background-color:#0d7db8;
}
.logo-section img {
    width:100%;
    margin: 0 auto;
}

/* 第二板块：导航 */
.nav-section {
    background-color: #0d7db8;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-around;
}

.nav-item {
    flex: 1;
    text-align: center;
    padding: 15px 5px;
    position: relative;
}

.nav-link {
    color: white;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s;
}

.nav-link i {
    font-size: 20px;
    margin-bottom: 5px;
}

.nav-link:hover, .nav-link.active {
    color: #c1e7ff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: #c1e7ff;
    border-radius: 2px;
}

/* 第三板块：Banner */
.banner-section {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 220px;
}

.banner-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background-color: white;
    width: 25px;
    border-radius: 4px;
}

/* 第四板块：病种分类 */
.disease-section {
    padding: 20px 0;
    background-color: #fff;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #0d7db8;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e6f2ff;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #0d7db8;
}

.disease-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.disease-item {
    border-radius: 10px;
    padding: 10px 5px;
    text-align: center;
    color: white;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.disease-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.disease-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.disease-icon i {
    font-size: 20px;
    color: white;
}

.disease-name {
    font-size: 13px;
    font-weight: 500;
}

/* 病种颜色定义 */
.disease-1 { background-color: #ff6074; } /* 红色 */
.disease-2 { background-color: #3e97f9; } /* 青色 */
.disease-3 { background-color: #8995fd; } /* 黄色 */
.disease-4 { background-color: #ff6074; } /* 绿色 */
.disease-5 { background-color: #3ab4fd; } /* 蓝色 */
.disease-6 { background-color: #83a9fe; } /* 紫色 */
.disease-7 { background-color: #84d016; } /* 橙色 */
.disease-8 { background-color: #63c501; } /* 粉红色 */
.disease-9 { background-color: #21ab34; } /* 浅绿色 */
.disease-10 { background-color: #fe9e0b; } /* 浅蓝色 */
.disease-11 { background-color: #ff6074; } /* 淡粉色 */
.disease-12 { background-color: #21ab34; } /* 淡青色 */

/* 第五板块：医生团队 */
.doctors-section {
    padding: 20px 0;
    background-color: #f8f9fa;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.doctor-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.doctor-img {
    width: 100%;
    /* height: 200px;
    object-fit: cover; */
}

.doctor-info {
    padding: 20px;
}

.doctor-name {
    font-size: 18px;
    font-weight: 600;
    color: #0d7db8;
    margin-bottom: 5px;
}

.doctor-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.doctor-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 第六板块：拨打电话 */
.call-section {
    padding: 30px 0;
    background-color: #fff;
    text-align: center;
}

.call-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.call-image img {
    width: 100%;
    height: auto;
}

.call-btn {
    display: inline-block;
    background-color: #FF6B6B;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    transition: all 0.3s;
}

.call-btn i {
    margin-right: 10px;
}

.call-btn:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5);
}

/* 第七板块：底部信息 */
.footer-section {
    background-color: #2c3e50;
    color: white;
    padding: 25px 0 20px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-item {
    display: flex;
    align-items: flex-start;
}

.footer-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.footer-icon i {
    font-size: 20px;
    color: #0d7db8;
}

.footer-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #c1e7ff;
}

.footer-text p {
    font-size: 15px;
    line-height: 1.6;
    color: #bdc3c7;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #95a5a6;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* 分隔线 */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
    margin: 20px 0;
}
