/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

.container .slider-img{
    width: 100%;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.logo{
    display: flex;
    align-items: center;
}
.logo img {
    height: 40px;
    width: auto;
}
.logo .logo-txt {
    padding: 8px;
    font-weight: bold;
}
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 40px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: #1a73e8;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: #1a73e8;
}

/* 主要内容样式 */
main {
/*    padding: 20px 0;*/
}

/* 标题样式 */
h1 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #d1d1d1;
}

h2 {
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* 医院简介样式 */
hospital-intro {
    background-color: #fff;
    padding: 40px 0;
    margin-bottom: 40px;
}

hospital-intro p {
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
}

/* 图片展示区域样式 */
.image-gallery {
    padding: 20px 0;
}

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

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* 页脚样式 */
footer {
    background-color: #f5f5f5;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 16px;
}

.contact-info a {
    color: #1a73e8;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 14px;
    color: #666;
}

/* 公示信息页面样式 */
.public-info {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-content {
    margin-top: 20px;
}

.public-info .info-content .pub-img{
    width: 100%;
}

.info-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* 表格样式 */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
}

.price-table th,
.price-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.price-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.price-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.price-table tr:hover {
    background-color: #f5f5f5;
}

.note {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}

/* 服务承诺列表样式 */
.info-content ol {
    padding-left: 20px;
}

.info-content ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 医师列表样式 */
.doctor-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.doctor-item {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.doctor-info h3 {
    margin-bottom: 10px;
    color: #333;
}

.doctor-info p {
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95rem;
}

/* 关于我们页面样式 */
.about-us {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.about-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.about-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.about-content {
    margin-top: 20px;
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* 医院统计数据样式 */
.hospital-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #1a73e8;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* 发展历程时间线样式 */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 30px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #e0e0e0;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid #1a73e8;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.timeline-date {
    font-weight: bold;
    color: #1a73e8;
    margin-bottom: 10px;
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: #333;
}

/* 诊疗科目网格样式 */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.department-item {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.department-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.department-item h3 {
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.department-item ul {
    padding-left: 20px;
}

.department-item ul li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #555;
}

/* 医院文化网格样式 */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.culture-item {
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
    text-align: center;
}

.culture-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.culture-item h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
}

.culture-item p {
    color: #555;
    line-height: 1.6;
}

/* 联系我们样式 */
.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    flex: 1 1 45%;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.contact-item strong {
    color: #333;
    margin-right: 10px;
}

.contact-item a {
    color: #1a73e8;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.map-placeholder {
    height: 300px;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px dashed #ccc;
    color: #666;
    font-size: 1.2rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .doctor-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .hospital-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .departments-grid,
    .culture-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    
    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        left: 21px;
    }
    
    .contact-item {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul li {
        margin-left: 20px;
        margin-right: 20px;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .gallery-item img {
        height: 200px;
    }
}