/* 全局样式重置和基础设置 */
:root {
    --primary-blue: #1e5aa8;
    --sky-blue: #4a9fe5;
    --orange: #f89538;
    --green: #56b97a;
    --purple: #9a78c8;
    --dark-text: #333;
    --gray-text: #666;
    --light-gray: #999;
    --white: #ffffff;
    --light-blue-bg: #f0f6ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}



ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 顶部栏 */
.top-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hospital-name h1 {
    font-size: 24px;
    color: var(--primary-blue);
    font-weight: bold;
    margin-bottom: 5px;
}

.hospital-name h2 {
    font-size: 20px;
    color: var(--primary-blue);
    font-weight: normal;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 25px;
    padding: 5px 5px 5px 20px;
    border: 1px solid #ddd;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    color: var(--dark-text);
    font-size: 14px;
    width: 200px;
}

.search-box input::placeholder {
    color: #999;
}

.search-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.search-btn:hover {
    background: rgba(74, 159, 229, 0.1);
}

.emergency-phone {
    text-align: right;
    font-size: 14px;
}

.emergency-phone p {
    margin: 3px 0;
    color: var(--dark-text);
}

.phone {
    color: red;
    font-weight: bold;
    font-size: 16px;
}

/* 主导航栏 */
.main-nav {
    background: linear-gradient(to bottom, #2b7de9 0%, #1e5aa8 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s;
}

.nav-list {
    display: flex;
    gap: 0;
}

.nav-list li a {
    display: block;
    padding: 15px 15px;
    color: var(--white);
    font-size: 15px;
    transition: background 0.3s;
}

.nav-list li a:hover,
.nav-list li a.active {
    background: rgba(255, 255, 255, 0.2);
}

/* 二级菜单 */
.nav-list li.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-list li.has-submenu:hover .submenu {
    display: block;
}

.submenu li a {
    padding: 12px 20px;
    color: var(--dark-text);
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.submenu li a:hover {
    background: var(--light-blue-bg);
    color: var(--primary-blue);
}

.submenu li:last-child a {
    border-bottom: none;
}

/* 轮播图区域 */
.banner-section {
    position: relative;
    height: 900px;
    overflow: hidden;
}

.banner-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.arrow {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.arrow:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: var(--white);
    transform: scale(1.1);
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.dot.active {
    background: var(--white);
    transform: scale(1.3);
    border-color: var(--sky-blue);
}

/* 通知公告栏 */
.notice-bar {
    background-color:#fefefe;
    padding: 15px 0;
    border-top: 2px solid var(--sky-blue);
    overflow: hidden;
}

.notice-bar .container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notice-icon {
    flex-shrink: 0;
}

.notice-scroll-wrapper {
    flex: 1;
    overflow: hidden;
    height: 30px;
    position: relative;
}

.notice-scroll {
    position: absolute;
    width: 100%;
    animation: scrollUp 9s linear infinite;
}

.notice-item-scroll {
    height: 30px;
    line-height: 30px;
    color: var(--gray-text);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes scrollUp {
    0%, 30% {
        transform: translateY(0);
    }
    33%, 63% {
        transform: translateY(-30px);
    }
    66%, 96% {
        transform: translateY(-60px);
    }
    100% {
        transform: translateY(0);
    }
}

/* 快捷入口 */
.quick-access {
    padding: 40px 0;
    background: var(--white);
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border-radius: 8px;
    color: var(--white);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.access-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.access-item svg {
    margin-bottom: 15px;
}

.access-item span {
    font-size: 16px;
    font-weight: 500;
}

/* 右侧悬浮工具栏 */
.floating-toolbar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 11199;
    overflow: visible;
}

.toolbar-item {
    width: 60px;
    height: 60px;
    background-color: #4f96ce;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
    font-size: 11px;
    gap: 5px;
    position: relative;
    overflow: visible;
}

.toolbar-item:hover {
    background: var(--sky-blue);
    transform: scale(1.1);
}

/* 二维码弹窗 */
.qr-popup {
    display: none;
    position: fixed;
    right: 90px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 11200;
}

.qr-popup img {
    width: 150px;
    height: 150px;
    display: block;
}

.back-to-top {
    background-color: #4e95cb;
}

    .back-to-top:hover {
        background: var(--sky-blue);
        transform: scale(1.1);
    }

/* 通用模块样式 */
.news-section,
.notice-section,
.expert-section,
.treatment-science-section,
.department-section,
.friend-links {
    padding: 50px 0;
}

.news-section,
.notice-section {
    background: var(--white);
}

.expert-section {
    position: relative;
    background: linear-gradient(135deg, #f0f6ff 0%, #e0ecff 100%);
    overflow: hidden;
}

.expert-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 1;
}

.expert-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-section .container {
    position: relative;
    z-index: 1;
}

.expert-header {
    justify-content: center;
    text-align: center;
}

.expert-header .section-title {
    align-items: center;
}

.expert-slider-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.expert-grid {
    display: flex;
    gap: 20px;
    /* animation: expertScroll 30s linear infinite; */ /* 改用JS控制 */
    width: max-content;
    flex-wrap: nowrap;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes expertScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* .expert-grid:hover {
    animation-play-state: paused;
} */ /* 改用JS控制 */

.expert-card {
    flex-shrink: 0;
    width: 180px;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.expert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.treatment-science-section {
    background: var(--white);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.section-title {
    display: flex;
    flex-direction: column;
}

.title-cn {
    font-size: 24px;
    color: var(--primary-blue);
    font-weight: bold;
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}

.title-cn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-blue);
}

.title-no-underline::after {
    display: none;
}

.title-en {
    font-size: 12px;
    color: var(--light-gray);
    letter-spacing: 2px;
}

.section-tabs {
    display: flex;
    gap: 20px;
}

.section-tabs .tab {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    color: var(--gray-text);
    transition: all 0.3s;
}

.section-tabs .tab:hover,
.section-tabs .tab.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.more-link {
    color: var(--gray-text);
    font-size: 14px;
}

.more-link:hover {
    color: var(--sky-blue);
}

/* 医院新闻模块 */
.news-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.news-image-slider {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 350px;
}

.news-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.news-slide.active {
    opacity: 1;
}

.news-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.news-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.news-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.news-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 30px 20px 20px;
    color: var(--white);
}

.news-image-caption h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.news-image-caption p {
    font-size: 14px;
    opacity: 0.9;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 300px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
    min-height: 50px;
}

.news-item:hover {
    background: var(--light-blue-bg);
    padding-left: 20px;
}

.news-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--sky-blue);
    border-radius: 50%;
    flex-shrink: 0;
}

.news-date {
    color: var(--sky-blue);
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.news-item a {
    flex: 1;
    font-size: 14px;
    color: var(--dark-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-item a:hover {
    color: var(--sky-blue);
}

/* 通知公告模块 */
.notice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.notice-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: var(--light-blue-bg);
    border-radius: 4px;
    transition: all 0.3s;
}

.notice-item a:hover {
    background: #e0ecff;
    transform: translateX(5px);
}

.notice-item a::before {
    content: '▶';
    color: var(--sky-blue);
    font-size: 10px;
    margin-right: 10px;
}

.notice-text {
    flex: 1;
    font-size: 14px;
    color: var(--dark-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-date {
    color: var(--light-gray);
    font-size: 13px;
    margin-left: 20px;
}

/* 专家介绍模块 */
.expert-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.expert-label {
    padding: 8px 20px;
    border: 1px solid var(--primary-blue);
    border-radius: 20px;
    color: var(--primary-blue);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.expert-label:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* 专家介绍模块 - 静态卡片样式（已移至上面） */
/* 注意：这里的grid布局已被上面的flex布局覆盖 */

.expert-photo {
    height: 200px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    overflow: hidden;
}

.expert-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-info {
    padding: 15px;
    text-align: center;
}

.expert-info h4 {
    font-size: 16px;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.expert-info p {
    font-size: 13px;
    color: var(--light-gray);
    line-height: 1.5;
}

/* 特色诊疗和健康科普模块 */
.two-column-layout {
    display: grid;
    grid-template-columns: 6.5fr 3.5fr;
    gap: 40px;
}

.treatment-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

.treatment-image {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.treatment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.treatment-list,
.science-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.treatment-item,
.science-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

.treatment-date,
.science-date {
    color: var(--sky-blue);
    font-size: 14px;
    white-space: nowrap;
    margin-top: 2px;
}

.treatment-item a,
.science-item a {
    font-size: 14px;
    color: var(--dark-text);
    line-height: 1.6;
}

.treatment-item a:hover,
.science-item a:hover {
    color: var(--sky-blue);
}

    .science-item a::before {
        content: '▶';
        color: var(--sky-blue);
        font-size: 10px;
        margin-right: 10px;
    }

    .treatment-item a::before {
        content: '▶';
        color: var(--sky-blue);
        font-size: 10px;
        margin-right: 10px;
    }

/* 科室导航模块 */
.department-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
}

.department-item {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--sky-blue) 100%);
    background-image: url('../images/ksBg.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: var(--white);
    padding: 20px 10px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height:150px;
}

    .department-item:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 20px rgba(30, 90, 168, 0.3);
        color: #ef8201;
    }

.dept-number {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.dept-name {
    display: block;
    font-size: 13px;
    opacity: 0.95;
}

/* 友情链接 */
.friend-links {
    background: var(--light-blue-bg);
    padding: 30px 0;
}

.friend-links .section-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 20px;
}

.friend-links .section-title {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    position: relative;
}

.friend-links .title-cn {
    font-size: 24px;
    color: var(--primary-blue);
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.friend-links .title-cn::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-blue);
}

.friend-links .title-en {
    font-size: 14px;
    color: #bbb;
    letter-spacing: 1px;
    font-weight: normal;
}

.links-list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.links-list a {
    font-size: 14px;
    color: var(--gray-text);
}

.links-list a:hover {
    color: var(--primary-blue);
}

.links-list span {
    color: #ddd;
}

/* 页脚 */
.site-footer {
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0d3a75 100%);
    color: var(--white);
    padding: 50px 0 30px;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/boot.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 0;
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-hospital-name h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.footer-hospital-name h4 {
    font-size: 16px;
    opacity: 0.9;
}

.footer-motto {
    margin-bottom: 30px;
}

.motto-label {
    display: inline-block;
    background: var(--sky-blue);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 10px;
}

.motto-text {
    font-size: 16px;
    letter-spacing: 3px;
}

.contact-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-en {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 15px;
}

.contact-info p {
    font-size: 14px;
    opacity: 0.9;
    margin: 8px 0;
}

.footer-motto-img {
    margin-bottom: 20px;
    text-align: center;
}

.footer-motto-img img {
    max-width: 100%;
    height: auto;
}

.qr-codes {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    justify-content: center;
}

.qr-item {
    text-align: center;
}

.qr-item img {
    width: 120px;
    height: 120px;
    background: var(--white);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.qr-item p {
    font-size: 14px;
    opacity: 0.9;
}

.footer-security {
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
}

/* 响应式设计 - 平板端 */
@media screen and (max-width: 1199px) {
    .hospital-name h1 {
        font-size: 20px;
    }

    .hospital-name h2 {
        font-size: 16px;
    }

    .nav-list li a {
        padding: 12px 15px;
        font-size: 14px;
    }

    .banner-section {
        height: 400px;
    }

    .access-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .expert-grid {
        /* 保持flex布局，不需要修改 */
    }

    .department-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .news-content {
        grid-template-columns: 1fr;
    }

    .notice-grid {
        grid-template-columns: 1fr;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
    }

    .treatment-content {
        grid-template-columns: 1fr;
    }
}

/* 响应式设计 - 手机端 */
@media screen and (max-width: 768px) {
    html {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative;
    }

    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 防止任何元素溢出 */
    div, section, article, aside, nav, header, footer, main {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* 确保所有图片不会溢出 */
    img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .top-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .header-right {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    .emergency-phone {
        text-align: center;
        width: 100%;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-nav .container {
        justify-content: flex-start;
        padding: 0;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--primary-blue);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* 手机端二级菜单样式 */
    .submenu {
        position: static;
        display: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.1);
        animation: none;
    }

    .has-submenu:hover .submenu,
    .has-submenu:focus-within .submenu {
        display: block;
    }

    .submenu li a {
        padding-left: 40px;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.8);
    }

    .banner-section {
        height: 200px;
        overflow: hidden;
    }

    .banner-arrows {
        display: none;
    }

    .access-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        overflow: hidden;
    }

    .access-item {
        padding: 20px 15px;
        overflow: hidden;
    }

    .floating-toolbar {
        display: none;
    }

    /* 手机端隐藏专家介绍模块 */
    .expert-section {
        display: none !important;
    }

    .news-section,
    .notice-section,
    .expert-section,
    .treatment-science-section,
    .department-section {
        padding: 30px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-tabs {
        width: 100%;
        justify-content: flex-start;
    }

    .news-image-slider {
        height: 250px;
    }

    .expert-grid {
        /* 保持flex布局和滚动动画 */
        animation-duration: 30s;
        overflow: hidden;
        width: max-content;
    }

    .expert-card {
        width: 150px;
        flex-shrink: 0;
        max-width: 150px;
    }

    .department-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        overflow: hidden;
    }

    .department-item {
        padding: 15px 8px;
        min-height: 120px;
        overflow: hidden;
    }
    .department-item a:hover {
        color:red;
    }


    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        overflow: hidden;
    }

    .footer-left {
        text-align: center;
        overflow: hidden;
    }

    .footer-logo-info {
        flex-direction: column;
        align-items: center;
        overflow: hidden;
    }

    .contact-info {
        text-align: center;
        overflow: hidden;
    }

    .qr-codes {
        justify-content: center;
        flex-wrap: wrap;
        overflow: hidden;
    }

    .qr-item img {
        width: 100px;
        height: 100px;
    }

    .footer-motto-img {
        margin-bottom: 15px;
    }

    .footer-security {
        text-align: center;
    }

    /* 手机端友情链接优化 */
    .friend-links .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .friend-links .title-cn {
        font-size: 20px;
    }

    .friend-links .title-en {
        font-size: 12px;
        color: #ccc;
    }

    .friend-links .title-cn::after {
        width: 30px;
        height: 2px;
        bottom: -6px;
    }

    .links-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .links-list a {
        font-size: 13px;
        line-height: 1.8;
    }

    .links-list span {
        display: none;
    }
}

/* 响应式设计 - 小屏手机 */
@media screen and (max-width: 480px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .hospital-name h1 {
        font-size: 16px;
    }

    .hospital-name h2 {
        font-size: 14px;
    }

    .logo svg {
        width: 40px;
        height: 40px;
    }

    .title-cn {
        font-size: 20px;
    }

    .title-en {
        font-size: 10px;
    }

    .access-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .expert-grid {
        animation-duration: 25s;
    }

    .expert-card {
        width: 130px;
    }

    .expert-photo {
        height: 160px;
    }

    .expert-info h4 {
        font-size: 14px;
    }

    .expert-info p {
        font-size: 12px;
    }

    .department-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
