:root {
    --portal-primary: #b4473d;
    --portal-primary-dark: #7d2f2b;
    --portal-primary-soft: #fff1ed;
    --portal-accent: #d59a2f;
    --portal-ink: #203247;
    --portal-muted: #718092;
    --portal-line: #e1e8f0;
    --portal-bg: #f4f7fb;
    --portal-card: #fff;
    --portal-radius: 12px;
}

.theme-library { --portal-primary: #b4473d; --portal-primary-dark: #7d2f2b; --portal-primary-soft: #fff1ed; --portal-accent: #d59a2f; }
.theme-ppt { --portal-primary: #ed7b22; --portal-primary-dark: #b84b0b; --portal-primary-soft: #fff3e8; --portal-accent: #ffb341; }
.theme-ai { --portal-primary: #049ff8; --portal-primary-dark: #087bb8; --portal-primary-soft: #eaf7ff; }
.theme-tools { --portal-primary: #18a779; --portal-primary-dark: #117a59; --portal-primary-soft: #eaf8f3; }

body.portal-page {
    min-width: 320px; padding-top: 0; color: var(--portal-ink); background: var(--portal-bg);
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
html { min-width: 320px !important; }
.portal-page .container { width: min(1440px, calc(100% - 48px)) !important; max-width: 1440px !important; }
.portal-page .xx_header > .top_bar,
.portal-page .xx_header > .logo_bar,
.portal-page .xx_header > .navbar_bar { display: none !important; }

.portal-header {
    position: relative; height: 66px; color: #fff;
    background: linear-gradient(120deg, var(--portal-primary-dark), var(--portal-primary));
    box-shadow: 0 5px 20px rgba(24, 65, 111, .16);
}
.portal-page > .portal-header { position: sticky; top: 0; z-index: 1000; }
.theme-ai .portal-header-inner { grid-template-columns: minmax(0, 1fr) auto; }
.portal-header-inner { width: min(1440px, calc(100% - 48px)); height: 100%; margin: 0 auto; display: grid; grid-template-columns: max-content minmax(240px, 360px) minmax(0, 1fr); align-items: center; gap: 16px; }
.portal-header-left, .portal-header-right { min-width: 0; display: flex; align-items: center; }
.portal-header-left { gap: 18px; }
.portal-header-right { overflow: visible; justify-content: flex-end; gap: 8px; }
.portal-brand, .portal-brand:hover, .portal-brand:focus { min-width: 190px; display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.portal-brand-mark { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; border: 1px solid rgba(255,255,255,.24); border-radius: 10px; color: #fff1bc; background: rgba(255,255,255,.10); }
.portal-brand b, .portal-brand small { display: block; }
.portal-brand b { overflow: hidden; font-size: 16px; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
.portal-brand small { margin-top: 2px; color: rgba(255,255,255,.67); font-size: 9px; font-weight: 400; letter-spacing: 1px; }
.portal-modules { min-width: 0; height: 100%; display: flex; align-items: center; gap: 3px; }
.portal-page .xx_header .portal-modules { background: transparent; }
.portal-modules a { height: 42px; padding: 0 12px; display: inline-flex; align-items: center; flex: 0 0 auto; gap: 7px; border-radius: 9px; color: rgba(255,255,255,.78); font-size: 13px; line-height: 1; white-space: nowrap; text-decoration: none; transition: .18s ease; }
.portal-modules a:hover, .portal-modules a.active { color: #fff; background: rgba(255,255,255,.15); }
.portal-header-search { width: 100%; height: 38px; margin: 0; display: flex; justify-self: end; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; background: rgba(255,255,255,.13); }
.portal-header-search input { min-width: 0; padding: 0 12px; flex: 1; border: 0; outline: 0; color: #fff; background: transparent; font-size: 12px; }
.portal-header-search input::placeholder { color: rgba(255,255,255,.62); }
.portal-header-search button { width: 40px; border: 0; color: #fff; background: transparent; }
.portal-header-promo { min-width: 0; padding: 0 8px; display: flex; align-items: center; gap: 6px; overflow: hidden; color: rgba(255,255,255,.78); white-space: nowrap; font-size: 11px; }
.portal-header-promo span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.portal-header-promo i { color: #ffe29b; font-size: 12px; }
.portal-app-download { position: relative; min-height: 38px; padding: 0 8px; display: inline-flex; align-items: center; flex: 0 0 auto; gap: 6px; border-radius: 8px; color: rgba(255,255,255,.92); white-space: nowrap; text-decoration: none; font-size: 11px; }
.portal-app-download:hover, .portal-app-download:focus { color: #fff; background: rgba(255,255,255,.13); text-decoration: none; }
.portal-app-download > i { color: #ffe29b; font-size: 16px; }
.portal-app-qrcode { position: absolute; top: calc(100% + 9px); left: 50%; z-index: 1250; width: 154px; padding: 9px; display: none; transform: translateX(-50%); border: 1px solid #e1e7eb; border-radius: 10px; color: #536574; background: #fff; box-shadow: 0 12px 30px rgba(30,43,55,.2); text-align: center; }
.portal-app-qrcode:before { position: absolute; top: -6px; left: calc(50% - 5px); width: 10px; height: 10px; border-top: 1px solid #e1e7eb; border-left: 1px solid #e1e7eb; background: #fff; content: ""; transform: rotate(45deg); }
.portal-app-qrcode img { width: 134px; height: 134px; display: block; object-fit: contain; background: #f5f7f8; }
.portal-app-qrcode b { margin-top: 7px; display: block; font-size: 11px; font-weight: 500; }
.portal-app-download:hover .portal-app-qrcode, .portal-app-download:focus .portal-app-qrcode { display: block; }
.portal-user-actions { flex: 0 0 auto; }
.portal-user-actions > a, .portal-user-actions > button { min-height: 38px; padding: 0 9px; display: inline-flex; align-items: center; gap: 7px; border: 0; color: rgba(255,255,255,.9); background: transparent; white-space: nowrap; text-decoration: none; font-size: 12px; }
.portal-user-menu { position: relative; color: #fff; }
.portal-user-menu > summary { min-height: 38px; padding: 0 7px; display: flex; align-items: center; gap: 7px; list-style: none; cursor: pointer; user-select: none; }
.portal-user-menu > summary::-webkit-details-marker { display: none; }
.portal-user-caret { margin-left: 1px; font-size: 10px !important; opacity: .72; transition: transform .16s ease; }
.portal-user-menu[open] .portal-user-caret { transform: rotate(180deg); }
.portal-user-dropdown { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1200; width: 150px; padding: 6px; display: none; border: 1px solid #e1e7eb; border-radius: 9px; background: #fff; box-shadow: 0 10px 28px rgba(30,43,55,.16); }
.portal-user-dropdown:before { position: absolute; top: -6px; right: 20px; width: 10px; height: 10px; border-top: 1px solid #e1e7eb; border-left: 1px solid #e1e7eb; background: #fff; content: ""; transform: rotate(45deg); }
.portal-user-menu[open] .portal-user-dropdown, .portal-user-menu:hover .portal-user-dropdown { display: block; }
.portal-user-dropdown a { min-height: 36px; padding: 0 9px; display: flex; align-items: center; gap: 8px; border-radius: 6px; color: #526574 !important; font-size: 12px; white-space: nowrap; }
.portal-user-dropdown a:hover { color: var(--portal-primary) !important; background: var(--portal-primary-soft); }
.portal-user-dropdown a i { width: 16px; color: var(--portal-primary); text-align: center; }
.portal-user .avatar-img, .portal-user .avatar-img img { width: 29px; height: 29px; border-radius: 50%; }
.portal-mobile-nav { display: none; }

.portal-page .main-content { min-height: calc(100vh - 190px); padding-top: 0; }
.portal-container { width: min(1440px, calc(100% - 48px)); margin: 0 auto; }
.portal-hero { padding: 30px 0 22px; background: radial-gradient(circle at 16% 0, var(--portal-primary-soft), transparent 42%), linear-gradient(180deg, #fbfdff, var(--portal-bg)); }
.portal-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.portal-eyebrow { margin: 0 0 7px; color: var(--portal-primary); font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.portal-hero h1 { margin: 0; color: #20364a; font-family: "STSong", "SimSun", serif; font-size: 30px; font-weight: 700; line-height: 1.4; }
.portal-hero-copy > p:last-child { margin: 8px 0 0; color: var(--portal-muted); font-size: 13px; }
.portal-capabilities { display: flex; gap: 8px; }
.portal-capabilities span { min-width: 118px; padding: 9px 11px; display: flex; align-items: center; gap: 8px; border: 1px solid #dce6f0; border-radius: 9px; color: #617485; background: rgba(255,255,255,.88); box-shadow: 0 5px 17px rgba(35,76,115,.05); }
.portal-capabilities i { width: 28px; height: 28px; line-height: 28px; flex: 0 0 28px; border-radius: 7px; color: var(--portal-primary); background: var(--portal-primary-soft); text-align: center; }
.portal-capabilities b, .portal-capabilities small { display: block; white-space: nowrap; }
.portal-capabilities b { color: #324b60; font-size: 12px; }
.portal-capabilities small { margin-top: 2px; color: #98a4ad; font-size: 9px; font-weight: 400; }

.portal-search-box { max-width: 920px; margin: 21px auto 0; padding: 10px; border: 1px solid #d8e3ee; border-radius: 13px; background: #fff; box-shadow: 0 12px 34px rgba(40,83,123,.10); }
.portal-search-main { height: 52px; display: flex; }
.portal-search-main > i { width: 45px; line-height: 52px; color: var(--portal-primary); text-align: center; font-size: 18px; }
.portal-search-main input { min-width: 0; flex: 1; border: 0; outline: none; color: #33485b; font-size: 15px; }
.portal-search-main button { min-width: 112px; border: 0; border-radius: 9px; color: #fff; background: var(--portal-primary); font-size: 14px; font-weight: 600; }
.portal-search-options { padding: 7px 8px 0 45px; display: flex; flex-wrap: wrap; gap: 12px 22px; border-top: 1px solid #edf1f5; color: #7f8d98; font-size: 11px; }
.portal-search-options label { margin: 0; font-weight: 400; }
.portal-search-options input { margin-right: 4px; vertical-align: -1px; }
.portal-hot-search { margin: 11px 0 0; color: #8b98a2; text-align: center; font-size: 11px; }
.portal-hot-search a { margin: 0 5px; color: #62788b; }

.portal-module-cards { padding: 20px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.portal-module-card { min-height: 118px; padding: 20px; display: flex; align-items: center; gap: 15px; border: 1px solid var(--portal-line); border-radius: var(--portal-radius); color: var(--portal-ink); background: #fff; box-shadow: 0 8px 26px rgba(40,69,96,.06); text-decoration: none !important; transition: .18s ease; }
.portal-module-card:hover { border-color: var(--card-color); color: var(--portal-ink); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(40,69,96,.10); }
.portal-module-card > i { width: 50px; height: 50px; line-height: 50px; flex: 0 0 50px; border-radius: 13px; color: var(--card-color); background: var(--card-soft); text-align: center; font-size: 21px; }
.portal-module-card b, .portal-module-card span { display: block; }
.portal-module-card b { margin-bottom: 5px; font-size: 16px; }
.portal-module-card span { color: #81909b; font-size: 11px; line-height: 1.65; }
.portal-module-card em { margin-left: auto; color: var(--card-color); font-style: normal; font-size: 18px; }
.portal-module-card.library { --card-color: #b4473d; --card-soft: #fff1ed; }
.portal-module-card.ai { --card-color: #049ff8; --card-soft: #eaf7ff; }
.portal-module-card.tools { --card-color: #18a779; --card-soft: #eaf8f3; }

.portal-section { margin-bottom: 20px; padding: 19px; border: 1px solid var(--portal-line); border-radius: var(--portal-radius); background: #fff; box-shadow: 0 8px 28px rgba(40,69,96,.05); }
.portal-section-heading { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.portal-section-heading h2 { margin: 0; color: #30475a; font-size: 17px; font-weight: 700; }
.portal-section-heading h2:before { width: 4px; height: 17px; margin-right: 9px; display: inline-block; border-radius: 3px; background: var(--portal-primary); content: ""; vertical-align: -3px; }
.portal-section-heading a { color: #81909c; font-size: 11px; }
.portal-category-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.portal-category-grid a { min-height: 65px; padding: 9px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px solid #e5ebf1; border-radius: 8px; color: #536779; background: #fbfcfd; text-decoration: none; font-size: 11px; }
.portal-category-grid a:hover { border-color: var(--portal-primary); color: var(--portal-primary); background: var(--portal-primary-soft); }
.portal-category-grid i { color: var(--portal-primary); font-size: 17px; }
.portal-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; }
.portal-article-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.portal-article-block { padding: 15px; border: 1px solid #e5ebf1; border-radius: 9px; background: #fff; }
.portal-article-block h3 { margin: 0 0 10px; padding-bottom: 9px; border-bottom: 1px solid #edf1f4; color: #3b5265; font-size: 14px; font-weight: 700; }
.portal-article-block h3 a { float: right; color: #95a1aa; font-size: 10px; font-weight: 400; }
.portal-article-block ul { margin: 0; padding: 0; list-style: none; }
.portal-article-block li { height: 31px; display: flex; align-items: center; gap: 6px; border-bottom: 1px dashed #edf0f2; font-size: 11px; }
.portal-article-block li:last-child { border-bottom: 0; }
.portal-article-block li i { color: var(--portal-primary); }
.portal-article-block li a.title { min-width: 0; flex: 1; overflow: hidden; color: #4c5f6f; white-space: nowrap; text-overflow: ellipsis; }
.portal-article-block li time { flex: 0 0 auto; color: #a0abb2; font-size: 9px; }
.portal-side-card { margin-bottom: 14px; padding: 16px; border: 1px solid var(--portal-line); border-radius: var(--portal-radius); background: #fff; }
.portal-side-card h3 { margin: 0 0 12px; color: #40566a; font-size: 14px; font-weight: 700; }
.portal-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.portal-tags a { padding: 5px 9px; border: 1px solid #e1e8ee; border-radius: 14px; color: #6b7c89; background: #fafcfd; font-size: 10px; }

/* CMS列表、搜索与详情统一外观 */
.portal-page #content-container { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0 35px; }
.portal-page .category-title { margin: 0 0 15px; padding: 16px 18px; border: 1px solid var(--portal-line); border-radius: var(--portal-radius); color: #30475a; background: #fff; font-size: 20px; }
.portal-page .breadcrumb { margin: 0; padding: 0; background: transparent; font-size: 11px; }
.portal-page .panel-default { padding: 0; border: 1px solid var(--portal-line); border-radius: var(--portal-radius); background: #fff; box-shadow: 0 8px 26px rgba(40,69,96,.05); overflow: hidden; }
.portal-page .panel-default > .panel-heading { min-height: 54px; padding: 16px 18px; border-bottom: 1px solid #e9eef3; background: #fbfcfd; }
.portal-page .panel-default > .panel-heading .panel-title { color: #3a5063; font-size: 14px; font-weight: 700; }
.portal-page .panel-default > .panel-body { padding: 14px 18px; }
.portal-page .tabs-group .title { color: #687b8b; font-weight: 600; }
.portal-page .tabs-group .content li a { border-radius: 14px; }
.portal-page .tabs-group .content li.active a { color: #fff; background: var(--portal-primary); }
.portal-page .category-order a.active { color: var(--portal-primary); }
.portal-page .article-item { padding: 16px 4px; border-bottom: 1px solid #edf1f4; }
.portal-page .article-item:last-child { border-bottom: 0; }
.portal-page .article-item .article-title { margin: 0 0 8px; font-size: 16px; font-weight: 600; line-height: 1.5; }
.portal-page .article-item .article-title a { color: #31495d; }
.portal-page .article-item .article-title a:hover { color: var(--portal-primary); }
.portal-page .article-item .article-intro { max-height: 44px; overflow: hidden; color: #83909a; font-size: 11px; line-height: 1.9; }
.portal-page .article-item .article-tag { margin-top: 9px; color: #9ba5ac; font-size: 10px; }
.portal-page .article-item .tag { padding: 3px 7px; border: 0; border-radius: 10px; color: var(--portal-primary); background: var(--portal-primary-soft); }
.portal-page .pagination > .active > span, .portal-page .pagination > .active > a { border-color: var(--portal-primary); background: var(--portal-primary); }
.portal-page .sidebar .panel, .portal-page aside .panel { border-radius: var(--portal-radius); }
.portal-page .article-content .panel-heading { background: #fff; }
.portal-page .article-content .panel-body { padding: 28px clamp(22px, 5vw, 58px); }
.portal-page .article-metas { padding-bottom: 18px; border-bottom: 1px solid #edf1f4; }
.portal-page .article-metas .metas-title { color: #263c4e; font-family: "STSong", "SimSun", serif; font-size: 27px; font-weight: 700; line-height: 1.55; }
.portal-page .article-metas .metas-body { color: #9aa5ad; font-size: 10px; }
.portal-ai-reference { margin-left: 12px; padding: 5px 9px; display: inline-block; border-radius: 12px; color: var(--portal-primary) !important; background: var(--portal-primary-soft); text-decoration: none !important; }
.portal-page .article-text { color: #252f35; font-family: "FangSong", "STFangsong", "仿宋", serif; font-size: 19px; line-height: 1.9; }
.portal-page .article-text p { margin-bottom: 0; }

.portal-page footer #footer { margin-top: 20px; background: #253646; }
.portal-page footer .footer-inner { padding-top: 20px; color: rgba(255,255,255,.66); }

/* 办公工具展示页 */
.theme-tools .tools-header-search { width: 100%; }
.tools-hero { padding-bottom: 27px; }
.tools-search { max-width: 880px; height: 52px; margin: 22px auto 0; padding: 0 14px; display: flex; align-items: center; gap: 10px; border: 1px solid #d7e5df; border-radius: 11px; background: #fff; box-shadow: 0 10px 28px rgba(29,92,70,.08); }
.tools-search > i { color: var(--portal-primary); font-size: 17px; }
.tools-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: #3b5149; font-size: 13px; }
.tools-search span { color: #9aa7a1; white-space: nowrap; font-size: 10px; }
.tools-layout { padding: 12px 0 32px; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; align-items: start; }
.tools-category-nav { position: sticky; top: 78px; padding: 11px; border: 1px solid var(--portal-line); border-radius: var(--portal-radius); background: #fff; box-shadow: 0 8px 26px rgba(34,76,61,.05); }
.tools-category-nav b { padding: 7px 9px 12px; display: block; color: #385548; font-size: 14px; }
.tools-category-nav a { min-height: 38px; padding: 0 9px; display: flex; align-items: center; gap: 8px; border-radius: 7px; color: #687b72; text-decoration: none; font-size: 11px; }
.tools-category-nav a:hover, .tools-category-nav a.active { color: var(--portal-primary); background: var(--portal-primary-soft); }
.tools-category-nav i { width: 18px; text-align: center; }
.tools-section { margin-bottom: 12px; padding: 14px; scroll-margin-top: 78px; border: 1px solid var(--portal-line); border-radius: var(--portal-radius); background: #fff; box-shadow: 0 8px 26px rgba(34,76,61,.05); }
.tools-section .portal-section-heading > span { color: #96a29c; font-size: 10px; }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tool-card { min-height: 116px; padding: 13px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid #e1eae6; border-radius: 9px; background: #fbfdfc; transition: .18s ease; }
.tool-card:hover { border-color: #9dd6c2; background: #fff; transform: translateY(-2px); box-shadow: 0 9px 22px rgba(24,112,81,.08); }
.tool-card > i { width: 37px; height: 37px; line-height: 37px; flex: 0 0 37px; border-radius: 9px; color: var(--portal-primary); background: var(--portal-primary-soft); text-align: center; font-size: 16px; }
.tool-card h3 { margin: 1px 0 4px; color: #385147; font-size: 13px; font-weight: 700; }
.tool-card p { min-height: 32px; margin: 0 0 6px; color: #84928c; font-size: 10px; line-height: 1.6; }
.tool-card span { padding: 3px 7px; border-radius: 9px; color: #7b8c84; background: #edf2ef; font-size: 9px; }
.tool-card.custom-dev-card { border-color: #ffb24b; background: linear-gradient(135deg,#fff8dc,#fff0c2); box-shadow: 0 7px 20px rgba(226,139,28,.14); }
.tool-card.custom-dev-card:hover { border-color: #f28a1a; box-shadow: 0 10px 24px rgba(226,139,28,.22); }
.tool-card.custom-dev-card > i { color: #fff; background: linear-gradient(135deg,#ff9d22,#ed6f1c); }
.tool-card.custom-dev-card h3 { color: #9b4e13; }
.tool-card.custom-dev-card span { color: #a44f12; background: #ffe1a3; }
.tool-card.idea-suggestion-card { border-color: #e8c36b; background: linear-gradient(135deg,#fffdf2,#fff6d7); box-shadow: 0 7px 20px rgba(184,121,34,.12); }
.tool-card.idea-suggestion-card:hover { border-color: #d9a932; box-shadow: 0 10px 24px rgba(184,121,34,.2); }
.tool-card.idea-suggestion-card > i { color: #fff; background: linear-gradient(135deg,#e3b13f,#b87922); }
.tool-card.idea-suggestion-card h3 { color: #805315; }
.tool-card.idea-suggestion-card span { color: #805315; background: #fbe7a9; }
.idea-suggestion-modal .modal-dialog { max-width: 560px; }
.idea-suggestion-modal .modal-content { border: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 55px rgba(25,41,53,.24); }
.idea-suggestion-modal .modal-header { padding: 17px 20px; border-bottom-color: #edf0f2; background: #fffbec; }
.idea-suggestion-modal .modal-title { color: #805315; font-size: 18px; font-weight: 700; }
.idea-suggestion-modal .modal-body { padding: 20px; }
.idea-suggestion-modal .idea-suggestion-intro { margin: 0 0 18px; padding: 11px 13px; color: #687580; line-height: 1.65; background: #f7f9fa; border-radius: 8px; }
.idea-suggestion-modal label { color: #344553; }
.idea-suggestion-modal .form-control { border-color: #dce3e7; border-radius: 7px; box-shadow: none; }
.idea-suggestion-modal .form-control:focus { border-color: #d1a33b; box-shadow: 0 0 0 3px rgba(209,163,59,.12); }
.idea-suggestion-modal textarea.form-control { resize: vertical; }
.idea-suggestion-modal .help-block { margin: 5px 0 0; color: #9aa5ad; font-size: 12px; }
.idea-suggestion-modal .modal-footer { padding: 13px 20px; border-top-color: #edf0f2; }
.idea-suggestion-modal .idea-submit-btn { border-color: #b87922; background: #b87922; }

@media (max-width: 1199px) {
    .portal-header-inner { grid-template-columns: minmax(420px, 1fr) minmax(260px, 320px) auto; gap: 10px; }
    .portal-header-left { gap: 10px; }
    .portal-brand { min-width: 175px; }
    .portal-modules a { padding: 0 9px; }
    .portal-header-promo { display: none; }
    .theme-ai .portal-header-inner { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (max-width: 1050px) {
    .portal-header-inner { grid-template-columns: minmax(450px, 1fr) minmax(250px, 310px) auto; gap: 10px; }
    .portal-brand { min-width: 175px; }
    .portal-modules a { padding: 0 10px; }
    .portal-header-promo { display: none; }
    .theme-ai .portal-header-inner { grid-template-columns: minmax(0, 1fr) auto; }
    .portal-hero-row { align-items: flex-start; flex-direction: column; }
    .portal-capabilities { margin-top: -15px; }
    .portal-category-grid { grid-template-columns: repeat(4, 1fr); }
    .portal-content-grid { grid-template-columns: 1fr 270px; }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    body.portal-page { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
    .portal-header { height: 56px; }
    .portal-header-inner, .portal-container { width: calc(100% - 24px); }
    .theme-tools.tools-page .portal-header-inner { grid-template-columns: minmax(0, 1fr) auto; }
    .portal-page .container { width: calc(100% - 24px) !important; padding-left: 0 !important; padding-right: 0 !important; }
    .portal-brand { min-width: 0; }
    .portal-brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
    .portal-brand small, .portal-modules, .portal-user-name { display: none; }
    .portal-app-download { display: none; }
    .portal-user-actions { margin-left: auto; }
    .portal-user-actions > a, .portal-user-actions > button { padding: 0; font-size: 18px; }
    .portal-mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #dfe6ec; background: rgba(255,255,255,.97); box-shadow: 0 -5px 20px rgba(33,58,76,.09); }
    .portal-mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #83909a; text-decoration: none; font-size: 10px; }
    .portal-mobile-nav a i { font-size: 17px; }
    .portal-mobile-nav a.active { color: var(--portal-primary); }
    .portal-hero { padding: 20px 0 16px; }
    .portal-hero h1 { font-size: 23px; }
    .portal-capabilities { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
    .portal-capabilities span { min-width: 0; padding: 7px; }
    .portal-capabilities i { width: 24px; height: 24px; line-height: 24px; flex-basis: 24px; }
    .portal-capabilities small { display: none; }
    .portal-capabilities b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
    .portal-search-box { margin-top: 15px; padding: 7px; }
    .portal-search-main { height: 46px; }
    .portal-search-main > i { width: 34px; line-height: 46px; }
    .portal-search-main input { font-size: 13px; }
    .portal-search-main button { min-width: 76px; }
    .portal-search-options { padding-left: 35px; gap: 7px 12px; }
    .portal-module-cards { grid-template-columns: 1fr; gap: 8px; }
    .portal-module-card { min-height: 88px; padding: 14px; }
    .portal-module-card > i { width: 42px; height: 42px; line-height: 42px; flex-basis: 42px; }
    .portal-category-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .portal-category-grid a { min-height: 59px; font-size: 10px; }
    .portal-content-grid, .portal-article-columns { grid-template-columns: 1fr; }
    .portal-content-grid > aside { order: 2; }
    .portal-page #content-container { width: calc(100% - 24px); padding: 15px 0 24px; }
    .portal-page #content-container > .row { margin-left: 0; margin-right: 0; }
    .portal-page #content-container > .row > main, .portal-page #content-container > .row > aside { padding-left: 0; padding-right: 0; }
    .portal-page .category-title { padding: 13px; font-size: 18px; }
    .portal-page .category-title .more { float: none !important; margin-top: 7px; }
    .portal-page .panel-default > .panel-heading { padding: 13px; }
    .portal-page .panel-default > .panel-body { padding: 11px 13px; }
    .portal-page .article-item { padding: 13px 0; }
    .portal-page .article-item .article-title { font-size: 14px; }
    .portal-page .article-content .panel-body { padding: 20px 16px; }
    .portal-page .article-metas .metas-title { font-size: 22px; }
    .portal-page .article-text { font-size: 17px; line-height: 1.85; }
    .tools-search span { display: none; }
    .tools-layout { display: block; padding-top: 14px; }
    .tools-category-nav { position: static; margin-bottom: 12px; padding: 8px; display: flex; overflow-x: auto; }
    .tools-category-nav b { display: none; }
    .tools-category-nav a { flex: 0 0 auto; }
    .tools-section { padding: 14px; scroll-margin-top: 64px; }
    .tools-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
    .tool-card { min-height: 125px; padding: 12px; }
}

@media (max-width: 420px) {
    .portal-category-grid { grid-template-columns: repeat(3, 1fr); }
    .portal-search-options label:last-of-type { display: none; }
    .tools-grid { grid-template-columns: 1fr; }
    .tool-card { min-height: 100px; }
}

/* =========================================================
 * 范文参考：紧凑型资源门户（首页与CMS内页统一）
 * ======================================================= */
.portal-mobile-search { display: none; color: #fff; text-decoration: none; }

.library-home { padding: 12px 0 28px; }
.library-home a { text-decoration: none; }
.library-first-screen {
    display: grid; grid-template-columns: 268px minmax(0, 1fr) 300px; gap: 10px;
    height: 400px; min-height: 400px; margin-bottom: 10px;
}
.library-category-panel, .library-feature-panel, .library-notice-panel, .library-account-panel,
.library-section-card, .library-resource-strip {
    border: 1px solid var(--portal-line); border-radius: 10px; background: #fff;
    box-shadow: 0 5px 18px rgba(35, 64, 91, .045);
}
.library-panel-title {
    height: 46px; padding: 0 14px; display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid #e9edf2; color: #344b60; font-size: 14px; font-weight: 700;
}
.library-panel-title > i { color: var(--portal-primary); }
.library-panel-title > a { margin-left: auto; color: #919da7; font-size: 10px; font-weight: 400; }
.library-category-panel, .library-feature-panel { height: 400px; }
.library-side-stack { min-width: 0; height: 400px; display: grid; grid-template-rows: minmax(0, 1fr) 122px; gap: 10px; }
.library-side-stack .library-notice-panel { height: auto; min-height: 0; }
.library-side-stack .library-notice-content { height: calc(100% - 46px); display: block; }
.library-side-stack .library-notice-list { height: 100%; }
.library-account-panel { min-width: 0; padding: 6px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(2, 1fr); gap: 5px; }
.library-account-item { min-width: 0; padding: 5px 6px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #edf0f3; border-radius: 7px; color: #647684; background: #fbfcfd; text-align: left; }
.library-account-item:nth-child(-n+2) { grid-column: span 3; }
.library-account-item:nth-child(n+3) { grid-column: span 2; }
.library-account-item:hover { border-color: #e2b2ab; color: var(--portal-primary); background: var(--portal-primary-soft); transform: translateY(-1px); }
.library-account-item > i { flex: 0 0 auto; color: var(--portal-primary); font-size: 13px; }
.library-account-item span, .library-account-item b, .library-account-item small { min-width: 0; display: block; }
.library-account-item b { overflow: hidden; color: #405466; font-size: 10px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.library-account-item small { margin-top: 2px; overflow: hidden; color: #9ba5ac; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.library-category-panel { overflow: hidden; }
.library-category-list { height: calc(100% - 46px); padding: 5px 9px; display: grid; grid-template-rows: repeat(8, minmax(0, 1fr)); }
.library-category-list > a {
    min-height: 0; padding: 4px 7px; display: grid; grid-template-columns: 27px 94px minmax(0, 1fr);
    align-items: center; border-bottom: 1px dashed #edf0f3; color: #3d5366;
}
.library-category-list > a:last-child { border-bottom: 0; }
.library-category-list > a:hover { border-radius: 6px; color: var(--portal-primary); background: var(--portal-primary-soft); }
.library-category-list i { width: 25px; height: 25px; line-height: 25px; border-radius: 6px; color: var(--portal-primary); background: var(--portal-primary-soft); text-align: center; }
.library-category-list span { overflow: hidden; font-size: 12px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.library-category-list em { overflow: hidden; color: #9aa5ae; font-size: 9px; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.library-feature-panel { min-width: 0; padding: 9px; }
.library-focus, .library-focus .carousel-inner, .library-focus .item, .library-focus .item > a { height: 100%; overflow: hidden; border-radius: 7px; }
.library-focus .item > a { display: block; }
.library-focus-image { height: 100%; background-position: center; background-size: cover; transition: transform .35s ease; }
.library-focus .item:hover .library-focus-image { transform: scale(1.02); }
.library-focus .carousel-caption { left: 0; right: 0; bottom: 0; padding: 34px 18px 14px; background: linear-gradient(transparent, rgba(18, 32, 46, .86)); text-align: left; text-shadow: none; }
.library-focus .carousel-caption strong { display: block; overflow: hidden; font-size: 17px; white-space: nowrap; text-overflow: ellipsis; }
.library-focus .carousel-control { width: 38px; display: flex; align-items: center; justify-content: center; background: none; opacity: 0; }
.library-focus:hover .carousel-control { opacity: .8; }
.library-focus .carousel-control span { width: 28px; height: 38px; line-height: 38px; border-radius: 5px; background: rgba(0,0,0,.35); }
.library-focus .carousel-indicators { bottom: 4px; margin-bottom: 0; }
.library-hotline { height: 45px; display: flex; align-items: center; gap: 10px; overflow: hidden; white-space: nowrap; }
.library-hotline > span { padding-left: 5px; color: #e96543; font-size: 10px; font-weight: 700; }
.library-hotline > a { color: #778796; font-size: 10px; }
.library-hotline > a:hover { color: var(--portal-primary); }
.library-notice-panel { overflow: hidden; display: flex; flex-direction: column; }
.library-notice-panel .library-panel-title { border-top: 3px solid #e86252; }
.library-notice-panel .library-panel-title > i { color: #e86252; }
.library-notice-content { min-height: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(88px, 1fr); }
.library-notice-list { min-height: 0; flex: 1; margin: 0; padding: 7px 13px; list-style: none; }
.library-notice-list li { border-bottom: 1px dashed #edf0f3; }
.library-notice-list li:last-child { border-bottom: 0; }
.library-notice-list a { height: 32px; display: flex; align-items: center; gap: 7px; color: #526575; }
.library-notice-list .notice-dot { width: 4px; height: 4px; flex: 0 0 4px; border-radius: 50%; background: #e86252; }
.library-notice-list b { min-width: 0; flex: 1; overflow: hidden; font-size: 10px; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
.library-notice-list time { color: #a5adb4; font-size: 9px; }
.library-site-stats { padding: 8px; display: grid; grid-template-columns: 1fr; align-content: center; gap: 6px; border-left: 1px solid #edf0f3; background: #fbfcfd; }
.library-site-stats > span { min-width: 0; padding: 7px 5px; display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; border-radius: 6px; background: #fff; }
.library-site-stats i { grid-row: 1 / 3; color: var(--portal-primary); text-align: center; }
.library-site-stats b, .library-site-stats small { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.library-site-stats b { color: #405466; font-size: 12px; }
.library-site-stats small { color: #9aa4ac; font-size: 9px; font-weight: 400; }
.library-user-shortcuts { height: 70px; flex: 0 0 70px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #e9edf2; background: #fbfcfd; }
.library-user-shortcuts a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-right: 1px solid #edf0f3; color: #71808d; font-size: 9px; }
.library-user-shortcuts a:last-child { border-right: 0; }
.library-user-shortcuts i { color: var(--portal-primary); font-size: 15px; }

.library-resource-strip { margin-bottom: 10px; padding: 7px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.library-resource-strip > a { min-width: 0; min-height: 58px; padding: 7px 10px; display: flex; align-items: center; gap: 9px; border-right: 1px solid #e9edf2; color: #3d5366; }
.library-resource-strip > a:last-child { border-right: 0; }
.library-resource-strip > a:hover { border-radius: 7px; color: var(--portal-primary); background: var(--portal-primary-soft); }
.library-resource-strip > a > i { width: 32px; height: 32px; line-height: 32px; flex: 0 0 32px; border-radius: 8px; color: var(--portal-primary); background: var(--portal-primary-soft); text-align: center; font-size: 14px; }
.library-resource-strip span, .library-resource-strip b, .library-resource-strip small { min-width: 0; display: block; }
.library-resource-strip b { font-size: 12px; }
.library-resource-strip small { margin-top: 3px; overflow: hidden; color: #94a0aa; font-size: 9px; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }

.library-main-layout { margin-bottom: 10px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 10px; align-items: start; }
.library-section-card { min-width: 0; margin-bottom: 10px; padding: 13px; }
.library-main-layout .library-section-card { margin-bottom: 0; }
.library-section-card.compact + .library-section-card.compact { margin-top: 12px; }
.library-section-title { min-height: 31px; margin-bottom: 10px; padding-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e9edf2; }
.library-section-title > div { min-width: 0; display: flex; align-items: center; gap: 8px; overflow: hidden; }
.library-section-title i { color: var(--portal-primary); }
.library-section-title h2 { margin: 0; color: #344b60; font-size: 15px; font-weight: 700; white-space: nowrap; }
.library-section-title span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.library-section-title > a { flex: 0 0 auto; white-space: nowrap; }
.library-section-title span { overflow: hidden; color: #9aa5ae; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.library-section-title > a { flex: 0 0 auto; color: #8795a1; font-size: 10px; }
.library-article-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
.library-article-block h3 { margin: 0 0 5px; padding: 0 0 7px; border-bottom: 2px solid var(--portal-primary-soft); color: #40576a; font-size: 12px; font-weight: 700; }
.library-article-block h3:before { width: 3px; height: 12px; margin-right: 6px; display: inline-block; border-radius: 2px; background: var(--portal-primary); content: ""; vertical-align: -2px; }
.library-article-block h3 a { float: right; color: #9aa4ac; font-size: 9px; font-weight: 400; }
.library-article-block ul, .library-resource-list, .library-ranking { margin: 0; padding: 0; list-style: none; }
.library-article-block li { height: 29px; display: flex; align-items: center; gap: 8px; border-bottom: 1px dashed #edf0f3; }
.library-article-block li:before { color: #aab5bd; content: "·"; }
.library-article-block li a { min-width: 0; flex: 1; overflow: hidden; color: #526575; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.library-article-block li time { color: #a7afb6; font-size: 9px; }
.library-ranking li { height: 28px; display: flex; align-items: center; gap: 8px; }
.library-ranking li > span { width: 17px; height: 17px; line-height: 17px; flex: 0 0 17px; border-radius: 4px; color: #87939d; background: #edf1f4; text-align: center; font-size: 9px; }
.library-ranking li:nth-child(-n+3) > span { color: #fff; background: #e86b55; }
.library-ranking li a { min-width: 0; overflow: hidden; color: #526575; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.library-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.library-tags a { padding: 4px 8px; border: 1px solid #e3e8ed; border-radius: 12px; color: #6d7e8c; background: #fbfcfd; font-size: 9px; }
.library-tags a:hover { border-color: var(--portal-primary); color: var(--portal-primary); background: var(--portal-primary-soft); }

.library-ppt-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; }
.library-ppt-card { min-width: 0; padding: 7px; border: 1px solid #e5e9ee; border-radius: 8px; color: #43586a; background: #fbfcfd; transition: .18s ease; }
.library-ppt-card:hover { border-color: #a9bfe7; color: var(--portal-primary); transform: translateY(-2px); box-shadow: 0 7px 18px rgba(43,76,109,.09); }
.library-ppt-cover { position: relative; aspect-ratio: 3 / 4; display: block; overflow: hidden; border-radius: 5px; background: #edf1f5; }
.library-ppt-cover img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }
/*
 * Automatically generated PPT covers are single 16:9 slides, while legacy
 * covers are mostly portrait montages. Keep the existing card dimensions but
 * contain generated slides so text and graphics are never stretched or cut.
 */
.portal-page .pptlist_item_div,
.portal-page aside .recommend-ppt a.img { position: relative; background: #f1f4f7; }
.library-ppt-cover:has(> img[src*="/uploads/ppt-cover/"]),
.portal-page .pptlist_item_div:has(img[src*="/uploads/ppt-cover/"]),
.portal-page aside .recommend-ppt a.img:has(img[src*="/uploads/ppt-cover/"]) {
    aspect-ratio: 16 / 9;
}
.library-ppt-cover img[src*="/uploads/ppt-cover/"],
.portal-page .pptlist_item_div img[src*="/uploads/ppt-cover/"],
.portal-page aside .recommend-ppt img[src*="/uploads/ppt-cover/"] {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    transform: translateY(-50%);
    object-fit: contain !important;
    object-position: center !important;
    background: #f1f4f7;
}
/* New contact-sheet covers are portrait montages rather than single slides. */
.library-ppt-cover:has(> img[src*="/preview.jpg"]),
.portal-page .pptlist_item_div:has(img[src*="/preview.jpg"]),
.portal-page aside .recommend-ppt a.img:has(img[src*="/preview.jpg"]) {
    aspect-ratio: 3 / 4;
}
.library-ppt-cover img[src*="/preview.jpg"],
.portal-page .pptlist_item_div img[src*="/preview.jpg"],
.portal-page aside .recommend-ppt img[src*="/preview.jpg"] {
    top: 0;
    height: 100% !important;
    aspect-ratio: auto;
    transform: none;
    object-fit: cover !important;
    object-position: center top !important;
    background: #fff;
}
.portal-show-ppt .ppt-contact-sheet-preview {
    width: 100%;
    height: auto;
    max-height: none !important;
    display: block;
    object-fit: initial !important;
    border: 1px solid #edf0f2;
    border-radius: 6px;
    background: #fff;
}
.portal-page .container.portal-list-page,
.portal-page .container.portal-wide-list,
.portal-page .container.portal-show-ppt {
    width: min(1440px, calc(100% - 48px)) !important;
    max-width: 1440px !important;
}

@media (max-width: 767px) {
    .portal-page .container.portal-list-page,
    .portal-page .container.portal-wide-list,
    .portal-page .container.portal-show-ppt {
        width: calc(100% - 24px) !important;
    }
}
.library-ppt-card b { height: 35px; margin: 7px 2px 4px; display: -webkit-box; overflow: hidden; font-size: 10px; font-weight: 600; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.library-ppt-card small { margin: 0 2px; display: flex; align-items: center; gap: 5px; color: #9aa5ad; font-size: 8px; }
.library-dual-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.library-dual-sections > .library-section-card { height: 100%; margin-bottom: 0; }
.library-resource-list li { height: 30px; display: flex; align-items: center; gap: 8px; border-bottom: 1px dashed #edf0f3; }
.library-resource-list li > i { color: var(--portal-primary); }
.library-resource-list a { min-width: 0; flex: 1; overflow: hidden; color: #526575; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.library-resource-list time { color: #a7afb6; font-size: 9px; }
.library-site-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.library-site-grid a { min-width: 0; min-height: 62px; padding: 9px 10px; display: flex; align-items: center; gap: 9px; border: 1px solid #e7ebef; border-radius: 8px; color: #536676; background: #fbfcfd; transition: .18s ease; }
.library-site-grid a:hover { border-color: #e0a69d; color: var(--portal-primary); background: #fff9f7; transform: translateY(-1px); box-shadow: 0 5px 14px rgba(93,55,49,.07); }
.library-site-mark { width: 34px; height: 34px; flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center; overflow: visible; border-radius: 9px; color: var(--portal-primary); background: var(--portal-primary-soft); font-size: 15px; }
.library-site-copy { min-width: 0; flex: 1; display: block; overflow: hidden; }
.library-site-copy b, .library-site-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.library-site-copy b { color: #405567; font-size: 12px; font-weight: 600; }
.library-site-copy small { margin-top: 3px; color: #9aa5ad; font-size: 9px; }
.library-site-grid a:hover .library-site-copy b { color: var(--portal-primary); }
.library-site-arrow { flex: 0 0 auto; color: #b4bdc4; font-size: 12px; }
.library-links { padding: 2px 5px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px 14px; color: #96a1a9; font-size: 9px; }
.library-links strong { color: #6b7984; }
.library-links a { color: #8b979f; }
.library-links .library-link-apply { margin-left: auto; }

/* CMS专用模板兼容层：消除旧模板固定尺寸并统一列表、资源页和阅读页 */
.portal-page .new_position { margin: 0 0 12px; padding: 11px 15px; border: 1px solid var(--portal-line); border-radius: 9px; background: #fff; }
.portal-page .new_position .breadcrumb { margin: 0; padding: 0; color: #8b98a2; }
.portal-page .list_tab { margin-bottom: 12px; padding: 12px 16px; border: 1px solid var(--portal-line); border-radius: 9px; background: #fff; box-shadow: none; }
.portal-page .list_tab .tab_left, .portal-page .list_tab .tab_left2 { width: 82px; margin: 5px 10px 5px 0; color: #40566a; font-size: 12px; font-weight: 700; }
.portal-page .list_tab .tab_right { min-height: 35px; height: auto; padding: 3px 0 7px; }
.portal-page .list_tab .tab_right a { margin: 0 16px 3px 0; display: inline-block; font-size: 11px; }
.portal-page .list_content { margin-left: -6px; margin-right: -6px; }
.portal-page .list_content > main, .portal-page .list_content > aside { padding-left: 6px; padding-right: 6px; }
.portal-page .panel-title .more { float: right; }
.portal-page .panel-title .more ul { margin-bottom: 0; }
.portal-page .panel-title .more a { color: #82909c; font-size: 10px; font-weight: 400; }
.portal-page .channel-list > .row { margin-left: -7px; margin-right: -7px; }
.portal-page .channel-list > .row > [class*="col-"] { padding-left: 7px; padding-right: 7px; }
.portal-page .channel-list h3 { margin: 5px 0 10px; padding: 9px 0; border-bottom: 1px solid #e8edf2; color: #3d5366; font-size: 14px; }
.portal-page .channel-list .inner-list li { height: 29px; overflow: hidden; border-bottom: 1px dashed #edf0f3; color: #9aa5ad; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.portal-page .carousel-focus, .portal-page .carousel-focus .carousel-inner, .portal-page .carousel-focus .item, .portal-page .carousel-focus .carousel-img { max-height: 330px; border-radius: 9px; }

.portal-page .list_ppt_main { padding: 13px !important; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.portal-page .list_ppt_main:before, .portal-page .list_ppt_main:after { display: none; }
.portal-page .pptlist_item { width: auto !important; min-width: 0; margin: 0 !important; padding: 7px !important; float: none !important; border: 1px solid #e4e9ee; border-radius: 8px; background: #fbfcfd; transition: .18s ease; }
.portal-page .pptlist_item:hover { border-color: #abc0e5; transform: translateY(-2px); box-shadow: 0 7px 18px rgba(42,71,99,.08); }
.portal-page .pptlist_item_div { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 5px; }
.portal-page .pptlist_item_div a { width: 100%; height: 100%; display: block; }
.portal-page .pptlist_item_div img { width: 100% !important; height: 100% !important; display: block; object-fit: cover; }
.portal-page .listpptitem_btn { min-height: 29px; padding-top: 7px; display: flex; align-items: center; gap: 7px; }
.portal-page .listpptitem_btn .btn { margin-left: auto; border-color: var(--portal-primary); background: var(--portal-primary); }
.portal-page .content_left_ppt, .portal-page .list_content_left { height: auto !important; min-height: 0 !important; }

.portal-page .article-content img, .portal-page .content img, .portal-page [itemprop="screenshot"] { max-width: 100% !important; height: auto !important; }
.portal-page .article-content iframe, .portal-page .article-content video { max-width: 100%; }
.portal-page .screenshots-box { margin-top: 18px; }
.portal-page .screenshots-box iframe { width: 100% !important; min-height: 520px; border: 1px solid #e4e9ee; border-radius: 8px; background: #f6f8fa; }
.portal-page .screenshots-box .swiper-slide { max-width: 100% !important; }
.portal-page .download-box, .portal-page .intro-box, .portal-page .history-box { margin-top: 18px; }
.portal-page .alert { border-radius: 8px; }
.portal-page .content_btn, .portal-page .btn-download-now { border-radius: 6px; }
.portal-page .article-content table { max-width: 100%; }
.portal-page .article-content .panel-heading .breadcrumb { white-space: normal; }
.portal-page .article-metas .metas-body > span { margin-right: 14px; }
.portal-page aside .hot-article ul { margin: 0; padding: 0; list-style: none; }
.portal-page aside .hot-article li { height: 30px; display: flex; align-items: center; gap: 7px; overflow: hidden; }
.portal-page aside .hot-article li a { min-width: 0; overflow: hidden; color: #526575; white-space: nowrap; text-overflow: ellipsis; }
.portal-page aside .recommend-ppt .panel-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.portal-page aside .recommend-ppt a.img { width: auto; margin: 0; }
.portal-page aside .recommend-ppt img { width: 100% !important; height: auto !important; }

@media (max-width: 1199px) {
    .library-first-screen { grid-template-columns: 210px minmax(0, 1fr) 270px; }
    .library-category-list > a { grid-template-columns: 27px 1fr; }
    .library-category-list em { display: none; }
    .library-ppt-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .library-ppt-card:nth-child(6) { display: none; }
    .library-site-grid { grid-template-columns: repeat(4, 1fr); }
    .portal-page .list_ppt_main { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .portal-header-search { display: none; }
    .portal-header-inner { grid-template-columns: minmax(0, 1fr) auto; }
    .theme-tools.tools-page .portal-header-inner { grid-template-columns: minmax(0, 1fr) auto; }
    .portal-header-right { grid-column: 2; }
    .portal-mobile-search { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255,255,255,.12); }
    .library-first-screen { height: auto; min-height: 0; grid-template-columns: 205px minmax(0, 1fr); }
    .library-category-panel, .library-feature-panel { height: 400px; }
    .library-notice-panel { height: 58px; grid-column: 1 / -1; display: grid; grid-template-columns: 150px minmax(0, 1fr) 210px; min-height: 58px; }
    .library-notice-panel .library-panel-title { height: 58px; border-top: 0; border-right: 1px solid #e9edf2; border-bottom: 0; }
    .library-notice-content { height: 58px; display: block; }
    .library-site-stats { display: none; }
    .library-notice-list { height: 58px; padding: 0 12px; overflow: hidden; }
    .library-notice-list li { display: none; }
    .library-notice-list li:first-child { display: block; border: 0; }
    .library-notice-list a { height: 58px; }
    .library-user-shortcuts { height: 58px; }
    .library-resource-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .library-resource-strip > a { padding: 8px; justify-content: center; text-align: center; }
    .library-resource-strip > a > i { flex-basis: 30px; width: 30px; height: 30px; line-height: 30px; }
    .library-resource-strip small { display: none; }
    .library-main-layout { grid-template-columns: minmax(0, 1fr) 260px; }
    .library-article-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .library-ppt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .library-ppt-card:nth-child(5) { display: none; }
    .library-site-grid { grid-template-columns: repeat(3, 1fr); }
    .portal-page .list_ppt_main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .library-home { padding: 10px 0 24px; }
    .library-first-screen { height: auto; display: flex; flex-direction: column; min-height: 0; gap: 8px; }
    .library-category-panel { height: auto; order: 1; }
    .library-feature-panel { height: auto; order: 2; padding: 6px; }
    .library-notice-panel { height: auto; order: 3; display: block; }
    .library-panel-title { height: 40px; padding: 0 11px; }
    .library-category-list { height: auto; padding: 7px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: none; gap: 5px; }
    .library-category-list > a { min-width: 0; min-height: 58px; padding: 7px 3px; display: flex; flex-direction: column; justify-content: center; gap: 4px; border: 1px solid #e8edf1; border-radius: 7px; text-align: center; }
    .library-category-list span { font-size: 10px; }
    .library-focus, .library-focus .carousel-inner, .library-focus .item, .library-focus-image { height: 188px; }
    .library-focus .carousel-caption { padding: 28px 12px 12px; }
    .library-focus .carousel-caption strong { font-size: 14px; }
    .library-hotline { height: 38px; overflow-x: auto; }
    .library-notice-panel .library-panel-title { height: 40px; border-right: 0; border-bottom: 1px solid #e9edf2; }
    .library-notice-list { height: auto; padding: 4px 11px; }
    .library-notice-list li { display: block; }
    .library-notice-list li:nth-child(n+4) { display: none; }
    .library-notice-list a { height: 30px; }
    .library-user-shortcuts { height: 53px; }
    .library-resource-strip { padding: 6px; grid-template-columns: repeat(3, 1fr); gap: 5px; }
    .library-resource-strip > a { min-height: 62px; padding: 6px 3px; flex-direction: column; gap: 4px; border: 1px solid #e8edf1; border-radius: 7px; }
    .library-resource-strip > a:nth-child(n+4) { border-right: 1px solid #e8edf1; }
    .library-resource-strip b { font-size: 10px; }
    .library-main-layout, .library-dual-sections { display: block; }
    .library-side-column { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
    .library-section-card.compact + .library-section-card.compact { margin-top: 0; }
    .library-section-card { margin-bottom: 10px; padding: 12px; }
    .library-section-title { margin-bottom: 8px; }
    .library-section-title span { display: none; }
    .library-article-columns { grid-template-columns: 1fr; gap: 13px; }
    .library-article-block li { height: 31px; }
    .library-article-block li a, .library-resource-list a { font-size: 11px; }
    .library-ppt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .library-ppt-card:nth-child(5), .library-ppt-card:nth-child(6) { display: block; }
    .library-site-grid { grid-template-columns: repeat(2, 1fr); }
    .library-site-grid a { min-height: 58px; padding: 8px; }
    .library-site-mark { width: 30px; height: 30px; flex-basis: 30px; }
    .library-links { line-height: 1.8; }
    .library-links .library-link-apply { margin-left: 0; }
    .portal-page .list_ppt_main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .portal-page .list_tab { padding: 9px 11px; }
    .portal-page .list_tab .tab_left, .portal-page .list_tab .tab_left2 { width: 100%; margin: 0 0 5px; float: none !important; }
    .portal-page .panel-title .more { margin-top: 6px; float: none; }
    .portal-page .panel-title .more ul { display: flex; flex-wrap: wrap; gap: 5px 10px; }
    .portal-page .panel-title .more li { padding: 0; }
    .portal-page .carousel-focus, .portal-page .carousel-focus .carousel-inner, .portal-page .carousel-focus .item, .portal-page .carousel-focus .carousel-img { height: 210px; }
    .portal-page .screenshots-box iframe { height: 430px !important; min-height: 430px; }
    .portal-page .screenshots-box .swiper-slide { width: 100% !important; height: auto !important; margin-right: 0 !important; }
    .portal-page .screenshots-box .swiper-slide img { width: 100% !important; height: auto !important; }
    .portal-page .article-metas .metas-body { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
    .portal-page .article-metas .metas-body > span { margin-right: 0; }
    .portal-page .article-metas .btn-download-now { margin-top: 2px; }
}

@media (max-width: 420px) {
    .library-category-list { grid-template-columns: repeat(3, 1fr); }
    .library-site-grid { grid-template-columns: 1fr 1fr; }
    .library-site-grid a { gap: 7px; }
    .library-site-copy { display: block; }
    .library-site-copy small { display: none; }
}

/* 可读性、等高对齐与内页一致性修订 */
body.portal-page { font-size: 14px; }
.portal-page .xx_header { position: sticky; top: 0; z-index: 1000; }
.portal-brand b { font-size: 17px; }
.portal-brand small { font-size: 10px; }
.portal-modules a { font-size: 14px; }
.portal-header-search input, .portal-user-actions > a, .portal-user-actions > button { font-size: 13px; }

.library-panel-title { font-size: 16px; }
.library-panel-title > a, .library-section-title > a { font-size: 12px; }
.library-category-list span, .library-resource-strip b { font-size: 14px; }
.library-category-list em, .library-resource-strip small { font-size: 11px; }
.library-hotline > span, .library-hotline > a { font-size: 12px; }
.library-notice-list b { font-size: 13px; }
.library-notice-list time, .library-user-shortcuts a { font-size: 11px; }
.library-section-title h2 { font-size: 18px; }
.library-section-title span { font-size: 12px; }
.library-article-block h3 { font-size: 15px; }
.library-article-block h3 a { font-size: 11px; }
.library-article-block li a, .library-ranking li a, .library-resource-list a { font-size: 13px; }
.library-article-block li time, .library-resource-list time { font-size: 11px; }
.library-ranking li > span, .library-tags a { font-size: 11px; }
.library-ppt-card b { height: 40px; font-size: 12px; line-height: 1.65; }
.library-ppt-card small, .library-site-grid span, .library-links { font-size: 11px; }

.library-main-column, .library-main-column > .library-section-card { height: 100%; }
.library-side-column { min-height: 100%; display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.library-side-column .library-section-card.compact { height: 100%; margin: 0; }
.library-article-columns { height: auto; grid-auto-rows: auto; }
.library-article-block { min-height: 278px; display: flex; flex-direction: column; }
.library-article-block ul { flex: 1; display: block; }
.library-dual-sections { align-items: stretch; }
.library-ppt-card, .library-site-grid a, .library-resource-strip > a { height: 100%; }

.portal-page #content-container { font-size: 14px; }
.portal-page .breadcrumb, .portal-page .new_position .breadcrumb { font-size: 13px; }
.portal-page .category-title { border-left: 4px solid var(--portal-primary); font-size: 23px; }
.portal-page .panel-default > .panel-heading .panel-title { font-size: 16px; }
.portal-page .panel-title .more a, .portal-page .category-order a { font-size: 12px; }
.portal-page .tabs-group .title, .portal-page .tabs-group .content li a,
.portal-page .list_tab .tab_left, .portal-page .list_tab .tab_left2,
.portal-page .list_tab .tab_right a { font-size: 13px; }
.portal-page .article-item .article-title { font-size: 17px; }
.portal-page .article-item .article-intro { max-height: 52px; color: #667785; font-size: 13px; }
.portal-page .article-item .article-tag, .portal-page .article-item .tag { font-size: 12px; }
.portal-page .article-list li .item_title { font-size: 15px; }
.portal-page .article-list li span { font-size: 12px; }
.portal-page .panel-body .article-list ul.inner-list li { height: 34px; line-height: 34px; font-size: 15px; }
.portal-page aside .hot-article li, .portal-page aside .hot-article li a { height: 34px; font-size: 13px; }
.portal-page .channel-list h3, .portal-page .channel-list .col_div h3 > a { font-size: 16px; }
.portal-page .channel-list .inner-list li, .portal-page .channel-list .inner-list li a { height: 32px; line-height: 32px; font-size: 13px; }
.portal-page .channel-list .channelnews_width, .portal-page .channel-list .col_div { min-height: 338px; }
.portal-page .channelnews_pannel { padding: 14px; border: 1px solid var(--portal-line); border-radius: var(--portal-radius); background: #fff; box-shadow: 0 8px 26px rgba(58,46,43,.05); }
.portal-page .channel-list .row .channelnews_width { margin: 7px 0; padding: 12px 15px; border: 1px solid #e7e9ec; border-radius: 8px; box-shadow: none; }
.portal-page .channel-list .row .col_div h3 > a:before { background: var(--portal-primary); }
.portal-page .list_content { margin-top: 12px; align-items: flex-start; }
.portal-page .list_content_left { width: 100%; }
.portal-page .list_content_left > .panel-heading,
.portal-page .content_left_file > .panel-heading,
.portal-page .content_left_method > .panel-heading,
.portal-page .content_left_download > .panel-heading,
.portal-page .content_left_ppt > .panel-heading { border-top: 3px solid var(--portal-primary); }
.portal-page .list_tab .tab_right .active,
.portal-page .list_tab .tab_right_file .active,
.portal-page .list_tab .tab_right_method .active,
.portal-page .list_tab .tab_right_download .active,
.portal-page .list_tab .tab_right_ppt .active,
.portal-page .category-order li > a.active { color: var(--portal-primary) !important; }

.portal-page .article-metas .metas-title,
.portal-page .article_left .panel-body .article-metas .metas-title {
    color: #202b33; font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
    font-size: 25px; font-weight: 700; letter-spacing: .2px;
}
.portal-page .article-metas .metas-body { color: #7c8992; font-size: 12px; }
.portal-page .article-text { color: #20272d; font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif !important; font-size: 17px; line-height: 1.95; letter-spacing: .1px; }
.portal-page .article-text * { font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif !important; }
.portal-page .article-text p, .portal-page .article-text p span, .portal-page .article-text li { font-size: 17px !important; line-height: 1.95 !important; }
.portal-page .article-text p { margin: 0 0 12px; }
.portal-page .article-text h2, .portal-page .article-text h3,
.portal-page .article-text strong, .portal-page .article-text b { color: #18232b; font-weight: 700; }
.portal-page .portal-ai-transfer {
    min-height: 34px; margin-left: 12px; padding: 0 13px; display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid #d8b06b; border-radius: 17px; color: #7a3a2f; background: #fff7e8;
    font-size: 12px; font-weight: 600; vertical-align: middle; transition: .18s ease;
}
.portal-page .portal-ai-transfer:hover { border-color: var(--portal-primary); color: #fff; background: var(--portal-primary); }
.portal-page .portal-ai-transfer.loading { cursor: wait; opacity: .75; }

/* AI与办公工具同步提高字号，紧凑布局不以牺牲可读性为代价 */
.ai-writing-page { font-size: 14px; }
.ai-writing-page .ai-intro-copy > p, .ai-writing-page .ai-step-subtitle,
.ai-writing-page .ai-progress [data-step] small, .ai-writing-page .ai-step-navigation > span { font-size: 12px; }
.ai-writing-page .ai-progress [data-step] strong { font-size: 14px; }
.ai-writing-page .ai-panel-heading h2 { font-size: 19px; }
.ai-writing-page .ai-field label, .ai-writing-page .ai-pane-heading b,
.ai-writing-page .ai-history-heading { font-size: 14px; }
.ai-writing-page .form-control, .ai-writing-page button, .ai-writing-page .ai-editor-footer { font-size: 13px; }
.ai-writing-page .ai-chat-placeholder, .ai-writing-page .ai-chat-bubble { font-size: 13px; }
.theme-tools .tools-category-nav a, .theme-tools .tool-card p, .theme-tools .tools-section .portal-section-heading > span { font-size: 12px; }
.theme-tools .tool-card h3 { font-size: 15px; }

@media (max-width: 767px) {
    .portal-brand b { font-size: 15px; }
    .library-panel-title { font-size: 15px; }
    .library-category-list span, .library-resource-strip b { font-size: 12px; }
    .library-article-block { min-height: 0; }
    .library-article-block ul { display: block; }
    .library-side-column { display: block; }
    .library-side-column .library-section-card.compact + .library-section-card.compact { margin-top: 10px; }
    .portal-page .list_content { display: block; }
    .portal-page .article-metas .metas-title,
    .portal-page .article_left .panel-body .article-metas .metas-title { font-size: 21px; line-height: 1.55; }
    .portal-page .article-text { font-size: 16px; line-height: 1.9; }
    .portal-page .article-text p, .portal-page .article-text p span, .portal-page .article-text li { font-size: 16px !important; line-height: 1.9 !important; }
    .portal-page .portal-ai-transfer { width: 100%; margin: 10px 0 0; justify-content: center; }
    .portal-page .channel-list .channelnews_width, .portal-page .channel-list .col_div { min-height: 0; }
}

/* 范文列表页：与新版文库首页统一的紧凑卡片式布局 */
.portal-page .portal-list-page { padding-top: 16px; padding-bottom: 28px; }
.portal-list-page .new_position { margin-bottom: 8px; padding: 8px 13px; border-radius: 8px; }
.portal-list-heading {
    min-height: 70px; margin-bottom: 10px; padding: 12px 15px; display: flex; align-items: center; gap: 12px;
    border: 1px solid var(--portal-line); border-radius: 10px; background: #fff;
    box-shadow: 0 6px 20px rgba(58,46,43,.04);
}
.portal-list-heading-icon {
    width: 40px; height: 40px; flex: 0 0 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; color: var(--portal-primary); background: var(--portal-primary-soft); font-size: 18px;
}
.portal-list-heading > div { min-width: 0; flex: 1; }
.portal-list-heading h1 { margin: 0; color: #2f4353; font-size: 21px; font-weight: 700; line-height: 1.35; }
.portal-list-heading p { margin: 3px 0 0; color: #8b98a2; font-size: 12px; }
.portal-list-ai {
    min-height: 34px; padding: 0 13px; display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid #e4c7c1; border-radius: 17px; color: var(--portal-primary); background: #fff9f7;
    font-size: 12px; font-weight: 600; text-decoration: none !important;
}
.portal-list-ai:hover { border-color: var(--portal-primary); color: #fff; background: var(--portal-primary); }

.portal-list-page .list_tab { margin-bottom: 10px; padding: 10px 13px 6px; border-radius: 10px; }
.portal-list-page .list_tab_first, .portal-list-page .list_tab_second { display: flex; align-items: flex-start; }
.portal-list-page .list_tab_second:not(:has(a)) { display: none; }
.portal-list-page .list_tab .tab_left, .portal-list-page .list_tab .tab_left2 {
    width: 94px; margin: 5px 8px 4px 0; flex: 0 0 94px; color: #405466; font-size: 13px; line-height: 24px; white-space: nowrap;
}
.portal-list-page .list_tab .tab_right { min-height: 32px; margin: 0; padding: 2px 0; flex: 1; border-bottom: 0; }
.portal-list-page .list_tab .tab_right a {
    margin: 0 4px 4px 0; padding: 5px 10px; border-radius: 14px; color: #5e6f7c; background: #f7f8fa;
    font-size: 12px; line-height: 20px; text-decoration: none;
}
.portal-list-page .list_tab .tab_right a:hover { color: var(--portal-primary); background: var(--portal-primary-soft); }
.portal-list-page .list_tab .tab_right a.active { color: #fff !important; background: var(--portal-primary); }

.portal-list-page > .panel-default { margin-bottom: 10px; box-shadow: none; }
.portal-list-page > .panel-default > .panel-heading { min-height: 44px; padding: 12px 15px; }
.portal-list-page > .panel-default > .panel-body { padding: 10px 15px; }
.portal-list-page .tabs-group { margin-bottom: 6px; }
.portal-list-page .tabs-group:last-child { margin-bottom: 0; }

.portal-list-page .list_content { margin-top: 0; margin-left: -5px; margin-right: -5px; }
.portal-list-page .list_content > main, .portal-list-page .list_content > aside { padding-left: 5px; padding-right: 5px; }
.portal-list-page .list_content_left.panel { margin-bottom: 0; }
.portal-list-page .list_content_left > .panel-heading {
    min-height: 47px; padding: 13px 15px; border-top: 0; background: #fff;
    box-shadow: inset 3px 0 0 var(--portal-primary);
}
.portal-list-page .list_content_left > .panel-heading .panel-title { line-height: 20px; }
.portal-list-page .list_content_left > .panel-heading .panel-title > span i { margin-right: 6px; color: var(--portal-primary); }
.portal-list-page .category-order { display: flex; align-items: center; gap: 4px; }
.portal-list-page .category-order li { padding: 0; }
.portal-list-page .category-order a { padding: 4px 8px; border-radius: 12px; }
.portal-list-page .category-order a:hover, .portal-list-page .category-order a.active { color: var(--portal-primary); background: var(--portal-primary-soft); }
.portal-list-page main .panel-body { padding: 0 15px 12px !important; }
.portal-list-page .article-list ul.inner-list { margin: 0; }
.portal-list-page .article-item { margin: 0; padding: 0; border-bottom: 1px solid #edf0f3; }
.portal-list-page .article-item:last-child { border-bottom: 0; }
.portal-list-page .panel-body .article-list ul.inner-list .article-item > li {
    height: 43px; margin: 0; padding: 0 3px; display: flex; align-items: center; gap: 8px;
    border: 0; line-height: normal; overflow: hidden;
}
.portal-list-page .article-item > li > .btn:first-child {
    max-width: 82px; padding: 3px 7px; flex: 0 0 auto; overflow: hidden; border-color: #d9b0aa; border-radius: 4px;
    color: var(--portal-primary); background: #fff; white-space: nowrap; text-overflow: ellipsis; font-size: 12px;
}
.portal-list-page .article-item > li > .item_title {
    min-width: 0; max-width: calc(100% - 185px); flex: 0 1 auto; overflow: hidden; color: #344a5c; white-space: nowrap; text-overflow: ellipsis;
    font-size: 14px; line-height: 1.4;
}
.portal-list-page .article-item > li > .item_title:hover { color: var(--portal-primary); }
.portal-list-page .article-item > li > .btn_fix { padding: 2px 4px; flex: 0 0 auto; border: 0; border-radius: 3px; font-size: 10px; }
.portal-list-page .article-item > li > .pull-right { position: static; margin-left: auto; flex: 0 0 76px; color: #98a3ab; text-align: right; font-size: 12px; }
.portal-list-page .pager { margin: 14px 0 2px; }
.portal-list-page .pagination { margin: 0; }
.portal-list-page .pagination > li > a, .portal-list-page .pagination > li > span { padding: 5px 9px; font-size: 12px; }

.portal-list-page aside .panel { margin-bottom: 10px; border-radius: 10px; box-shadow: 0 6px 18px rgba(58,46,43,.04); }
.portal-list-page aside .panel > .panel-heading { min-height: 43px; padding: 12px 13px; border-top: 0; background: #fff; }
.portal-list-page aside .panel > .panel-heading .panel-title { font-size: 15px; }
.portal-list-page aside .panel > .panel-body { padding: 9px 13px 11px; }
.portal-list-page aside .hot-article li, .portal-list-page aside .hot-article li a { height: 30px; font-size: 12px; }
.portal-list-page aside .hot-article li { gap: 6px; }
.portal-list-page aside .hot-article li > span { width: 20px; height: 20px; line-height: 20px; flex: 0 0 20px; border-radius: 4px; text-align: center; }
.portal-list-page aside .recommend-ppt .panel-body { gap: 5px; }
.portal-list-page aside .recommend-ppt a.img { overflow: hidden; border-radius: 5px; background: #f3f5f7; aspect-ratio: 4 / 3; }
.portal-list-page aside .recommend-ppt img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: center top; }
.portal-list-page aside .recommend-article .media { margin-top: 7px; }
.portal-list-page aside .recommend-article .media:first-child { margin-top: 0; }
.portal-list-page aside .recommend-article .media-body { max-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }

.portal-list-page .list_content_left > .panel-heading .panel-title { font-size: 14px; }
.portal-list-page .list_ppt_main { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.portal-list-page .pptlist_item { padding: 6px !important; }

.portal-recommend-panel .panel-title { display: flex; align-items: center; gap: 6px; }
.portal-recommend-panel .panel-title > i { color: var(--portal-primary); }
.portal-recommend-panel .panel-title small { margin-left: auto; color: #9aa4ab; font-size: 10px; font-weight: 400; }
.portal-recommend-list { margin: 0; padding: 0; list-style: none; }
.portal-recommend-list li {
    min-height: 43px; padding: 6px 0; display: flex; align-items: center; gap: 7px;
    border-bottom: 1px dashed #edf0f2;
}
.portal-recommend-list li:last-child { border-bottom: 0; }
.portal-recommend-rank {
    width: 20px; height: 20px; line-height: 20px; flex: 0 0 20px; border-radius: 5px;
    color: #8a969e; background: #edf1f4; text-align: center; font-size: 10px; font-weight: 700;
}
.portal-recommend-list li:nth-child(1) .portal-recommend-rank { color: #fff; background: #d94b3d; }
.portal-recommend-list li:nth-child(2) .portal-recommend-rank { color: #fff; background: #e09536; }
.portal-recommend-list li:nth-child(3) .portal-recommend-rank { color: #fff; background: #7796b2; }
.portal-recommend-copy { min-width: 0; flex: 1; }
.portal-recommend-copy > a {
    display: block; overflow: hidden; color: #4b5e6d; white-space: nowrap; text-overflow: ellipsis;
    font-size: 12px; line-height: 1.45;
}
.portal-recommend-copy > a:hover { color: var(--portal-primary); }
.portal-recommend-copy > span { margin-top: 3px; display: block; color: #a0a9b0; font-size: 10px; }
.portal-recommend-cover { width: 52px; height: 38px; flex: 0 0 52px; overflow: hidden; border-radius: 4px; background: #f1f3f5; }
.portal-recommend-cover img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }
.portal-recommend-list li.with-cover .portal-recommend-rank { align-self: flex-start; margin-top: 9px; }
.portal-recommend-empty { padding: 18px 4px; color: #9aa5ad; text-align: center; font-size: 12px; }

@media (max-width: 991px) {
    .portal-list-page .list_content > aside { margin-top: 10px; }
    .portal-list-page .list_ppt_main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .portal-page .portal-list-page { padding-top: 10px; padding-bottom: 20px; }
    .portal-list-heading { min-height: 62px; padding: 10px 11px; gap: 9px; }
    .portal-list-heading-icon { width: 36px; height: 36px; flex-basis: 36px; }
    .portal-list-heading h1 { font-size: 18px; }
    .portal-list-heading p { display: none; }
    .portal-list-ai { min-height: 32px; padding: 0 10px; font-size: 11px; }
    .portal-list-page .list_tab_first, .portal-list-page .list_tab_second { display: block; }
    .portal-list-page .list_tab_second:not(:has(a)) { display: none; }
    .portal-list-page .list_tab .tab_left, .portal-list-page .list_tab .tab_left2 { width: auto; margin: 0 0 5px; line-height: 20px; }
    .portal-list-page .list_tab .tab_right a { padding: 4px 8px; font-size: 11px; }
    .portal-list-page .panel-title .more { margin-top: 5px; }
    .portal-list-page .panel-body .article-list ul.inner-list .article-item > li { height: 41px; gap: 6px; }
    .portal-list-page .article-item > li > .btn:first-child { max-width: 68px; padding: 3px 5px; font-size: 11px; }
    .portal-list-page .article-item > li > .item_title { font-size: 13px; }
    .portal-list-page .article-item > li > .pull-right { flex-basis: 70px; margin-left: 3px; font-size: 11px; }
}

@media (max-width: 480px) {
    .portal-list-heading-icon { display: none; }
    .portal-list-ai { padding: 0 9px; }
    .portal-list-page main .panel-body { padding-left: 10px !important; padding-right: 10px !important; }
    .portal-list-page .article-item > li > .pull-right { display: none; }
    .portal-list-page .article-item > li > .btn_fix { display: none; }
    .portal-list-page .list_ppt_main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 独立公告/会员服务右栏及正文留白修正 */
.portal-show-page .article-metas { margin-bottom: 7px; padding-bottom: 4px; border-bottom: 0; }
.portal-show-page .article-metas .metas-body,
.portal-show-page .article_left .panel-body .article-metas .metas-body { padding: 7px 0 3px; border-bottom: 0; }
.portal-show-page .article_left .panel-body .article-text { padding: 0 5px !important; }

@media (max-width: 991px) {
    .library-side-stack { height: 206px; grid-column: 1 / -1; grid-template-rows: 98px 98px; }
    .library-side-stack .library-notice-panel { height: 98px; display: block; min-height: 0; }
    .library-side-stack .library-notice-panel .library-panel-title { height: 40px; border-right: 0; border-bottom: 1px solid #e9edf2; }
    .library-side-stack .library-notice-content { height: 58px; display: block; }
    .library-side-stack .library-notice-list { height: 58px; padding: 0 12px; }
    .library-side-stack .library-notice-list li { display: none; }
    .library-side-stack .library-notice-list li:first-child { display: block; }
    .library-side-stack .library-notice-list a { height: 58px; }
    .library-account-panel { height: 98px; }
}

@media (max-width: 767px) {
    .library-side-stack { width: 100%; height: auto; order: 3; grid-template-rows: auto 122px; }
    .library-side-stack .library-notice-panel { height: auto; }
    .library-side-stack .library-notice-content,
    .library-side-stack .library-notice-list { height: auto; }
    .library-side-stack .library-notice-list { padding: 4px 11px; }
    .library-side-stack .library-notice-list li { display: block; }
    .library-side-stack .library-notice-list li:nth-child(n+4) { display: none; }
    .library-side-stack .library-notice-list a { height: 30px; }
    .library-account-panel { height: 122px; }
    .portal-user-dropdown { right: -4px; }
}

/* 2026-07 首页公告、列表反馈与详情交互收口 */
.library-notice-content { grid-template-columns: 1fr; grid-template-rows: minmax(0, 2fr) minmax(88px, 1fr); }
.library-notice-list { overflow: hidden; }
.library-site-stats { padding: 8px 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border-top: 1px solid #edf0f3; border-left: 0; }
.library-site-stats > span { min-height: 54px; padding: 7px 8px; grid-template-columns: 24px minmax(0, 1fr); border: 1px solid #edf0f3; }
.library-site-stats i { font-size: 14px; }
.library-site-stats b { font-size: 11px; }
.library-site-stats small { font-size: 10px; }
.library-article-columns { row-gap: 8px; }
.library-article-block { min-height: 270px; }

.portal-page .article-item > li,
.portal-page .inner-list > li,
.library-article-block li,
.library-resource-list li,
.library-notice-list li,
.portal-recommend-list li { padding-right: 5px; padding-left: 5px; border-radius: 5px; transition: color .15s ease, background-color .15s ease, transform .15s ease; }
.portal-page .article-item > li:hover,
.portal-page .inner-list > li:hover,
.library-article-block li:hover,
.library-resource-list li:hover,
.library-notice-list li:hover,
.portal-recommend-list li:hover { background: var(--portal-primary-soft); transform: translateX(2px); }

.portal-show-page .article-donate { margin: 18px 0 10px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.portal-show-page .article-donate .btn { min-width: 108px; height: 36px; margin: 0; padding: 7px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 18px; font-size: 13px; line-height: 20px; vertical-align: middle; }
.portal-show-page .addbookbark.is-collected { border-color: #d94f47; color: #fff; background: #d94f47; }
.portal-show-page .addbookbark.is-loading { opacity: .62; pointer-events: none; }
.portal-show-page .article-word-download.is-locked,
.portal-show-page .article-email-send.is-locked { color: #9d817b; background: #fffaf8; }
.article-inline-share { position: relative; display: inline-flex; align-items: center; }
.portal-show-page .article-inline-share .article-share-trigger { min-width: 145px; color: #a34237; background: #fff; }
.portal-show-page .article-inline-share .article-share-trigger:hover,
.portal-show-page .article-inline-share.is-open .article-share-trigger { border-color: var(--portal-primary); color: #fff; background: var(--portal-primary); }
.article-share-popover { position: absolute; right: 50%; bottom: calc(100% + 4px); z-index: 80; width: 300px; padding: 15px; display: none; border: 1px solid #e4d6d0; border-radius: 12px; color: #52616b; background: #fff; box-shadow: 0 15px 42px rgba(61,43,37,.18); transform: translateX(50%); text-align: left; }
.article-inline-share:hover .article-share-popover,
.article-inline-share:focus-within .article-share-popover,
.article-inline-share.is-open .article-share-popover { display: block; }
.article-share-popover:after { position: absolute; right: 50%; bottom: -7px; width: 13px; height: 13px; border-right: 1px solid #e4d6d0; border-bottom: 1px solid #e4d6d0; background: #fff; content: ""; transform: translateX(50%) rotate(45deg); }
.article-share-popover:before { position: absolute; right: 0; bottom: -12px; left: 0; height: 14px; content: ""; }
.article-share-popover > b { display: block; color: #344955; font-size: 14px; text-align: center; }
.article-share-popover > b i { margin-right: 5px; color: var(--portal-primary); }
.article-share-popover > p { margin: 5px 0 10px; color: #8a969d; font-size: 10px; line-height: 1.6; text-align: center; }
.article-share-code { width: 174px; height: 174px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; border: 1px solid #e7edf0; border-radius: 9px; background: #fafcfd; }
.article-share-code img { width: 160px; height: 160px; display: block; }
.article-share-loading { color: #8b989f; font-size: 10px; text-align: center; }
.article-share-address { height: 34px; display: flex; border: 1px solid #dfe7eb; border-radius: 7px; overflow: hidden; background: #f8fafb; }
.article-share-address input { min-width: 0; padding: 0 8px; flex: 1; border: 0; outline: 0; color: #71808a; background: transparent; font-size: 10px; }
.article-share-address button { width: 58px; flex: 0 0 58px; border: 0; color: #fff; background: var(--portal-primary); font-size: 10px; }
.invite-share-qrcode { padding: 9px; border: 1px solid #ead8d2; border-radius: 8px; background: #fff; line-height: 0; }

#floatbtn .portal-invite-float { border: 1px solid #ead8d2; border-radius: 8px; color: var(--portal-primary); box-shadow: 0 5px 16px rgba(78,46,34,.08); }
#floatbtn .portal-invite-float:hover { color: #fff; background: var(--portal-primary); }
#floatbtn .portal-invite-float-panel { top: -58px; width: 240px; height: auto; min-height: 170px; padding: 16px; border-color: #ead8d2; border-radius: 10px; line-height: 1.5; text-align: left; box-shadow: 0 12px 34px rgba(64,42,34,.16); }
#floatbtn .portal-invite-float-panel > b { display: block; color: #49362f; font-size: 14px; }
#floatbtn .portal-invite-float-panel > b i { margin-right: 6px; color: var(--portal-primary); }
#floatbtn .portal-invite-float-panel > p { margin: 5px 0 10px; font-size: 11px; }
.portal-invite-float-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.portal-invite-float-actions button { height: 32px; border: 1px solid #dfc7be; border-radius: 6px; color: #a34237; background: #fff8f5; font-size: 11px; }
.portal-invite-float-actions button:hover { border-color: var(--portal-primary); color: #fff; background: var(--portal-primary); }
#floatbtn .portal-invite-float-panel .invite-share-qrcode { width: 170px; margin: 10px auto 0; }
#floatbtn .portal-invite-float-panel .portal-invite-center-link { margin-top: 10px; display: block; color: var(--portal-primary); font-size: 11px; text-align: center; }

.tools-section.is-focused { border-color: rgba(24,167,121,.55); box-shadow: 0 0 0 3px rgba(24,167,121,.10), 0 8px 26px rgba(34,76,61,.06); }
.tools-category-nav a { transition: color .16s ease, background-color .16s ease, transform .16s ease; }
.tools-category-nav a.active { font-weight: 700; transform: translateX(2px); box-shadow: inset 3px 0 0 var(--portal-primary); }

@media (max-width: 991px) {
    .library-notice-panel { height: 98px; min-height: 98px; }
    .library-notice-panel .library-panel-title { height: 98px; }
    .library-notice-content { height: 98px; display: grid; grid-template-rows: 42px 56px; }
    .library-notice-list { height: 42px; }
    .library-notice-list a { height: 42px; }
    .library-site-stats { display: grid; padding: 4px 7px; }
    .library-site-stats > span { min-height: 46px; padding: 4px 6px; }
    .library-user-shortcuts { height: 98px; }
}

@media (max-width: 767px) {
    .library-notice-panel, .library-notice-panel .library-panel-title { height: auto; min-height: 0; }
    .library-notice-content { height: auto; display: grid; grid-template-rows: auto auto; }
    .library-notice-list { height: auto; }
    .library-notice-list a { height: 30px; }
    .library-site-stats { padding: 7px; }
    .library-user-shortcuts { height: 53px; }
    .library-article-columns { row-gap: 8px; }
    .article-share-popover { position: fixed; right: 12px; bottom: 72px; left: 12px; width: auto; max-width: 330px; margin: auto; transform: none; }
    .article-share-popover:after { display: none; }
    .portal-show-page .article-donate { gap: 7px; }
    .portal-show-page .article-donate .btn,
    .portal-show-page .article-inline-share .article-share-trigger { width: 140px; min-width: 140px; }
    .portal-show-page .article-inline-share { align-self: center; }
    .tools-category-nav a.active { transform: none; box-shadow: inset 0 -3px 0 var(--portal-primary); }
}

/* PPT列表：移除旧模板固定高度，保持封面、标题和操作区紧凑等高 */
.portal-list-page .tabs-wrapper .tabs-group { margin: 0; padding: 5px 0; display: flex; align-items: flex-start; border-bottom: 1px dashed #edf0f2; }
.portal-list-page .tabs-wrapper .tabs-group:last-child { border-bottom: 0; }
.portal-list-page .tabs-wrapper .tabs-group .title { width: 92px; padding: 5px 6px 0 0; flex: 0 0 92px; line-height: 22px; }
.portal-list-page .tabs-wrapper .tabs-group .content { margin: 0; padding: 0; display: flex; flex: 1; flex-wrap: wrap; gap: 4px 7px; list-style: none; }
.portal-list-page .tabs-wrapper .tabs-group .content li { margin: 0 !important; padding: 0 !important; }
.portal-list-page .tabs-wrapper .tabs-group .content li a { padding: 5px 10px; display: block; line-height: 20px; }
.portal-list-page .pptlist_item,
.portal-list-page .pptlist_item:hover {
    width: auto !important; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 6px !important;
    border: 1px solid #e3e8ed; border-radius: 8px; background: #fff; box-shadow: none; transform: none;
}
.portal-list-page .pptlist_item:hover { border-color: #d7aaa3; box-shadow: 0 7px 18px rgba(90,54,48,.08); transform: translateY(-2px); }
.portal-list-page .pptlist_item::after { background: var(--portal-primary); }
.portal-list-page .pptlist_item_div {
    width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; overflow: hidden;
    border: 1px solid #edf0f2; border-radius: 6px; background: #f3f5f7;
}
.portal-list-page .pptlist_item_div img { width: 100% !important; height: 100% !important; display: block; object-fit: cover; object-position: center top; }
.portal-list-page .pptlist_item_div .icon_jiaobiao { top: 7px; right: 7px; left: auto; z-index: 2; width: auto; height: auto; padding: 3px 7px; display: block; border-radius: 10px; color: #fff; background: #d95a4f !important; background-image: none !important; text-indent: 0; font-size: 0; font-style: normal; line-height: 1.2; }
.portal-list-page .pptlist_item_div .icon_jiaobiao:after { content: "含讲稿"; }
.portal-list-page .pptlist_item_div .icon_jiaobiao:after { font-size: 10px; }
.portal-list-page .pptlist_title {
    height: 39px; margin: 7px 3px 3px; display: -webkit-box; overflow: hidden; color: #3f5363;
    font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.portal-list-page .pptlist_title:hover { color: var(--portal-primary); }
.portal-list-page .listpptitem_btn { min-height: 30px; padding: 5px 3px 1px; display: flex; align-items: center; gap: 12px; border-top: 1px solid #f0f2f4; }
.portal-list-page .pptlist_item .listpptitem_btn i { margin: 0; padding: 0; color: #87939c; font-size: 11px; font-style: normal; }
.portal-list-page .pptlist_item .listpptitem_btn a { margin: 0 0 0 auto; padding: 4px 8px; border-color: var(--portal-primary); background: var(--portal-primary); font-size: 11px; }

/* 全部CMS详情页：统一新版文库的阅读、资源预览、下载和侧栏外观 */
.portal-page .portal-show-page { padding-top: 16px; padding-bottom: 28px; }
.portal-show-page > .new_position { margin-bottom: 10px; }
.portal-show-page > .row { margin-left: -5px; margin-right: -5px; }
.portal-show-page > .row > main, .portal-show-page > .row > aside { padding-left: 5px; padding-right: 5px; }
.portal-show-page > .row > main.col-xs-12:not(.col-md-9) { max-width: 980px; margin-right: auto; margin-left: auto; float: none; }
.portal-show-page .article-content {
    margin-bottom: 10px; border-top: 3px solid var(--portal-primary); border-radius: 10px;
    box-shadow: 0 7px 22px rgba(58,46,43,.05);
}
.portal-show-page .article-content > .panel-heading { padding: 10px 15px; background: #fff; }
.portal-show-page .article-content > .panel-body { padding: 23px 28px 25px; }
.portal-show-page .article-metas { margin-bottom: 18px; padding: 0 0 16px; text-align: center; }
.portal-show-page .article-metas .metas-title,
.portal-show-page .article_left .panel-body .article-metas .metas-title {
    margin: 0; color: #263844; font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif !important;
    font-size: 23px; font-weight: 700; line-height: 1.5; letter-spacing: .1px;
}
.portal-show-page .article-metas .metas-body {
    margin-top: 10px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 16px;
    color: #8b979f; font-size: 12px;
}
.portal-show-page .article-metas .metas-body > span { margin: 0; }
.portal-show-page .article-metas .metas-body i { margin-right: 4px; color: #a56a60; }
.portal-show-page .btn-download-now { min-height: 32px; padding: 6px 12px; border-color: var(--portal-primary); border-radius: 16px; background: var(--portal-primary); font-size: 12px; }
.portal-show-page .article-text,
.portal-show-page .article-text * {
    color: #252c31; font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif !important;
}
.portal-show-page .article-text { font-size: 16px !important; line-height: 1.9 !important; }
.portal-show-page .article-text p,
.portal-show-page .article-text p span,
.portal-show-page .article-text li { font-size: 16px !important; line-height: 1.9 !important; }
.portal-show-page .article-text p { margin-bottom: 9px !important; }
.portal-show-page .article-text img { margin: 10px auto; display: block; border-radius: 4px; }
.portal-show-page .article-text table { margin: 12px auto; }
.portal-show-page .article-text a { color: var(--portal-primary); }
.portal-show-page .article-text em { color: #52779b; }

.portal-show-page .screenshots-box { margin: 15px 0 0; padding: 8px; overflow: hidden; border: 1px solid #e3e8ed; border-radius: 9px; background: #f7f9fa; }
.portal-show-page .screenshots-box > h2,
.portal-show-page .download-box > h2,
.portal-show-page .intro-box > h2,
.portal-show-page .history-box > h2 { margin: 0 0 10px; padding: 0 0 9px; border-bottom: 1px solid #e7ebee; color: #344b5d; font-size: 16px; }
.portal-show-page .screenshots-box iframe { width: 100% !important; height: 620px !important; min-height: 620px; margin-top: 0 !important; display: block; border: 0; border-radius: 6px; background: #fff; }
.portal-show-page .screenshots-box > img,
.portal-show-page [itemprop="screenshot"] { width: 100% !important; max-height: 760px; margin: 0 auto; display: block; object-fit: contain; object-position: center top; }
.portal-show-page .copyright-box { margin: 10px 0 !important; padding: 11px 13px !important; border-color: #eadfc8 !important; border-radius: 7px !important; color: #8a7140 !important; background: #fffaf0 !important; font-size: 12px; }
.portal-show-page .copyright-box p { margin: 0 0 4px; }
.portal-show-page .copyright-box p:last-child { margin-bottom: 0; }

.portal-show-page main > .panel:not(.article-content) { margin-bottom: 10px; border-radius: 10px; box-shadow: 0 6px 18px rgba(58,46,43,.04); }
.portal-show-page main > .panel:not(.article-content) > .panel-heading { min-height: 45px; padding: 12px 15px; border-top: 0; background: #fff; box-shadow: inset 3px 0 0 var(--portal-primary); }
.portal-show-page main > .panel:not(.article-content) > .panel-body { padding: 13px 15px; }
.portal-show-page #download .alert { margin-bottom: 9px; padding: 12px 14px; border: 1px solid #ecd8d4; color: #76534e; background: #fff9f7; }
.portal-show-page #download .alert:last-child { margin-bottom: 0; }
.portal-show-page #download .content_btn,
.portal-show-page #download .btn-download { border-color: var(--portal-primary); background: var(--portal-primary); }

.portal-show-page .article_right > .panel,
.portal-show-page aside .panel { margin-bottom: 10px; border-radius: 10px; box-shadow: 0 6px 18px rgba(58,46,43,.04); }
.portal-show-page aside { position: sticky; top: 78px; }
.portal-show-page aside .about-author { display: none; }
.portal-show-page aside .panel > .panel-heading { min-height: 43px; padding: 12px 13px; border-top: 0; background: #fff; }
.portal-show-page aside .panel > .panel-heading .panel-title { font-size: 14px; }
.portal-show-page aside .panel > .panel-body { padding: 10px 13px; }
.portal-show-page aside .hot-article li { height: 30px; }
.portal-show-page aside .hot-article li a { font-size: 12px; }
.portal-show-page aside .recommend-ppt .panel-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.portal-show-page aside .recommend-ppt a.img { width: auto; height: auto; margin: 0; aspect-ratio: 4 / 3; border-radius: 5px; }
.portal-show-page aside .recommend-ppt img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: center top; }
.portal-show-page aside .recommend-article .media { margin-top: 7px; }
.portal-show-page aside .recommend-article .media:first-child { margin-top: 0; }
.portal-show-page aside .recommend-article .media-body { max-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.portal-show-page .portal-show-shortcuts .panel-title i { margin-right: 6px; color: var(--portal-primary); }
.portal-show-page .portal-show-shortcuts .panel-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.portal-show-page .portal-show-shortcuts a { min-width: 0; padding: 9px 4px; display: flex; flex-direction: column; align-items: center; gap: 5px; border: 1px solid #e8ecef; border-radius: 7px; color: #667785; text-align: center; text-decoration: none; font-size: 11px; }
.portal-show-page .portal-show-shortcuts a:hover { border-color: #d5aaa3; color: var(--portal-primary); background: var(--portal-primary-soft); }
.portal-show-page .portal-show-shortcuts a i { color: var(--portal-primary); font-size: 15px; }
.portal-show-page #comments .panel-title small { margin-left: 5px; color: #98a2a9; font-size: 11px; }
.portal-show-page #comments .panel-title > p { margin: 0; font-size: 11px !important; font-weight: 400; }

@media (max-width: 991px) {
    .portal-show-page > .row > aside { position: static; margin-top: 0; }
    .portal-show-page .screenshots-box iframe { height: 560px !important; min-height: 560px; }
}

@media (max-width: 767px) {
    .portal-page .portal-show-page { padding-top: 10px; padding-bottom: 20px; }
    .portal-list-page .tabs-wrapper .tabs-group { display: block; }
    .portal-list-page .tabs-wrapper .tabs-group .title { width: auto; padding: 2px 0 5px; }
    .portal-list-page .tabs-wrapper .tabs-group .content { gap: 4px; }
    .portal-list-page .tabs-wrapper .tabs-group .content li a { padding: 4px 8px; font-size: 11px; }
    .portal-list-page .pptlist_title { height: 36px; font-size: 12px; }
    .portal-show-page .article-content > .panel-body { padding: 18px 15px 20px; }
    .portal-show-page .article-metas { margin-bottom: 14px; padding-bottom: 13px; }
    .portal-show-page .article-metas .metas-title,
    .portal-show-page .article_left .panel-body .article-metas .metas-title { font-size: 20px; line-height: 1.5; }
    .portal-show-page .article-metas .metas-body { margin-top: 8px; gap: 5px 11px; }
    .portal-show-page .article-text,
    .portal-show-page .article-text p,
    .portal-show-page .article-text p span,
    .portal-show-page .article-text li { font-size: 15px !important; line-height: 1.85 !important; }
    .portal-show-page .screenshots-box { padding: 4px; }
    .portal-show-page .screenshots-box iframe { height: 480px !important; min-height: 480px; }
    .portal-show-page #comments .panel-title > p { display: none; }
}

@media (max-width: 480px) {
    .portal-show-page .screenshots-box iframe { height: 420px !important; min-height: 420px; }
    .portal-show-page .article-metas .metas-body .btn-download-now { width: auto; margin: 0; }
}

/* 正文标题区最终覆盖：取消旧模板横线及多余首行留白 */
.portal-show-page .article-metas { margin-bottom: 7px !important; padding-bottom: 4px !important; border-bottom: 0 !important; }
.portal-show-page .article-metas .metas-body,
.portal-show-page .article_left .panel-body .article-metas .metas-body { padding-top: 7px !important; padding-bottom: 3px !important; border-bottom: 0 !important; }
.portal-show-page .article_left .panel-body .article-text { padding-top: 0 !important; }

/* 统一弹窗登录：三大模块共用账号与邮箱验证码入口 */
body.portal-login-open { overflow: hidden !important; }
.portal-login-mask { position: fixed; inset: 0; z-index: 10050; padding: 22px; display: none; align-items: center; justify-content: center; background: rgba(20, 31, 42, .58); backdrop-filter: blur(3px); }
.portal-login-mask.is-open { display: flex; }
.portal-login-dialog { position: relative; width: min(760px, 100%); min-height: 455px; overflow: hidden; display: grid; grid-template-columns: 300px minmax(0, 1fr); border: 1px solid rgba(255,255,255,.4); border-radius: 16px; background: #fff; box-shadow: 0 26px 80px rgba(15,28,40,.28); animation: portalLoginIn .2s ease-out; }
@keyframes portalLoginIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.portal-login-close { position: absolute; top: 13px; right: 13px; z-index: 2; width: 32px; height: 32px; border: 0; border-radius: 50%; color: #8d999f; background: #f2f5f7; }
.portal-login-close:hover { color: var(--portal-primary); background: var(--portal-primary-soft); }
.portal-login-intro { padding: 54px 34px; color: #fff; background: linear-gradient(150deg, var(--portal-primary-dark), var(--portal-primary)); }
.portal-login-intro > span { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.25); border-radius: 13px; background: rgba(255,255,255,.11); font-size: 20px; }
.portal-login-intro h2 { margin: 22px 0 10px; color: #fff; font-size: 23px; font-weight: 700; line-height: 1.4; }
.portal-login-intro p { margin: 0; color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.75; }
.portal-login-intro ul { margin: 28px 0 0; padding: 0; list-style: none; }
.portal-login-intro li { margin: 12px 0; color: rgba(255,255,255,.87); font-size: 12px; }
.portal-login-intro li i { width: 19px; color: #ffe0ae; }
.portal-login-main { min-width: 0; padding: 44px 42px 30px; }
.portal-login-tabs { height: 43px; margin: 0 0 18px; padding: 3px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 9px; background: #f0f3f5; }
.portal-login-tabs button { min-width: 0; border: 0; border-radius: 7px; color: #75848e; background: transparent; font-size: 13px; font-weight: 600; }
.portal-login-tabs button.active { color: #fff; background: var(--portal-primary); box-shadow: 0 4px 12px rgba(60,70,80,.14); }
.portal-login-message { min-height: 27px; padding: 0 2px; color: #c34a3f; font-size: 12px; line-height: 27px; }
.portal-login-message.is-success { color: #17936e; }
.portal-login-form { display: none; }
.portal-login-form:not(.active), .portal-login-form.login-type-disabled { display: none !important; }
.portal-login-form.active:not(.login-type-disabled) { display: block !important; }
.portal-login-form > label { margin: 0 0 14px; display: block; color: #526573; font-size: 12px; font-weight: 600; }
.portal-login-form input { width: 100%; height: 42px; margin-top: 7px; padding: 0 12px; border: 1px solid #dbe3e8; border-radius: 7px; outline: 0; color: #344b5b; background: #fff; font-size: 13px; font-weight: 400; }
.portal-login-form input:focus { border-color: var(--portal-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--portal-primary) 10%, transparent); }
.portal-login-code { margin-top: 7px; display: grid; grid-template-columns: minmax(0, 1fr) 112px; }
.portal-login-code input { margin-top: 0; border-radius: 7px 0 0 7px; }
.portal-send-code { border: 1px solid var(--portal-primary); border-radius: 0 7px 7px 0; color: var(--portal-primary); background: var(--portal-primary-soft); font-size: 12px; }
.portal-send-code:disabled { border-color: #dce2e6; color: #99a4ab; background: #f4f6f7; }
.portal-login-submit { width: 100%; height: 43px; margin-top: 3px; border: 0; border-radius: 8px; color: #fff; background: var(--portal-primary); font-size: 14px; font-weight: 700; }
.portal-login-submit:disabled { opacity: .72; }
.portal-login-help { margin: 9px 0 0; color: #98a3aa; font-size: 10px; text-align: center; }
.portal-login-agreement { margin: -1px 0 12px !important; display: flex !important; align-items: flex-start; gap: 7px; color: #7b8992 !important; font-size: 11px !important; font-weight: 400 !important; line-height: 1.65; }
.portal-login-agreement input { width: 15px !important; height: 15px !important; margin: 2px 0 0 !important; flex: 0 0 15px; accent-color: var(--portal-primary); }
.portal-login-agreement a, .portal-agreement-check a { color: var(--portal-primary); text-decoration: none; }
.portal-login-agreement a:hover, .portal-agreement-check a:hover { text-decoration: underline; }
.portal-login-other { margin-top: 19px; padding-top: 14px; display: flex; align-items: center; gap: 12px; border-top: 1px solid #edf0f2; color: #9aa4aa; font-size: 10px; }
.portal-login-other > span { margin-right: auto; }
.portal-login-other button, .portal-login-other a { padding: 0; border: 0; color: #71808b; background: transparent; font-size: 11px; }
.portal-login-other button:hover, .portal-login-other a:hover { color: var(--portal-primary); }
.portal-wechat-login i { color: #22a447; }

.portal-agreement-mask { position: fixed; inset: 0; z-index: 10120; padding: 20px; display: none; align-items: center; justify-content: center; background: rgba(20,31,42,.66); backdrop-filter: blur(3px); }
.portal-agreement-mask.is-open { display: flex; }
.portal-agreement-dialog { width: min(760px,100%); height: min(720px,calc(100vh - 40px)); overflow: hidden; display: grid; grid-template-rows:auto auto minmax(0,1fr) auto; border-radius: 14px; background:#fff; box-shadow:0 24px 80px rgba(12,25,36,.3); animation:portalLoginIn .18s ease-out; }
.portal-agreement-dialog>header { min-height: 66px; padding: 13px 18px 12px 22px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #e8edef; }
.portal-agreement-dialog>header b { display:block; color:#314653; font-size:17px; }
.portal-agreement-dialog>header small { display:block; margin-top:3px; color:#9aa4aa; font-size:10px; }
.portal-agreement-close { width:32px; height:32px; border:0; border-radius:50%; color:#87939c; background:#f1f4f6; }
.portal-agreement-dialog>nav { height:46px; padding:5px 20px 0; display:flex; gap:7px; background:#fafbfc; border-bottom:1px solid #e8edef; }
.portal-agreement-dialog>nav button { padding:0 18px; border:0; border-bottom:3px solid transparent; color:#73818b; background:transparent; font-size:12px; }
.portal-agreement-dialog>nav button.active { color:var(--portal-primary); border-bottom-color:var(--portal-primary); font-weight:700; }
.portal-agreement-loading { padding:70px 20px; color:#8a969e; text-align:center; }
.portal-agreement-content { min-height:0; padding:22px 28px 30px; overflow-y:auto; color:#51626d; font-size:13px; line-height:1.85; }
.portal-agreement-content h2 { margin:0 0 18px; color:#293e4b; font-size:21px; text-align:center; }
.portal-agreement-content h3 { margin:18px 0 6px; color:#334d5d; font-size:14px; }
.portal-agreement-content p { margin:0 0 8px; text-align:justify; }
.portal-agreement-error { padding:50px 10px; color:#c34a3f; text-align:center; }
.portal-agreement-dialog>footer { min-height:68px; padding:11px 20px; display:flex; align-items:center; gap:15px; border-top:1px solid #e7ecef; background:#fafbfc; }
.portal-agreement-dialog>footer span { margin-right:auto; color:#8c989f; font-size:11px; }
.portal-agreement-confirm { height:40px; padding:0 21px; border:0; border-radius:20px; color:#fff; background:var(--portal-primary); font-size:12px; font-weight:700; }

@media (max-width: 640px) {
    .portal-login-mask { padding: 12px; align-items: flex-start; overflow-y: auto; }
    .portal-login-dialog { width: 100%; min-height: 0; margin: max(16px, env(safe-area-inset-top)) 0 20px; display: block; border-radius: 13px; }
    .portal-login-intro { padding: 23px 20px 19px; }
    .portal-login-intro > span { width: 38px; height: 38px; border-radius: 10px; font-size: 16px; }
    .portal-login-intro h2 { margin: 12px 0 4px; font-size: 19px; }
    .portal-login-intro p { font-size: 11px; }
    .portal-login-intro ul { display: none; }
    .portal-login-main { padding: 20px 18px 22px; }
    .portal-login-tabs { margin-bottom: 12px; }
    .portal-login-other { flex-wrap: wrap; gap: 9px 15px; }
    .portal-login-other > span { width: 100%; }
    .portal-agreement-mask { padding:10px; align-items:flex-end; }
    .portal-agreement-dialog { height:min(82vh,680px); border-radius:14px 14px 8px 8px; }
    .portal-agreement-content { padding:18px 18px 24px; font-size:12px; }
    .portal-agreement-dialog>footer { padding:10px 14px; }
    .portal-agreement-dialog>footer span { display:none; }
    .portal-agreement-confirm { width:100%; }
}

/* 四大功能导航：栏目按实际宽度占位，窄屏时将搜索框收起为图标。 */
@media (max-width: 1279px) {
    .portal-header-inner {
        grid-template-columns: max-content minmax(200px, 1fr) auto;
        gap: 10px;
    }
    .portal-header-left { gap: 10px; }
    .portal-brand { min-width: 175px; }
    .portal-modules a { padding-right: 9px; padding-left: 9px; }
    .portal-header-promo { display: none; }
    .theme-ai .portal-header-inner { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (max-width: 1120px) {
    .portal-header-inner,
    .theme-ai .portal-header-inner,
    .theme-tools.tools-page .portal-header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .portal-header-search { display: none; }
    .portal-header-right { grid-column: 2; }
    .portal-mobile-search {
        width: 36px;
        height: 36px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 36px;
        border: 0;
        border-radius: 8px;
        color: #fff;
        background: rgba(255,255,255,.12);
    }
    .portal-header.portal-search-open .portal-header-search {
        position: absolute;
        top: calc(100% + 8px);
        right: 24px;
        z-index: 1300;
        width: min(360px, calc(100vw - 48px));
        display: flex;
        border-color: rgba(17,122,89,.22);
        background: var(--portal-primary-dark);
        box-shadow: 0 12px 30px rgba(20,54,44,.22);
    }
}

@media (max-width: 900px) and (min-width: 768px) {
    .portal-app-download { display: none; }
}

@media (max-width: 767px) {
    .portal-header.portal-search-open .portal-header-search {
        right: 12px;
        width: calc(100vw - 24px);
    }
}

/* 未登录锁定页：服务器不输出任何实际业务内容 */
.portal-auth-gate { min-height: calc(100vh - 66px); padding: 56px 24px 86px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 15%, var(--portal-primary-soft), transparent 38%), linear-gradient(180deg, #fbfcfd, #f1f4f7); }
.portal-auth-gate-card { width: min(620px, 100%); padding: 48px 56px; border: 1px solid #dfe6eb; border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: 0 18px 55px rgba(39,55,68,.10); text-align: center; }
.portal-auth-gate-icon { width: 64px; height: 64px; margin: 0 auto 17px; display: flex; align-items: center; justify-content: center; border-radius: 18px; color: var(--portal-primary); background: var(--portal-primary-soft); font-size: 26px; }
.portal-auth-gate-card > p:first-of-type { margin: 0 0 7px; color: var(--portal-primary); font-size: 10px; font-weight: 700; letter-spacing: 2.5px; }
.portal-auth-gate-card h1 { margin: 0; color: #2d4353; font-size: 26px; font-weight: 700; }
.portal-auth-gate-line { width: 42px; height: 3px; margin: 18px auto; border-radius: 3px; background: var(--portal-primary); }
.portal-auth-gate-copy { margin: 0 auto; max-width: 500px; color: #77858f; font-size: 13px; line-height: 1.9; }
.portal-auth-gate-actions { margin-top: 27px; display: flex; flex-direction: column; align-items: center; gap: 13px; }
.portal-auth-gate-actions button { min-width: 178px; height: 43px; padding: 0 22px; border: 0; border-radius: 8px; color: #fff; background: var(--portal-primary); font-size: 14px; font-weight: 700; box-shadow: 0 7px 18px color-mix(in srgb, var(--portal-primary) 24%, transparent); }
.portal-auth-gate-actions span { color: #9aa4aa; font-size: 10px; }
.portal-auth-gate-actions span i { margin-right: 4px; color: #38a985; }

@media (max-width: 640px) {
    .portal-auth-gate { min-height: calc(100vh - 122px); padding: 30px 14px 90px; align-items: flex-start; }
    .portal-auth-gate-card { padding: 34px 22px; border-radius: 13px; }
    .portal-auth-gate-icon { width: 54px; height: 54px; border-radius: 15px; font-size: 21px; }
    .portal-auth-gate-card h1 { font-size: 21px; }
    .portal-auth-gate-copy { font-size: 12px; }
}

/* 精品PPT列表：全宽五列、固定预览区和底部信息区。 */
.portal-ppt-list .ppt-filter-panel { margin-bottom: 12px; }
.portal-ppt-list .ppt-filter-panel > .panel-body { padding: 9px 14px !important; }
.portal-ppt-list .ppt-filter-panel .tabs-wrapper { margin: 0; }
.portal-ppt-list .list_content > main { width: 100%; }
.portal-ppt-list .list_ppt_main {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}
.portal-ppt-list .pptlist_item,
.portal-ppt-list .pptlist_item:hover {
    min-height: 475px !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.portal-ppt-list .pptlist_item_div {
    width: 100% !important;
    height: clamp(355px, 27vw, 420px) !important;
    flex: 0 0 clamp(355px, 27vw, 420px) !important;
    aspect-ratio: auto !important;
    border: 0;
    border-radius: 6px 6px 0 0;
    background: #f1f3f5;
}
.portal-ppt-list .pptlist_item_div img {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    display: block;
    transform: none !important;
    object-fit: cover !important;
    object-position: center top !important;
}
.portal-ppt-list .pptlist_info {
    min-height: 68px;
    padding: 0 4px 2px;
    display: flex;
    flex: 1;
    flex-direction: column;
}
.portal-ppt-list .pptlist_identity {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.portal-ppt-list .pptlist_category {
    max-width: 100%;
    padding: 2px 7px;
    overflow: hidden;
    color: #b85f20;
    font-size: 10px;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: #fff4e9;
    border: 1px solid #f2d3b8;
    border-radius: 9px;
}
.portal-ppt-list .pptlist_title {
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0 !important;
    display: -webkit-box;
    flex: 1;
    overflow: hidden;
    color: #344a5c;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.portal-ppt-list .listpptitem_btn {
    width: 100%;
    min-height: 64px;
    margin-top: auto;
    padding: 7px 0 2px;
    align-items: center;
}
.portal-ppt-list .pptlist_item .listpptitem_btn .pptlist_title { margin: 0 !important; }
.portal-ppt-list .pptlist_item .listpptitem_btn .pptlist_title,
.portal-ppt-list .pptlist_item .listpptitem_btn .pptlist_title:hover,
.portal-ppt-list .pptlist_item .listpptitem_btn .pptlist_title:focus {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #344a5c !important;
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none !important;
}
.portal-ppt-list .pptlist_item .listpptitem_btn .btn { margin: 0 0 0 10px !important; flex: 0 0 auto; }

@media (max-width: 1199px) {
    .portal-ppt-list .list_ppt_main { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .portal-ppt-list .pptlist_item,
    .portal-ppt-list .pptlist_item:hover { min-height: 435px !important; }
    .portal-ppt-list .pptlist_item_div { height: 355px !important; flex-basis: 355px !important; }
}

@media (max-width: 991px) {
    .portal-ppt-list .list_ppt_main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .portal-ppt-list .list_ppt_main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .portal-ppt-list .pptlist_item,
    .portal-ppt-list .pptlist_item:hover { min-height: 320px !important; }
    .portal-ppt-list .pptlist_item_div { height: 255px !important; flex-basis: 255px !important; }
    .portal-ppt-list .pptlist_info { min-height: 68px; }
}
