* {
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
}

/*===== PC端：目标模块左右各10%留白 =====*/
.notice-section,
.func-buttons,
.work-dynamic,
.two-col-section,
.link-area {
    width: 80% !important;
    max-width: 1200px;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ==========1、顶部通栏 ========== */
.top-bar {
    width: 100%;
    background: #004899;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 30px;
}
.top-left,
.top-right {
    color: #fff;
    font-size: 14px;
}

/* ==========2、头部logo+搜索通栏 ========== */
.header {
    width: 100%;
    background: #004899;
    padding: 15px 0;
}
.header .header-wrap {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-area img {
    height: 100px;
    padding: 4px;
    border-radius: 2px;
}
.logo-area h1 {
    font-size: 26px;
    color: #ffffff;
    font-weight: bold;
}
.logo-area h1 span {
    font-size: 30px;
    margin-left: 8px;
    color: #ffffff;
}
.school-name-box {
    display: flex;
    align-items: center;
}
.split-line {
    width: 2px;
    height: 48px;
    background-color: #ffffff;
    display: inline-block;
}
.hospital-text {
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 6px;
}
.school-text h1 {
    color: #fff;
    font-size: 42px;
    margin: 0;
    font-weight: bold;
}
.school-text p {
    color: #fff;
    font-size: 14px;
    margin: 0;
}
.search-box {
    display: flex;
}

/* ==========3、主导航 ========== */
/* ==========3、主导航 ========== */
.main-nav {
    width: 100%;
    background-color: #003377;
    position: relative;
}
.main-nav .container {
    /* 关键：和下面notice-section版心保持一致 */
   /*  width:80%;*/
    max-width:1200px;
    margin:0 auto;
    padding: 0;
    display: flex;
    justify-content: flex-start; /* 关键修改 */
    align-items: center;
    position: relative;
}
.nav-list {
    display: flex;
    margin: 0;
    padding: 0;
    width: auto; /* 关键修改，取消100% */
    gap:0;
    list-style: none;
}
.nav-list li a {
    display: block;
    color: #ffffff;
    /* 增大左右内边距拉开菜单项距离 */
    padding: 14px 10px;
    font-size: 20px;
    white-space: nowrap;
    text-decoration: none !important;
}
.nav-list li a:hover {
    background-color: #004099;
}
.menu-toggle {
    display: none;
    color: #fff;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    position: relative;
    z-index: 99;
}



/*4、轮播区域 */
/* =====轮播 正确通栏，不产生横向溢出===== */
.banner {
    width: 100%;
}
.banner-box{
    position:relative;
    overflow:hidden;
    height:320px;
    width:100%;
}
.banner-item{
    width:100%;
    height:100%;
    display:none;
}
.banner-item.active{
    display:block;
}
.banner-item img {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}
.banner-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:40px;
    height:40px;
    background:rgba(255,255,255,0.4);
    border-radius:50%;
    text-align:center;
    line-height:40px;
    color:#000;
    font-size:20px;
    cursor:pointer;
    z-index:2;
}
.banner-prev{
    left:30px;
}
.banner-next{
    right:30px;
}


/*5、三栏公告 */
.notice-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
    padding: 30px 0;
}
.notice-col {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}
.col-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f5f7fa;
    border-bottom: 1px solid #eee;
}
.col-head h3 {
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.notice-col:nth-child(1) .col-head h3::before {
    content: "";
    width: 24px;
    height: 24px;
    background: url("../images/xwdticon.png") no-repeat center / contain;
    border-radius: 50%;
    display: inline-block;
}
.notice-col:nth-child(2) .col-head h3::before {
    content: "";
    width: 24px;
    height: 24px;
    background: url("../images/djgzicon.png") no-repeat center / contain;
    border-radius: 50%;
    display: inline-block;
}
.notice-col:nth-child(3) .col-head h3::before {
    content: "";
    width: 24px;
    height: 24px;
    background: url("../images/tzggicon.png") no-repeat center / contain;
    border-radius: 50%;
    display: inline-block;
}
.more {
    color: #004899;
    font-size: 13px;
}
.news-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    border-bottom: 1px solid #f1f1f1;
}
.news-list li a {
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
    text-decoration: none;
}
.news-list li a:hover {
    color: #004899;
}
.news-list li span {
    color: #999;
    font-size: 12px;
}

/*6、功能按钮区 */
.func-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.func-item {
    display: block;
    text-align: center;
    line-height: 55px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;  /* 新增，清除下划线 */
}
.func-item.blue {
    background: #459eaa;
}
.func-item.orange {
    background: #f7a72c;
}
.func-item.deep-blue {
    background: #2468e0;
}
.func-item.red {
    background: #d82645;
}

/*7、工作动态 */
.work-dynamic{
    padding: 3px 0;
    width: 80% !important;
    max-width: 1200px;
    margin: 0 auto !important;
    overflow: hidden; /* 新增：防止子元素溢出撑破页面 */
}
.sec-title{
    text-align: center;
    font-size: 22px;
    color: #004899;
    margin-bottom: 10px;
    margin-top: 10px;
    letter-spacing: 2px;
}
.dynamic-wrap {
    display: flex;
    gap: 16px;
    padding: 0;  /* 👈 去掉padding，避免撑破容器 */
    overflow-x: visible;
    flex-wrap: wrap;
    box-sizing: border-box; /* 新增：保险起见 */
    width: 100%;
}
.dynamic-card {
    width: calc(25% - 12px); /* 4列自适应 */
    flex-shrink: 0;
    box-sizing: border-box;
}

.card-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.dynamic-card p {
    margin: 8px 0 0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 手机端：横向滚动 */
/* 小屏 768px以下：2列自适应 */
@media screen and (max-width: 768px) {
    .dynamic-wrap {
        overflow-x: visible;
        padding: 0 10px;
    }
    .dynamic-card {
        width: calc(50% - 8px); /* 2列，2个卡片1个gap，分摊8px */
    }
}


/*8、双栏板块 */
.two-col-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding-bottom: 30px;
}
.two-col {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}
.col-head h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}
.two-col:first-child .col-head h3::before {
    content: "";
    width: 22px;
    height: 22px;
    background: url("../images/jkjyicon.png") no-repeat center / contain;
    display: inline-block;
}
.two-col:last-child .col-head h3::before {
    content: "";
    width: 22px;
    height: 22px;
    background: url("../images/jbfkicon.png") no-repeat center / contain;
    display: inline-block;
}

/*9、友情链接 */
.link-area {
    padding: 15px 0;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.link-label {
    font-weight: bold;
    color: #666;
}
.link-list {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.link-list a {
    color: #004899;
}

/*10、页脚通栏 */
/*10、页脚通栏 */
.footer {
    background-color: #004899;
    color: #ffffff;
    width: 100%;
}

.footer-inner {
    padding: 20px 0;
}

.footer .container {
    /* 和上方 notice-section、work-dynamic 统一版心 */
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-left {
    flex: 1;
}
.footer-left p {
    font-size: 16px;
    line-height: 2;
    margin: 8px 0;
}
.footer-center {
    flex: 2;
    text-align: center;
}
.footer-logo-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
}
.school-logo {
    height: 65px;
    width: auto;
}
.cn-title {
    font-size: 32px;
    font-weight: 500;
}
.en-title {
    font-size: 22px;
    letter-spacing: 1px;
}
.copyright-wrap {
    width: 100%;
}
.copyright-top {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.logo-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.copyright {
    margin: 0;
    font-size: 16px;
    color: #ffffff;
    text-align: center;
}
.logo-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-img,
.logo-text {
    display: flex;
    align-items: center;
}
.copyright-bottom {
    text-align: center;
}
.copyright {
    margin: 0;
}
.footer-right {
    flex: 1;
    text-align: right;
}
.footer-right img {
    width: 160px;
    height: 160px;
    display: inline-block;
}

/* 面包屑样式 */
.top-breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
}
.top-breadcrumb a {
    color: #004899;
    text-decoration: none;
}

/* 双栏外层容器 */
.content-wrap {
width: 80%;
    display: flex;
    gap: 30px;
    margin: 30px auto;
}
.left-sidebar {
    width: 240px;
    flex-shrink: 0;
}
.sidebar-top {
    background-color: #004899;
    color: #ffffff;
    text-align: center;
    padding: 14px 0;
    font-size: 18px;
    font-weight: 500;
}
.left-sidebar {
    border: 1px solid #eeeeee;
    padding-bottom: 12px;
}
.left-sidebar > div:nth-child(2) {
    padding: 12px;
}
.right-content {
    flex: 1;
    border: 1px solid #eee;
    padding: 25px;
}
.content-title {
    font-size: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid #004899;
    margin-bottom: 20px;
}

/* ========== 左侧侧边导航 ========== */
.left-sidebar {
    width: 280px;
    flex-shrink: 0;
}
.sidebar-top {
    background-color: #004899;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    padding: 35px 10px;
}
.sidebar-nav {
    list-style: none;
    border: 1px solid #eaeaea;
}
.sidebar-nav li {
    border-bottom: 1px solid #eaeaea;
}
.sidebar-nav li:last-child {
    border-bottom: none;
}
.sidebar-nav li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 30px;
    font-size: 20px;
    color: #222;
    text-decoration: none;
    background: #f6f6f6;
}
.arrow {
    color: #004899;
    font-size: 22px;
}

.line-divider {
    height: 1px;
    background: #004899;
    margin-bottom: 25px;
}

/* 政策文件列表 */
.policy-list {
    list-style: none;
}
.policy-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px dashed #dddddd;
}
.item-left {
    display: flex;
    align-items: center;
}
.dot {
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
    margin-right: 12px;
}
.item-title a {
    font-size: 16px;
    color: #222;
    text-decoration: none;
}
.item-title a:hover {
    color: #004899;
}
.item-date {
    font-size: 16px;
    color: #555;
}

/* ==========分级响应式媒体查询 ========== */


@media screen and (max-width: 992px) {
    .main-nav .container {
        justify-content: space-between;
    }
    .menu-toggle {
        display: block;
    }
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #003377;
        flex-direction: column;
        display: none;
        z-index: 98;
    }
    .nav-list.mobile-show {
        display: flex;
    }
    .nav-list li a {
        width: 100%;
        padding: 12px 25px;
        text-align: left;
    }
    .hospital-text {
        font-size: 22px;
        letter-spacing: 2px;
    }
    .split-line {
        height: 28px;
    }
    .notice-section {
        grid-template-columns: 1fr 1fr;
    }
    .row-box {
        grid-template-columns: 1fr 1fr;
    }

    /* 平板端取消80%宽度，恢复原始样式 */
    .notice-section,
    .func-buttons,
    .work-dynamic,
    .two-col-section,
    .link-area {
        width: 100% !important;
        padding: 0 15px !important;
    }
}

@media screen and (max-width: 768px) {
    .container {
        width: 96%;
    }
    .content-wrap {
        flex-direction: column;
    }
    .left-sidebar {
        width: 100%;
    }
    .header .header-wrap {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .search-box {
        width: 100%;
    }
    .search-box input {
        flex: 1;
        width: auto;
    }
    .hospital-text {
        font-size: 20px;
        letter-spacing: 2px;
    }
    .split-line {
        height: 28px;
    }
    .notice-section,
    .two-col-section,
    .row-box {
        grid-template-columns: 1fr;
    }
    .func-buttons {
        grid-template-columns: 1fr 1fr;
    }
    .banner-box {
        height: 220px;
    }
    .footer-wrap {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .footer-left,
    .footer-right {
        text-align: center;
    }
    .footer-logo-group {
        flex-direction: column;
    }
    .footer-right img {
        width: 140px;
        height: 140px;
    }
}