/* =====================================================================
   云南省超声技术质量控制中心 - 前台样式
   设计基调：现代医疗专业风（Modern Medical Professional）
   ===================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
    /* 品牌主色：医疗蓝 #1B5E8C 梯度 */
    --c-brand-900: #0A2E45;
    --c-brand-800: #1B5E8C;
    --c-brand-700: #226E9E;
    --c-brand-600: #2B82B5;
    --c-brand-400: #74B2D3;
    --c-brand-100: #E9F2F8;
    /* 辅助色：治愈青绿 #0E7C86 */
    --c-accent: #0E7C86;
    --c-accent-soft: #E5F3F4;
    --c-accent-deep: #0B646C;
    --c-success: #16A34A;
    --c-danger: #E11D48;
    --c-warn: #F59E0B;

    --c-bg: #FFFFFF;
    --c-bg-soft: #F4F8FA;
    --c-bg-deep: #0A2E45;
    --c-line: #E2EBF1;
    --c-line-strong: #CBDCE6;

    --c-text: #1F2A37;
    --c-text-sub: #3B4A5A;
    --c-muted: #5B6B7C;
    --c-white: #FFFFFF;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;

    --shadow-sm: 0 2px 8px rgba(15, 63, 94, .06);
    --shadow: 0 10px 30px rgba(15, 63, 94, .10);
    --shadow-lg: 0 24px 60px rgba(15, 63, 94, .16);

    --container: 1240px;
    --ease: cubic-bezier(.22, .61, .36, 1);

    --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; color: var(--c-text); font-weight: 700; line-height: 1.35; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, button, select { font-size: inherit; font-family: inherit; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.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;
}

/* ---------- 顶部通栏 ---------- */
.topbar {
    background: linear-gradient(100deg, var(--c-brand-800) 0%, var(--c-brand-700) 55%, var(--c-brand-600) 100%);
    color: rgba(255, 255, 255, .92);
    font-size: 14px;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
    /* 只用方向性内边距，避免覆盖 .container 的左右留白（否则移动端内容会顶到屏幕边缘） */
    padding-block: 12px;
}

.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }

.brand__mark {
    width: 52px; height: 52px; flex: 0 0 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    display: grid; place-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}

.brand__mark svg { width: 30px; height: 30px; }

/* 后台配置了站点 Logo：去掉装饰底块，按图片比例收缩到导航栏合适尺寸 */
.brand__mark--logo {
    width: auto;
    height: auto;
    flex: 0 0 auto;
    max-width: 230px;
    overflow: hidden;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.brand__mark--logo img {
    display: block;
    width: auto;
    height: 52px;
    max-width: 268px;
    object-fit: contain;
}

/* 站点标题字号统一在此控制，内部 .brand__name 继承，便于整体缩放 */
.brand__text {
    min-width: 0;
    font-size: 23px;
    /* 主标题与英文副标题改为纵向 flex，间距由 gap 控制，避免行高把两者拉开 */
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.15;
}

.brand__name {
    font-size: inherit;
    font-weight: 700;
    letter-spacing: .5px;
    color: #fff;
    white-space: nowrap;
}

.brand__sub {
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .68);
    white-space: nowrap;
}

.topbar__meta { display: flex; align-items: center; gap: 22px; }

.topbar__item { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .9); white-space: nowrap; }
.topbar__item svg { width: 20px; height: 20px; opacity: .9; }
.topbar__item:hover { color: #fff; }

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    padding: 4px 6px 4px 14px;
    transition: background .3s var(--ease), border-color .3s var(--ease);
}

.search-box:focus-within {
    background: rgba(255, 255, 255, .95);
    border-color: #fff;
}

.search-box input {
    width: 150px;
    border: 0;
    background: transparent;
    color: #fff;
    outline: none;
    font-size: 14px;
}

.search-box input::placeholder { color: rgba(255, 255, 255, .66); }
.search-box:focus-within input { color: var(--c-brand-900); }
.search-box:focus-within input::placeholder { color: var(--c-muted); }

.search-box button {
    width: 34px; height: 34px;
    border: 0; border-radius: 50%;
    background: var(--c-accent);
    color: #fff;
    display: grid; place-items: center;
    transition: transform .25s var(--ease), background .25s var(--ease);
}

.search-box button:hover { transform: scale(1.08); background: var(--c-accent-deep); }
.search-box button svg { width: 19px; height: 19px; }

/* ---------- 主导航 ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-sm);
}

.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* 导航按钮不参与压缩，避免“来访指引”被挤成两行 */
.navbar__inner > .btn { flex: 0 0 auto; white-space: nowrap; padding: 11px 18px; font-size: 14.5px; }

/* nowrap：栏目增多时不再折行换行，改为在断点处收窄或收进折叠菜单 */
/* gap：相邻栏目之间留间距（1px + 4px） */
.navmenu { position: relative; display: flex; align-items: stretch; flex-wrap: nowrap; gap: 5px; }

.navmenu__item { position: relative; flex: 0 0 auto; }

.navmenu__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 18px 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text-sub);
    white-space: nowrap;
    transition: background .22s var(--ease), color .22s var(--ease);
}

.navmenu__link::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 0;
    width: 0; height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, var(--c-brand-600), var(--c-accent));
    transform: translateX(-50%);
    transition: width .3s var(--ease);
}

.navmenu__link:hover { color: var(--c-brand-800); }
.navmenu__link:hover::after { width: 60%; }

.navmenu__item.is-active .navmenu__link { color: var(--c-brand-800); font-weight: 700; }
.navmenu__item.is-active .navmenu__link::after { width: 74%; }

.navmenu__link svg { width: 13px; height: 13px; opacity: .6; }

/* ---------- 栏目入场 + 悬停高亮滑块 ---------- */
@keyframes navRise {
    from { opacity: 0; transform: translateY(-34px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
    /* 延迟由模板输出的 --nav-d 控制：中间栏目先、两侧后 */
    html.nav-anim .navmenu__item {
        animation: navRise .8s cubic-bezier(.18, 1.14, .3, 1) backwards;
        animation-delay: var(--nav-d, 0s);
    }

    html.nav-anim .navbar__inner > .btn {
        animation: navRise .8s cubic-bezier(.18, 1.14, .3, 1) .4s backwards;
    }
}

/* 滑块：由 JS 创建并写入 translate3d/width，停留在当前栏目下方 */
.navmenu__ink {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, var(--c-brand-600), var(--c-accent));
    opacity: 0;
    /* 高于二级菜单（z-index:70），展开时滑块仍可见 */
    z-index: 71;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    transition: transform .26s cubic-bezier(.2, 1.3, .32, 1), width .26s cubic-bezier(.2, 1.3, .32, 1), opacity .2s var(--ease);
}

html.nav-ink .navmenu__ink.is-ready { opacity: 1; }

/* 滑块接管指示后，隐藏原逐项下划线，避免双重高亮 */
html.nav-ink .navmenu__link::after { display: none; }
html.nav-ink .navmenu__item--has-sub:hover > .navmenu__link::after { display: none; }

/* 重算位置时不播放过渡，防止滑块从旧位置横飞 */
.navmenu__ink.is-resizing { transition: none; }

@media (prefers-reduced-motion: reduce) {
    .hero__slide img { transition: none; }
    .navmenu__ink { transition: none; }
    .navmenu .navmenu__sub { transform: none; transition: opacity .12s linear, visibility .12s; }
    .navmenu__sub-item { transition: none; }
}

/* ---------- 二级栏目下拉（鼠标上浮显示） ---------- */
.navmenu__caret { transition: transform .4s cubic-bezier(.18, 2.4, .3, 1); }

.navmenu__sub {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 216px;
    padding: 10px 0;
    background: var(--c-brand-800);
    box-shadow: 0 18px 36px rgba(10, 46, 69, .18);
    opacity: 0;
    visibility: hidden;
    transform-origin: top center;
    transform: translateY(-22px) scaleY(.88);
    /* 收起：短而干脆（展开的弹跳在 hover/focus 态覆盖） */
    transition: opacity .2s var(--ease), transform .2s ease-in, visibility .2s;
    z-index: 70;
}

/* 二级菜单子项依次浮现（仅桌面：移动端抽屉里二级菜单常驻展开，不能隐藏子项） */
@media (min-width: 961px) and (prefers-reduced-motion: no-preference) {
    .navmenu__sub-item {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity .34s var(--ease), transform .34s cubic-bezier(.19, 1.1, .3, 1);
    }

    .navmenu__item--has-sub:is(:hover, :focus-within) > .navmenu__sub .navmenu__sub-item {
        opacity: 1;
        transform: translateY(0);
    }

    .navmenu__item--has-sub:is(:hover, :focus-within) > .navmenu__sub .navmenu__sub-item:nth-child(1) { transition-delay: .05s; }
    .navmenu__item--has-sub:is(:hover, :focus-within) > .navmenu__sub .navmenu__sub-item:nth-child(2) { transition-delay: .11s; }
    .navmenu__item--has-sub:is(:hover, :focus-within) > .navmenu__sub .navmenu__sub-item:nth-child(3) { transition-delay: .17s; }
    .navmenu__item--has-sub:is(:hover, :focus-within) > .navmenu__sub .navmenu__sub-item:nth-child(4) { transition-delay: .23s; }
    .navmenu__item--has-sub:is(:hover, :focus-within) > .navmenu__sub .navmenu__sub-item:nth-child(5) { transition-delay: .29s; }
    .navmenu__item--has-sub:is(:hover, :focus-within) > .navmenu__sub .navmenu__sub-item:nth-child(6) { transition-delay: .35s; }
}

/* 鼠标悬浮：一级栏目与下拉菜单连成一整块 */
.navmenu__item--has-sub:hover > .navmenu__link,
.navmenu__item--has-sub:focus-within > .navmenu__link {
    background: var(--c-brand-800);
    color: #fff;
}

.navmenu__item--has-sub:hover > .navmenu__link::after,
.navmenu__item--has-sub:focus-within > .navmenu__link::after { display: none; }

.navmenu__item--has-sub:hover > .navmenu__sub,
.navmenu__item--has-sub:focus-within > .navmenu__sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scaleY(1);
    transition: opacity .26s var(--ease), transform .62s cubic-bezier(.18, 2.4, .3, 1), visibility .26s;
}

.navmenu__item--has-sub:hover > .navmenu__link .navmenu__caret,
.navmenu__item--has-sub:focus-within > .navmenu__link .navmenu__caret { transform: rotate(180deg); }

.navmenu__sub-link {
    display: block;
    padding: 16px 32px;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .88);
    white-space: nowrap;
    transition: background .22s var(--ease), color .22s var(--ease);
}

.navmenu__sub-link:hover { background: var(--c-brand-700); color: #fff; }
.navmenu__sub-link.is-active {
    background: var(--c-accent);
    color: #fff;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--c-line-strong);
    background: #fff;
    border-radius: 10px;
    width: 42px; height: 38px;
    align-items: center; justify-content: center;
    color: var(--c-brand-800);
}

.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- 通用区块 ---------- */
.section { padding: 68px 0; }
.section--soft { background: var(--c-bg-soft); }
.section--tight { padding: 46px 0; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.section-head__title { display: flex; align-items: center; gap: 14px; }

.section-head__bar {
    width: 5px; height: 30px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--c-brand-600), var(--c-accent));
}

.section-head h2 { font-size: 26px; letter-spacing: .5px; }

.section-head .subtitle {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-top: 2px;
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--c-muted);
    padding: 6px 14px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: #fff;
    transition: all .28s var(--ease);
}

.more-link:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(120deg, var(--c-brand-700), var(--c-brand-600));
    transform: translateX(2px);
}

/* ---------- 轮播 ---------- */
.hero { position: relative; background: var(--c-brand-900); }

.hero__viewport { position: relative; height: 560px; overflow: hidden; }

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    /* 交叠时间拉长，新旧画面错动产生视差 */
    transition: opacity 1.15s var(--ease);
    pointer-events: none;
}

.hero__slide.is-active { opacity: 1; pointer-events: auto; }

/* 图片承担缓推动效，起点缩小一点给推进留出余量；切走时 0.9s 平滑回位，不硬跳 */
.hero__slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform-origin: 34% 46%;
    transition: transform .9s var(--ease);
    will-change: transform;
}

/* 相邻幻灯片推进方向交替，避免每张都朝同一侧推 */
.hero__slide:nth-of-type(2n) img { transform-origin: 66% 54%; }

@media (prefers-reduced-motion: no-preference) {
    .hero__slide.is-active img { animation: heroKenBurns 7.6s cubic-bezier(.25, .55, .35, 1) forwards; }

    /* 文字分级上浮：animation 在首帧即执行，切走时类移除自动撤销，不会两页文字叠加 */
    .hero__slide.is-active .hero__tag,
    .hero__slide.is-active .hero__title,
    .hero__slide.is-active .hero__desc,
    .hero__slide.is-active .hero__actions,
    .hero__slide.is-active .hero__orgs {
        animation: heroRise .85s cubic-bezier(.19, 1.12, .3, 1) backwards;
    }

    .hero__slide.is-active .hero__title { animation-delay: .09s; }
    .hero__slide.is-active .hero__desc { animation-delay: .18s; }
    .hero__slide.is-active .hero__actions { animation-delay: .27s; }
    .hero__slide.is-active .hero__orgs { animation-delay: .36s; }
}

/* 推进 + 纵向漂移的复合运动，形成镜头纵深 */
@keyframes heroKenBurns {
    from { transform: translate3d(0, -1%, 0) scale(1.02); }
    to { transform: translate3d(0, 1%, 0) scale(1.18); }
}

@keyframes heroRise {
    from { opacity: 0; transform: translateY(52px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero__mask {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(8, 38, 58, .52) 0%, rgba(8, 38, 58, .28) 46%, rgba(8, 38, 58, .08) 100%);
}

.hero__content {
    position: absolute;
    left: 0; right: 0; bottom: 0; top: 0;
    display: flex;
    align-items: center;
}

/* 文字与图片异步淡入淡出：旧页文字快速退场，避免切换时两页文字相互叠加 */
.hero__slide .hero__content { opacity: 0; transition: opacity .28s ease; }
.hero__slide.is-active .hero__content { opacity: 1; transition: opacity .55s ease; }

.hero__content-inner { max-width: 700px; }

.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    letter-spacing: 2px;
    color: #D6F2F3;
    background: rgba(14, 124, 134, .18);
    border: 1px solid rgba(14, 124, 134, .42);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.hero__title {
    font-size: 46px;
    color: #fff;
    line-height: 1.22;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .32);
    /* 长标题自动均分两行，避免末行只剩一个字 */
    text-wrap: balance;
}

.hero__desc {
    margin-top: 18px;
    color: rgba(255, 255, 255, .84);
    font-size: 17px;
    line-height: 1.75;
    max-width: 600px;
}

.hero__actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all .28s var(--ease);
}

.btn svg { width: 15px; height: 15px; }
.btn--primary { background: linear-gradient(120deg, var(--c-brand-600), var(--c-brand-700)); color: #fff; box-shadow: 0 10px 24px rgba(15, 63, 94, .34); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(15, 63, 94, .42); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .48); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn--accent { background: linear-gradient(120deg, var(--c-accent), var(--c-accent-deep)); color: #fff; box-shadow: 0 10px 24px rgba(14, 124, 134, .3); }
.btn--accent:hover { transform: translateY(-2px); color: #fff; }

.hero__nav {
    position: absolute;
    left: 0; right: 0; bottom: 34px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 25;
}

.hero__dots { display: flex; align-items: center; gap: 10px; }

/* 分页改为细长线条：未选中短而淡，当前项拉长并提亮，更接近企业站画册式呈现 */
.hero__dot {
    width: 40px; height: 2px;
    border-radius: 0;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, .34);
    transition: all .35s var(--ease);
}

.hero__dot:hover { background: rgba(255, 255, 255, .62); }
.hero__dot.is-active { background: #fff; width: 64px; }

.hero__arrows { margin-left: auto; display: flex; gap: 10px; }

.hero__arrow {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .42);
    background: rgba(8, 38, 58, .22);
    color: #fff;
    display: grid; place-items: center;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: all .28s var(--ease);
}

.hero__arrow:hover { background: var(--c-accent); border-color: transparent; transform: translateY(-2px); }
.hero__arrow svg { width: 18px; height: 18px; }

.hero__slide--plain { background: linear-gradient(115deg, var(--c-brand-900) 0%, var(--c-brand-800) 58%, var(--c-brand-600) 100%); }

/* ---------- 首页：透明导航叠在首屏大图上 ---------- */
/* 只在首页生效（body.page-home）；其他页面保持原来的实体通栏 + 白色主导航 */
.page-home .topbar {
    /* 常驻顶部：滚动时只切换底色，不做 absolute/fixed 切换，避免位置跳动 */
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 61;
    background: none;
    transition: background .32s var(--ease);
}

/* 整块导航区的压暗交给首屏遮罩统一处理：顶部一段深、往下快速淡出，
   底图再亮也不会让白色 Logo 与导航文字糊掉 */
.page-home .hero__mask {
    background:
        linear-gradient(180deg, rgba(8, 38, 58, .62) 0%, rgba(8, 38, 58, .3) 12%, rgba(8, 38, 58, 0) 30%),
        linear-gradient(90deg, rgba(8, 38, 58, .5) 0%, rgba(8, 38, 58, .26) 46%, rgba(8, 38, 58, .08) 100%),
        linear-gradient(180deg, rgba(8, 38, 58, 0) 62%, rgba(8, 38, 58, .34) 100%);
}

.page-home .navbar {
    position: fixed;
    top: var(--topbar-h, 78px);
    left: 0; right: 0;
    z-index: 60;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: background .32s var(--ease);
}

.page-home .navmenu__link { color: rgba(255, 255, 255, .84); }
.page-home .navmenu__link:hover { color: #fff; }
.page-home .navmenu__item.is-active .navmenu__link { color: #fff; }

.page-home .nav-toggle {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .42);
    color: #fff;
}

/* 图片从页面顶端铺满一屏，导航与文案都叠在图上 */
.page-home .hero__viewport {
    height: 100vh;
    height: 100svh;
}

/* 底部留白让文案略上提，避开叠在图上的分页线条与箭头 */
.page-home .hero__content-wrap { padding-bottom: 56px; }

/* 离开页面顶部后，通栏恢复为原来的实体样式，保证继续阅读时导航可读可点 */
.page-home.is-header-solid .topbar {
    background: linear-gradient(100deg, var(--c-brand-800) 0%, var(--c-brand-700) 55%, var(--c-brand-600) 100%);
}

.page-home.is-header-solid .navbar {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-sm);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
}

.page-home.is-header-solid .navmenu__link { color: var(--c-text-sub); }
.page-home.is-header-solid .navmenu__link:hover { color: var(--c-brand-800); }
.page-home.is-header-solid .navmenu__item.is-active .navmenu__link { color: var(--c-brand-800); }
.page-home.is-header-solid .nav-toggle {
    background: #fff;
    border-color: var(--c-line-strong);
    color: var(--c-brand-800);
}

/* ---------- 页内搜索框 ---------- */
.search-box--page {
    max-width: 520px;
    margin-top: 22px;
    padding: 6px 8px 6px 18px;
    background: rgba(255, 255, 255, .16);
}

.search-box--page input { width: 100%; }
.search-box--page button { width: 38px; height: 38px; }

/* ---------- 错误页 ---------- */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: radial-gradient(1200px 600px at 50% -10%, #E9F2F8 0%, #FFFFFF 60%);
}

.error-page__code {
    font-size: 96px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 4px;
    background: linear-gradient(120deg, var(--c-brand-800), var(--c-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-page__title { margin-top: 20px; font-size: 24px; }
.error-page__desc { margin-top: 12px; color: var(--c-muted); }
.error-page__actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- 快捷能力条 ---------- */
/* 上移压住轮播下沿，但容器本身不接收指针事件，避免遮挡轮播切换按钮 */
.quickbar { margin-top: -46px; position: relative; z-index: 20; pointer-events: none; }
.quickbar__grid > * { pointer-events: auto; }

.quickbar__grid {
    display: grid;
    /* 后台可增删快捷入口，按可用宽度自动分列（4 个时为 4 列） */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.quickcard {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 22px 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.quickcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--c-brand-400); }

.quickcard__icon {
    width: 46px; height: 46px; flex: 0 0 46px;
    border-radius: 13px;
    display: grid; place-items: center;
    background: var(--c-brand-100);
    color: var(--c-brand-800);
}

.quickcard__icon svg { width: 22px; height: 22px; }
.quickcard__icon--accent { background: var(--c-accent-soft); color: var(--c-accent-deep); }
.quickcard__title { display: block; font-size: 16px; font-weight: 600; }
.quickcard__desc { display: block; margin-top: 3px; font-size: 13px; color: var(--c-muted); }

/* ---------- 新闻区 ---------- */
.news-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 34px; align-items: start; }
.news-layout--single { grid-template-columns: 1fr; }
.news-panels { min-width: 0; }

.news-feature {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 420px;
    box-shadow: var(--shadow);
    display: block;
}

.news-feature img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; transition: transform .8s var(--ease); }
.news-feature:hover img { transform: scale(1.06); }

.news-feature__body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 26px 26px 24px;
    background: linear-gradient(180deg, rgba(8, 38, 58, 0) 0%, rgba(8, 38, 58, .88) 62%);
    color: #fff;
}

.news-feature__tag {
    display: inline-block;
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 999px;
    background: rgba(14, 124, 134, .92);
    margin-bottom: 12px;
}

.news-feature__title { font-size: 21px; line-height: 1.5; color: #fff; }
.news-feature__meta { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .72); }

.news-list { display: flex; flex-direction: column; }

.news-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 17px 4px;
    border-bottom: 1px dashed var(--c-line);
    transition: transform .28s var(--ease);
}

.news-item:first-child { padding-top: 4px; }
.news-item:last-child { border-bottom: 0; }
.news-item:hover { transform: translateX(5px); }

.news-item__date {
    flex: 0 0 62px;
    text-align: center;
    border-right: 2px solid var(--c-line);
    padding-right: 12px;
    transition: border-color .28s var(--ease);
}

.news-item:hover .news-item__date { border-color: var(--c-accent); }
.news-item__day { font-size: 22px; font-weight: 700; color: var(--c-brand-800); line-height: 1.2; }
.news-item__month { font-size: 12px; color: var(--c-muted); letter-spacing: .5px; }

.news-item__body { min-width: 0; flex: 1; }

.news-item__title {
    font-size: 16px;
    font-weight: 500;
    color: var(--c-text);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item:hover .news-item__title { color: var(--c-brand-700); }

.news-item__desc {
    margin-top: 4px;
    font-size: 13px;
    color: var(--c-muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- 卡片 / 栏目条 ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; align-items: start; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.tab {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--c-line);
    background: #fff;
    font-size: 14px;
    color: var(--c-text-sub);
    transition: all .28s var(--ease);
}

.tab:hover { color: var(--c-brand-700); border-color: var(--c-brand-400); }
.tab.is-active { color: #fff; border-color: transparent; background: linear-gradient(120deg, var(--c-brand-700), var(--c-brand-600)); box-shadow: 0 8px 18px rgba(15, 63, 94, .26); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp .45s var(--ease); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.doc-list { display: grid; gap: 12px; }

/* 首页技术规范：双列文档栅格，一屏可见更多条文（内页仍走单列 .doc-list） */
.doc-list--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.doc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    transition: all .3s var(--ease);
}

.doc-item:hover {
    border-color: var(--c-brand-400);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.doc-item__badge {
    flex: 0 0 58px;
    height: 40px;
    border-radius: 10px;
    display: grid; place-items: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--c-brand-800);
    background: var(--c-brand-100);
}

.doc-item__text { min-width: 0; flex: 1; }

.doc-item__title {
    font-size: 15px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doc-item:hover .doc-item__title { color: var(--c-brand-700); }
.doc-item__meta { font-size: 12px; color: var(--c-muted); margin-top: 3px; }

/* ---------- 科普卡片 ---------- */
.sci-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.sci-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all .32s var(--ease);
}

.sci-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.sci-card__thumb { height: 140px; overflow: hidden; }
.sci-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sci-card:hover .sci-card__thumb img { transform: scale(1.08); }
.sci-card__body { padding: 16px 18px 20px; }
.sci-card__title { font-size: 15px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sci-card__desc { margin-top: 8px; font-size: 13px; color: var(--c-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 专家 ---------- */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.expert-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 28px 20px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all .34s var(--ease);
}

.expert-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--c-brand-600), var(--c-accent));
    opacity: 0;
    transition: opacity .34s var(--ease);
}

.expert-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.expert-card:hover::before { opacity: 1; }

.expert-card__avatar {
    /* 该元素为 span，父级非 flex/grid，必须显式声明块级才能让宽高与裁剪生效 */
    display: block;
    /* 固定 210×245 竖版矩形；极端窄屏（卡片内宽不足 210）时按容器收窄，避免溢出 */
    width: 210px;
    height: 245px;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto 18px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-bg-soft);
    border: 3px solid var(--c-brand-100);
    box-shadow: 0 8px 22px rgba(15, 63, 94, .14);
    transition: border-color .34s var(--ease);
}

.expert-card:hover .expert-card__avatar { border-color: var(--c-accent); }
/* cover：图片铺满 210×245 矩形，不留白；从顶部对齐裁切，优先保住头部 */
.expert-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.expert-card__name { font-size: 18px; }
.expert-card__title { font-size: 13px; color: var(--c-brand-700); margin-top: 5px; }
.expert-card__hospital { font-size: 12px; color: var(--c-muted); margin-top: 3px; }

.expert-card__specialty {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--c-text-sub);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 间距由文字本身决定，不再用 min-height 预留两行高度，避免“查看简介”与上文拉得太开 */
.expert-card__more { margin-top: 8px; font-size: 13px; color: var(--c-muted); }

/* ---------- 面包屑 ---------- */
.page-hero {
    background: linear-gradient(110deg, var(--c-brand-900) 0%, var(--c-brand-800) 60%, var(--c-brand-600) 100%);
    color: #fff;
    padding: 48px 0 42px;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -80px; top: -60px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 124, 134, .30) 0%, rgba(14, 124, 134, 0) 70%);
}

.page-hero__title { font-size: 30px; color: #fff; }
.page-hero__desc { margin-top: 10px; color: rgba(255, 255, 255, .78); font-size: 15px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 14px; color: rgba(255, 255, 255, .74); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb__sep { opacity: .55; }

.breadcrumb--light { color: var(--c-muted); }
.breadcrumb--light a:hover { color: var(--c-brand-700); }

/* 文章详情页顶部的紧凑面包屑条（替代大标题头图） */
.crumb-bar {
    background: var(--c-bg-soft);
    border-bottom: 1px solid var(--c-line);
    padding: 15px 0;
}

.crumb-bar .breadcrumb { margin-bottom: 0; }

/* ---------- 列表布局 ---------- */
.layout-main { display: grid; grid-template-columns: 264px 1fr; gap: 34px; align-items: start; }

.side-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.side-card + .side-card { margin-top: 22px; }

.side-card__head {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px solid var(--c-line);
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #fff, var(--c-bg-soft));
}

.side-card__head svg { width: 17px; height: 17px; color: var(--c-brand-700); }
.side-card__body { padding: 12px 14px 18px; }

.side-nav__link {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 15px;
    color: var(--c-text-sub);
    transition: all .26s var(--ease);
}

.side-nav__link:hover { background: var(--c-bg-soft); color: var(--c-brand-700); transform: translateX(3px); }
.side-nav__link.is-active { background: linear-gradient(120deg, var(--c-brand-800), var(--c-brand-600)); color: #fff; font-weight: 600; box-shadow: 0 8px 18px rgba(15, 63, 94, .24); }

.side-news__item {
    display: flex;
    gap: 10px;
    padding: 11px 6px;
    border-bottom: 1px dashed var(--c-line);
    font-size: 14px;
    color: var(--c-text-sub);
    transition: all .26s var(--ease);
}

.side-news__item:last-child { border-bottom: 0; }
.side-news__item:hover { color: var(--c-brand-700); transform: translateX(3px); }
.side-news__num {
    flex: 0 0 20px; height: 20px;
    margin-top: 3px;
    border-radius: 5px;
    background: var(--c-bg-soft);
    color: var(--c-muted);
    font-size: 12px;
    display: grid; place-items: center;
    font-weight: 700;
}
.side-news__item:nth-child(-n+3) .side-news__num { background: linear-gradient(120deg, var(--c-brand-600), var(--c-accent)); color: #fff; }

.article-cards { display: grid; gap: 18px; }

.article-card {
    display: grid;
    grid-template-columns: 208px 1fr;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 16px;
    transition: all .3s var(--ease);
}

.article-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.article-card__thumb { height: 138px; border-radius: 10px; overflow: hidden; background: var(--c-bg-soft); }
.article-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.article-card:hover .article-card__thumb img { transform: scale(1.07); }

.article-card__body { min-width: 0; display: flex; flex-direction: column; }

.article-card__title {
    font-size: 18px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card:hover .article-card__title { color: var(--c-brand-700); }

.article-card__desc {
    margin-top: 8px;
    font-size: 14px;
    color: var(--c-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-card__meta {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--c-muted);
}

.article-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-card__meta svg { width: 14px; height: 14px; opacity: .7; }

.chip {
    display: inline-block;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--c-brand-100);
    color: var(--c-brand-800);
}

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 34px; flex-wrap: wrap; }

.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--c-line);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--c-text-sub);
    transition: all .26s var(--ease);
}

.pagination a:hover { border-color: var(--c-brand-400); color: var(--c-brand-700); transform: translateY(-2px); }
.pagination .is-active { background: linear-gradient(120deg, var(--c-brand-700), var(--c-brand-600)); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(15, 63, 94, .26); }
.pagination .is-disabled { opacity: .45; cursor: not-allowed; }
.pagination .is-dots { border-color: transparent; background: transparent; }

/* ---------- 文章详情 ---------- */
.article-sheet {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 40px 44px 36px;
    box-shadow: var(--shadow-sm);
}

.article-sheet__title { font-size: 28px; line-height: 1.45; text-align: center; }

.article-sheet__meta {
    margin-top: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--c-line);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    font-size: 13px;
    color: var(--c-muted);
}

.article-sheet__summary {
    margin-top: 24px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--c-bg-soft);
    border-left: 4px solid var(--c-accent);
    font-size: 15px;
    color: var(--c-text-sub);
}

.article-body {
    margin-top: 26px;
    font-size: 16px;
    line-height: 1.9;
    color: #2C3A47;
    word-break: break-word;
}

.article-body p { margin: 0 0 18px; }
.article-body h2 { font-size: 20px; margin: 30px 0 14px; }
.article-body h3 { font-size: 17px; margin: 24px 0 12px; }
.article-body img { border-radius: 12px; margin: 18px auto; box-shadow: var(--shadow); }
.article-body video { display: block; width: 100%; max-width: 100%; margin: 18px auto; border-radius: 12px; background: #000; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--c-brand-700); border-bottom: 1px solid var(--c-brand-400); }
.article-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.article-body th, .article-body td { border: 1px solid var(--c-line); padding: 10px 12px; }
.article-body th { background: var(--c-bg-soft); }

.article-nav {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--c-line);
    display: grid;
    gap: 12px;
    font-size: 14px;
    color: var(--c-text-sub);
}

.article-nav__row { display: flex; gap: 10px; align-items: baseline; }
.article-nav__label { flex: 0 0 68px; color: var(--c-muted); }
.article-nav__row a:hover { color: var(--c-brand-700); }

/* ---------- 专家详情 ---------- */
.expert-profile {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 36px;
    display: grid;
    grid-template-columns: 268px 1fr;
    gap: 36px;
}

.expert-profile__photo {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-bg-soft);
    box-shadow: var(--shadow);
    align-self: start;
}

.expert-profile__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.expert-profile__name { font-size: 28px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.expert-profile__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.expert-profile__role { font-size: 14px; padding: 3px 12px; border-radius: 999px; background: var(--c-brand-100); color: var(--c-brand-800); }
.expert-profile__hospital { font-size: 14px; padding: 3px 12px; border-radius: 999px; background: var(--c-accent-soft); color: var(--c-accent-deep); }

.expert-profile__specialty {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--c-bg-soft);
    font-size: 15px;
    color: var(--c-text-sub);
}

.expert-profile__specialty strong { color: var(--c-brand-800); margin-right: 8px; }

.expert-profile__bio {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.9;
    color: #2C3A47;
    word-break: break-word;
}
.expert-profile__bio p { margin: 0 0 16px; }
.expert-profile__bio h2 { font-size: 20px; margin: 28px 0 14px; }
.expert-profile__bio h3 { font-size: 17px; margin: 22px 0 12px; }
.expert-profile__bio img { max-width: 100%; height: auto; border-radius: 12px; margin: 16px auto; box-shadow: var(--shadow); }
.expert-profile__bio video { display: block; width: 100%; max-width: 100%; margin: 16px auto; border-radius: 12px; background: #000; }
.expert-profile__bio ul, .expert-profile__bio ol { margin: 0 0 16px 22px; list-style: disc; }
.expert-profile__bio ol { list-style: decimal; }
.expert-profile__bio li { margin-bottom: 8px; }
.expert-profile__bio a { color: var(--c-brand-700); border-bottom: 1px solid var(--c-brand-400); }
.expert-profile__bio table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.expert-profile__bio th, .expert-profile__bio td { border: 1px solid var(--c-line); padding: 10px 12px; }
.expert-profile__bio th { background: var(--c-bg-soft); }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.contact-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow-sm);
    transition: all .32s var(--ease);
}

.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.contact-card__icon {
    width: 52px; height: 52px;
    border-radius: 15px;
    display: grid; place-items: center;
    background: linear-gradient(130deg, var(--c-brand-800), var(--c-brand-600));
    color: #fff;
    box-shadow: 0 10px 22px rgba(15, 63, 94, .28);
    margin-bottom: 18px;
}

.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card__label { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c-muted); }
.contact-card__value { margin-top: 8px; font-size: 17px; font-weight: 600; line-height: 1.6; word-break: break-all; }

.contact-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; margin-top: 26px; }

.map-panel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--c-line);
    /* 纯 CSS 的示意底图（网格 + 路网），作为地图占位容器 */
    background:
        repeating-linear-gradient(0deg, rgba(15, 63, 94, .055) 0 1px, transparent 1px 42px),
        repeating-linear-gradient(90deg, rgba(15, 63, 94, .055) 0 1px, transparent 1px 42px),
        linear-gradient(135deg, #EAF2FA, #F7FBFE);
    min-height: 340px;
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 30px;
}

.map-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(104deg, transparent 43%, rgba(15, 63, 94, .16) 43% 46%, transparent 46%),
        linear-gradient(14deg, transparent 63%, rgba(14, 124, 134, .18) 63% 66%, transparent 66%),
        radial-gradient(circle at 20% 82%, rgba(15, 63, 94, .12) 0 22%, transparent 22.6%),
        radial-gradient(circle at 84% 22%, rgba(14, 124, 134, .12) 0 15%, transparent 15.6%);
}

.map-panel__inner { position: relative; z-index: 1; max-width: 420px; }
.map-panel__title { font-size: 18px; margin-bottom: 10px; }
.map-panel__desc { font-size: 14px; color: var(--c-muted); margin-bottom: 20px; }

.qr-panel {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.qr-panel__img {
    width: 168px; height: 168px;
    margin: 0 auto 16px;
    border-radius: var(--radius);
    border: 1px solid var(--c-line);
    overflow: hidden;
    background: var(--c-bg-soft);
    display: grid; place-items: center;
}

.qr-panel__img img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- 空状态 ---------- */
.empty {
    padding: 70px 20px;
    text-align: center;
    color: var(--c-muted);
    background: #fff;
    border: 1px dashed var(--c-line-strong);
    border-radius: var(--radius);
}

.empty__icon { font-size: 40px; margin-bottom: 12px; opacity: .5; }

/* ---------- 页脚 ---------- */
.footer {
    background: linear-gradient(180deg, #103A55 0%, #082638 100%);
    color: rgba(255, 255, 255, .74);
    padding: 56px 0 0;
    margin-top: 0;
    font-size: 14px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 34px;
    padding-bottom: 40px;
}

.footer h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 12px;
}

.footer h4::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 34px; height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--c-accent), rgba(14, 124, 134, .22));
}

.footer__about { line-height: 1.9; color: rgba(255, 255, 255, .7); }

.footer__links li { margin-bottom: 11px; }
.footer__links a { color: rgba(255, 255, 255, .7); position: relative; padding-left: 14px; }
.footer__links a::before {
    content: "";
    position: absolute; left: 0; top: 50%;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--c-accent);
    transform: translateY(-50%);
    transition: transform .26s var(--ease);
}
.footer__links a:hover { color: #fff; }
.footer__links a:hover::before { transform: translateY(-50%) scale(1.5); }

.footer__contact li { display: flex; gap: 10px; margin-bottom: 13px; line-height: 1.7; }
.footer__contact svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 4px; color: var(--c-accent); }

.footer__qr { text-align: center; }
.footer__qr-img {
    width: 132px; height: 132px;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
    overflow: hidden;
    display: grid; place-items: center;
}
.footer__qr-img img { width: 100%; height: 100%; object-fit: contain; }
.footer__qr span { font-size: 13px; color: rgba(255, 255, 255, .66); }

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 18px 0 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255, 255, 255, .58);
}

/* 备案号左侧：技术支持链接 */
.footer__bottom-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.footer__support { color: inherit; }
.footer__support:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 返回顶部 ---------- */
.to-top {
    position: fixed;
    right: 26px; bottom: 30px;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(130deg, var(--c-brand-700), var(--c-brand-600));
    color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 12px 28px rgba(15, 63, 94, .32);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .32s var(--ease);
    z-index: 80;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 滚动入场动画（仅在 JS 可用时启用，保证无 JS 时内容可见） ---------- */
.js-anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-anim .reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================================
   首页门户版式
   大画幅首屏 / 双栏门户 / 分组规范 / 横滑专家 / 深色科普
   ===================================================================== */

/* ---------- 首屏增强 ---------- */
.hero__content-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100%;
}

.hero__orgs {
    margin-top: 30px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .22);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 30px;
    max-width: 620px;
    font-size: 13px;
    color: rgba(255, 255, 255, .78);
}

.hero__orgs em {
    font-style: normal;
    margin-right: 8px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .52);
}

/* ---------- 区块头部变体 ---------- */
.more-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-brand-700);
    transition: color .26s var(--ease);
}

.more-text svg { transition: transform .26s var(--ease); }
.more-text:hover { color: var(--c-accent); }
.more-text:hover svg { transform: translateX(3px); }

.section-head--invert h2 { color: #fff; }
.section-head--invert .subtitle { color: rgba(255, 255, 255, .55); }
.section-head--invert .section-head__bar {
    background: linear-gradient(180deg, var(--c-accent) 0%, var(--c-brand-400) 100%);
}
.more-text--invert { color: rgba(255, 255, 255, .82); }
.more-text--invert:hover { color: #fff; }

/* ---------- 门户双栏 ---------- */
.portal {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 336px;
    gap: 36px;
    align-items: start;
}

.portal__main { min-width: 0; }
.portal__side { display: grid; gap: 18px; }

/* 桌面双栏：侧栏“快捷服务”下移一个栏目标题的高度，与主栏“通知公告”卡片顶边对齐。
   数值 = .section-head 高度（h2 26px×1.35 + 副标题上间距 2px + 副标题 13px×1.7）
        + .section-head 的 margin-bottom 30px */
@media (min-width: 1025px) {
    .portal__side {
        margin-top: calc(26px * 1.35 + 2px + 13px * 1.7 + 30px);
    }
}

/* ---------- 侧栏面板 ---------- */
.side-panel {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 18px 18px 20px;
    box-shadow: var(--shadow-sm);
}

.side-panel__head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--c-line);
}

.side-panel__title {
    position: relative;
    padding-left: 12px;
    font-size: 16px;
    font-weight: 700;
}

.side-panel__title::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--c-brand-600), var(--c-accent));
}

.side-panel__sub {
    margin-left: auto;
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--c-muted);
}

.side-panel__empty { margin: 0; font-size: 13px; color: var(--c-muted); }

/* 快捷服务磁贴 */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.quick-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 8px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: var(--c-bg-soft);
    text-align: center;
    transition: all .28s var(--ease);
}

.quick-tile:hover {
    background: #fff;
    border-color: var(--c-brand-400);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.quick-tile__icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: var(--c-brand-100);
    color: var(--c-brand-800);
    transition: all .28s var(--ease);
}

.quick-tile__icon svg { width: 18px; height: 18px; }
.quick-tile:hover .quick-tile__icon { background: linear-gradient(135deg, var(--c-brand-800), var(--c-brand-600)); color: #fff; }
.quick-tile__label { font-size: 13px; font-weight: 500; color: var(--c-text-sub); }

/* 首页快捷入口：合并为一张面板 + 发丝线分隔，替代 4 个独立磁贴 */
.quick-grid--flat {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--c-line);
    border-radius: 10px;
    overflow: hidden;
}

.quick-grid--flat .quick-tile {
    border: 0;
    border-radius: 0;
    background: #fff;
    padding: 15px 8px;
}

.quick-grid--flat .quick-tile:hover {
    border: 0;
    background: var(--c-brand-100);
    transform: none;
    box-shadow: none;
}

.quick-grid--flat .quick-tile__icon {
    width: auto; height: auto;
    background: transparent;
    color: var(--c-brand-700);
}

.quick-grid--flat .quick-tile:hover .quick-tile__icon {
    background: transparent;
    color: var(--c-brand-600);
    transform: translateY(-1px);
}

/* 侧栏联系方式与二维码 */
.side-contact li {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--c-text-sub);
}

.side-contact svg {
    width: 16px; height: 16px;
    flex: 0 0 16px;
    margin-top: 4px;
    color: var(--c-brand-700);
}

.side-qr {
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px dashed var(--c-line);
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-qr__img {
    width: 74px; height: 74px;
    flex: 0 0 74px;
    border-radius: 10px;
    border: 1px solid var(--c-line);
    background: var(--c-bg-soft);
    overflow: hidden;
    display: grid; place-items: center;
}

.side-qr__img img { width: 100%; height: 100%; object-fit: contain; }
.side-qr__label { font-size: 12.5px; line-height: 1.6; color: var(--c-muted); }

/* ---------- 通知横条 ---------- */
.notice-bar {
    background: #fff;
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
}

.notice-bar__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 48px;
}

.notice-bar__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 6px 14px;
    border-radius: 8px;
    background: linear-gradient(120deg, var(--c-brand-800), var(--c-brand-600));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    box-shadow: 0 4px 12px rgba(15, 63, 94, .18);
}

.notice-bar__label svg { width: 15px; height: 15px; }

.notice-bar__viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.notice-bar__track {
    display: flex;
    width: max-content;
}

/* 条目较多时才滚动，少量条目静态展示 */
.notice-bar--scroll .notice-bar__track { animation: notice-scroll 42s linear infinite; }
.notice-bar--scroll:hover .notice-bar__track,
.notice-bar--scroll:focus-within .notice-bar__track { animation-play-state: paused; }

.notice-bar__group {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

/* 静态展示时隐藏用于无缝循环的副本 */
.notice-bar__group[aria-hidden="true"] { display: none; }
.notice-bar--scroll .notice-bar__group[aria-hidden="true"] { display: flex; }

/* 静态模式：条目均分整行，取消边缘渐隐避免文字被裁切 */
.notice-bar:not(.notice-bar--scroll) .notice-bar__viewport {
    -webkit-mask-image: none;
    mask-image: none;
}

.notice-bar:not(.notice-bar--scroll) .notice-bar__track { width: 100%; }

.notice-bar:not(.notice-bar--scroll) .notice-bar__group {
    flex: 1 1 auto;
    min-width: 0;
}

.notice-bar__link {
    position: relative;
    display: inline-block;
    max-width: 420px;
    padding: 0 22px;
    font-size: 13.5px;
    color: var(--c-text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .24s var(--ease);
}

/* 静态模式下条目均分剩余宽度，长标题也无需截断 */
.notice-bar:not(.notice-bar--scroll) .notice-bar__link {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding: 14px 22px;
}

.notice-bar__link::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--c-accent);
    transform: translateY(-50%);
}

.notice-bar__link:hover { color: var(--c-brand-800); }

.notice-bar__more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    font-size: 13px;
    color: var(--c-muted);
    transition: color .24s var(--ease);
}

.notice-bar__more svg { width: 13px; height: 13px; }
.notice-bar__more:hover { color: var(--c-brand-700); }

@keyframes notice-scroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .notice-bar__track { animation: none; }
    .notice-bar__viewport { overflow-x: auto; }
    .notice-bar__group[aria-hidden="true"] { display: none; }
}

/* ---------- 新闻：左特稿 + 右提要 ---------- */
.news-split {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.news-split--single { grid-template-columns: 1fr; }

.news-lead {
    position: relative;
    display: block;
    overflow: hidden;
    height: 100%;
    border-radius: var(--radius-lg);
    min-height: 400px;
    box-shadow: var(--shadow);
}

.news-lead img {
    width: 100%; height: 100%;
    min-height: 400px;
    object-fit: cover;
    transition: transform .9s var(--ease);
}

.news-lead:hover img { transform: scale(1.04); }

.news-lead__body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 110px 26px 24px;
    background: linear-gradient(180deg, rgba(8, 38, 58, 0) 0%, rgba(8, 38, 58, .62) 32%, rgba(8, 38, 58, .96) 72%);
    color: #fff;
}

.news-lead__tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(14, 124, 134, .92);
}

.news-lead__title { font-size: 22px; line-height: 1.45; color: #fff; }
.news-lead__meta { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .72); }

/* 右侧提要列表 */
.news-brief {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.news-brief__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--c-line);
    background: linear-gradient(180deg, #fff, var(--c-bg-soft));
}

.news-brief__label {
    position: relative;
    padding-left: 12px;
    font-size: 15px;
    font-weight: 700;
}

.news-brief__label::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 15px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--c-brand-600), var(--c-accent));
}

.news-brief__hint {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--c-bg-soft);
    font-size: 11.5px;
    color: var(--c-muted);
}

.news-brief__list {
    display: flex;
    flex: 1;
    flex-direction: column;
    /* 条目紧跟标题栏，避免条目少时悬空在卡片中部 */
    justify-content: flex-start;
    padding: 2px 16px;
}

.news-brief__foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    padding: 12px 16px;
    border-top: 1px solid var(--c-line);
    background: var(--c-bg-soft);
    font-size: 12.5px;
    color: var(--c-text-sub);
    transition: color .24s var(--ease), background .24s var(--ease);
}

.news-brief__foot:hover { color: var(--c-brand-800); background: var(--c-brand-100); }

.brief-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--c-line);
    transition: transform .26s var(--ease);
}

.brief-item:last-child { border-bottom: 0; }
.brief-item:hover { transform: translateX(3px); }

.brief-item__date {
    flex: 0 0 auto;
    min-width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 7px;
    border-radius: 8px;
    background: var(--c-bg-soft);
    color: var(--c-brand-800);
    transition: all .26s var(--ease);
}

.brief-item:hover .brief-item__date { background: var(--c-brand-100); }

.brief-item__date em {
    font-style: normal;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.brief-item__date span { font-size: 11px; color: var(--c-muted); line-height: 1.4; }

.brief-item__text { min-width: 0; flex: 1; }

.brief-item__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.brief-item:hover .brief-item__title { color: var(--c-brand-700); }

.brief-item__desc {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--c-muted);
}

/* 线性标签页：去掉胶囊底色，改为下划线指示，降低与卡片的重复感 */
.tabs--line {
    gap: 4px;
    margin-top: 26px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--c-line);
}

.tabs--line .tab {
    position: relative;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--c-muted);
}

.tabs--line .tab::after {
    content: "";
    position: absolute;
    left: 50%; bottom: -1px;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--c-brand-600), var(--c-accent));
    transition: width .28s var(--ease);
}

.tabs--line .tab:hover { color: var(--c-brand-700); border-color: transparent; }
.tabs--line .tab.is-active { background: transparent; box-shadow: none; color: var(--c-brand-800); }
.tabs--line .tab.is-active::after { width: 100%; }

/* 首页新闻列表：标签页与条目合并进同一张白卡，条目改为发丝线分隔的平铺行 */
.news-panels--card {
    margin-top: 20px;
    padding: 2px 18px 6px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.news-panels--card .tabs--line {
    margin-top: 4px;
    margin-bottom: 0;
}

/* 卡片底部操作条：与「通知公告」卡保持一致，给列表一个收尾 */
.news-panels__foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 4px -18px -6px;
    padding: 12px 18px;
    border-top: 1px solid var(--c-line);
    background: var(--c-bg-soft);
    font-size: 12.5px;
    color: var(--c-text-sub);
    transition: color .24s var(--ease), background .24s var(--ease);
}

.news-panels__foot:hover { color: var(--c-brand-800); background: var(--c-brand-100); }

/* 只有一个分组时用静态标题替代单个标签按钮，避免空标签条 */
.news-panels__label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 2px;
    border-bottom: 1px solid var(--c-line);
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text);
}

.news-panels__label::before {
    content: "";
    width: 4px; height: 14px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--c-brand-600), var(--c-accent));
}

.doc-list--flat { gap: 0; }

/* 平铺列表中去掉重复的分类徽标，只保留标题与日期 */
.doc-list--flat .doc-item__badge { display: none; }

.doc-list--flat .doc-item {
    padding: 14px 2px;
    border: 0;
    border-bottom: 1px dashed var(--c-line);
    border-radius: 0;
    background: transparent;
}

.doc-list--flat .doc-item:last-child { border-bottom: 0; }

.doc-list--flat .doc-item:hover {
    border-bottom-color: var(--c-brand-400);
    background: var(--c-bg-soft);
    transform: none;
    box-shadow: none;
}

/* ---------- 技术规范：左右清单式 ---------- */
.std-board {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.std-group {
    display: grid;
    grid-template-columns: 208px minmax(0, 1fr);
    border-bottom: 1px solid var(--c-line);
}

.std-group:last-child { border-bottom: 0; }

.std-group__aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 18px 20px;
    background: var(--c-bg-soft);
    border-right: 1px solid var(--c-line);
}

.std-group__name { font-size: 15.5px; font-weight: 700; line-height: 1.4; }
.std-group__count { font-size: 12px; color: var(--c-muted); }

.std-group__list {
    counter-reset: stdline;
    padding: 4px 24px 4px 8px;
    min-width: 0;
}

.std-line {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 10px;
    border-bottom: 1px dashed var(--c-line);
    transition: all .26s var(--ease);
}

.std-line:last-child { border-bottom: 0; }

.std-line__num {
    counter-increment: stdline;
    flex: 0 0 24px;
    height: 20px;
    border-radius: 5px;
    background: var(--c-brand-100);
    color: var(--c-brand-800);
    font-size: 11.5px;
    font-weight: 700;
    display: grid; place-items: center;
}

.std-line__num::before { content: counter(stdline, decimal-leading-zero); }

.std-line__title {
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.6;
}

.std-line__date { flex: 0 0 auto; font-size: 12.5px; color: var(--c-muted); font-variant-numeric: tabular-nums; }

.std-line:hover {
    background: var(--c-bg-soft);
    border-radius: 8px;
    transform: translateX(3px);
}

.std-line:hover .std-line__title { color: var(--c-brand-700); }
.std-line--empty { padding-left: 48px; color: var(--c-muted); font-size: 13.5px; }

/* ---------- 专家：横向滑动带 ---------- */
.section-head__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.expert-rail { position: relative; }

/* 两侧渐隐：暗示内容仍在延伸 */
.expert-rail::before,
.expert-rail::after {
    content: "";
    position: absolute;
    top: 0; bottom: 20px;
    width: 56px;
    pointer-events: none;
    z-index: 2;
    opacity: 1;
    transition: opacity .28s var(--ease);
}

.expert-rail::before {
    left: 0;
    background: linear-gradient(90deg, #fff 10%, rgba(255, 255, 255, 0));
}

.expert-rail::after {
    right: 0;
    background: linear-gradient(270deg, #fff 10%, rgba(255, 255, 255, 0));
}

.expert-rail.is-at-start::before { opacity: 0; }
.expert-rail.is-at-end::after { opacity: 0; }

.expert-rail__nav { display: inline-flex; gap: 8px; }

/* 无横向溢出时整体收起，避免占位留下空隙 */
.expert-rail__nav.is-collapsed { display: none; }

.expert-rail__btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--c-line-strong);
    background: #fff;
    color: var(--c-brand-800);
    display: grid; place-items: center;
    transition: all .26s var(--ease);
}

.expert-rail__btn svg { width: 16px; height: 16px; }

.expert-rail__btn:hover {
    border-color: var(--c-brand-400);
    background: var(--c-brand-100);
    transform: translateY(-1px);
}

.expert-rail__btn.is-disabled {
    opacity: .38;
    cursor: not-allowed;
    transform: none;
    border-color: var(--c-line);
    background: #fff;
    color: var(--c-muted);
}

.expert-strip {
    display: flex;
    gap: 18px;
    padding: 4px 4px 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.expert-strip::-webkit-scrollbar { display: none; }

.expert-card--strip {
    flex: 0 0 240px;
    scroll-snap-align: start;
    padding: 16px 16px 20px;
    border-radius: var(--radius);
}

.expert-card__avatar--strip {
    width: 100%;
    height: 190px;
    margin-bottom: 14px;
    border-width: 2px;
    box-shadow: none;
}

.expert-card--strip .expert-card__name { font-size: 17px; }

/* ---------- 科普：深色区块大图叠加 ---------- */
.section--deep {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 480px at 85% -15%, rgba(14, 124, 134, .16) 0%, rgba(14, 124, 134, 0) 70%),
        linear-gradient(160deg, #0A2E45 0%, #082638 100%);
    color: rgba(255, 255, 255, .78);
}

.section--deep::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 64px 64px;
}

.section--deep > .container { position: relative; z-index: 1; }

/* 条目不足 4 条时自动撑满整行，避免深色区块出现大片空位 */
.sci-grid--overlay {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.sci-card--overlay {
    position: relative;
    min-height: 330px;
    border: 0;
    background: #082638;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

.sci-card--overlay .sci-card__thumb {
    position: absolute;
    inset: 0;
    height: auto;
}

.sci-card--overlay .sci-card__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .9s var(--ease);
}

.sci-card--overlay .sci-card__body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 44px 20px 20px;
    background: linear-gradient(180deg, rgba(8, 38, 58, 0) 0%, rgba(8, 38, 58, .92) 72%);
}

.sci-card--overlay .sci-card__title { color: #fff; font-size: 17px; }
.sci-card--overlay .sci-card__desc { color: rgba(255, 255, 255, .72); margin-top: 8px; }

.sci-card--overlay:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 26px 54px rgba(0, 0, 0, .42);
}

.sci-card--overlay:hover .sci-card__thumb img { transform: scale(1.08); }

/* 宽屏且视口足够高时，右侧服务栏跟随滚动 */
@media (min-width: 1181px) and (min-height: 820px) {
    .portal__side { position: sticky; top: 92px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
    .navmenu__link { padding: 16px 8px; font-size: 13px; }
    .navbar__inner > .btn { padding: 10px 14px; font-size: 13.5px; }
    /* 中等屏幕收起英文副标题，避免顶部通栏挤压换行 */
    .brand__sub { display: none; }
    .expert-grid { grid-template-columns: repeat(3, 1fr); }
    .article-sheet { padding: 32px 30px; }
    /* 门户双栏收窄右栏，新闻分栏与规范清单同步收紧 */
    .portal { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
    .news-split { gap: 20px; }
    .std-group { grid-template-columns: 176px minmax(0, 1fr); }
    .std-group__aside { padding: 16px; }
}

/* 窄屏优先保证栏目完整显示，暂不展示“来访指引”按钮（导航中的“联系我们”仍在） */
@media (max-width: 1000px) {
    .navbar__inner > .btn { display: none; }
}

/* 栏目较多，提前收进折叠菜单，避免顶部导航挤压或换行 */
@media (max-width: 960px) {
    /* 收起导航后空间充足，恢复“来访指引”按钮 */
    .navbar__inner > .btn { display: inline-flex; }
    .nav-toggle { display: inline-flex; }
    .navmenu {
        position: absolute;
        left: 0; right: 0; top: 100%;
        flex-direction: column;
        background: #fff;
        border-bottom: 1px solid var(--c-line);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s var(--ease);
    }
    .navmenu.is-open { max-height: 900px; }
    .navmenu__item { border-bottom: 1px solid var(--c-line); }
    .navmenu__link { padding: 14px 20px; font-size: 16px; }
    .navmenu__link::after { display: none; }
    .navmenu__item.is-active .navmenu__link { background: var(--c-bg-soft); }

    /* 移动端无悬浮，二级栏目直接展开在导航列表中 */
    .navmenu__caret { display: none; }
    .navmenu__item--has-sub:hover > .navmenu__link,
    .navmenu__item--has-sub:focus-within > .navmenu__link { background: transparent; color: var(--c-brand-800); }
    .navmenu__sub {
        position: static;
        min-width: 0;
        padding: 0 0 10px;
        background: var(--c-bg-soft);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .navmenu__sub-link { padding: 10px 20px 10px 36px; font-size: 14.5px; color: var(--c-text-sub); }
    .navmenu__sub-link:hover { background: transparent; color: var(--c-brand-700); }
}

@media (max-width: 1024px) {
    .topbar__meta { gap: 14px; }
    .search-box input { width: 110px; }
    .news-layout, .split { grid-template-columns: 1fr; }
    .layout-main { grid-template-columns: 1fr; }
    .quickbar__grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-split { grid-template-columns: 1fr; }
    .sci-grid { grid-template-columns: repeat(2, 1fr); }
    .expert-grid { grid-template-columns: repeat(2, 1fr); }
    .doc-list--cols { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .expert-profile { grid-template-columns: 220px 1fr; gap: 26px; padding: 26px; }

    /* 首页门户：双栏塌为单栏，侧栏并排两列；联系卡横跨整行，避免出现空格子 */
    .portal { grid-template-columns: 1fr; gap: 26px; }
    .portal__side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .portal__side > .side-panel:last-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 170px;
        column-gap: 20px;
        align-items: center;
    }
    .portal__side > .side-panel:last-child .side-panel__head { grid-column: 1 / -1; }
    .portal__side > .side-panel:last-child .side-qr {
        margin-top: 0;
        padding: 0 0 0 20px;
        border-top: 0;
        border-left: 1px dashed var(--c-line);
        justify-content: center;
    }
    .hero__viewport { height: 460px; }
    .hero__title { font-size: 36px; }
    .news-lead, .news-lead img { min-height: 360px; }
}

@media (max-width: 820px) {
    .topbar__inner { flex-wrap: wrap; gap: 12px; }
    .topbar__meta { width: 100%; flex-wrap: wrap; gap: 12px; }
    .brand__text { font-size: 20px; }
    .brand__name { white-space: normal; }
    /* 小屏进一步收缩站点 Logo，避免与名称挤占整行 */
    .brand__mark--logo { max-width: 180px; }
    .brand__mark--logo img { height: 42px; max-width: 180px; }

    .hero__viewport { height: 380px; }
    .hero__title { font-size: 26px; line-height: 1.3; }
    .hero__desc { font-size: 14px; }
    .hero__nav { bottom: 16px; }
    /* 手机端隐藏主办单位行，避免与轮播箭头重叠 */
    .hero__orgs { display: none; }

    /* 手机端顶部通栏更高，加深首屏顶部遮罩，保证白色导航/电话/邮箱可读 */
    .page-home .hero__mask {
        background:
            linear-gradient(180deg, rgba(8, 38, 58, .7) 0%, rgba(8, 38, 58, .44) 16%, rgba(8, 38, 58, 0) 36%),
            linear-gradient(90deg, rgba(8, 38, 58, .42) 0%, rgba(8, 38, 58, .2) 60%, rgba(8, 38, 58, .06) 100%),
            linear-gradient(180deg, rgba(8, 38, 58, 0) 66%, rgba(8, 38, 58, .32) 100%);
    }
    .page-home .hero__content-wrap { padding-bottom: 44px; }

    /* 通知横条：压缩高度与字号 */
    .notice-bar__inner { gap: 10px; min-height: 44px; }
    .notice-bar__label { padding: 5px 10px; font-size: 12px; }
    .notice-bar__label svg { display: none; }
    .notice-bar__link { font-size: 12.5px; max-width: 240px; padding: 0 16px; }
    .notice-bar__more { font-size: 12px; }

    /* 新闻分栏塌为单列，规范改上下结构 */
    .news-split { grid-template-columns: 1fr; gap: 18px; }
    .news-brief__list { padding: 2px 14px; }
    .std-group { grid-template-columns: 1fr; }
    .std-group__aside {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        border-right: 0;
        border-bottom: 1px solid var(--c-line);
    }
    .std-group__list { padding: 4px 14px 4px 6px; }
    .std-line { gap: 10px; padding: 11px 8px; }

    /* 专家带在移动端隐藏箭头，保留手指滑动 */
    .expert-rail__nav { display: none; }
    .expert-rail::before, .expert-rail::after { width: 32px; }

    /* 首页门户：侧栏单列，规范分组单列，特稿标题缩小 */
    .portal__side { grid-template-columns: 1fr; }
    .portal__side > .side-panel:last-child { grid-column: auto; display: block; }
    .portal__side > .side-panel:last-child .side-qr {
        margin-top: 14px;
        padding: 16px 0 0;
        border-top: 1px dashed var(--c-line);
        border-left: 0;
        justify-content: flex-start;
    }
    .news-lead, .news-lead img { min-height: 260px; }
    .news-lead__body { padding: 20px 18px 18px; }
    .news-lead__title { font-size: 18px; }
    .expert-card--strip { flex: 0 0 210px; }
    .expert-card__avatar--strip { height: 168px; }

    .quickbar { margin-top: 0; }
    .quickbar__grid { grid-template-columns: 1fr; }

    .section { padding: 46px 0; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .section-head h2 { font-size: 22px; }

    .article-card { grid-template-columns: 1fr; }
    .article-card__thumb { height: 180px; }
    .expert-grid, .sci-grid, .contact-grid { grid-template-columns: 1fr; }
    .expert-profile { grid-template-columns: 1fr; }
    .expert-profile__photo img { aspect-ratio: 16 / 10; }
    .article-sheet { padding: 24px 18px; }
    .article-sheet__title { font-size: 21px; }
    .footer__grid { grid-template-columns: 1fr; }
    .page-hero__title { font-size: 23px; }
    .to-top { right: 14px; bottom: 18px; }
}
