/* 2026-11-22 06:15：缩小卡片并增加留白，背景与柔光分层，所有装饰层都不拦截点击。 */
:root { color-scheme: dark; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
/* 2026-11-22 07:28：导航提示不遮挡点击，颜色反馈即时出现；长机构名自然换行。 */
.portal-navigation-status { position: fixed; z-index: 10; left: 50%; bottom: 32px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 40px); padding: 16px 24px; border: 1px solid #8eefff; border-radius: 16px; background: #082b46f2; color: #fff; font-size: 18px; box-shadow: 0 0 24px #00cfff44; pointer-events: none; }
.portal-navigation-status[hidden] { display: none; }
.portal-navigation-dot { flex: 0 0 10px; height: 10px; border-radius: 50%; background: #72efff; box-shadow: 0 0 12px #72efff; }
.institution[aria-busy="true"] { border-color: #72efff; }
.institution[aria-busy="true"] .institution-name { font-size: 18px; letter-spacing: 0; text-align: center; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100vh; background: #04162b url('/images/portal-background.png') center / cover fixed no-repeat; isolation: isolate; }
body::before, body::after { content: ""; position: fixed; inset: -16%; pointer-events: none; z-index: -1; background: url('/images/portal-background.png') center / cover no-repeat; mix-blend-mode: screen; }
body::before { opacity: .5; filter: blur(8px) saturate(1.7); animation: portal-light-sweep 10s ease-in-out infinite alternate; }
body::after { opacity: .28; filter: blur(32px) saturate(2); animation: portal-light-drift 14s ease-in-out infinite alternate; }
.portal { position: relative; min-height: 100svh; max-width: 1480px; margin: auto; padding: clamp(48px, 9vh, 92px) 5% 90px; }
.portal-brand { text-align: center; margin-bottom: clamp(60px, 10vh, 108px); }
/* 2026-11-22 06:33：光晕在标识后方缓慢呼吸，扫光按原 PNG 的透明轮廓裁切，不会出现方形亮块。 */
.portal-mark-stage { position: relative; display: block; width: clamp(92px, 10vw, 136px); margin: 0 auto 24px; pointer-events: none; animation: portal-mark-float 6s ease-in-out infinite; }
.portal-mark-stage::before { content: ""; position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(ellipse, #00dcff55, #007dff16 48%, transparent 72%); filter: blur(9px); animation: portal-mark-halo 6s ease-in-out infinite; }
.portal-mark-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 39%, #e9ffffbb 49%, #ffffffee 51%, transparent 61%) 180% 0 / 300% 100% no-repeat; -webkit-mask: url('/images/SF-Logo.png') center / contain no-repeat; mask: url('/images/SF-Logo.png') center / contain no-repeat; animation: portal-mark-sheen 7s ease-in-out infinite; }
.portal-mark { position: relative; display: block; width: 100%; height: auto; object-fit: contain; animation: portal-breathe 6s ease-in-out infinite; }
h1 { font-size: clamp(30px, 4.5vw, 62px); font-weight: 700; letter-spacing: .09em; margin: 0; color: #fff; line-height: 1.4; text-shadow: 0 3px 22px #00cfff40; }
.institutions { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px; max-width: 1160px; margin: auto; perspective: 1000px; }
/* 2026-11-22 06:28：半透明冰蓝底加背景模糊形成磨砂；斜向反光和内沿高光表现玻璃厚度，保持原卡片尺寸。 */
.institution { --tilt-x: 0deg; --tilt-y: 0deg; position: relative; isolation: isolate; flex: 0 0 192px; min-height: 218px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 18px; border-radius: 20px; background-color: rgba(173, 223, 247, .56); background-image: linear-gradient(135deg, #ffffff55, #d2edff12 38%, #ffffff45 55%, #97d9fa14 72%); -webkit-backdrop-filter: blur(18px) saturate(1.35); backdrop-filter: blur(18px) saturate(1.35); color: #061c36; text-decoration: none; border: 2px solid #c7f1ffb8; box-shadow: inset 0 1px 1px #ffffffbf, inset 0 0 0 3px #d4f4ff33, 0 6px 0 #173f5b99, 0 18px 30px #0006, 0 0 18px #45ceff30; transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease; }
/* 2026-11-22 06:15：边缘光弧是卡片交互装饰，不改变 Logo 原图；静止时也能看清卡片轮廓和厚度。 */
.institution::before { content: ""; position: absolute; inset: -8px; border-radius: 26px; border: 1px solid #76dfff35; opacity: .65; pointer-events: none; transition: opacity .25s, inset .25s; }
.institution::after { content: ""; position: absolute; top: -3px; left: 28%; width: 44%; height: 3px; background: #e4ffff; border-radius: 8px; box-shadow: 0 0 12px #20dfff, 0 0 28px #20dfff; opacity: .15; pointer-events: none; transition: opacity .25s; }
.institution-logo { display: flex; width: 100%; height: 116px; align-items: center; justify-content: center; transition: transform .25s ease; }
/* 2026-11-22 06:28：仅在展示时用正片叠底融合原 Logo 的白色底，不裁切、不改写品牌图片文件。 */
.institution-logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.institution-name { font-size: 25px; font-weight: 700; letter-spacing: .08em; margin-top: 20px; text-shadow: 0 1px 1px #eaffff55; transition: color .25s, letter-spacing .25s; }
.institution:focus-visible { outline: 3px solid #c5ffff; outline-offset: 10px; border-color: #27daff; box-shadow: 0 8px 0 #075c82, 0 0 40px #00d5ff90; }
@media (hover: hover) {
    .institution:hover { transform: translateY(-14px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); background-color: #c0eeffb0; border-color: #76f4ff; box-shadow: inset 0 1px 2px #fff, inset 0 0 0 3px #dcffff55, 0 9px 0 #08698bb3, 0 28px 45px #0007, 0 0 42px #19caff99; }
    .institution:hover::before { inset: -11px; opacity: 1; border-color: #55e4ff88; }
    .institution:hover::after { opacity: 1; animation: portal-card-light 2.4s ease-in-out infinite alternate; }
    .institution:hover .institution-logo { transform: translateY(-4px) scale(1.045); }
    .institution:hover .institution-name { color: #033456; letter-spacing: .13em; }
}
.institution:active, .institution:hover:active { transform: translateY(4px) scale(.98); background-color: #c0eeffbf; border-color: #39daff; box-shadow: inset 0 2px 9px #0c4c7333, 0 2px 0 #08698b, 0 0 26px #19caff65; }
/* 2026-11-22 06:28：旧浏览器不支持背景模糊时增加底色，避免透明文字区难以辨认。 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .institution { background-color: #c1e1f5eb; } }
@keyframes portal-light-sweep { from { transform: translate(-7%, 3%) scale(1); opacity: .26; } to { transform: translate(7%, -5%) scale(1.14); opacity: .65; } }
@keyframes portal-light-drift { from { transform: translate(7%, 5%) scale(1.12); opacity: .15; } to { transform: translate(-5%, -5%) scale(.97); opacity: .42; } }
@keyframes portal-breathe { 0%, 100% { filter: drop-shadow(0 0 8px #00d5ff66); } 50% { filter: drop-shadow(0 0 26px #00d5ffbb); } }
/* 2026-11-22 06:33：每轮只做一次柔和扫光，保留停顿，不旋转或快速闪烁。 */
@keyframes portal-mark-sheen { 0%, 12% { background-position: 180% 0; opacity: 0; } 18% { opacity: .8; } 52% { background-position: -80% 0; opacity: .8; } 58%, 100% { background-position: -80% 0; opacity: 0; } }
@keyframes portal-mark-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes portal-mark-halo { 0%, 100% { opacity: .5; transform: scale(.94); } 50% { opacity: .9; transform: scale(1.08); } }
@keyframes portal-card-light { from { left: 12%; } to { left: 44%; } }
@media (max-width: 1180px) { .institutions { max-width: 800px; gap: 34px; } }
/* 2026-11-22 06:15：手机留足卡片间距，奇数项居中，允许自然滚动，不横向挤压。 */
@media (max-width: 640px) {
    body { background-attachment: scroll; }
    .portal { padding: 36px 30px 60px; }
    .portal-brand { margin-bottom: 44px; }
    .portal-mark-stage { width: 82px; margin-bottom: 18px; }
    h1 { font-size: clamp(25px, 7vw, 36px); letter-spacing: .04em; }
    .institutions { gap: 28px 24px; }
    .institution { flex-basis: calc((100% - 24px) / 2); min-height: 162px; padding: 18px 10px; border-radius: 16px; }
    .institution-logo { height: 90px; }
    .institution-name { font-size: 21px; margin-top: 14px; }
    .institution::before { inset: -6px; border-radius: 22px; }
}
@media (max-width: 330px) { .institution { flex-basis: 100%; max-width: 190px; } }
/* 2026-11-22 06:15：减少动态效果时关闭移动，但保留可见静态柔光、边框和颜色反馈。 */
@media (prefers-reduced-motion: reduce) {
    body::before, body::after, .portal-mark-stage, .portal-mark-stage::before, .portal-mark-stage::after, .portal-mark, .institution:hover::after { animation: none; }
    .portal-mark-stage::after { opacity: 0; }
    .institution, .institution-logo, .institution-name, .institution::before, .institution::after { transition: none; }
    .institution:hover, .institution:active, .institution:hover:active, .institution:hover .institution-logo { transform: none; }
}
