*{margin:0;padding:0;box-sizing:border-box}
ul,ol{list-style:none}
a{text-decoration:none;color:inherit}
img{display:block;border:0;}
input,textarea,button,select{border:0;outline:0;background:none;font:inherit}
h1,h2,h3,h4,h5,h6{font-weight:normal}
em,i{font-style:normal}
table{border-collapse:collapse;border-spacing:0}
body{font:14px/1.5 "Microsoft Yahei",sans-serif;color:#333;background:#fff}


/*logo*/
.blue-bar {
    height: 12px;
    background-color: #004EA2;
}
.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 35px;
    max-width: 1280px;
    margin: 0 auto;
}
.header-left {
    display: flex;
    align-items: center;
}
.logo-img {
    width: 370px;
    height: 57px;
    object-fit: contain;
    margin-right:15px;
}
.divider-line {
    width: 1px;
    height: 40px;
    background-color: #EBE8E8;
    margin-right:15px;
}
.title-text {
    font-size: 20px;
    color: #B73035;
    font-weight: 500;
    display: flex;
    align-items: center;
}
.dot {
    width: 4px;
    height: 4px;
    background-color: #B73035;
    border-radius: 50%;
    margin: 0 8px;
    display: inline-block;
}
.header-right {
    display: flex;
    align-items: center;
}
.header-right > div + div{
    margin-left:20px;
}
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}
.circle-search-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s;
    flex-shrink: 0;
    z-index: 2;
}
.circle-search-btn:hover{
    border-color:#888888;
}
.circle-search-btn img{
    width:18px;
    height:18px;
}
.full-search-bar {
    display: flex;
    align-items: center;
    border:1px solid #888888;
    border-radius:8px;
    position: absolute;
    right:0;
    z-index:1;
    width: 260px;
    opacity: 1;
    /* 删除展开过渡动画 */
}
.searchgzj{
    flex-grow: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size:14px;
    padding-left: 10px;
}
.search-icon{
    cursor: pointer;
    width:28px;
    height:28px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-left:12px;
}
.search-icon img{
    width:18px;
    height:18px;
}

.icon-circle-wrap {
    width: 28px;
    height: 28px;
    border: 1px solid #888888;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.icon-circle-wrap img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.phone-box {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #004EA2;
    font-weight: 500;
}
.phone-box span {
    margin-left: 6px;
}
.phone-icon {
    width: 20px;
    height: 20px;
}

.icon-item-wrap{
    position: relative;
}
.icon-circle-wrap:hover{
    border-color:#888888;
}
.qrcode-pop{
    display: none;
    position:absolute;
    top:calc(100% + 10px);
    left:50%;
    transform:translateX(-50%);
    padding:8px;
    background:#ffffff;
    border:1px solid #ddd;
    border-radius:6px;
    z-index:99;
}
.qrcode-pop img{
    width:120px;
    height:120px;
    display:block;
}




/* 导航 */
.header-nav {
    border-top: 1px solid #EBE8E8;
    height: 60px;
}
.nav-wrap {
    width: 1280px;
    margin: 0 auto;
    display: flex;
    padding: 0;
    list-style: none;
}
.nav-item {
    position: relative;
    padding-bottom: 40px;
    flex: 1;
    text-align: center;
}
.nav-item > a {
    color: #333333;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    padding-top: 18px;
}
.nav-item > a .arrow-img {
    margin-left: 6px;
}
.nav-item > a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.6);
    width: 80px;
    height: 16px;
    background: url("../images/top-mark.png") no-repeat center / contain;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nav-item:hover > a::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}
.arrow-img {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #666;
    transition: transform 0.2s;
}
.nav-item:hover .arrow-img {
    transform: rotate(180deg);
}
.sub-menu {
    position: absolute;
    top: 59px;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: none;
    z-index: 99;
    padding: 0;
    margin: 0;
    list-style: none;
}
.sub-menu li {
    height: 42px;
    line-height: 42px;
    padding: 0 18px;
}
.sub-menu li a {
    color: #004EA2;
    font-size: 14px;
    display: block;
}
.sub-menu li:hover {
    background-color: #f0f5ff;
}
.nav-item:hover .sub-menu {
    display: block;
}





/*****底部友情链接****/
.friend-link-box span{
    color: #FFFFFF;
    font-size: 18px;
}

.friend-link-wrap {
    background-color: #2066B2;
}
.friend-link-box {
    max-width: 1280px;
    padding: 20px 0;
    margin: 0 auto;
    margin-top: 30px;
    font-size: 18px;
}
.friend-link-box a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 12px;
}
.friend-link-box a:hover {
    text-decoration: underline;
}

.footer-container {
    background-color: #004EA2;
    color: #fff;
}
.footer-wrap {
    width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 0;
}
.footer-left {
    flex: 1;
}
.hospital-name {
    font-size: 32px;
    margin-bottom: 16px;
}
.contact-info {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 16px;
}
.copyright-text {
    font-size: 18px;
    line-height: 1.8;
    color: #FFFFFF;
}
.footer-right {
    display: flex;
}
.qrcode-item + .qrcode-item{
    margin-left:60px;
}
.qrcode-item {
    text-align: center;
}
.qrcode-title {
    font-size: 24px;
    margin-bottom: 6px;
}
.qrcode-desc {
    font-size: 14px;
    color: #FFFFFF;
    margin-bottom:12px;
}
.white-line {
    width: 36px;
    height: 3px;
    background-color: #ffffff;
    margin: 0 auto 14px;
}
.qrcode-img {
    width: 100px;
    height: 100px;
    background:#fff;
    display: block;
    margin: 0 auto;
}

/********科室导航******/
.dept-grid{
    display:grid;
    grid-template-columns: repeat(3,1fr);
    padding-top: 10px;
}

.dept-card{
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    margin-bottom:28px;
    padding-bottom: 1px;
    box-sizing: border-box;
}
.dept-card:nth-child(3n+1){margin-right:14px;}
.dept-card:nth-child(3n+2){margin:0 14px 28px;}
.dept-card:nth-child(3n+3){margin-left:14px;}

.dept-card:hover{
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.card-img-box{
    width:100%;
    height:167px;
    overflow:hidden;
    position:relative;
}
.card-img-box img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.img-mask{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-color:rgba(0, 78, 162, 0.8);
    padding:30px;
    box-sizing:border-box;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.dept-card:hover .img-mask{
    transform: translateY(0);
}

.mask-title{
    font-size:22px;
    color:#ffffff;
    text-align:center;
    margin:0 0 20px;
}
.mask-text{
    color:#ffffff;
    font-size:16px;
    line-height:1.7;
}

.card-bottom{
    padding:7px 0;
    padding-left:0px;
    display:flex;
    align-items:center;
    gap:16px;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.desc-line {
  width: 60px;
  height: 1px;
  position: relative;
  margin-bottom: 7px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.desc-line::after{
    content: '';
    display:block;
    width:60px;
    height:1px;
    background:#D3D3D3;
    left: 0;
    position: absolute;
}

.desc-text{
    font-size:16px;
    color:#888888;
    margin:0;
    line-height:1.6;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    padding-bottom: 18px;
    /* hover生效的右内边距，写在hover里，平时不生效 */
    padding-right:0;
    box-sizing: border-box;
}

/* hover动作 */
.dept-card:hover .card-bottom{
    transform: translateX(24px);
}
.dept-card:hover .desc-line{
    transform: translateX(24px);
}
.dept-card:hover .desc-text{
    transform: translateX(24px);
    padding-right: 25px;
}

.dept-name{
    font-size:22px;
    color:#333333;
}

.look-intro{
    font-size:14px;
    color:#004EA2;
    text-decoration:none;
    opacity:0;
    transition:0.3s;
    white-space:nowrap;
    padding-left: 10px;
}
.dept-card:hover .look-intro{
    opacity:1;
}




/*******翻页*****/
.fenye {
    margin:40px 0;
    text-align:center;
}
.fenye a,
.fenye span.curr {
    display: inline‑block;
    min-width:40px;
    height:40px;
    line-height:40px;
    margin:0 4px;
    padding:0 12px;
    font-size:16px;
    border:1px solid #dddddd;
    border-radius:6px;
    text-decoration:none;
    vertical-align:middle;
    box-sizing:border-box;
}
.fenye a {
    color:#333;
    background:#ffffff;
    transition: all 0.2s;
}
.fenye a:hover {
    border-color:#004EA2;
    color:#004EA2;
}
.fenye span.curr {
    background:#004EA2;
    color:#fff;
    border-color:#004EA2;
}