/* Hospital homepage. Prefixed classes avoid collisions with the existing CMS theme. */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px
}

@media (min-width: 760px) {
    .hh-brand img {
        width: 50%;
        height: auto;
    }
}

body.hospital-site {
    margin: 0;
    background: #fff;
    color: #444;
    font: 16px/1.6 "Microsoft YaHei", "PingFang SC", Arial, sans-serif
}

.hospital-site * {
    box-sizing: border-box
}

.hospital-site a {
    color: inherit;
    text-decoration: none
}

.hospital-site button,
.hospital-site input {
    font: inherit
}

.hospital-site button {
    cursor: pointer
}

.hospital-site button:focus-visible,
.hospital-site a:focus-visible {
    outline: 3px solid #a77b3c;
    outline-offset: 5px
}

.hospital-site img {
    max-width: 100%;
    vertical-align: middle
}

.hospital-site h1,
.hospital-site h2,
.hospital-site h3,
.hospital-site p {
    margin: 0
}

.hh-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto
}

.hh-icon {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0
}

.hh-reverse {
    transform: rotate(180deg)
}

.hh-skip {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 100;
    background: white;
    padding: 12px
}

.hh-skip:focus {
    top: 12px
}

.hh-header {
    background: #f9f8f5;
    position: relative;
    z-index: 20
}

.hh-top {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.hh-brand {
    width: 240px;
    display: flex
}

.hh-brand img {
    width: 100%;
    height: auto
}

.hh-tools {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 12px;
    color: #171717
}

.hh-tools>a,
.hh-tools>button {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 0;
    padding: 0;
    color: inherit
}

.hh-tools .hh-icon {
    width: 18px;
    height: 18px
}

.hh-tools .hh-top-qr {
    gap: 10px;
    text-align: left;
    line-height: 1.8
}

.hh-top-qr img {
    width: 56px;
    height: 57px
}

.hh-nav {
    border-top: 1px solid #e8e0d3;
    height: 50px
}

.hh-nav>.hh-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 100%
}

.hh-nav a {
    position: relative;
    font-size: 18px;
    display: flex;
    align-items: center;
    color: #171717
}

.hh-nav a:hover {
    color: #a77b3c
}

.hh-nav .hh-current:before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-top: 4px solid #a77b3c;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent
}

.hh-menu-toggle {
    display: none
}

.hh-hero {
    position: relative;
    height: clamp(400px, 41.66667vw, 800px);
    overflow: hidden;
    background: #82bce4
}

.hh-hero-fallback,
.hh-slides,
.hh-slide {
    position: absolute;
    inset: 0
}

.hh-hero-fallback img,
.hh-slide>img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.hh-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s
}

.hh-slide.is-active {
    opacity: 1;
    visibility: visible
}

.hh-banner-text {
    position: absolute;
    top: 34%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-shadow: 0 2px 12px #0007
}

.hh-banner-text h2 {
    font-size: 46px
}

.hh-banner-text strong {
    font-size: 28px
}

.hh-slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px
}

.hh-slide-dots button {
    border: 1px solid white;
    width: 10px;
    height: 10px;
    padding: 0;
    background: transparent;
    border-radius: 50%
}

.hh-slide-dots .is-active {
    background: white
}

.hh-notice {
    height: 60px;
    background: #e7e7e7
}

.hh-notice>.hh-container {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.hh-notice p {
    display: flex;
    min-width: 0;
    font-size: 20px;
    color: #555
}

.hh-notice strong {
    font-weight: 400;
    color: #171717;
    white-space: nowrap
}

.hh-notice p span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.hh-notice-controls {
    display: flex;
    align-items: center;
    gap: 25px;
    color: #999
}

.hh-notice-controls button {
    background: none;
    border: 0;
    padding: 8px;
    color: #888
}

.hh-notice-controls .hh-icon {
    width: 19px;
    height: 19px
}

.hh-notice-controls a {
    margin-left: 25px;
    white-space: nowrap;
    font-size: 18px
}

.hh-services {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin-top: 68px;
    border: 1px solid #ddd;
    min-height: 150px
}

.hh-services>a,
.hh-services>button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #555;
    font-size: 18px;
    background: white;
    border: 0;
    border-right: 1px solid #ddd;
    padding: 20px 8px
}

.hh-services>:last-child {
    border-right: 0
}

.hh-services>a>span,
.hh-services>button>span {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(150deg, #dfcfb5, #f4f0e9);
    color: #a77b3c;
    margin-bottom: 0
}

.hh-services .hh-icon {
    width: 38px;
    height: 38px
}

.hh-services>:hover {
    background: #fcfaf6;
    color: #a77b3c
}

.hh-experts {
    padding: 130px 0 145px
}

.hh-title {
    text-align: center;
    font-size: 46px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 2px;
    margin: 0 0 52px !important;
    color: #444
}

.hh-expert-wrap {
    position: relative
}

.hh-expert-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 26px;
    overflow-x: hidden;
    scroll-snap-type: x mandatory
}

.hh-doctor {
    min-width: 0;
    flex: 0 0 calc((100% - 78px)/4);
    scroll-snap-align: start
}

.hh-doctor>a {
    display: block
}

.hh-doctor img {
    width: 100%;
    height: auto;
    aspect-ratio: 280/331;
    object-fit: cover;
    display: block
}

.hh-doctor h2 {
    color: #a77b3c;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.3;
    margin-top: 26px
}

.hh-doctor p {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 12px;
    color: #6b6b6b
}

.hh-expert-prev,
.hh-expert-next {
    position: absolute;
    top: 140px;
    padding: 0;
    background: none;
    border: 0;
    color: #d1bd9b
}

.hh-expert-prev {
    left: -88px
}

.hh-expert-next {
    right: -88px
}

.hh-expert-wrap>button .hh-icon {
    width: 52px;
    height: 52px;
    stroke-width: 1.6
}

.hh-expert-wrap>button:disabled {
    opacity: .35;
    cursor: default
}

.hh-medical {
    background: #f9f8f5;
    padding: 80px 0 90px
}

.hh-medical .hh-title {
    margin-bottom: 72px !important
}

.hh-centers {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px
}

.hh-center {
    border: 0;
    border-radius: 20px;
    background: #f1ebe2;
    min-height: 380px;
    padding: 68px 28px 20px;
    color: #444;
    display: flex;
    align-items: center;
    flex-direction: column;
    transition: background .2s, transform .2s
}

.hh-center:hover {
    background: #eae0d1;
    transform: translateY(-5px)
}

.hh-center>.hh-icon {
    color: #a77b3c;
    width: 116px;
    height: 116px;
    stroke-width: 1.8;
    margin-bottom: 46px
}

.hh-center>strong {
    font-size: 32px;
    white-space: nowrap;
    font-weight: 500;
    margin-top: 45px;
}

.hh-center>span {
    align-self: flex-end;
    font-size: 16px;
    margin-top: auto;
    padding-top: 36px
}

.hh-tech {
    margin-top: 88px
}

.hh-tech h3 {
    color: #a77b3c;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 34px
}

.hh-tech-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px 24px
}

.hh-tech-grid a {
    border: 2px solid #a77b3c;
    background: transparent;
    border-radius: 40px;
    color: #555;
    font-size: 18px;
    padding: 4px 6px;
    line-height: 1.65;
    white-space: nowrap;
    text-align: center;
}

.hh-tech-grid a:hover,
.hh-tech-grid .is-active {
    background: #a77b3c;
    color: white
}

.hh-news {
    padding-top: 136px;
    padding-bottom: 148px
}

.hh-news .hh-title {
    margin-bottom: 74px !important
}

.hh-news-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 30px
}

.hh-feature {
    display: block
}

.hh-feature>img {
    width: 100%;
    height: 310px;
    object-fit: cover;
    display: block
}

.hh-feature-copy {
    display: flex;
    gap: 16px;
    margin-top: -18px;
    position: relative;
    align-items: flex-start;
    padding-left: 16px
}

.hh-feature-copy>time {
    background: #a77b3c;
    color: white;
    min-width: 64px;
    text-align: center;
    padding: 5px 7px;
    line-height: 1.2
}

.hh-feature-copy time b {
    font: italic 32px Georgia, serif
}

.hh-feature-copy time span {
    display: block;
    font-size: 11px
}

.hh-feature-copy>div {
    padding-top: 24px
}

.hh-feature-copy h3 {
    font-size: 16px;
    font-weight: 500;
    color: #171717;
    margin-bottom: 5px
}

.hh-feature-copy p {
    font-size: 14px;
    line-height: 1.85;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.hh-news-list {
    list-style: none;
    margin: 0;
    padding: 0
}

.hh-news-list li {
    margin-bottom: 18px
}

.hh-news-list a {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0
}

.hh-news-list time {
    width: 51px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1.2;
    color: #888
}

.hh-news-list time b {
    font: italic 21px Georgia, serif
}

.hh-news-list time span {
    font-size: 11px;
    display: block
}

.hh-news-list p {
    font-size: 16px;
    overflow: hidden;
    color: #222
}

.hh-news-list a:hover p {
    color: #a77b3c
}

.hh-news-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.hh-more-news {
    display: inline-block;
    margin-top: auto;
    background: #a77b3c;
    padding: 3px 10px;
    color: white !important;
    font-size: 16px
}

.hh-footer {
    background: #f9f8f5;
    position: relative;
    min-height: 439px
}

.hh-footer:before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hh-footer-pattern) center top/cover no-repeat;
    opacity: .35;
    pointer-events: none
}

.hh-footer-inner {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding-top: 106px;
    padding-bottom: 64px
}

.hh-contact {
    flex-shrink: 0
}

.hh-footer-brand {
    display: block;
    width: 365px;
    margin-bottom: 54px
}

.hh-footer-brand img {
    width: 100%
}

.hh-contact p {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    color: #171717;
    font-size: 17px;
    font-weight: 600
}

.hh-contact p>.hh-icon {
    width: 35px;
    height: 35px;
    border: 1px solid #a77b3c;
    border-radius: 50%;
    padding: 7px;
    color: #a77b3c;
    stroke-width: 1
}

.hh-contact small {
    font-size: 13px;
    font-weight: 400;
    margin-left: -10px
}

.hh-socials {
    display: flex;
    gap: 10px;
    padding-bottom: 1px
}

.hh-socials button {
    padding: 0;
    border: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    width: 102px
}

.hh-socials img {
    width: 100%;
    display: block
}

.hh-copyright {
    position: relative;
    text-align: center;
    font-size: 12px;
    padding: 0 24px 12px;
    color: #999
}

.hh-copyright:empty {
    display: none
}

.hh-floating {
    position: fixed;
    right: 0;
    top: 44%;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.hh-floating>a,
.hh-floating>button {
    width: 60px;
    min-height: 57px;
    border: 0;
    border-radius: 9px 0 0 9px;
    color: white;
    background: #505c64b5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 8px 2px;
    gap: 4px;
    font-size: 14px;
    line-height: 1.2
}

.hh-floating .hh-icon {
    width: 25px;
    height: 25px;
    stroke-width: 2
}

.hh-floating>:hover {
    background: #a77b3c
}

.hh-floating .hh-back-top {
    background: #cfb995;
    display: none
}

.hh-back-top.is-visible {
    display: flex
}

.hh-back-top .hh-icon {
    transform: rotate(-90deg);
    width: 42px;
    height: 42px
}

.hh-dialog {
    position: fixed;
    inset: 0;
    border: 0;
    border-radius: 12px;
    padding: 38px;
    max-width: min(500px, calc(100% - 32px));
    max-height: 85vh;
    overflow: auto;
    color: #444;
    box-shadow: 0 20px 80px #0003;
    background: white
}

.hh-dialog::backdrop {
    background: #0007
}

.hh-dialog h2 {
    font-size: 26px;
    color: #a77b3c;
    margin: 0 28px 24px 0
}

.hh-dialog-close {
    position: absolute;
    top: 8px;
    right: 14px;
    border: 0;
    background: none;
    font-size: 30px;
    color: #888
}

.hh-dialog-content {
    text-align: center;
    line-height: 1.9
}

.hh-dialog-content img {
    display: block;
    width: 190px;
    margin: 16px auto
}

.hh-dialog-content a {
    color: #a77b3c
}

.hh-dialog-content form {
    display: flex;
    gap: 8px
}

.hh-dialog-content input {
    min-width: 0;
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px
}

.hh-dialog-content form button {
    border: 0;
    background: #a77b3c;
    color: white;
    padding: 8px 16px;
    border-radius: 4px
}

.hh-search-status {
    font-size: 13px;
    margin-top: 14px !important
}

@media(min-width:1500px) {
    .hh-experts {
        padding-top: 137px;
        padding-bottom: 145px
    }

    .hh-experts .hh-title {
        margin-bottom: 76px !important
    }
}

@media(max-width:1450px) {
    .hh-expert-prev {
        left: -34px
    }

    .hh-expert-next {
        right: -34px
    }

    .hh-expert-wrap>button .hh-icon {
        width: 30px;
        height: 45px
    }

    .hh-container {
        width: min(1200px, calc(100% - 100px))
    }

    .hh-floating>a,
    .hh-floating>button {
        width: 56px;
        min-height: 60px;
        font-size: 12px
    }

    .hh-floating .hh-icon {
        width: 28px;
        height: 28px
    }
}

@media(max-width:1100px) {
    .hh-brand {
        width: 240px
    }

    .hh-tools {
        gap: 14px
    }

    .hh-tools .hh-top-qr span {
        display: none
    }

    .hh-contact {
        flex-shrink: 1
    }

    .hh-socials {
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: 360px
    }

    .hh-socials button {
        width: 85px
    }

    .hh-footer-inner {
        gap: 30px
    }

    .hh-tech-grid {
        gap: 14px
    }

    .hh-tech-grid a {
        font-size: 15px
    }

    .hh-center {
        padding: 45px 16px 20px;
        min-height: 320px
    }

    .hh-center>strong {
        font-size: 27px
    }

    .hh-title {
        font-size: 46px
    }

    .hh-doctor h2 {
        font-size: 18px
    }

    .hh-doctor p {
        font-size: 17px
    }

    .hh-center>.hh-icon {
        width: 95px;
        height: 95px
    }

    .hh-news-list p {
        font-size: 13px
    }
}

@media(max-width:760px) {
    html {
        scroll-padding-top: 12px
    }

    .hh-container {
        width: calc(100% - 36px)
    }

    .hh-top {
        height: 76px;
        gap: 10px
    }

    .hh-brand {
        width: min(80%, 430px)
    }

    .hh-tools {
        display: none
    }

    .hh-menu-toggle {
        display: flex;
        width: 32px;
        flex-direction: column;
        gap: 5px;
        padding: 4px;
        background: none;
        border: 0
    }

    .hh-menu-toggle span {
        display: block;
        height: 2px;
        width: 24px;
        background: #a77b3c
    }

    .hh-nav {
        display: none;
        height: auto
    }

    .hh-nav.is-open {
        display: block
    }

    .hh-nav>.hh-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        padding: 12px 0;
        gap: 0
    }

    .hh-nav a {
        font-size: 16px;
        padding: 10px
    }

    .hh-nav .hh-current:before {
        display: none
    }

    .hh-hero {
        height: 44vw;
        min-height: 225px;
        max-height: 400px
    }

    .hh-hero-fallback img {
        object-position: center
    }

    .hh-banner-text h2 {
        font-size: 24px
    }

    .hh-banner-text strong {
        font-size: 18px
    }

    .hh-banner-text p {
        font-size: 14px
    }

    .hh-notice {
        height: 48px
    }

    .hh-notice p {
        font-size: 14px
    }

    .hh-notice-controls {
        gap: 0
    }

    .hh-notice-controls button {
        display: none
    }

    .hh-notice-controls a {
        font-size: 12px;
        margin-left: 0
    }

    .hh-services {
        margin-top: 28px;
        grid-template-columns: repeat(3, 1fr);
        min-height: 0
    }

    .hh-services>a,
    .hh-services>button {
        font-size: 14px;
        padding: 18px 4px;
        gap: 6px
    }

    .hh-services>:nth-child(3) {
        border-right: 0
    }

    .hh-services>:nth-child(-n+3) {
        border-bottom: 1px solid #ddd
    }

    .hh-services>a>span,
    .hh-services>button>span {
        width: 52px;
        height: 52px
    }

    .hh-services .hh-icon {
        width: 29px;
        height: 29px
    }

    .hh-experts {
        padding: 58px 0 64px
    }

    .hh-title {
        font-size: 32px;
        letter-spacing: 1px;
        margin-bottom: 32px !important
    }

    .hh-expert-track {
        display: flex;
        gap: 18px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        padding-bottom: 12px
    }

    .hh-doctor {
        flex: 0 0 calc((100% - 18px)/2);
        scroll-snap-align: start
    }

    .hh-doctor h2 {
        font-size: 20px;
        margin-top: 15px
    }

    .hh-doctor p {
        font-size: 14px;
        margin-top: 8px
    }

    .hh-expert-prev,
    .hh-expert-next {
        top: 30%;
        background: #ffffffbf;
        border-radius: 50%
    }

    .hh-expert-prev {
        left: -12px
    }

    .hh-expert-next {
        right: -12px
    }

    .hh-expert-wrap>button .hh-icon {
        width: 26px;
        height: 32px
    }

    .hh-medical {
        padding: 58px 0 60px
    }

    .hh-medical .hh-title {
        margin-bottom: 32px !important
    }

    .hh-centers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px
    }

    .hh-center {
        min-height: 240px;
        border-radius: 14px;
        padding: 30px 18px 16px
    }

    .hh-center>.hh-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 24px
    }

    .hh-center>strong {
        font-size: 23px
    }

    .hh-center>span {
        font-size: 12px;
        padding-top: 22px
    }

    .hh-tech {
        margin-top: 38px
    }

    .hh-tech h3 {
        font-size: 22px;
        margin-bottom: 20px
    }

    .hh-tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px
    }

    .hh-tech-grid a {
        font-size: 14px;
        padding: 7px 3px;
        border-width: 1px
    }

    .hh-news {
        padding-top: 58px;
        padding-bottom: 64px
    }

    .hh-news .hh-title {
        margin-bottom: 32px !important
    }

    .hh-news-grid {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .hh-feature>img {
        height: auto;
        aspect-ratio: 570/310
    }

    .hh-feature-copy h3 {
        font-size: 15px
    }

    .hh-feature-copy p {
        font-size: 12px
    }

    .hh-news-list li {
        margin-bottom: 20px
    }

    .hh-news-list p {
        font-size: 14px
    }

    .hh-news-list a {
        gap: 12px
    }

    .hh-more-news {
        margin-top: 8px
    }

    .hh-footer-inner {
        display: block;
        padding-top: 48px;
        padding-bottom: 32px
    }

    .hh-footer-brand {
        width: min(365px, 95%);
        margin-bottom: 26px
    }

    .hh-contact p {
        font-size: 14px;
        gap: 10px;
        flex-wrap: wrap;
        margin-top: 14px
    }

    .hh-contact small {
        font-size: 11px
    }

    .hh-socials {
        margin-top: 32px;
        max-width: none;
        justify-content: flex-start;
        gap: 8px
    }

    .hh-socials button {
        width: calc((100% - 32px)/5)
    }

    .hh-floating {
        top: auto;
        bottom: 280px;
        gap: 5px
    }

    .hh-floating>a,
    .hh-floating>button {
        width: 44px;
        min-height: 46px;
        font-size: 10px;
        border-radius: 6px 0 0 6px;
        padding: 5px 1px;
        gap: 2px
    }

    .hh-floating .hh-icon {
        width: 22px;
        height: 22px
    }

    .hh-floating>a:first-child {
        display: none
    }

    .hh-dialog {
        padding: 30px 22px
    }

    .hh-dialog h2 {
        font-size: 22px
    }

    .hh-dialog-content {
        font-size: 15px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *:before,
    *:after {
        transition: none !important;
        animation: none !important
    }
}