@font-face { font-family: "PortalReferenceIcons"; src: url("fonts/portal-reference-icons.woff2") format("woff2"); font-display: block; }
:root {
    --portal-teal: var(--theme-primary, #009b91);
    --portal-deep: var(--theme-primary-strong, #087f78);
    --portal-accent: var(--theme-accent, var(--portal-teal));
    --portal-ink: #27313c;
    --portal-mist: #f4f6fa;
}
body { background: #fff; color: var(--portal-ink); }
.portal-utility { height: 35px; display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: auto; color: #5d5b5b; background: #f4f4f4; font: 12px/35px "Microsoft YaHei", PingFang, "Heiti SC", sans-serif; }
.portal-utility a { color: var(--portal-deep); text-decoration: none; }
.portal-welcome-name { padding: 0 5px; color: var(--portal-teal); }
.portal-divider { margin: 0 8px; color: #b9b9b9; }
.portal-utility-links { display: flex; align-items: center; }
.portal-utility-links.hidden { display: none !important; }
.portal-utility #loginShortcutBtn { color: #5d5b5b; }
.portal-utility #registerShortcutBtn { color: var(--portal-teal); }
.portal-utility #memberUtilityLinks a[href="/profile"] { color: #5d5b5b; }
.portal-utility-logout { margin: 0; padding: 0; border: 0; color: var(--portal-deep); background: transparent; cursor: pointer; font: inherit; }
.portal-utility a:hover, .portal-utility-logout:hover { color: var(--portal-deep); }
.portal-header { border-top: 0; border-bottom: 2px solid var(--portal-teal); background: #fff; }
.portal-brand-row { height: 120px; max-width: 1200px; margin: auto; display: grid; grid-template-columns: 290px minmax(400px, 1fr) 180px; align-items: center; gap: 40px; }
.portal-header .logo-section { display: flex; align-items: center; gap: 10px; color: var(--portal-teal); text-decoration: none; }
.portal-header .logo-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px; background: var(--portal-teal); color: #fff; font-size: 26px; font-weight: 800; }
.portal-header .logo-text { font-family: STKaiti, KaiTi, serif; font-size: 31px; font-weight: 800; letter-spacing: 1px; }
.portal-search { align-self: center; }
.portal-search-box { height: 43px; display: flex; border: 2px solid var(--portal-teal); }
.portal-search-box > span { width: 58px; display: grid; place-items: center; border-right: 1px solid #d5e5e4; color: #78838b; font-size: 13px; }
.portal-search-box input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 14px; font-size: 13px; color: #4a5560; }
.portal-search-box button { width: 78px; border: 0; background: var(--portal-teal); color: #fff; font-size: 29px; line-height: 1; cursor: pointer; }
.portal-hot-search { display: flex; align-items: center; gap: 7px; margin-top: 7px; font-size: 12px; color: #63707a; }
.portal-hot-search b { font-weight: 400; }
.portal-hot-search .hot-keywords-list { display: flex; gap: 10px; }
.portal-hot-search .hot-keyword-item { padding: 0; border: 0; background: transparent; color: var(--portal-teal); cursor: pointer; font-size: 12px; }
.portal-user-actions { display: flex; justify-content: flex-end; align-items: center; }
.portal-user-actions .membership-nav-link { padding: 9px 16px; border-radius: 18px; background: var(--portal-teal); color: #fff; text-decoration: none; font-size: 13px; }
.portal-nav { height: 38px; max-width: 1200px; margin: 0 auto; display: flex; justify-content: flex-start; align-items: flex-start; gap: 0; overflow: visible; }
.portal-nav .nav-item { height: 40px; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; padding: 0 25px; color: #5b5b5b; font-family: "Microsoft YaHei", PingFang, "Heiti SC", sans-serif; font-size: 16px; font-weight: 500; line-height: 40px; text-align: center; text-decoration: none; }
.portal-nav .nav-item:hover, .portal-nav .nav-item.active { color: #fff; background: var(--portal-teal); }
.portal-home { background: linear-gradient(180deg, #f4f6fa 0, #f4f6fa 480px, #fff 480px); padding-bottom: 64px; }
.portal-stage { padding: 21px 20px 14px; }
.portal-stage-inner { max-width: 1200px; height: 349px; margin: auto; display: grid; grid-template-columns: 202px minmax(0, 1fr) 228px; box-shadow: 0 6px 16px rgba(44, 59, 71, .07); }
.portal-rail, .portal-stats { background: #fff; }
.portal-rail { grid-column: 1; grid-row: 1; display: grid; grid-template-rows: repeat(3, 1fr); }
.portal-carousel, .portal-quick-search { grid-column: 2; grid-row: 1; }
.portal-stats { grid-column: 3; grid-row: 1; }
.portal-rail > a, .portal-rail > button, .portal-category-trigger > a { display: flex; align-items: center; gap: 13px; height: 100%; padding: 0 20px; border: 0; border-bottom: 1px solid #edf0f2; background: #fff; text-align: left; text-decoration: none; color: var(--portal-ink); cursor: pointer; }
.portal-rail > a:last-child { border-bottom: 0; }
.portal-rail i { color: var(--portal-teal); font-size: 29px; font-style: normal; }
.portal-rail .portal-rail-icon { width: 36px; height: 36px; flex: 0 0 36px; background-position: center; background-repeat: no-repeat; background-size: contain; }
.portal-rail-icon-category { background-image: url("images/portal/search-icon.png"); }
.portal-rail-icon-search { background-image: url("images/portal/category-icon.png"); }
.portal-rail-icon-profile { background-image: url("images/portal/profile-icon.png"); }
.portal-rail b, .portal-rail small { display: block; }.portal-rail b { font-size: 16px; }.portal-rail small { margin-top: 7px; color: #a8afb8; font-size: 12px; }
.portal-rail > button:hover, .portal-rail > button.active { background: #fffaf9; color: var(--portal-deep); }
.portal-category-trigger { position: relative; min-height: 0; }
.portal-category-trigger:hover > a, .portal-category-trigger:focus-within > a { background: #fffaf9; color: var(--portal-deep); }
.portal-category-mega { position: absolute; z-index: 50; top: 0; left: 100%; width: min(760px, calc(100vw - 250px)); min-height: 349px; max-height: none; overflow: visible; padding: 14px 30px 12px; border: 1px solid #eef0f2; background: rgba(255, 255, 255, .98); box-shadow: 8px 12px 28px rgba(45, 58, 69, .14); opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-6px); transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.portal-category-trigger:hover .portal-category-mega, .portal-category-trigger:focus-within .portal-category-mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0); }
.portal-category-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); min-height: 50px; align-items: center; border-bottom: 1px dashed #e8ecef; }
.portal-category-row:last-of-type { border-bottom: 0; }
.portal-category-root { position: relative; padding-left: 16px; color: #1f2c34; font-size: 14px; font-weight: 700; text-decoration: none; }
.portal-category-root::before { content: ""; position: absolute; top: 50%; left: 0; width: 3px; height: 10px; background: var(--portal-teal); transform: translateY(-50%); }
.portal-category-children { display: flex; flex-wrap: wrap; gap: 7px 20px; padding: 10px 0; }
.portal-category-children a { color: #69737b; font-size: 13px; line-height: 1.5; text-decoration: none; white-space: nowrap; }
.portal-category-root:hover, .portal-category-children a:hover { color: var(--portal-teal); }
.portal-category-all { display: block; width: max-content; margin: 12px auto 0; padding: 7px 20px; background: var(--portal-teal); color: #fff; font-size: 12px; text-decoration: none; }
.portal-carousel { position: relative; overflow: hidden; background: #fff; }
.portal-carousel.hidden { display: none; }
.portal-quick-search { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 53px; background: #fff; }
.portal-quick-search.hidden { display: none; }
.portal-quick-search h2 { margin: 0 0 25px; color: #3e4145; font-size: 34px; line-height: 1; }
.portal-quick-search-box { display: flex; width: min(565px, calc(100% - 70px)); height: 45px; border: 2px solid var(--portal-teal); border-radius: 5px; overflow: hidden; }
.portal-quick-search-box input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 19px; color: #4f5962; font-size: 13px; }
.portal-quick-search-box button { width: 90px; border: 0; background: var(--portal-teal); color: #fff; cursor: pointer; font-size: 14px; }
.portal-quick-search-box button span { margin-right: 3px; font-size: 24px; vertical-align: -2px; }
.portal-quick-hot { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: #a0a7ae; font-size: 12px; }
.portal-quick-hot b { font-weight: 400; }
.portal-quick-hot .hot-keywords-list { display: flex; flex-wrap: wrap; gap: 10px; }
.portal-quick-hot .hot-keyword-item { padding: 0; border: 0; background: transparent; color: var(--portal-teal); cursor: pointer; font-size: 12px; }
.portal-carousel .home-carousel-track, .portal-carousel .home-carousel-slide { height: 100%; }
.portal-carousel .home-carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }.portal-carousel .home-carousel-slide.active { opacity: 1; z-index: 1; }
.portal-carousel .carousel-cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }.portal-carousel .carousel-cover-shade { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--portal-deep) 18%, transparent), color-mix(in srgb, var(--portal-accent) 2%, transparent)); }
.portal-carousel .banner-copy { position: relative; z-index: 2; width: 60%; padding: 66px 0 0 58px; color: #fff; }.portal-carousel .banner-kicker { font-size: 13px; letter-spacing: 2px; opacity: .9; }.portal-carousel h2 { margin: 15px 0 13px; font-size: 36px; line-height: 1.23; text-shadow: 0 2px 12px rgba(0,0,0,.22); }.portal-carousel p { margin: 0 0 22px; font-size: 16px; }.portal-carousel .hero-action { display: inline-block; padding: 10px 22px; border-radius: 2px; background: #fff; color: var(--portal-deep); text-decoration: none; font-size: 14px; font-weight: 700; }
.portal-carousel .carousel-nav { position: absolute; z-index: 3; top: 50%; width: 32px; height: 48px; transform: translateY(-50%); border: 0; background: rgba(0,0,0,.18); color: #fff; font-size: 33px; cursor: pointer; opacity: 0; transition: opacity .2s; }.portal-carousel:hover .carousel-nav { opacity: 1; }.portal-carousel .carousel-prev { left: 0; }.portal-carousel .carousel-next { right: 0; }.portal-carousel .carousel-dots { position: absolute; z-index: 4; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 9px; }.portal-carousel .carousel-dot { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }.portal-carousel .carousel-dot.active { background: var(--portal-teal); }
.portal-stats { padding: 36px 26px; text-align: center; }.portal-stats p { margin: 0 0 17px; color: #78848e; font-size: 14px; line-height: 1.6; }.portal-stats strong { color: #141a20; font-size: 29px; }.portal-stats em { color: #59636d; font-style: normal; }.portal-stats > a { display: block; margin: 20px auto 27px; padding: 9px; border-radius: 19px; background: var(--portal-teal); color: #fff; text-decoration: none; font-size: 13px; }.portal-stats > div { display: flex; justify-content: space-between; color: #84909a; font-size: 12px; }
.portal-shortcuts { max-width: 1200px; margin: 0 auto 28px; padding: 0 20px; }.portal-shortcuts .tags-container { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; box-shadow: 0 4px 12px rgba(44,59,71,.07); }.portal-shortcuts .tag-card { min-height: 82px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-right: 1px solid #edf0f2; background: #fff; color: #2e3740; cursor: pointer; }.portal-shortcuts .tag-card:last-child { border-right: 0; }.portal-shortcuts .tag-visual { display: block; width: 33px; color: var(--portal-teal); }.portal-shortcuts .tag-visual svg { width: 33px; height: 33px; }.portal-shortcuts h3 { margin: 0; font-size: 16px; font-weight: 500; }.portal-shortcuts .tag-pill { display: none; }
.portal-content { max-width: 1200px; margin: 0 auto; padding: 14px 20px 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }.portal-latest, .portal-category { min-width: 0; }.portal-content header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e7ebee; }.portal-content h2 { margin: 0; padding: 0 0 12px; color: #23313c; font-size: 19px; }.portal-latest h2 { border-bottom: 3px solid var(--portal-teal); color: var(--portal-teal); }.portal-content header a { color: #69747e; text-decoration: none; font-size: 13px; }.portal-latest .articles-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; padding: 10px 0; }.portal-latest .article-item { min-width: 0; display: flex; gap: 8px; padding: 10px 0; border-bottom: 1px dashed #edf0f2; color: #34414c; text-decoration: none; }.portal-latest .rank-badge { display: none; }.portal-latest .article-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }.portal-latest .article-title::before { content: '▧'; margin-right: 7px; color: #3c99de; }.portal-category { border-left: 1px solid #edf0f2; padding-left: 24px; }.portal-category > h2 { border-bottom: 1px solid #e7ebee; }.portal-category .tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 11px 0; }.portal-category .tab-btn { border: 0; background: #f2f6f5; padding: 5px 8px; color: #5a6b71; cursor: pointer; font-size: 12px; }.portal-category .tab-btn.active { background: var(--portal-teal); color: #fff; }.portal-category .tab-icon { display: none; }.portal-category .resource-item { display: flex; align-items: center; gap: 8px; padding: 7px 0; color: #38454f; text-decoration: none; border-bottom: 1px dashed #edf0f2; }.portal-category .rank-badge { color: #e87b32; font-weight: 700; }.portal-category .resource-info { min-width: 0; flex: 1; }.portal-category .resource-title { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 400; }.portal-category .resource-meta, .portal-category .view-pill { display: none; }
.portal-latest .articles-list { grid-template-rows: repeat(5, minmax(42px, auto)); grid-auto-flow: row; }
.portal-latest .article-item { align-items: center; }
.portal-latest .article-main { min-width: 0; flex: 1; }
.portal-latest .article-title::before { content: none; }
.portal-latest .article-item:hover .article-title { color: var(--portal-teal); }
.latest-file-icon { width: 18px; height: 18px; flex: 0 0 18px; display: inline-flex; align-items: center; justify-content: center; overflow: visible; border: 0; color: #4f8eff; font-size: 0; background: none; }
.latest-file-icon::before { content: "\e7bc"; font-family: "PortalReferenceIcons"; font-size: 18px; font-weight: 400; line-height: 1; }
.latest-file-icon::after { content: none; }
.portal-latest .article-date { flex: 0 0 48px; color: #98a2ab; font-size: 12px; white-space: nowrap; }
.portal-latest .article-date::before { content: "\e634"; display: inline-block; width: 14px; height: 14px; margin-right: 4px; color: #9aa5ae; font-family: "PortalReferenceIcons"; font-size: 14px; font-weight: 400; line-height: 14px; vertical-align: -2px; }
@media (max-width: 960px) { .portal-brand-row { grid-template-columns: 1fr; height: auto; gap: 14px; padding: 22px; }.portal-user-actions { display: none; }.portal-nav { overflow-x: auto; justify-content: flex-start; }.portal-nav .nav-item { min-width: 105px; }.portal-stage-inner { grid-template-columns: 180px 1fr; }.portal-stats { display: none; }.portal-category-mega { width: calc(100vw - 220px); padding-inline: 22px; }.portal-content { grid-template-columns: 1fr; }.portal-category { border-left: 0; padding-left: 0; }.portal-utility { padding: 0 16px; } }
@media (max-width: 640px) { .portal-utility { font-size: 11px; }.portal-search { width: 100%; }.portal-stage { padding: 12px 0; }.portal-stage-inner { height: 315px; grid-template-columns: 1fr; }.portal-rail { display: none; }.portal-carousel .banner-copy { width: 80%; padding: 48px 30px; }.portal-carousel h2 { font-size: 27px; }.portal-shortcuts { padding: 0; }.portal-shortcuts .tags-container { grid-template-columns: repeat(2, 1fr); }.portal-shortcuts .tag-card:nth-child(2) { border-right: 0; }.portal-content { padding: 14px; }.portal-latest .articles-list { grid-template-columns: 1fr; } }

/* Reference-aligned desktop proportions. Loaded after theme.css. */
html, body { min-width: 320px; margin: 0; }
.app-shell { min-height: 100vh; background: #fff; }
.portal-home-shell,
.portal-home-shell *,
.portal-home-shell *::before,
.portal-home-shell *::after { box-sizing: border-box; }
.portal-utility { position: relative; max-width: 1200px; height: 35px; overflow: visible; isolation: isolate; }
.portal-utility::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: #f4f4f4; border-top: 1px solid var(--portal-teal); }
.portal-brand-row { height: 119px; grid-template-columns: 300px 450px 1fr; gap: 60px; }
.portal-header .brand-logo { width: auto; max-width: 230px; height: 58px; object-fit: contain; object-position: left center; }
.portal-header .brand-name { max-width: 270px; overflow: hidden; color: #172554; font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: 1px; text-overflow: ellipsis; white-space: nowrap; }
.portal-follow { display: flex; align-items: center; justify-content: flex-end; gap: 9px; color: var(--portal-teal); font-size: 13px; }
.portal-follow img { width: 58px; height: 58px; object-fit: cover; border: 4px solid var(--portal-teal); border-radius: 5px; }
.portal-follow span { padding: 6px 9px; border-radius: 13px; background: var(--portal-teal); color: #fff; }
.portal-nav { position: relative; height: 38px; }
.portal-nav::after { content: ""; position: absolute; right: 20px; bottom: 8px; width: 20px; height: 20px; border: 2px solid var(--portal-teal); border-radius: 3px; opacity: .8; }
.portal-nav::after { content: none; display: none; }
.portal-home { position: relative; overflow: hidden; background: #fff; }
.portal-home::before { content: ""; position: absolute; z-index: 0; top: 0; left: 0; width: 100%; height: 500px; border: 0; border-radius: 0; background: url("images/portal/stage-background.png") center top / cover no-repeat; }
.portal-home::after { display: none; }
.portal-stage { position: relative; z-index: 3; padding: 20px 20px 14px; }
.portal-stage-inner { height: 349px; grid-template-columns: 202px minmax(0, 1fr) 228px; box-shadow: 0 8px 22px rgba(70, 82, 98, .07); }
.portal-carousel .home-carousel-slide.has-cover-image .banner-copy, .portal-carousel .home-carousel-slide.has-cover-image .carousel-cover-shade { display: none; }
.portal-carousel .home-carousel-slide { background: #fff; }
.portal-carousel .home-carousel-slide.has-cover-image .carousel-cover-image { object-fit: cover; opacity: 0; transition: opacity .2s ease; }
.portal-carousel .home-carousel-slide.has-cover-image.is-image-loaded .carousel-cover-image { opacity: 1; }
.portal-carousel .home-carousel-slide.has-cover-image.is-image-failed .carousel-cover-image { display: none; }
.portal-stats { position: relative; padding: 34px 27px 24px; }
.portal-stats::before { content: ""; position: absolute; inset: 18px 14px; pointer-events: none; background: radial-gradient(circle, rgba(244, 176, 176, .28) 1.5px, transparent 2px) 0 0 / 16px 16px; opacity: .38; }
.portal-stats > * { position: relative; z-index: 1; }
.portal-stats > a { width: 140px; margin-top: 20px; }
.portal-stats h3 { display: flex; align-items: center; gap: 8px; margin: -2px 0 11px; color: #5d666e; font-size: 14px; font-weight: 400; white-space: nowrap; }
.portal-stats > hr { display: none !important; width: 0 !important; height: 0 !important; margin: 0 !important; border: 0 !important; }
.portal-stats h3::before, .portal-stats h3::after { content: ""; height: 1px; flex: 1; background: #e1e4e7; }
.portal-stats h3 + p { margin-bottom: 13px; color: #929ba3; font-size: 12px; }
.portal-stats > div { align-items: flex-start; }
.portal-stats > div span { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 42px; }
.portal-stats > div span::before { content: ""; display: block; width: 32px; height: 32px; background-position: center; background-repeat: no-repeat; background-size: contain; }
.portal-stats > div span:nth-child(1)::before { background-image: url("images/portal/stat-fast.png"); }
.portal-stats > div span:nth-child(2)::before { background-image: url("images/portal/stat-credit.png"); }
.portal-stats > div span:nth-child(3)::before { background-image: url("images/portal/stat-open.png"); }
.portal-shortcuts { position: relative; z-index: 1; max-width: 1200px; margin-bottom: 32px; padding: 0; }
.portal-shortcuts .tags-container { grid-template-columns: repeat(5, 1fr); min-height: 90px; border-radius: 2px; overflow: hidden; box-shadow: 0 4px 18px rgba(35, 57, 70, .07); }
.portal-shortcuts .tag-card { position: relative; z-index: 0; min-width: 0; min-height: 90px; justify-content: flex-start; gap: 17px; padding: 10px 24px; border: 0; background: #fff; transition: transform .22s ease, box-shadow .22s ease, color .22s ease; }
.portal-shortcuts .tag-card:not(:last-child)::after { content: ""; position: absolute; top: 22px; right: 0; width: 0; height: 46px; border-right: 2px dashed #dfe4e6; color: transparent; font-size: 0; transform: none; }
.portal-shortcuts .tag-card:hover, .portal-shortcuts .tag-card:focus-visible { z-index: 2; transform: translateY(-2px); color: var(--portal-teal); box-shadow: 0 9px 24px color-mix(in srgb, var(--portal-teal) 13%, transparent); outline: none; }
.portal-shortcuts .tag-card:active { transform: translateY(0) scale(.99); }
.portal-shortcuts .tag-card.is-activating { z-index: 3; animation: portalShortcutTap .18s ease both; }
.portal-shortcuts .tag-visual { box-sizing: border-box; width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--portal-teal) 12%, #e4e7eb); border-radius: 12px; color: var(--portal-teal); background: linear-gradient(145deg, #fff 10%, color-mix(in srgb, var(--portal-teal) 4%, #fff) 100%); box-shadow: 0 3px 8px color-mix(in srgb, var(--portal-deep) 12%, transparent), inset 0 0 0 2px rgba(255,255,255,.9); transition: transform .22s ease, box-shadow .22s ease; }
.portal-shortcuts .tag-visual svg { width: 39px; height: 39px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.portal-shortcuts .tag-content { min-width: 0; padding: 0; text-align: left; }
.portal-shortcuts .tag-content h3 { position: relative; margin: 0; padding-bottom: 16px; overflow: hidden; color: #20282d; font-size: 18px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.portal-shortcuts .tag-content h3::after { content: ""; position: absolute; bottom: 3px; left: 0; width: 34px; height: 3px; border-radius: 999px; background: var(--portal-teal); }
.portal-shortcuts .tag-card:hover .tag-visual, .portal-shortcuts .tag-card:focus-visible .tag-visual { transform: translateY(-2px) scale(1.03); box-shadow: 0 7px 15px rgba(18, 152, 139, .18), inset 0 0 0 2px rgba(255,255,255,.9); }
@keyframes portalShortcutTap { 0% { transform: translateY(-2px) scale(1); box-shadow: 0 9px 24px rgba(27,94,89,.13); } 50% { transform: translateY(0) scale(.98); box-shadow: 0 4px 10px rgba(27,94,89,.08); } 100% { transform: translateY(-2px) scale(1); box-shadow: 0 9px 24px rgba(27,94,89,.13); } }
@media (prefers-reduced-motion: reduce) { .portal-shortcuts .tag-card, .portal-shortcuts .tag-visual { transition: none; }.portal-shortcuts .tag-card.is-activating { animation: none; } }
.portal-content { position: relative; z-index: 1; align-items: start; padding: 16px 0 24px; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
.portal-list-tabs { display: flex; align-items: stretch; gap: 27px; }
.portal-list-tab { position: relative; margin: 0; padding: 0 0 12px; border: 0; background: transparent; color: #59636d; cursor: pointer; font-size: 16px; }
.portal-list-tab.active { color: var(--portal-teal); font-size: 19px; font-weight: 700; }
.portal-list-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--portal-teal); }
.portal-content header .portal-all-materials { display: inline-flex; align-items: center; gap: 5px; color: #69747e; transition: color .18s ease; }
.portal-content header .portal-all-materials:visited { color: #69747e; }
.portal-content header .portal-all-materials:hover,
.portal-content header .portal-all-materials:focus-visible { color: var(--portal-teal); }
.portal-all-materials svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linejoin: round; }
.portal-latest .articles-list { grid-template-rows: repeat(5, 34px); align-content: start; padding: 4px 0; }
.portal-latest .article-item { box-sizing: border-box; height: 34px; min-height: 34px; padding: 5px 0; }
.portal-category > h2 { position: relative; padding-left: 18px; }
.portal-category > h2::before { content: ""; position: absolute; left: 0; top: 3px; width: 5px; height: 18px; border-radius: 2px; background: var(--portal-teal); }
.portal-category .tabs-nav { display: none; }
.portal-category .tab-content { margin-top: 11px; }
.portal-category .resource-item { padding: 6px 0; }
.portal-category .rank-badge { min-width: 20px; font-style: normal; color: #282f35; }
.portal-category .resource-item:nth-child(-n+3) .rank-badge { color: #ef5b30; }
.portal-featured { position: relative; z-index: 1; padding: 33px max(calc((100vw - 1200px) / 2), 20px) 60px; background: #fafbfc; border-top: 1px solid #f0f1f3; }
.portal-featured > header { max-width: 1200px; margin: 0 auto 23px; display: flex; align-items: center; justify-content: space-between; }
.portal-featured > header > div { display: flex; align-items: center; gap: 28px; }
.portal-featured h2 { position: relative; margin: 0; padding-left: 18px; font-size: 24px; color: #26323b; }
.portal-featured h2::before { content: ""; position: absolute; left: 0; top: 3px; width: 5px; height: 24px; border-radius: 2px; background: var(--portal-teal); }
.portal-featured nav { display: flex; gap: 12px; align-items: center; }.portal-featured nav a, .portal-featured > header > a { color: #8a929a; text-decoration: none; font-size: 13px; }.portal-featured nav i { color: #d8dce0; font-style: normal; }
.portal-featured-grid { max-width: 1200px; margin: auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.portal-featured-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid #eceef0; background: #fff; color: #333d45; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.portal-featured-card:hover, .portal-featured-card:focus-visible { transform: translateY(-3px); box-shadow: 0 9px 24px rgba(60,72,84,.1); outline: none; }
.portal-featured-card::after { content: ""; position: absolute; z-index: 2; top: 50%; right: 0; bottom: 0; left: 0; background: rgba(255,255,255,.86); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.portal-featured-card:hover::after, .portal-featured-card:focus-visible::after { opacity: 1; }
.portal-featured-cover { position: relative; display: block; aspect-ratio: 1.45; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--portal-teal) 9%, #fff), color-mix(in srgb, var(--portal-accent) 16%, #fff)); }
.portal-featured-cover img { width: 100%; height: 100%; object-fit: cover; }.portal-featured-cover.image-error::after { content: "教务资料"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--portal-teal); font-size: 22px; font-weight: 800; }
.portal-featured-cover .word-manuscript-badge { position: absolute; left: 7px; top: 7px; z-index: 1; padding: 4px 9px; border-radius: 999px; background: rgba(0,150,136,.94); box-shadow: 0 2px 7px rgba(0,83,77,.18); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; }
.portal-featured-card > strong { display: -webkit-box; min-height: 48px; margin: 12px 10px 6px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; line-height: 1.65; }
.portal-featured-meta { display: flex; justify-content: space-between; padding: 0 10px 12px; }.portal-featured-card em { color: var(--portal-teal); font-size: 12px; font-style: normal; }.portal-featured-card small { color: #9aa1a8; }
.portal-featured-card .portal-featured-hover-action { position: absolute; z-index: 3; top: 72%; left: 50%; display: inline-flex; min-width: 92px; height: 38px; align-items: center; justify-content: center; padding: 0 18px; border-radius: 20px; background: var(--portal-teal); box-shadow: 0 6px 16px color-mix(in srgb, var(--portal-teal) 20%, transparent); color: #fff; font-size: 14px; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, -35%); transition: opacity .2s ease, transform .2s ease; }
.portal-featured-card:hover .portal-featured-hover-action, .portal-featured-card:focus-visible .portal-featured-hover-action { opacity: 1; transform: translate(-50%, -50%); }
.portal-resource-sections { background: #fff; }
.portal-resource-section { padding: 32px max(calc((100vw - 1200px) / 2), 20px) 36px; border-top: 1px solid #eef0f2; }
.portal-resource-section:nth-child(even) { background: #fafbfc; }
.portal-resource-section > header { max-width: 1200px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: space-between; }
.portal-resource-section > header > div { min-width: 0; display: flex; align-items: center; gap: 28px; }
.portal-resource-section h2 { position: relative; flex: 0 0 auto; margin: 0; padding-left: 18px; color: #26323b; font-size: 24px; }
.portal-resource-section h2::before { content: ""; position: absolute; left: 0; top: 4px; width: 5px; height: 20px; border-radius: 3px; background: var(--portal-teal); }
.portal-resource-section nav { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.portal-resource-section nav a, .portal-resource-section > header > a { color: #8a929a; text-decoration: none; font-size: 13px; }
.portal-resource-section nav a:hover, .portal-resource-section > header > a:hover { color: var(--portal-teal); }
.portal-resource-section nav i { color: #d8dce0; font-style: normal; }
.home-category-resource-grid { max-width: 1200px; margin: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 38px; }
.home-category-resource { min-width: 0; height: 40px; display: flex; align-items: center; gap: 8px; border-bottom: 1px dashed #edf0f2; color: #27343e; text-decoration: none; }
.home-category-resource:hover strong { color: var(--portal-teal); }
.home-category-resource strong { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 400; }
.home-category-resource time { flex: 0 0 48px; color: #98a2ab; font-size: 12px; white-space: nowrap; }
.home-category-resource time::before { content: "\e634"; display: inline-block; margin-right: 4px; color: #9aa5ae; font-family: "PortalReferenceIcons"; font-size: 14px; vertical-align: -2px; }
.home-category-file-icon { width: 17px; height: 17px; flex: 0 0 17px; color: #4f8eff; }
.home-category-file-icon::before { content: "\e7bc"; font-family: "PortalReferenceIcons"; font-size: 17px; line-height: 1; }
.latest-file-icon.is-ppt::before, .latest-file-icon.is-excel::before, .home-category-file-icon.is-ppt::before, .home-category-file-icon.is-excel::before { content: none; }
.latest-file-icon.is-ppt { width: 15px; height: 19px; flex-basis: 15px; color: #f06445; }
.home-category-file-icon.is-ppt { width: 14px; height: 18px; flex-basis: 14px; color: #f06445; }
.latest-file-icon.is-excel { width: 15px; height: 19px; flex-basis: 15px; color: #16b96b; }
.home-category-file-icon.is-excel { width: 14px; height: 18px; flex-basis: 14px; color: #16b96b; }
.ppt-file-icon-svg, .excel-file-icon-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ppt-file-icon-svg { color: #f06445; }
.excel-file-icon-svg { color: #16b96b; }
.ppt-file-icon-svg path, .excel-file-icon-svg path { fill: #fff; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.ppt-file-icon-svg text, .excel-file-icon-svg text { fill: currentColor; font-family: Arial, sans-serif; font-size: 15px; font-weight: 700; text-anchor: middle; }
.portal-float-tools { position: fixed; z-index: 40; top: 50%; right: 18px; display: grid; width: 56px; overflow: hidden; background: var(--portal-teal); box-shadow: 0 6px 18px color-mix(in srgb, var(--portal-deep) 20%, transparent); transform: translateY(-50%); }
.portal-float-tools button { width: 56px; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 2px 5px; border: 0; border-bottom: 1px solid rgba(255,255,255,.34); color: #fff; background: transparent; cursor: pointer; font: 600 12px/1.25 "Microsoft YaHei", sans-serif; transition: background .18s ease; }
.portal-float-tools button:last-child { border-bottom: 0; }
.portal-float-tools:not(.has-back-to-top) [data-float-tool="poster"] { border-bottom: 0; }
.portal-float-tools button.hidden { display: none; }
.portal-float-tools button:hover, .portal-float-tools button:focus-visible, .portal-float-tools button[aria-expanded="true"] { background: rgba(0, 66, 61, .2); outline: none; }
.portal-float-tools svg { width: 28px; height: 27px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.portal-float-tools [data-float-tool="service"] svg circle { fill: currentColor; stroke: none; }
.portal-float-tools [data-float-tool="top"] svg { width: 27px; height: 27px; stroke-width: 4; }
.portal-float-popover { position: fixed; z-index: 42; top: 50%; right: 86px; width: 230px; padding: 20px 18px 17px; border: 1px solid #e2e8e7; border-radius: 4px; background: #fff; box-shadow: 0 12px 34px rgba(21, 62, 59, .18); text-align: center; transform: translateY(-50%); }
.portal-float-popover.hidden { display: none; }
.portal-float-popover::before { content: ""; position: absolute; top: 50%; right: -8px; width: 14px; height: 14px; border: 1px solid #e2e8e7; border-bottom: 0; border-left: 0; background: #fff; transform: translateY(-50%) rotate(45deg); }
.portal-float-popover-close, .portal-share-poster-close { position: absolute; top: 6px; right: 8px; width: 30px; height: 30px; border: 0; color: #87938f; background: transparent; cursor: pointer; font-size: 25px; line-height: 1; }
.portal-float-popover section { display: block; }
.portal-float-popover section.hidden { display: none; }
.portal-float-popover h2 { margin: 0 0 12px; color: #21312f; font-size: 18px; }
.portal-float-popover img { width: 170px; height: 230px; object-fit: contain; object-position: center; border: 1px solid #edf0ef; background: #fff; }
.portal-float-popover p { margin: 10px 0 0; color: #7a8582; font-size: 12px; line-height: 1.6; }
.portal-share-poster-modal { position: fixed; z-index: 1100; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(13, 27, 26, .62); backdrop-filter: blur(3px); }
.portal-share-poster-modal.hidden { display: none; }
.portal-share-poster-dialog { position: relative; width: min(820px, 100%); max-height: calc(100vh - 44px); display: grid; grid-template-columns: minmax(260px, 360px) minmax(260px, 1fr); grid-template-rows: auto 1fr; gap: 20px 32px; overflow: auto; padding: 28px; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.portal-share-poster-dialog > header { grid-column: 2; align-self: end; }
.portal-share-poster-dialog h2 { margin: 0 0 8px; color: #172b29; font-size: 25px; }
.portal-share-poster-dialog header p { margin: 0; color: #7a8582; font-size: 14px; }
.portal-share-poster-preview { grid-column: 1; grid-row: 1 / span 2; min-height: 420px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: #eef3f2; }
.portal-share-poster-preview img { width: 100%; height: 100%; max-height: 590px; object-fit: contain; }
.portal-share-poster-actions { grid-column: 2; display: grid; align-content: end; gap: 10px; }
.portal-share-poster-actions button { height: 44px; border: 1px solid #d8e1df; border-radius: 6px; color: #3d4b49; background: #fff; cursor: pointer; font: 600 14px "Microsoft YaHei", sans-serif; }
.portal-share-poster-actions button:hover { border-color: var(--portal-teal); color: var(--portal-teal); }
.portal-share-poster-actions button.primary { border-color: var(--portal-teal); color: #fff; background: var(--portal-teal); }
body.portal-share-poster-open { overflow: hidden; }
@media (max-width: 960px) { .portal-float-popover { display: none !important; } }
@media (max-width: 700px) { .portal-share-poster-dialog { display: block; padding: 22px 16px 18px; }.portal-share-poster-dialog > header { margin-bottom: 16px; padding-right: 28px; }.portal-share-poster-preview { min-height: 0; max-height: 56vh; margin-bottom: 16px; }.portal-share-poster-actions { display: grid; }.portal-share-poster-actions button { width: 100%; } }
@media (max-width: 960px) { .portal-follow { display: none; }.portal-featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.portal-shortcuts { padding: 0 20px; }.portal-shortcuts .tags-container { grid-template-columns: repeat(3, 1fr); }.portal-float-tools { display: none; }.home-category-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.portal-resource-section > header > div { align-items: flex-start; flex-direction: column; gap: 10px; } }
@media (max-width: 640px) { .portal-featured { padding: 28px 14px; }.portal-featured > header > div { align-items: flex-start; flex-direction: column; gap: 10px; }.portal-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.portal-featured nav { flex-wrap: wrap; }.portal-shortcuts .tags-container { grid-template-columns: repeat(2, 1fr); }.portal-resource-section { padding-inline: 14px; }.portal-resource-section > header { align-items: flex-start; gap: 15px; }.home-category-resource-grid { grid-template-columns: 1fr; } }

/* When the stats panel is hidden, let the carousel consume its grid column. */
@media (min-width: 768px) and (max-width: 960px) {
    .portal-stage-inner {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .portal-carousel,
    .portal-quick-search {
        grid-column: 2 / -1;
    }
}

/* Mobile home, aligned with the compact source-site experience. */
.mobile-search-label,
.mobile-more-label,
.mobile-home-shortcuts,
.mobile-home-summary,
.mobile-bottom-nav,
.mobile-category-page {
    display: none;
}

@media (max-width: 767px) {
    :root {
        --mobile-page-gutter: 16px;
        --mobile-nav-height: 70px;
        --mobile-nav-offset: 8px;
        --mobile-green: var(--portal-teal);
    }

    body {
        overflow-x: hidden;
        background: #fff;
    }

    body.mobile-categories-open {
        overflow: hidden;
    }

    .app-shell {
        padding-bottom: calc(var(--mobile-nav-height) + var(--mobile-nav-offset) + env(safe-area-inset-bottom, 0px));
    }

    .portal-utility,
    .portal-header .logo-section,
    .portal-header .portal-nav,
    .portal-user-actions,
    .portal-follow {
        display: none !important;
    }

    .portal-header {
        padding: 16px var(--mobile-page-gutter) 0;
        border: 0;
        background: #fff;
    }

    .portal-brand-row {
        display: block;
        width: 100%;
        height: auto;
        padding: 0;
    }

    .portal-search {
        width: 100%;
    }

    .portal-search-box {
        position: relative;
        height: 52px;
        padding-left: 42px;
        overflow: hidden;
        border: 0;
        border-radius: 7px;
        background: #fff;
        box-shadow: 0 2px 11px rgba(36, 46, 55, .14);
    }

    .portal-search-box::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 17px;
        width: 17px;
        height: 17px;
        border: 2px solid #555d62;
        border-radius: 50%;
        transform: translateY(-62%);
        opacity: .78;
    }

    .portal-search-box::after {
        content: "";
        position: absolute;
        top: 31px;
        left: 31px;
        width: 8px;
        height: 2px;
        border-radius: 2px;
        background: #555d62;
        transform: rotate(46deg);
        opacity: .78;
    }

    .portal-search-box > span,
    .portal-search-box .desktop-search-icon {
        display: none;
    }

    .portal-search-box input {
        width: 100%;
        padding: 0 4px;
        color: #343a3f;
        font-size: 15px;
    }

    .portal-search-box input::placeholder {
        color: #c4c6c8;
        opacity: 1;
    }

    .portal-search-box button {
        width: 72px;
        flex: 0 0 72px;
        background: #fff;
        color: var(--portal-teal);
        font-size: 17px;
        font-weight: 500;
    }

    .portal-search-box .mobile-search-label {
        display: inline;
        white-space: nowrap;
    }

    .portal-hot-search {
        min-width: 0;
        margin-top: 9px;
        padding-bottom: 12px;
        overflow: hidden;
        border-bottom: 1px solid #eceff1;
        color: #2f353a;
        font-size: 14px;
        white-space: nowrap;
    }

    .portal-hot-search b {
        flex: 0 0 auto;
        font-size: 14px;
    }

    .portal-hot-search .hot-keywords-list {
        min-width: 0;
        overflow: hidden;
        gap: 14px;
    }

    .portal-hot-search .hot-keyword-item {
        flex: 0 0 auto;
        font-size: 14px;
    }

    .portal-home {
        padding-bottom: 20px;
        overflow: visible;
        background: #fff;
    }

    .portal-home::before,
    .portal-home::after {
        display: none;
    }

    .portal-stage {
        padding: 16px var(--mobile-page-gutter) 48px;
    }

    .portal-stage-inner {
        display: block;
        width: 100%;
        height: auto;
        box-shadow: none;
    }

    .portal-rail,
    .portal-stats,
    .portal-quick-search,
    .portal-carousel .carousel-nav {
        display: none !important;
    }

    .portal-carousel {
        display: block !important;
        width: 100%;
        height: auto;
        aspect-ratio: 2.18 / 1;
        overflow: visible;
        border-radius: 12px;
        background: #fff;
    }

    .portal-carousel .home-carousel-track {
        position: relative;
        height: 100%;
        overflow: hidden;
        border-radius: 12px;
    }

    .portal-carousel .home-carousel-slide {
        border-radius: 12px;
    }

    .portal-carousel .carousel-cover-image {
        border-radius: 12px;
        object-fit: cover;
    }

    .portal-carousel .banner-copy {
        width: 80%;
        padding: 25px 18px 0;
    }

    .portal-carousel h2 {
        margin: 8px 0;
        font-size: clamp(20px, 6vw, 28px);
    }

    .portal-carousel p,
    .portal-carousel .banner-actions {
        display: none;
    }

    .portal-carousel .carousel-dots {
        bottom: -32px;
        gap: 13px;
    }

    .portal-carousel .carousel-dot {
        width: 7px;
        height: 7px;
        padding: 0;
        background: #cfd2d3;
    }

    .portal-carousel .carousel-dot.active {
        background: var(--portal-teal);
    }

    .mobile-home-shortcuts {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 20px 6px;
        padding: 0 var(--mobile-page-gutter) 20px;
        background: #fff;
    }

    .mobile-home-shortcuts a {
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 7px;
        color: #666;
        text-align: center;
        text-decoration: none;
    }

    .mobile-home-shortcuts a > span {
        width: min(100%, 66px);
        aspect-ratio: 1;
        display: grid;
        place-items: center;
        padding: 5px;
        box-sizing: border-box;
        border: 3px solid var(--mobile-green);
        border-radius: 50%;
        background: #fff;
    }

    .mobile-home-shortcuts a b {
        width: 100%;
        aspect-ratio: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--mobile-green);
        color: #fff;
        font-size: clamp(10px, 2.8vw, 13px);
        font-weight: 700;
        line-height: 1.1;
    }

    .mobile-home-shortcuts a b i {
        font-style: normal;
    }

    .mobile-home-shortcuts a em {
        max-width: 100%;
        overflow: hidden;
        color: #686868;
        font-size: clamp(11px, 3.25vw, 14px);
        font-style: normal;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-home-summary {
        display: block;
        margin: 0 var(--mobile-page-gutter) 14px;
        overflow: hidden;
        border-radius: 7px;
        background: #fff;
        box-shadow: 0 2px 10px rgba(38, 45, 51, .14);
    }

    .mobile-home-summary p {
        margin: 0;
        display: flex;
        align-items: baseline;
        gap: 8px;
        padding: 17px 14px;
        border-bottom: 1px solid #eceff1;
        color: #333;
        font-size: clamp(12px, 3.2vw, 14px);
        line-height: 1.6;
    }

    .mobile-home-summary p:last-child {
        border-bottom: 0;
    }

    .mobile-home-summary strong {
        flex: 0 0 auto;
        font-size: clamp(17px, 4.5vw, 20px);
    }

    .mobile-home-summary span {
        min-width: 0;
    }

    .mobile-home-summary em {
        margin: 0 2px;
        color: var(--portal-teal);
        font-size: 1.25em;
        font-style: normal;
    }

    #publicTagsSection,
    .portal-content {
        display: none;
    }

    .portal-featured {
        padding: 4px var(--mobile-page-gutter) 30px;
        border-top: 0;
        background: #fff;
    }

    .portal-featured > header {
        margin-bottom: 14px;
        align-items: center;
    }

    .portal-featured > header > div {
        display: block;
    }

    .portal-featured h2 {
        padding-left: 0;
        font-size: 25px;
    }

    .portal-featured h2::before,
    .portal-featured nav,
    .portal-featured .desktop-more-label {
        display: none;
    }

    .portal-featured .mobile-more-label {
        display: inline;
        color: #999;
        font-size: 16px;
    }

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

    .portal-featured-card:hover,
    .portal-featured-card:focus-visible {
        transform: none;
        box-shadow: none;
    }

    .portal-featured-card::after,
    .portal-featured-card .portal-featured-hover-action {
        display: none;
    }

    .portal-featured-cover {
        aspect-ratio: 1.45;
    }

    .portal-featured-card > strong {
        min-height: 43px;
        margin: 9px 8px 4px;
        font-size: 13px;
    }

    .portal-featured-meta {
        padding: 0 8px 10px;
    }

    .portal-resource-section {
        padding: 24px var(--mobile-page-gutter);
    }

    .portal-resource-section > header {
        align-items: center;
    }

    .portal-resource-section > header > div {
        display: block;
    }

    .portal-resource-section h2 {
        padding-left: 0;
        font-size: 22px;
    }

    .portal-resource-section h2::before,
    .portal-resource-section nav {
        display: none;
    }

    .mobile-bottom-nav {
        position: fixed;
        z-index: 100;
        right: var(--mobile-page-gutter);
        bottom: calc(var(--mobile-nav-offset) + env(safe-area-inset-bottom, 0px));
        left: var(--mobile-page-gutter);
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        height: var(--mobile-nav-height);
        padding: 6px 8px 5px;
        box-sizing: border-box;
        border: 1px solid color-mix(in srgb, var(--portal-teal) 8%, #e8ebf0);
        border-radius: 9px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 3px 16px rgba(33, 50, 81, .12);
        backdrop-filter: blur(10px);
    }

    .mobile-bottom-nav a {
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #7b8290;
        text-decoration: none;
        opacity: 1;
    }

    .mobile-bottom-nav a > span {
        width: 30px;
        height: 30px;
        display: grid;
        place-items: center;
        color: currentColor;
    }

    .mobile-bottom-nav a > span svg {
        width: 27px;
        height: 27px;
        overflow: visible;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-bottom-nav a em {
        max-width: 100%;
        overflow: hidden;
        color: currentColor;
        font-size: clamp(10px, 2.8vw, 12px);
        font-style: normal;
        line-height: 1.2;
        white-space: nowrap;
    }

    .mobile-bottom-nav a.active {
        color: var(--portal-teal);
        font-weight: 700;
        opacity: 1;
    }

    .mobile-bottom-nav .mobile-nav-membership {
        width: 60px;
        height: 60px;
        align-self: center;
        justify-self: center;
        gap: 0;
        margin-top: -8px;
        border-radius: 50%;
        border: 1px solid #e3e6eb;
        color: #7b8290;
        background: #fff;
        box-shadow: 0 5px 14px rgba(33, 50, 81, .15);
        opacity: 1;
    }

    .mobile-bottom-nav .mobile-nav-membership.active {
        border-color: color-mix(in srgb, var(--portal-teal) 24%, #e3e6eb);
        color: var(--portal-teal);
        background: color-mix(in srgb, var(--portal-teal) 10%, #fff);
        box-shadow: 0 5px 14px color-mix(in srgb, var(--portal-teal) 34%, transparent);
    }

    .mobile-bottom-nav .mobile-nav-membership > span {
        width: 28px;
        height: 29px;
    }

    .mobile-bottom-nav .mobile-nav-membership > span svg {
        width: 26px;
        height: 26px;
        stroke-width: 1.45;
    }

    .mobile-bottom-nav .mobile-nav-membership em {
        color: currentColor;
        font-size: 10px;
    }

    .mobile-category-page {
        position: fixed;
        z-index: 180;
        inset: 0;
        display: block;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
        color: #333;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-category-page.hidden {
        display: none !important;
    }

    .mobile-category-topbar {
        position: sticky;
        z-index: 3;
        top: 0;
        min-height: 66px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
        padding: env(safe-area-inset-top, 0px) 16px 0;
        border-bottom: 1px solid #e7e7e7;
        background: rgba(244, 244, 244, .97);
        backdrop-filter: blur(12px);
    }

    .mobile-category-title {
        min-width: 0;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: #333;
        font-size: clamp(17px, 5vw, 21px);
        text-decoration: none;
        white-space: nowrap;
    }

    .mobile-category-title svg {
        width: 25px;
        height: 25px;
        fill: none;
        stroke: #929292;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.7;
    }

    .mobile-category-quick-nav {
        display: flex;
        align-items: center;
        color: #333;
        white-space: nowrap;
    }

    .mobile-category-quick-nav button,
    .mobile-category-quick-nav a {
        padding: 10px 9px;
        border: 0;
        background: transparent;
        color: inherit;
        cursor: pointer;
        font: inherit;
        font-size: clamp(15px, 4.4vw, 19px);
        text-decoration: none;
    }

    .mobile-category-quick-nav i {
        width: 1px;
        height: 20px;
        background: #9a9a9a;
        transform: scaleX(.6);
    }

    .mobile-category-groups {
        padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px));
        background: #f7f8f9;
    }

    .mobile-category-loading,
    .mobile-category-empty {
        min-height: 240px;
        margin: 0;
        display: grid;
        place-items: center;
        background: #fff;
        color: #9a9a9a;
        font-size: 15px;
    }

    .mobile-category-group {
        padding: 14px 12px 20px;
        border-bottom: 8px solid #f6f7f8;
        background: #fff;
    }

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

    .mobile-category-group-title {
        min-height: 58px;
        display: flex;
        align-items: center;
        gap: 9px;
        box-sizing: border-box;
        padding: 12px 10px;
        border-radius: 4px;
        background: #f7f7f7;
        color: #666;
        font-size: clamp(20px, 5.7vw, 25px);
        font-weight: 800;
        text-decoration: none;
    }

    .mobile-category-group-title::before {
        content: "»";
        flex: 0 0 auto;
        color: #666;
        font-family: Arial, sans-serif;
        font-size: 32px;
        font-weight: 900;
        line-height: .8;
        transform: translateY(-1px);
    }

    .mobile-category-children {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 10px;
        padding: 12px 8px 0;
    }

    .mobile-category-child {
        min-width: 0;
        min-height: 54px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        box-sizing: border-box;
        padding: 12px 13px;
        border-radius: 4px;
        background: #f7f7f7;
        color: #333;
        font-size: clamp(15px, 4.4vw, 19px);
        line-height: 1.25;
        text-decoration: none;
    }

    .mobile-category-child span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-category-child::after {
        content: "";
        width: 9px;
        height: 9px;
        flex: 0 0 9px;
        border-top: 2px solid #aaa;
        border-right: 2px solid #aaa;
        transform: rotate(45deg);
    }

    .mobile-category-float-tools {
        position: fixed;
        z-index: 4;
        right: 10px;
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
        display: grid;
        gap: 15px;
        pointer-events: none;
    }

    .mobile-category-float-tools a {
        display: grid;
        justify-items: center;
        color: var(--portal-teal);
        text-decoration: none;
        pointer-events: auto;
    }

    .mobile-category-float-tools span {
        width: 39px;
        height: 39px;
        display: grid;
        place-items: center;
        color: var(--portal-teal);
        font-family: Arial, sans-serif;
        font-size: 34px;
        font-weight: 800;
        line-height: 1;
    }

    .mobile-category-float-tools em {
        margin-top: 2px;
        font-size: 14px;
        font-style: normal;
        text-shadow: 0 1px 2px #fff, 0 -1px 2px #fff, 1px 0 2px #fff, -1px 0 2px #fff;
        white-space: nowrap;
    }
}

@media (max-width: 374px) {
    .mobile-home-shortcuts {
        gap-inline: 3px;
    }

    .mobile-home-summary p {
        padding-inline: 11px;
        gap: 5px;
    }
}
