:root {
    --portal-primary: #1e5aa8;
    --portal-primary-dark: #153f78;
    --portal-primary-soft: #eaf2fb;
    --portal-accent: #2d78d2;
    --portal-surface: #ffffff;
    --portal-surface-alt: #f5f8fc;
    --portal-border: #d7e2f0;
    --portal-text: #1f2d3d;
    --portal-text-muted: #61738b;
    --portal-footer-bg: #16365f;
    --portal-footer-text: #d9e6f7;
    --portal-shadow: 0 10px 30px rgba(22, 54, 95, 0.08);
    --portal-radius: 10px;
    --portal-container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.hospital-portal-theme {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--portal-text);
    background: linear-gradient(180deg, #f4f8fd 0%, #ffffff 220px);
    line-height: 1.7;
}

a {
    color: var(--portal-primary);
    text-decoration: none;
}

a:hover {
    color: var(--portal-accent);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(var(--portal-container), calc(100% - 32px));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.portal-topbar {
    background: var(--portal-primary-dark);
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
}

.portal-topbar__inner,
.portal-branding__inner,
.portal-columns,
.portal-hero__grid,
.portal-footer__links,
.portal-article-layout {
    display: flex;
    gap: 24px;
}

.portal-topbar__inner,
.portal-branding__inner {
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.portal-topbar a {
    color: rgba(255, 255, 255, 0.86);
    margin-left: 16px;
}

.portal-branding {
    background: linear-gradient(135deg, #ffffff 0%, #edf4fc 100%);
    border-bottom: 1px solid var(--portal-border);
}

.portal-branding__identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.portal-branding__mark {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-accent) 100%);
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    box-shadow: var(--portal-shadow);
}

.portal-branding__logo {
    display: block;
    width: auto;
    max-width: 160px;
    height: auto;
    max-height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}

.portal-branding__eyebrow {
    margin: 0 0 6px;
    color: var(--portal-text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.portal-branding__title {
    margin: 0;
    font-size: 30px;
    color: var(--portal-primary-dark);
}

.portal-branding__subtitle {
    margin: 8px 0 0;
    color: var(--portal-text-muted);
}

.portal-search {
    display: flex;
    align-items: center;
    min-width: 320px;
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: 999px;
    padding: 6px;
    box-shadow: var(--portal-shadow);
}

.portal-search input {
    flex: 1;
    border: 0;
    outline: none;
    padding: 10px 14px;
    font-size: 14px;
    background: transparent;
}

.portal-search button,
.portal-button {
    border: 0;
    cursor: pointer;
}

.portal-search button {
    border-radius: 999px;
    background: var(--portal-primary);
    color: #fff;
    padding: 10px 18px;
    font-weight: 600;
}

.portal-nav {
    background: var(--portal-primary);
    box-shadow: 0 8px 24px rgba(30, 90, 168, 0.12);
}

.portal-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.portal-nav__list a {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 18px;
    color: #fff;
    font-weight: 600;
}

.portal-nav__list a:hover,
.portal-nav__list a:focus {
    background: rgba(255, 255, 255, 0.14);
}

.portal-breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--portal-border);
}

.portal-breadcrumb .container {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 46px;
    color: var(--portal-text-muted);
    font-size: 14px;
}

.portal-main,
.site-main {
    padding-bottom: 48px;
}

.portal-section,
.portal-hero,
.portal-page-hero {
    padding-top: 32px;
}

.portal-hero__grid {
    align-items: stretch;
}

.portal-hero__main,
.portal-hero__aside,
.portal-column,
.portal-panel,
.portal-article-shell,
.portal-aside-shell {
    min-width: 0;
}

.portal-hero__main {
    flex: 1.4;
    background: linear-gradient(135deg, rgba(30, 90, 168, 0.96) 0%, rgba(45, 120, 210, 0.9) 100%);
    color: #fff;
    border-radius: 22px;
    padding: 42px;
    box-shadow: var(--portal-shadow);
}

.portal-hero__main h2,
.portal-page-hero h2 {
    margin: 14px 0;
    line-height: 1.3;
}

.portal-hero__main h2 {
    font-size: 42px;
}

.portal-hero__main p {
    max-width: 720px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.92);
}

.portal-hero__actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.portal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 700;
}

.portal-button--primary {
    background: #fff;
    color: var(--portal-primary-dark);
}

.portal-button--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.portal-hero__aside {
    flex: 0.86;
}

.portal-panel,
.portal-article-card,
.portal-page-hero,
.portal-expert-card,
.portal-article-shell,
.portal-aside-shell {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow);
}

.portal-panel {
    padding: 22px;
}

.portal-panel + .portal-panel {
    margin-top: 22px;
}

.portal-panel__header,
.portal-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.portal-section-heading h2,
.portal-panel__header h3,
.portal-footer h3 {
    margin: 0;
    color: var(--portal-primary-dark);
}

.portal-list,
.portal-bullet-list,
.portal-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.portal-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--portal-border);
}

.portal-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.portal-list li span,
.portal-meta-line,
.portal-article-card__meta,
.portal-text-block,
.portal-footer__hint {
    color: var(--portal-text-muted);
}

.portal-columns--news > .portal-column:first-child {
    flex: 1.4;
}

.portal-columns--news > .portal-column--sidebar {
    flex: 0.86;
}

.portal-columns--equal > * {
    flex: 1;
}

.portal-featured-list {
    display: grid;
    gap: 18px;
}

.portal-article-card__inner {
    display: block;
    padding: 22px;
}

.portal-article-card__tag,
.portal-section-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--portal-primary-soft);
    color: var(--portal-primary);
    font-size: 13px;
    font-weight: 700;
}

.portal-article-card h3 {
    margin: 14px 0 10px;
    color: var(--portal-primary-dark);
    font-size: 22px;
}

.portal-article-card p {
    margin: 0;
}

.portal-article-card__meta {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 14px;
}

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

.portal-link-grid a {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--portal-surface-alt);
    border: 1px solid var(--portal-border);
    text-align: center;
    font-weight: 600;
}

.portal-section--soft {
    padding-bottom: 4px;
}

.portal-expert-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.portal-expert-card {
    padding: 24px;
    text-align: center;
}

.portal-expert-card__avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-accent) 100%);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.portal-expert-card h3 {
    margin: 0 0 8px;
    color: var(--portal-primary-dark);
}

.portal-page-hero {
    background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
    padding-bottom: 26px;
}

.portal-page-hero--compact h2 {
    font-size: 32px;
}

.portal-page-hero h2 {
    font-size: 36px;
    color: var(--portal-primary-dark);
}

.portal-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.portal-article-layout {
    align-items: flex-start;
}

.portal-article-shell {
    flex: 1.45;
    padding: 34px;
    line-height: 1.9;
}

.portal-article-shell p:first-child {
    margin-top: 0;
}

.portal-aside-shell {
    flex: 0.8;
    padding: 22px;
}

.portal-footer {
    margin-top: 40px;
    background: linear-gradient(180deg, var(--portal-footer-bg) 0%, #102746 100%);
    color: var(--portal-footer-text);
    padding: 42px 0 28px;
}

.portal-footer h3 {
    color: #fff;
    margin-bottom: 12px;
}

.portal-footer__links > div {
    flex: 1;
}

.portal-footer li {
    padding: 6px 0;
    color: rgba(217, 230, 247, 0.9);
}

.portal-footer a {
    color: #fff;
}

.portal-footer__bottom {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
}

.portal-footer__bottom p {
    margin: 8px 0;
}

@media (max-width: 1024px) {
    .portal-topbar__inner,
    .portal-branding__inner,
    .portal-hero__grid,
    .portal-columns,
    .portal-footer__links,
    .portal-article-layout {
        flex-direction: column;
    }

    .portal-search {
        min-width: 0;
        width: 100%;
    }

    .portal-expert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .container {
        width: min(var(--portal-container), calc(100% - 24px));
    }

    .portal-branding__title {
        font-size: 24px;
    }

    .portal-hero__main {
        padding: 28px 22px;
    }

    .portal-hero__main h2,
    .portal-page-hero h2 {
        font-size: 28px;
    }

    .portal-nav__list a {
        min-height: 46px;
        padding: 0 14px;
        font-size: 14px;
    }

    .portal-hero__actions,
    .portal-meta-line {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-link-grid,
    .portal-expert-grid {
        grid-template-columns: 1fr;
    }

    .portal-article-shell,
    .portal-panel,
    .portal-article-card__inner,
    .portal-aside-shell {
        padding: 18px;
    }
}

.theme1-home-modules {
    padding: 32px 0 12px;
    background: linear-gradient(180deg, rgba(31, 95, 174, 0.06) 0%, rgba(247, 250, 252, 0.96) 100%);
}

.theme1-home-module {
    margin-bottom: 22px;
}

.theme1-home-module__shell {
    padding: 30px 34px;
    background: var(--theme1-module-surface, #ffffff);
    border: 1px solid rgba(31, 95, 174, 0.12);
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(22, 54, 95, 0.08);
}

.theme1-home-module__heading {
    max-width: 760px;
    margin: 0 auto 20px;
    text-align: center;
}

.theme1-home-module__eyebrow {
    margin-bottom: 10px;
    color: var(--theme1-module-accent, #1f5fae);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.theme1-home-module__title {
    margin: 0;
    color: #17365d;
    font-size: clamp(1.8rem, 2.8vw, 2.75rem);
    line-height: 1.2;
}

.theme1-home-module__lead {
    max-width: 680px;
    margin: 14px auto 0;
    color: var(--theme1-module-muted, #6b7280);
    font-size: 1rem;
    line-height: 1.85;
}

.theme1-home-module__feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.8fr);
    gap: 28px;
    align-items: center;
}

.theme1-home-module__feature-row--no-media {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
}

.theme1-home-module__copy {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
}

.theme1-home-module__copy--centered {
    max-width: 760px;
}

.theme1-home-module__media img {
    width: 100%;
    display: block;
    border-radius: 16px;
    object-fit: cover;
    max-height: 340px;
}

.theme1-home-module__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--theme1-module-accent, #1f5fae);
    color: #fff;
    font-weight: 700;
}

.theme1-home-module__stats,
.theme1-home-module__grid,
.theme1-home-module__article-list,
.theme1-home-module__chart-list {
    display: grid;
    gap: 16px;
    margin-top: 8px;
}

.theme1-home-module__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.theme1-home-module__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme1-home-module__article-list-wrap {
    margin-top: 8px;
}

.theme1-home-module__article-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme1-home-module__article-more {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.theme1-home-module__chart-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme1-home-module__stat-card,
.theme1-home-module__grid-card,
.theme1-home-module__chart-item {
    padding: 18px 18px;
    background: rgba(247, 250, 252, 0.88);
    border: 1px solid rgba(31, 95, 174, 0.08);
    border-radius: 14px;
    text-align: center;
}

.theme1-home-module__stat-card strong,
.theme1-home-module__chart-item strong {
    display: block;
    color: #17365d;
    font-size: 1.3rem;
    line-height: 1.2;
}

.theme1-home-module__stat-card span,
.theme1-home-module__chart-item span,
.theme1-home-module__grid-card p {
    display: block;
    margin-top: 8px;
    color: var(--theme1-module-muted, #6b7280);
    line-height: 1.7;
}

.theme1-home-module__grid-card h3 {
    margin: 0;
    color: #17365d;
    font-size: 1.05rem;
}

.theme1-home-module__article-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(247, 250, 252, 0.88);
    border: 1px solid rgba(31, 95, 174, 0.08);
    border-radius: 14px;
    color: #17365d;
}

.theme1-home-module__article-item time {
    flex-shrink: 0;
    color: var(--theme1-module-muted, #6b7280);
    font-size: 0.85rem;
}

.theme1-home-module__custom-html {
    max-width: 900px;
    margin: 0 auto;
}

.theme1-home-module__empty {
    grid-column: 1 / -1;
    width: 100%;
    padding: 18px;
    text-align: center;
    color: var(--theme1-module-muted, #6b7280);
    background: rgba(247, 250, 252, 0.88);
    border: 1px dashed rgba(31, 95, 174, 0.18);
    border-radius: 14px;
}

@media (max-width: 960px) {
    .theme1-home-module__feature-row,
    .theme1-home-module__stats,
    .theme1-home-module__grid,
    .theme1-home-module__article-list,
    .theme1-home-module__chart-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .theme1-home-modules {
        padding: 24px 0 8px;
    }

    .theme1-home-module__shell {
        padding: 22px 18px;
    }

    .theme1-home-module__title {
        font-size: 1.65rem;
    }
}


.portal-hero__main--with-carousel {
    display: grid;
    gap: 24px;
}

.portal-hero-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.portal-hero-carousel__item {
    min-width: 0;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.portal-hero-carousel__media {
    display: block;
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.08);
}

.portal-hero-carousel__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-hero-carousel__caption {
    padding: 14px 16px 16px;
}

.portal-hero-carousel__caption a,
.portal-hero-carousel__caption span {
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 600;
}

.portal-hero-carousel__caption a:hover {
    color: rgba(255, 255, 255, 0.84);
}

.portal-hero-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.portal-hero-carousel__item {
    min-width: 0;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.portal-hero-carousel__media {
    display: block;
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.08);
}

.portal-hero-carousel__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-hero-carousel__caption {
    padding: 14px 16px 16px;
}

.portal-hero-carousel__caption a,
.portal-hero-carousel__caption span {
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 600;
}

.portal-hero-carousel__caption a:hover {
    color: rgba(255, 255, 255, 0.84);
}