/* styles.css */
body {
    margin: 0;
    font-family: sans-serif;
    background-color: #f5f5f5;
    color: #333;
    padding-bottom: 100px; /* Increased to prevent content from being covered by fixed bottom-nav */
}

.container {
    max-width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
}

header {
    position: relative;
    padding: 10px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 20px;
    padding: 10px;
    width: calc(100% - 100px); /* Shorten to make room for large-font-btn */
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-bar .search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 10px;
}

.search-bar .search-btn img {
    width: 20px;
    height: 20px;
}

#large-font-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: #00a8ff;
    font-size: 18px;
    cursor: pointer;
}

.banner {
    text-align: center;
    padding: 15px 10px;
    color: white;
}

.slideshow-container {
    position: relative;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
}

.slide img {
    width: 100%;
}

.banner h1 {
    margin: 10px 0;
    font-size: 24px;
}

.quick-actions {
    display: flex;
    justify-content: space-around;
}

.action-btn {
    text-align: center;
    width: 50%;
    text-decoration: none;
    color: #333;
}

.action-btn img {
    width: 100%;
}

.services {
    padding: 10px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.section-header img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.services h2 {
    font-size: 20px;
    margin: 0;
}

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

.service-item {
    text-align: center;
    text-decoration: none;
    color: #333;
}

.service-item img {
    width: 30px;
    height: 30px;
    border-radius: 10px;
}

.service-item p {
    font-size: 12px;
    margin-top: 5px;
}

.large-font .service-item img {
    width: 75px;
    height: 75px;
}

.large-font .service-item p {
    font-size: 18px;
}

.large-font .section-header img {
    width: 36px;
    height: 36px;
}

.large-font h2 {
    font-size: 30px;
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: white;
    border-top: 1px solid #ddd;
    padding: 10px 0;
}

.nav-item {
    text-align: center;
    text-decoration: none;
    color: #333;
}

.nav-item img {
    width: 30px;
    height: 30px;
}

.nav-item p {
    font-size: 12px;
    margin-top: 5px;
}

.copyright {
    text-align: center;
    padding: 10px;
    color: gray;
    font-size: 12px;
}

@media (max-width: 768px) {
    .large-font .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .large-font .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .large-font .service-item img {
        width: 90px;
        height: 90px;
    }

    .large-font .service-item p {
        font-size: 21px;
    }

    .large-font .section-header img {
        width: 36px;
        height: 36px;
    }
}
.content {
    padding: 10px;
}

.article-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.article-item h3 {
    font-size: 18px;
    margin: 0 0 5px;
}

.article-item p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.read-more {
    text-decoration: none;
    color: #007bff;
    font-size: 14px;
}

.favorite-btn {
    background: none;
    border: 1px solid #007bff;
    color: #007bff;
    padding: 5px 10px;
    cursor: pointer;
    margin-left: 10px;
}

.favorite-btn:hover {
    background-color: #007bff;
    color: white;
}

.article-content {
    margin-top: 10px;
    line-height: 1.6;
}
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

.btn:hover {
    background-color: #0056b3;
}
/* 医院列表页样式 - 修改版本 */

/* 医院列表页横幅 */
.hospital-banner {
    background: linear-gradient(135deg, #007bff 0%, #00a8ff 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

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

.banner-content h1 {
    color: white;
    font-size: 24px;
    margin: 0;
    font-weight: bold;
}

.banner-illustration {
    flex: 1;
    text-align: right;
}

.illustration-placeholder {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    padding: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    max-width: 200px;
    margin-left: auto;
}

/* 医院列表区域 */
.section-header h2 {
    font-size: 15px;
}
.hospital-list-section {
    padding: 15px;
    background-color: #f8f9fa;
}

.hospital-list {
    background-color: transparent;
}

.hospital-item {
    display: flex;
    align-items: center;
    padding: 20px 15px;
    margin-bottom: 15px;
    background-color: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hospital-item:last-child {
    margin-bottom: 0;
}

.hospital-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hospital-logo {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    flex-shrink: 0;
}

.hospital-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.hospital-info {
    flex: 1;
}

.hospital-info h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
}

.hospital-meta {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 15px;
}

.hospital-level {
    display: inline-block;
    background-color: #00;
    color: #333;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.hospital-phone {
    color: #ffc107;
    font-size: 14px;
    font-weight: 500;
}

.hospital-address {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

/* 大字版样式 */
.large-font .hospital-item {
    padding: 25px 20px;
    margin-bottom: 20px;
}

.large-font .hospital-logo {
    width: 100px;
    height: 100px;
    margin-right: 20px;
}

.large-font .hospital-info h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.large-font .hospital-meta {
    margin-bottom: 10px;
    gap: 20px;
}

.large-font .hospital-level {
    font-size: 15px;
    padding: 5px 12px;
}

.large-font .hospital-phone {
    font-size: 16px;
}

.large-font .hospital-address {
    font-size: 16px;
}

.large-font .banner-content h1 {
    font-size: 28px;
}

.large-font .section-header h2 {
    font-size: 24px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-illustration {
        margin-top: 15px;
        text-align: center;
    }
    
    .illustration-placeholder {
        margin: 0 auto;
        max-width: 150px;
    }
    
    .hospital-logo {
        width: 70px;
        height: 70px;
    }
    
    .hospital-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hospital-item {
        padding: 15px 12px;
        margin-bottom: 12px;
    }
    
    .hospital-logo {
        width: 65px;
        height: 65px;
        margin-right: 12px;
    }
    
    .hospital-info h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .hospital-level {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .hospital-phone {
        font-size: 13px;
    }
    
    .hospital-address {
        font-size: 13px;
    }
    
    .large-font .hospital-logo {
        width: 85px;
        height: 85px;
    }
    
    .large-font .hospital-info h3 {
        font-size: 20px;
    }
    
    .large-font .hospital-level {
        font-size: 14px;
    }
    
    .large-font .hospital-phone {
        font-size: 15px;
    }
    
    .large-font .hospital-address {
        font-size: 15px;
    }
    
    .hospital-meta {
        gap: 10px;
    }
}

/* ===== 三个服务板块的样式 ===== */
/* 为三个服务板块添加立体边框效果 */
.medical-services,
.health-services,
.education-services {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 
                0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 15px 10px;
    overflow: hidden;
    background-color: white;
    position: relative;
    padding: 0; /* 确保没有内边距影响对齐 */
}

/* 为每个板块添加立体感 */
.medical-services::before,
.health-services::before,
.education-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.8) 0%, 
        rgba(255,255,255,0.4) 50%, 
        rgba(255,255,255,0.8) 100%);
    z-index: 2;
}

/* 就医服务 - 浅蓝色标题背景 */
.medical-services .section-header {
    background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
    padding: 12px 15px;
    margin: 0; /* 移除所有外边距 */
    border-radius: 12px 12px 0 0; /* 与边框相同的圆角 */
    position: relative;
    z-index: 1; /* 确保在顶部 */
}

/* 便民服务 - 浅绿色标题背景 */
.health-services .section-header {
    background: linear-gradient(135deg, #f6ffed 0%, #f9ffe6 100%);
    padding: 12px 15px;
    margin: 0; /* 移除所有外边距 */
    border-radius: 12px 12px 0 0; /* 与边框相同的圆角 */
    position: relative;
    z-index: 1; /* 确保在顶部 */
}

/* 医教服务 - 浅黄色标题背景 */
.education-services .section-header {
    background: linear-gradient(135deg, #fffbe6 0%, #fffde6 100%);
    padding: 12px 15px;
    margin: 0; /* 移除所有外边距 */
    border-radius: 12px 12px 0 0; /* 与边框相同的圆角 */
    position: relative;
    z-index: 1; /* 确保在顶部 */
}

/* 调整网格内容区域的内边距 */
.medical-services .grid,
.health-services .grid,
.education-services .grid {
    padding: 15px 10px;
}

/* 调整大字版样式以适应新的边框 */
.large-font .medical-services,
.large-font .health-services,
.large-font .education-services {
    margin: 20px 15px;
}

.large-font .medical-services .grid,
.large-font .health-services .grid,
.large-font .education-services .grid {
    padding: 20px 15px;
}

.large-font .medical-services .section-header,
.large-font .health-services .section-header,
.large-font .education-services .section-header {
    padding: 18px 20px;
    border-radius: 12px 12px 0 0; /* 大字版也保持相同的圆角 */
}

/* 响应式调整 */
@media (max-width: 480px) {
    .medical-services,
    .health-services,
    .education-services {
        margin: 12px 8px;
        border-radius: 10px;
    }
    
    .medical-services .section-header,
    .health-services .section-header,
    .education-services .section-header {
        border-radius: 10px 10px 0 0; /* 小屏幕上的圆角 */
        padding: 10px 12px;
    }
    
    .medical-services .grid,
    .health-services .grid,
    .education-services .grid {
        padding: 12px 8px;
    }
}