/* 全局变量 */
:root {
    --primary-color: #009DB5; /* 主色调：蓝绿 */
    --secondary-color: #60C0F3; /* 辅助色：浅蓝 */
    --primary-light: #60C0F3; /* 主色浅色 */
    --primary-dark: #089049; /* 深色（绿） */
    --secondary-light: #60C0F3; /* 辅助浅色 */
    --text-color: #474443; /* 文本深色 */
    --text-light: #666; /* 浅色文本 */
    --white: #fff; /* 白色 */
    --gray-light: #f5f5f5; /* 浅灰色 */
    --gray: #ddd; /* 灰色 */
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 阴影 */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

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

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

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: var(--text-light);
    font-size: 16px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}

.btn-small {
    padding: 6px 15px;
    font-size: 14px;
}

.btn-full {
    width: 100%;
}

/* 顶部信息栏 */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

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

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.social-links a {
    color: var(--white);
    margin-left: 15px;
    font-size: 16px;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* 导航栏（统一为 index.html 风格） */
.header {
    background: #009DB5;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

/* 兼容原有 .header .container，但以 .header-container 为主 */
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.nav-menu { flex: 1; margin: 0 30px; }

.main-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.main-menu li { position: relative; }

.main-menu li a {
    display: block;
    padding: 6px 8px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.main-menu li a:hover,
.main-menu li a.active {
    color: #B8E6F0;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.main-menu li a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 3px;
    background: white;
}

/* 搜索框统一 */
.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #007A8C;
    border-radius: 20px;
    padding: 8px 15px;
    width: 250px;
}
.search-box input {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    padding: 5px;
    font-size: 14px;
}
.search-box button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
}
/* 顶部栏搜索框细化 */
.top-bar .search-box {
    width: 180px;
    border-radius: 4px;
    padding: 4px;
    border: 1px solid #e1e8ed;
    background: #fff;
    line-height: 24px;
    height: 24px;
}
.top-bar .search-box input { font-size: 13px; width: 130px; }

/* 保留原有主导航类，兼容旧页面 */
.logo a { display: flex; align-items: center; color: var(--primary-color); }
.logo-img { height: 50px; margin-right: 10px; }
.logo h1 { font-size: 24px; font-weight: 700; }
.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; }
.nav-list li { margin-left: 25px; }
.nav-list a { color: var(--text-color); font-weight: 600; padding: 10px 0; position: relative; }
.nav-list a::after { content: ''; position: absolute; width: 0; height: 2px; background-color: var(--primary-color); bottom: 0; left: 0; transition: width 0.3s ease; }
.nav-list a:hover::after, .nav-list a.active::after { width: 100%; }
.nav-list a.active { color: var(--primary-color); }

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
    padding: 5px 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    padding: 10px 20px;
    color: #333;
    font-weight: normal;
    font-size: 0.9em;
}

.dropdown-menu li a:hover {
    background-color: rgba(96, 192, 243, 0.12);
    color: var(--primary-color);
}

/* 专家展示区域样式 */
.doctor-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.doctor-skills {
    margin: 10px 0;
    font-size: 0.9rem;
}

.skill-tag {
    display: inline-block;
    background-color: #e8f5e9;
    color: var(--primary-dark);
    padding: 3px 8px;
    border-radius: 12px;
    margin: 2px;
    font-size: 0.8rem;
    border: 1px solid #c8e6c9;
}

.doctor-schedule {
    margin: 10px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.doctor-schedule i {
    color: var(--primary-color);
    margin-right: 5px;
}

.doctor-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 新闻中心样式 */
.news-center {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.news-tabs {
    margin-top: 30px;
}

.tab-header {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active:after {
    width: 100%;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.news-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.news-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.news-info {
    padding: 20px;
}

.news-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 1.2rem;
}

.news-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.read-more:after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover {
    color: var(--primary-dark);
}

.read-more:hover:after {
    transform: translateX(3px);
}

.view-more {
    text-align: center;
    margin-top: 30px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* 轮播图 */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-color: var(--gray-light);
}

.slide.active {
    opacity: 1;
}

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

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    max-width: 80%;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background-color: var(--primary-color);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 2;
}

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

.dot.active {
    background-color: var(--secondary-color);
}

/* 服务特色 */
.features {
    padding: 80px 0;
    background-color: var(--gray-light);
}

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

.feature-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
}

/* 科室介绍 */
.departments {
    padding: 80px 0;
}

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

.department-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.department-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.department-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.department-info {
    padding: 20px;
    background-color: var(--white);
}

.department-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.department-info p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* 医生团队 */
.doctors {
    padding: 80px 0;
    background-color: var(--gray-light);
}

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

.doctor-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.doctor-img {
    position: relative;
    overflow: hidden;
}

.doctor-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.doctor-card:hover .doctor-img img {
    transform: scale(1.1);
}

.doctor-info {
    padding: 20px;
    text-align: center;
}

.doctor-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.doctor-specialty {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.doctor-desc {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}

/* 新闻资讯 */
.news {
    padding: 80px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-img {
    position: relative;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    text-align: center;
}

.news-date .day {
    font-size: 20px;
    font-weight: 700;
    display: block;
}

.news-date .month {
    font-size: 14px;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: all 0.3s ease;
}

.read-more:hover::after {
    margin-left: 10px;
}

/* 预约挂号 */
.appointment {
    padding: 80px 0;
    background-color: var(--primary-light);
    color: var(--white);
}

.appointment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.appointment-info h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.appointment-info p {
    margin-bottom: 20px;
}

.appointment-benefits {
    margin-top: 20px;
}

.appointment-benefits li {
    margin-bottom: 10px;
}

.appointment-benefits i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.appointment-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

/* 页脚 */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-about h3,
.footer-links h3,
.footer-contact h3,
.footer-subscribe h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-about p {
    line-height: 1.8;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.subscribe-form {
    display: flex;
    margin-top: 15px;
}

.subscribe-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.subscribe-form button {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.footer .social-links {
    margin-top: 20px;
}

.footer .social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
}



/** index */


/* 主banner区域 */
.hero-banner {
    height: 450px;
    background: url('images/slider1.jpg') center/cover no-repeat;
    position: relative;
}

.banner-slider {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide figure {
    margin: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

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

.img-title {
    position: absolute;
    bottom: 20px;
    left: 100px;
    background-color: rgba(0, 0, 0, 0.15);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    /*font-size: 14px;*/
    white-space: nowrap;

    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);

}

.banner-content {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    color: white;
    padding: 0 20px;
}

.banner-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 600px;
}

/* 党建学习教育区域 */
.party-education {
    background: #009DB5;
    padding: 0;
    color: white;
}

.party-header {
    background: #007A8C;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.party-header h2 {
    font-size: 20px;
    margin: 0;
    display: flex;
    align-items: center;
}

.party-header h2:before {
    content: "★";
    margin-right: 10px;
}

/* Tabs navigation for party-education */
.party-tabs {
    display: flex;
    gap: 12px;
    margin-left: 20px;
}
.tab-button {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tab-button:hover {
    background: rgba(255,255,255,0.15);
}
.tab-button.active {
    background: #fff;
    color: #007A8C;
    border-color: #fff;
}
.tab-pane {
    display: none;
    opacity: 0;
}
.tab-pane.active {
    display: flex;
    gap: 20px;
    opacity: 1;
    align-items: stretch;
}
.pane-left {
    flex: 3;
}
.pane-right {
    flex: 2;
    background: #fff;
    border-radius: 4px;
    padding: 12px;
    color: #333;
    display: flex;
}
.title-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}
.title-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.title-list li:last-child {
    border-bottom: none;
}
.title-list a {
    color: #333;
    text-decoration: none;
}
.title-list a:hover {
    color: #009DB5;
}
.title-list .date {
    color: #999;
    font-size: 13px;
    white-space: nowrap;
}

.party-content {
    padding: 20px 10px;
}

.party-news {
    flex: 2;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 5px;
}

.party-news-item {
    display: flex;
    padding: 15px;
}

.party-news-item img {
    width: 200px;
    height: 140px;
    object-fit: cover;
    margin-right: 20px;
}

.news-info {
    flex: 1;
    color: #333;
}

.news-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.news-top-date {
    color: #888;

}

.news-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #666;
}

.read-more {
    display: inline-block;
    color: #009DB5;
    text-decoration: none;
    font-size: 14px;
}

.party-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-item {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    text-decoration: none;
}

.link-item:hover {
    background: rgba(255,255,255,0.2);
}

.link-item i {
    font-size: 20px;
}

/* 通知公告和新闻区域 */
.news-section {
    padding: 30px 0;
    background: #fff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.section-title {
    font-size: 22px;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.section-title:before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    height: 20px;
    width: 5px;
    background: #009DB5;
}

.more-link {
    color: #888;
    text-decoration: none;
    font-size: 14px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

.news-card-img {
    height: 200px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 20px;
}

.news-card-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.news-card-date {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 科室介绍 */
.dept-section {
    padding: 30px 0;
    background: #fff;
}
.dept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.dept-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
}
.dept-img {
    width: 40%;
    height: 180px;
    overflow: hidden;
}
.dept-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dept-content {
    padding: 15px;
    flex: 1;
    color: #333;
}
.dept-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    white-space: nowrap; /* 禁止换行显示 */
    overflow: hidden;
    text-overflow: ellipsis;
}
.dept-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}
.dept-points {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap; /* 禁止换行显示 */
    overflow: hidden;
}
.dept-point {
    background: #f5f8f9;
    border: 1px solid #e6f0f2;
    color: #007A8C;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 12px;
}


/* 底部友情链接区域 新增 */
.friend-link {
    background: #444;
    padding: 20px 0;
    color: #fff;
}
.friend-link .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}
.friend-link h3 {
    font-size: 16px;
    margin: 0;
    color: #fff;
}
.link-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.link-group a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}
.link-group a:hover {
    color: #009DB5;
}

/* 科室导航（参考样板） */
.dept-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #e1e8ed;
    margin-bottom: 20px;
}
.dept-tab {
    background: none;
    border: none;
    color: #5A6C7D;
    font-size: 16px;
    padding: 10px 16px;
    cursor: pointer;
}
.dept-tab.active {
    background: #009DB5;
    color: #fff;
    border-radius: 4px;
}

.dept-list {
    display: none; /* 默认不显示，防止所有列表同时展示 */
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.dept-list.active {
    display: grid; /* 仅激活的列表以网格显示 */
}
.dept-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.2s ease;
}
.dept-item:hover {
    border-color: #009DB5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.dept-item.active {
    background: #009DB5;
    color: #fff;
    border-color: #009DB5;
}

@media (max-width: 992px) {
    .dept-list { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .dept-list { grid-template-columns: repeat(2, 1fr); }
}

/* 专家介绍 */
.expert-section {
    padding: 30px 0;
    background: #fff;
}
.expert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.expert-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    padding-bottom: 15px;
}
.expert-photo {
    height: 250px;
    overflow: hidden;
}
.expert-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.expert-name {
    font-size: 16px;
    margin-top: 12px;
    color: #333;
}
.expert-title {
    font-size: 14px;
    color: #777;
    margin-top: 4px;
}
.expert-specialty {
    font-size: 13px;
    color: #555;
    padding: 0 12px;
    margin-top: 8px;
    line-height: 1.6;
}

/* 响应式：在992px与768px下调整栅格列数与布局 */
@media (max-width: 992px) {
    .expert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .expert-grid {
        grid-template-columns: 1fr;
    }
    .dept-grid {
        grid-template-columns: 1fr;
    }
    .dept-card {
        flex-direction: column;
    }
    .dept-img {
        width: 100%;
        height: 180px;
    }
}

/* 信息公开区域 */
.info-section {
    padding: 30px 0;
    background: #f9f9f9;
}

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

.info-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    padding: 30px 20px;
}

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

.info-icon {
    font-size: 40px;
    color: #009DB5;
    margin-bottom: 15px;
}

.info-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

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

/* 响应式设计 */
@media (max-width: 992px) {
    .party-content {
        flex-direction: column;
    }

    .party-news {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        margin: 15px 0;
        width: 100%;
        overflow-x: auto;
    }

    .main-menu {
        width: max-content;
    }

    .search-box {
        width: 100%;
    }

    .hero-banner {
        height: 350px;
    }

    .banner-title {
        font-size: 28px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .party-news-item {
        flex-direction: column;
    }

    .party-news-item img {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
