/* 全局重置 & 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", SimSun, sans-serif;
}

:root {
    --main-color: #1967b3;     /* 医院主色调-蓝色 */
    --assist-color: #c81623;   /* 辅助红色 */
    --text-dark: #333;
    --text-gray: #666;
    --text-light: #999;
    --bg-gray: #f5f7fa;
    --white: #ffffff;
    --line-color: #eee;
}

body {
    color: var(--text-dark);
    background-color: var(--bg-gray);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

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

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 通用标题 */
.section-title {
    text-align: center;
    margin: 50px 0 35px;
}
.section-title h2 {
    font-size: 28px;
    color: var(--main-color);
    position: relative;
    padding-bottom: 12px;
    display: inline-block;
}
.section-title h2::after {
    content: "";
    width: 70px;
    height: 3px;
    background: var(--assist-color);
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

/* 顶部导航栏 */
.top-header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo img {
    height: 60px;
}
.logo-text h1 {
    font-size: 22px;
    color: var(--main-color);
}
.logo-text p {
    font-size: 13px;
    color: var(--text-gray);
}

/* 桌面端导航菜单 */
.nav-menu {
    display: flex;
    gap: 35px;
}
.nav-menu li a {
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}
.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--assist-color);
}
.nav-menu li a.active::after {
    content: "";
    width: 100%;
    height: 2px;
    background: var(--assist-color);
    position: absolute;
    left: 0;
    bottom: 0;
}

/* 移动端菜单按钮 */
.menu-btn {
    display: none;
    font-size: 28px;
    color: var(--main-color);
    cursor: pointer;
}
.mobile-nav {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--line-color);
}
.mobile-nav li {
    border-bottom: 1px solid var(--line-color);
}
.mobile-nav li a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
}

/* 轮播Banner */
.banner {
    width: 100%;
    height: 420px;
    overflow: hidden;
    position: relative;
}
.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 医院简介模块 */
.intro-box {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}
.intro-text p {
    font-size: 16px;
    color: var(--text-gray);
    text-indent: 2em;
    margin-bottom: 15px;
}

/* 专家团队卡片 */
.expert-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.expert-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}
.expert-card:hover {
    transform: translateY(-6px);
}
.expert-img {
    height: 220px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.expert-info {
    padding: 18px;
}
.expert-info h3 {
    font-size: 18px;
    color: var(--main-color);
    margin-bottom: 6px;
}
.expert-info .job {
    color: var(--assist-color);
    font-size: 14px;
    margin-bottom: 10px;
}
.expert-info .desc {
    font-size: 14px;
    color: var(--text-gray);
}

/* 特色项目 */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.service-item {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}
.service-item h3 {
    color: var(--main-color);
    margin-bottom: 12px;
    font-size: 17px;
}
.service-item p {
    font-size: 14px;
    color: var(--text-gray);
}

/* 新闻列表 */
.news-list {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}
.news-list li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--line-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.news-list li:last-child {
    border: none;
}
.news-list a {
    color: var(--text-dark);
}
.news-list a:hover {
    color: var(--assist-color);
}
.news-date {
    color: var(--text-light);
    font-size: 13px;
}

/* 联系我们 */
.contact-box {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}
.contact-item {
    margin-bottom: 18px;
    font-size: 16px;
}
.contact-item span {
    color: var(--main-color);
    font-weight: bold;
    display: inline-block;
    width: 80px;
}

/* 页脚 */
footer {
    background: #222;
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 30px;
}
.footer-inner {
    text-align: center;
}
.footer-inner p {
    margin-bottom: 10px;
    font-size: 14px;
}
.copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #999;
}

/* ========== 响应式适配 ========== */
/* 平板 768px 以下 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .menu-btn {
        display: block;
    }
    .mobile-nav.show {
        display: block;
    }
    .banner {
        height: 240px;
    }
    .header-inner {
        height: 70px;
    }
    .logo-text h1 {
        font-size: 18px;
    }
    .intro-box, .contact-box {
        padding: 25px 20px;
    }
}

/* 手机 480px 以下 */
@media (max-width: 480px) {
    .section-title h2 {
        font-size: 22px;
    }
    .news-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}