:root{--doc-blue:#2878ee;--doc-blue-dark:#165ecb;--doc-navy:#152b4b;--doc-muted:#7b8ba3;--doc-line:#e4ebf5;--doc-bg:#f4f7fb;--doc-card:#fff;--doc-orange:#ff8a32;--doc-green:#20b486;--doc-shadow:0 10px 30px rgba(35,70,118,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body.document-page{margin:0;min-width:1180px;background:var(--doc-bg);color:var(--doc-navy);font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif}a{text-decoration:none;color:inherit}.document-shell{width:calc(100% - 48px);margin-right:24px;margin-left:24px}.document-header{height:64px;background:#fff;border-bottom:1px solid #e7edf5;box-shadow:0 3px 14px rgba(22,49,83,.04)}.document-header .document-shell{height:64px;display:flex;align-items:center;justify-content:space-between}.document-brand,.document-nav,.document-user{display:flex;align-items:center}.document-brand img{height:32px}.document-brand{margin-right:56px}.document-header-left{display:flex;align-items:center;height:100%}.document-nav{height:100%;gap:32px}.document-nav a{height:64px;display:flex;align-items:center;position:relative;color:#5d6776;font-size:15px;white-space:nowrap}.document-nav a:hover,.document-nav a.active{color:var(--doc-blue)}.document-nav a.active:after{content:"";height:2px;position:absolute;left:0;right:0;bottom:0;background:var(--doc-blue)}.document-user{gap:16px;font-size:14px;color:#687386}.document-user a:hover{color:var(--doc-blue)}
.document-hero{margin-top:22px;height:208px;border-radius:16px;overflow:hidden;position:relative;background:linear-gradient(115deg, #132c53 0%, #205bad 72%, #4c76c9 100%);color:#fff;box-shadow:0 16px 38px rgba(35,94,201,.20)}.document-hero:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px);background-size:42px 42px}.document-hero:after{content:"";position:absolute;width:430px;height:430px;border-radius:50%;right:-110px;top:-220px;border:70px solid rgba(255,255,255,.06)}.hero-content{position:relative;z-index:1;padding:34px 42px;display:flex;justify-content:space-between}.hero-copy{width:480px}.hero-kicker{font-size:14px;color:#cfe2ff;margin-bottom:10px}.hero-kicker i{color:#65f0bd;margin-right:8px}.hero-copy h1{font-size:30px;margin:0 0 10px;letter-spacing:.5px}.hero-copy p{margin:0;color:#dbe8ff;font-size:15px}.hero-stats{display:flex;gap:12px}.hero-stat{width:160px;height:92px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.10);border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;backdrop-filter:blur(4px)}.hero-stat strong{font-size:25px}.hero-stat span{font-size:12px;color:#dbe7ff;margin-top:7px}.document-search{position:absolute;z-index:2;left:42px;right:42px;bottom:24px;height:48px;background:#fff;border-radius:9px;display:flex;align-items:center;padding-left:18px;box-shadow:0 8px 25px rgba(13,50,115,.14)}.document-search i{color:#8da0ba}.document-search input{flex:1;border:0;outline:0;padding:0 14px;font-size:15px;color:#263a58}.document-search button{height:38px;margin-right:5px;padding:0 28px;border:0;border-radius:7px;background:var(--doc-blue);color:#fff;font-size:15px;cursor:pointer}.document-search button:hover{background:var(--doc-blue-dark)}
.document-section{margin-top:18px;background:#fff;border:1px solid var(--doc-line);border-radius:14px;box-shadow:var(--doc-shadow)}.section-head{height:62px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--doc-line)}.section-head h2{font-size:19px;margin:0}.section-head h2:before{content:"";display:inline-block;width:4px;height:19px;border-radius:3px;background:var(--doc-blue);margin-right:10px;vertical-align:-3px}.section-head a{font-size:13px;color:#8390a3}.section-head a:hover{color:var(--doc-blue)}
.category-panel{padding:22px 24px;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.category-card{min-height:126px;border:1px solid #e4ebf5;border-radius:11px;padding:17px;background:#fbfcff;transition:.2s}.category-card:hover{transform:translateY(-2px);border-color:#aecdff;box-shadow:0 10px 25px rgba(40,120,238,.10)}.category-title{display:flex;align-items:center;font-size:17px;font-weight:700;margin-bottom:13px}.category-icon{width:38px;height:38px;border-radius:10px;background:#eaf2ff;color:var(--doc-blue);display:flex;align-items:center;justify-content:center;margin-right:10px}.category-card:nth-child(2) .category-icon{color:#7867e9;background:#f0edff}.category-card:nth-child(3) .category-icon{color:#20a87d;background:#e9f9f3}.category-card:nth-child(4) .category-icon{color:#eb8b28;background:#fff3e7}.category-children{display:flex;flex-wrap:wrap;gap:6px}.category-children a{font-size:12px;color:#75849a;background:#fff;border:1px solid #e5ebf3;border-radius:5px;padding:5px 8px}.category-children a:hover{color:var(--doc-blue);border-color:#b9d3ff}
.document-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px;margin-top:18px}.document-layout .document-section{margin-top:0}.document-grid{padding:20px 22px;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.document-card{display:block;min-width:0}.document-cover{height:202px;border-radius:8px 8px 4px 4px;position:relative;overflow:hidden;border:1px solid #e0e7f0;background:linear-gradient(155deg,#f8fbff,#eef3fa);display:flex;align-items:center;justify-content:center}.document-cover:before{content:"";position:absolute;inset:14px;background:#fff;border:1px solid #e5ebf3;box-shadow:0 5px 14px rgba(28,55,90,.08)}.document-cover-icon{position:relative;text-align:center;color:#9aabc0}.document-cover-icon i{font-size:43px;color:var(--doc-blue);margin-bottom:13px}.document-cover-icon span{display:block;font-size:12px;max-width:115px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-type{position:absolute;left:0;top:0;padding:6px 9px;border-radius:0 0 7px 0;color:#fff;background:#ec5967;font-size:11px;font-weight:700}.document-vip{position:absolute;right:8px;top:8px;padding:4px 7px;border-radius:5px;background:#fff3cf;color:#ad7614;font-size:10px}.document-card:hover .document-cover{border-color:#a8c9ff;box-shadow:0 10px 24px rgba(40,120,238,.11)}.document-card h3{font-size:14px;line-height:1.55;margin:10px 1px 7px;height:44px;overflow:hidden}.document-card:hover h3{color:var(--doc-blue)}.document-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 8px;font-size:11px;color:#96a2b4}.document-meta .free{color:#1aa67b}.document-card-wide{display:flex;padding:16px 0;border-bottom:1px solid #edf1f6}.document-card-wide:last-child{border-bottom:0}.document-card-wide .wide-icon{width:52px;height:62px;border-radius:7px;background:#eef5ff;color:var(--doc-blue);display:flex;align-items:center;justify-content:center;font-size:25px;margin-right:13px}.wide-copy{min-width:0;flex:1}.wide-copy h3{font-size:14px;margin:2px 0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wide-copy p{font-size:12px;color:#94a0b1;margin:0}.sidebar-list{padding:3px 20px 10px}.rank-number{width:22px;font-size:13px;color:#aab4c2;font-weight:700}.document-card-wide:nth-child(-n+3) .rank-number{color:var(--doc-orange)}
.filter-bar{padding:18px 22px;display:flex;align-items:center;gap:10px}.filter-bar a{padding:7px 14px;border-radius:6px;color:#69788e;font-size:13px}.filter-bar a:hover,.filter-bar a.active{color:#fff;background:var(--doc-blue)}.result-count{margin-left:auto;color:#96a1b2;font-size:12px}.pagination{display:flex;justify-content:center;gap:7px;padding:6px 0 27px}.pagination a,.pagination span{height:34px;min-width:34px;padding:0 10px;border:1px solid #dbe4f0;border-radius:6px;background:#fff;color:#67768b;display:flex;align-items:center;justify-content:center;font-size:13px}.pagination .active{background:var(--doc-blue);border-color:var(--doc-blue);color:#fff}.empty-state{text-align:center;padding:75px 20px;color:#99a5b6;grid-column:1/-1}.empty-state i{font-size:48px;color:#cbd6e5;display:block;margin-bottom:15px}.document-footer{text-align:center;color:#9ba6b5;font-size:12px;padding:36px 0}
.detail-breadcrumb{font-size:13px;color:#8794a7;padding:18px 0}.detail-breadcrumb a:hover{color:var(--doc-blue)}.detail-top{background:#fff;border:1px solid var(--doc-line);border-radius:14px;box-shadow:var(--doc-shadow);padding:25px;display:grid;grid-template-columns:150px minmax(0,1fr) 220px;gap:26px}.detail-cover{height:190px;border-radius:9px;background:linear-gradient(150deg,#edf4ff,#f9fbff);border:1px solid #dce7f5;display:flex;align-items:center;justify-content:center;position:relative}.detail-cover i{font-size:54px;color:var(--doc-blue)}.detail-cover b{position:absolute;top:0;left:0;padding:7px 10px;border-radius:8px 0 7px 0;color:#fff;background:#ec5967;font-size:11px}.detail-info h1{font-size:23px;line-height:1.45;margin:4px 0 12px}.detail-summary{font-size:13px;line-height:1.8;color:#7d899a;min-height:44px}.detail-facts{display:flex;gap:20px;margin-top:18px;color:#8794a6;font-size:12px}.detail-facts i{margin-right:5px;color:#a6b4c6}.detail-actions{border-left:1px solid #edf1f6;padding-left:24px;display:flex;flex-direction:column;justify-content:center}.permission-tip{font-size:12px;color:#8895a7;text-align:center;margin-bottom:12px}.primary-action,.secondary-action{height:44px;border-radius:7px;border:0;display:flex;align-items:center;justify-content:center;font-size:14px;cursor:pointer}.primary-action{background:var(--doc-blue);color:#fff}.primary-action:hover{background:var(--doc-blue-dark)}.secondary-action{margin-top:10px;border:1px solid #d7e1ef;background:#fff;color:#5e6d81}.secondary-action:hover{border-color:#9ec4ff;color:var(--doc-blue)}
.reader-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;margin-top:18px}.reader-card{background:#fff;border:1px solid var(--doc-line);border-radius:14px;box-shadow:var(--doc-shadow);overflow:hidden}.reader-toolbar{height:58px;padding:0 19px;background:#fbfcfe;border-bottom:1px solid var(--doc-line);display:flex;align-items:center}.reader-toolbar strong{font-size:14px;max-width:510px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reader-tools{margin-left:auto;display:flex;align-items:center;gap:16px;color:#738197;font-size:12px}.reader-tools button{border:0;background:none;color:#738197;cursor:pointer}.reader-pages{padding:24px;background:#e9eef5;min-height:560px}.preview-page{display:block;width:100%;max-width:760px;min-height:300px;margin:0 auto 18px;background:#fff;box-shadow:0 4px 18px rgba(34,55,81,.13);object-fit:contain}.preview-placeholder{max-width:760px;height:520px;margin:auto;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#98a5b8;box-shadow:0 4px 18px rgba(34,55,81,.13)}.preview-placeholder i{font-size:54px;color:#cad5e3;margin-bottom:15px}.preview-limit{max-width:760px;margin:0 auto;padding:45px;text-align:center;background:#fff;border-radius:4px}.preview-limit h3{margin:0 0 10px}.preview-limit p{color:#8794a5;font-size:13px}.detail-sidebar .document-section{margin-top:0;margin-bottom:18px}.detail-sidebar-box{padding:18px}.detail-sidebar-box p{font-size:13px;line-height:1.8;color:#7e8b9e}.tag{display:inline-flex;padding:5px 9px;background:#eff5ff;color:#5e7eaa;border-radius:5px;font-size:11px;margin:0 5px 6px 0}
@media(min-width:1600px){.document-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.document-layout{grid-template-columns:minmax(0,1fr) 340px}.reader-layout{grid-template-columns:minmax(0,1fr) 340px}.preview-page,.preview-placeholder,.preview-limit{max-width:920px}}
.document-cover-image{position:absolute;z-index:1;inset:14px;width:calc(100% - 28px);height:calc(100% - 28px);object-fit:contain;background:#fff}.document-type,.document-vip{z-index:3}
@media(max-width:900px){body.document-page{min-width:1180px}.document-mobile-notice{display:block}}@media(min-width:901px){.document-mobile-notice{display:none}}

/* PC 文库卡片：接近传统文库的纸张式封面，信息密度更高。 */
@media(min-width:901px){
 .hero-copy{width:auto}.hero-copy h1{font-size:32px}
 .document-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:22px;padding:24px}
 .document-card{padding:10px 10px 12px;background:#fff;border:1px solid #edf0f5;border-radius:3px;box-shadow:0 8px 22px rgba(34,53,78,.07);transition:transform .2s,box-shadow .2s}
 .document-card:hover{transform:translateY(-3px);box-shadow:0 13px 30px rgba(34,53,78,.12)}
 .document-cover{height:auto;aspect-ratio:210/286;border-radius:1px;background:#f7f8fa;border-color:#e7e9ee}
 .document-cover:before{inset:8px;border-color:#eceef2;box-shadow:none}
 .document-cover-image{inset:8px;width:calc(100% - 16px);height:calc(100% - 16px);object-fit:contain}
 .document-card h3{font-size:15px;height:47px;margin:12px 1px 8px;font-weight:600}
 .document-type{font-size:10px;padding:5px 8px}.document-vip{right:6px;top:6px}
 .document-card-wide{min-width:0}
}
@media(min-width:1600px){.document-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}

/* 文库首页与详情页的桌面端收口：保持热门资料为右栏，并强化浏览与下载路径。 */
@media(min-width:901px){
 .document-hero{height:226px}
 .hero-content{padding:26px 42px 0;align-items:flex-start}
 .hero-copy{width:520px}.hero-copy h1{font-size:32px;margin-bottom:7px}.hero-copy p{font-size:14px}
 .hero-highlights{display:flex;gap:12px;margin:4px 0 0 30px;position:relative;z-index:2}
 .hero-highlight{width:150px;min-height:76px;padding:13px 12px;border:1px solid rgba(255,255,255,.20);border-radius:12px;background:rgba(255,255,255,.09);backdrop-filter:blur(6px);display:flex;align-items:center;gap:9px}
 .hero-highlight>i{width:34px;height:34px;border-radius:9px;background:rgba(255,255,255,.15);display:flex;align-items:center;justify-content:center;color:#fff}
 .hero-highlight span{display:flex;flex-direction:column;min-width:0}.hero-highlight b{font-size:14px;margin-bottom:5px}.hero-highlight small{font-size:11px;white-space:nowrap;color:#d9e7ff}
 .document-search{bottom:22px}
 .document-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px;margin-top:18px}.document-layout>aside{margin-top:0}
 .document-layout .document-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding:22px}
 .document-layout .sidebar-list,.detail-sidebar .sidebar-list{display:block;padding:3px 20px 10px}
 .document-layout .document-card-wide,.detail-sidebar .document-card-wide{min-width:0}
}
@media(min-width:1600px){
 .document-layout{grid-template-columns:minmax(0,1fr) 340px}
 .document-layout .document-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
}

/* 详情页：封面信息区、宽幅阅读器、结束下载提示和说明卡片。 */
.detail-top{grid-template-columns:166px minmax(0,1fr) 240px;padding:28px 30px;gap:30px;align-items:stretch}
.detail-cover{height:218px;background:#f5f7fb;overflow:hidden}.detail-cover img{width:100%;height:100%;object-fit:contain;background:#fff;padding:8px}.detail-cover b{z-index:2;font-size:12px;padding:7px 11px}
.detail-category{display:inline-flex;padding:5px 10px;border-radius:5px;background:#eef5ff;color:#4b79bd;font-size:12px;margin:3px 0 9px}
.detail-info h1{font-size:26px;margin:0 0 12px}.detail-summary{max-width:860px}.detail-facts{flex-wrap:wrap;gap:12px 22px;margin-top:24px}
.detail-actions{padding-left:28px}.detail-actions .primary-action{height:48px;font-weight:600}.permission-tip{line-height:1.6}
.permission-tip b{display:block;color:#526984;font-weight:600}.permission-tip small{display:block;color:#9aa6b7;margin-top:3px}.purchase-action{height:44px;margin-top:10px;padding:0 15px;border:1px solid #f1c779;border-radius:7px;background:#fffaf0;color:#a46c0c;display:flex;align-items:center;justify-content:center;gap:12px;font-size:13px}.purchase-action b{font-size:16px;color:#e68520}.preview-choice{display:flex;justify-content:center;gap:12px;margin-top:20px}.preview-choice .primary-action,.preview-choice .purchase-action{width:190px;margin:0}.preview-choice .purchase-action{height:44px}
.reader-layout{grid-template-columns:minmax(0,1fr) 310px;align-items:start}.reader-main{min-width:0}.reader-pages{padding:20px;background:#e9eef5}
.preview-page,.preview-placeholder,.preview-limit{max-width:1040px}.preview-page{margin-bottom:22px;box-shadow:0 5px 20px rgba(34,55,81,.12)}
.preview-limit{padding:42px 28px;border:1px solid #e7ebf1;box-shadow:0 5px 20px rgba(34,55,81,.08)}.preview-limit h3{font-size:20px}.preview-limit p{font-size:14px}.preview-limit .primary-action{width:210px;margin:20px auto 0;gap:8px}
.preview-end-icon{width:52px;height:52px;margin:0 auto 14px;border-radius:50%;background:#eef5ff;color:var(--doc-blue);display:flex;align-items:center;justify-content:center;font-size:22px}
.download-notes{margin-top:18px;background:#fff;border:1px solid var(--doc-line);border-radius:14px;box-shadow:var(--doc-shadow);padding:0 28px 24px}.notes-tabs{height:62px;border-bottom:1px solid var(--doc-line);display:flex;align-items:center;gap:30px}.notes-tabs strong{height:62px;display:flex;align-items:center;color:var(--doc-blue);border-bottom:3px solid var(--doc-blue)}.notes-tabs span{color:#8794a7}.download-notes ol{margin:20px 0 0;padding-left:22px;color:#6f7e91;font-size:13px;line-height:2.15}.download-notes li::marker{color:#9eabbc}.download-notes b{color:#ef4e55}
@media(min-width:1600px){.reader-layout{grid-template-columns:minmax(0,1fr) 330px}.preview-page,.preview-placeholder,.preview-limit{max-width:1160px}}
.document-page-notice{display:flex;align-items:center;gap:10px;margin:0 0 16px;padding:13px 16px;border:1px solid #bcebd6;border-radius:10px;background:#effcf6;color:#087a52;font-size:14px;line-height:1.6}.document-page-notice.is-warning{border-color:#f6d9a5;background:#fff9ed;color:#9a5b00}.document-page-notice i{font-size:17px;flex:0 0 auto}

/* 文库首页与校招信息页共用桌面内容宽度和左右留白。 */
@media(min-width:1024px){
 body.library-page .document-shell{width:calc(100% - 96px);max-width:1900px;margin-left:auto;margin-right:auto}
}

/* 详情页桌面布局：居中留白、阅读工具与下载侧栏在长文档中保持可见。 */
@media(min-width:1180px){
 body.detail-page .document-shell{width:calc(100% - 72px);max-width:1320px;margin-left:auto;margin-right:auto}
 body.detail-page .detail-breadcrumb{padding:20px 8px 16px}
 body.detail-page .detail-top{grid-template-columns:142px minmax(0,1fr) 218px;padding:24px 28px;gap:28px;border-radius:12px}body.detail-page .detail-cover{height:184px}body.detail-page .detail-info h1{font-size:24px}body.detail-page .detail-facts{margin-top:18px}
 body.detail-page .reader-layout{grid-template-columns:minmax(0,1fr) 300px;gap:20px;margin-top:20px}
 body.detail-page .reader-card{border-radius:12px}
 body.detail-page .reader-toolbar{position:sticky;top:0;z-index:12;height:62px;padding:0 24px;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);box-shadow:0 4px 14px rgba(31,54,83,.05)}
 body.detail-page .reader-pages{padding:24px 28px 32px;background:#edf1f6}
 body.detail-page .preview-page,body.detail-page .preview-placeholder,body.detail-page .preview-limit{max-width:900px}
 body.detail-page .preview-page{margin-bottom:24px}
 body.detail-page .detail-sidebar{position:sticky;top:18px;align-self:start;max-height:calc(100vh - 36px);overflow:auto;scrollbar-width:thin;scrollbar-color:#d8e1ed transparent;padding-right:2px}
 body.detail-page .detail-sidebar::-webkit-scrollbar{width:5px}body.detail-page .detail-sidebar::-webkit-scrollbar-thumb{background:#d8e1ed;border-radius:8px}
 body.detail-page .sidebar-access{padding:20px;margin-bottom:18px;background:linear-gradient(145deg,#fff,#f5f9ff);border-color:#dce9fb}
 body.detail-page .sidebar-access-head{display:flex;gap:12px;align-items:flex-start;margin-bottom:16px}
 body.detail-page .sidebar-access-head>i{width:38px;height:38px;border-radius:10px;background:#e9f3ff;color:var(--doc-blue);display:flex;align-items:center;justify-content:center;font-size:17px;flex:0 0 auto}
 body.detail-page .sidebar-access-head div{min-width:0}body.detail-page .sidebar-access-head strong{display:block;font-size:15px;margin:1px 0 6px}body.detail-page .sidebar-access-head span{display:block;color:#7c8ca1;font-size:12px;line-height:1.55}
 body.detail-page .sidebar-access .primary-action{height:46px;gap:8px;font-weight:600}body.detail-page .sidebar-access .purchase-action{margin-top:10px}
 body.detail-page .sidebar-hot{margin-bottom:0}
}
@media(min-width:1700px){body.detail-page .reader-layout{grid-template-columns:minmax(0,1fr) 310px}}
/* 顶部导航始终按站点统一的 24px 边距定位，正文仍保持阅读宽度。 */
body.document-page .document-header .document-shell{width:calc(100% - 48px);max-width:none;margin-left:auto;margin-right:auto}
/* 与校招、公考共用相同的顶部导航节奏，切换页面时不再收缩。 */
body.document-page .document-header-left{gap:60px}
body.document-page .document-brand{margin-right:0;flex:none}
body.document-page .document-nav{gap:34px;flex:none}
body.document-page .document-nav a{color:#666;font-size:15px;font-weight:400;line-height:1.5}
body.document-page .document-nav a:hover,body.document-page .document-nav a.active{color:#3693ef}
body.document-page .document-nav a.active:after{background:#3693ef}
body.document-page .document-nav .nav-badge{display:inline-flex;margin-left:5px;padding:2px 6px;border-radius:5px;background:#ff6b45;color:#fff;font-size:9px;font-weight:700;line-height:1.35}
body.detail-page .detail-breadcrumb{display:flex;align-items:center;gap:12px;min-width:0}
body.detail-page .detail-back{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:0 13px;flex:none;border:1px solid #cfe0f6;border-radius:8px;background:#fff;color:#2878ee;font-weight:600;white-space:nowrap}
body.detail-page .detail-back:hover{border-color:#2878ee;background:#f2f7ff}
body.detail-page .detail-crumbs{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.detail-page .preview-limit .preview-choice{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin-top:22px}
body.detail-page .preview-limit .preview-choice .primary-action,body.detail-page .preview-limit .preview-choice .purchase-action{width:190px;min-width:0;height:44px;margin:0;padding:0 14px;flex:none;white-space:nowrap}
.reader-download-dock{position:fixed;z-index:40;bottom:18px;min-height:72px;padding:12px 16px;background:rgba(255,255,255,.97);border:1px solid #dfe6ef;border-radius:12px;box-shadow:0 12px 36px rgba(25,48,78,.18);display:flex;align-items:center;justify-content:space-between;gap:18px;opacity:0;visibility:hidden;transform:translateY(22px);transition:opacity .2s,transform .2s,visibility .2s;pointer-events:none;backdrop-filter:blur(12px)}.reader-download-dock.is-visible{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}.dock-file{display:flex;align-items:center;gap:12px;min-width:0}.dock-file-icon{width:42px;height:46px;border-radius:8px;background:#edf5ff;color:var(--doc-blue);display:flex;align-items:center;justify-content:center;font-size:21px;flex:0 0 auto}.dock-file>span:last-child{min-width:0}.dock-file strong{display:block;max-width:470px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.dock-file small{display:block;margin-top:5px;color:#8a97a9;font-size:11px}.dock-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}.dock-actions .primary-action,.secondary-dock-action{height:40px;min-width:132px;padding:0 20px;border-radius:20px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:13px}.secondary-dock-action{border:1px solid #cfd9e6;background:#fff;color:#607086}.dock-actions .primary-action{background:#ef4e45}.dock-actions .primary-action:hover{background:#da3d35}

/* 分类浏览：首页按类别向下排列，卡片更紧凑；列表页集中筛选与搜索。 */
.library-page .document-hero{height:187px;margin-top:20px}
.library-page .hero-content{padding:21px 34px 0}
.library-page .hero-copy h1{font-size:29px}
.library-page .hero-highlights{margin-top:1px}
.library-page .hero-highlight{min-height:62px;padding:9px 11px}
.library-page .document-search{left:34px;right:34px;bottom:17px;height:42px}
.library-page .document-search button{height:34px}
.library-category-nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:17px;padding:13px 18px;background:#fff;border:1px solid var(--doc-line);border-radius:11px;box-shadow:var(--doc-shadow)}
.library-category-nav>span{color:#233d60;font-size:14px;font-weight:700;margin-right:6px}
.library-category-nav>a{padding:7px 12px;border-radius:7px;background:#f4f7fb;color:#5b6d85;font-size:13px}
.library-category-nav>a:hover{color:var(--doc-blue);background:#eaf3ff}
.library-category-nav .category-nav-all{margin-left:auto;background:#edf5ff;color:var(--doc-blue)}
.library-mobile-resource-link{display:none}
.home-document-section{margin-top:17px}
.home-document-section .section-head{height:52px;padding:0 19px}
.home-document-section .section-head h2{font-size:18px}
.home-document-section .document-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:13px;padding:16px 18px 19px}
.home-document-section .document-card,.category-results .document-card{padding:7px 7px 10px}
.home-document-section .document-cover,.category-results .document-cover{aspect-ratio:4/5}
.home-document-section .document-card h3,.category-results .document-card h3{font-size:13px;line-height:1.4;height:36px;margin:8px 1px 6px}
.home-document-section .document-meta,.category-results .document-meta{justify-content:flex-start;gap:4px 9px;font-size:10px}
.document-access{color:#ea6b3e;font-weight:600;margin-right:auto}
.home-document-section .document-type,.category-results .document-type{font-size:9px;padding:4px 6px}
.category-breadcrumb{display:flex;align-items:center;gap:17px;padding:18px 0;color:#94a1b3;font-size:13px}
.category-breadcrumb a{color:var(--doc-blue);font-weight:600}
.category-search-hero{min-height:140px;padding:25px 30px;border-radius:13px;background:linear-gradient(115deg, #132c53 0%, #205bad 72%, #4c76c9 100%);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:35px}
.category-search-hero small{color:#b7d4ff;font-size:12px}.category-search-hero h1{font-size:26px;margin:7px 0}.category-search-hero p{font-size:13px;color:#d6e4f8;margin:0}
.category-search-form{height:46px;width:min(500px,48%);display:flex;flex:none;background:#fff;border-radius:8px;overflow:hidden}
.category-search-form input{flex:1;min-width:0;border:0;outline:0;padding:0 16px;font-size:14px;color:#243a57}
.category-search-form button{width:92px;border:0;background:var(--doc-blue);color:#fff;cursor:pointer;font-size:14px}
.category-search-form button:hover{background:var(--doc-blue-dark)}
.category-tabs,.category-subtabs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;background:#fff;border:1px solid var(--doc-line);padding:13px 18px}
.category-tabs{margin-top:14px;border-radius:10px 10px 0 0}
.category-tabs a,.category-subtabs a{padding:8px 13px;border-radius:6px;color:#66778e;font-size:13px;white-space:nowrap}
.category-tabs a:hover,.category-subtabs a:hover{color:var(--doc-blue);background:#edf5ff}
.category-tabs a.active,.category-subtabs a.active{color:#fff;background:var(--doc-blue)}
.category-subtabs{border-top:0;border-radius:0 0 10px 10px;padding-top:10px;padding-bottom:10px}
.category-results{margin-top:14px;background:#fff;border:1px solid var(--doc-line);border-radius:12px;box-shadow:var(--doc-shadow)}
.category-result-toolbar{min-height:50px;padding:8px 19px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--doc-line);color:#92a0b1;font-size:12px}
.category-sort{display:flex;gap:15px}.category-sort a{font-size:13px;color:#60728c;padding:5px 2px}.category-sort a.active,.category-sort a:hover{color:var(--doc-blue);font-weight:700}
.category-results .document-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:13px;padding:17px 18px}
@media(max-width:1550px){.home-document-section .document-grid,.category-results .document-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1250px){.home-document-section .document-grid,.category-results .document-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.library-page .hero-highlight{display:none}}

/* 手机文库：搜索、分类与资料列表使用单列阅读布局。 */
@media(max-width:900px){
 body.document-page{min-width:0;overflow-x:hidden;background:#f6f8fc}
 body.document-page .document-shell,body.document-page .document-header .document-shell{width:calc(100% - 28px);max-width:none;margin-left:14px;margin-right:14px}
 .document-header,.document-header .document-shell{height:56px}
 body.document-page .document-header-left{gap:0;min-width:0}
 body.document-page .document-brand{margin-right:0}
 .document-brand img{height:28px;max-width:125px;object-fit:contain}
 body.document-page .document-nav{display:none}
 .document-user{font-size:12px;gap:0;white-space:nowrap}
 .document-user a+ a{display:none}
 .document-user a{max-width:110px;overflow:hidden;text-overflow:ellipsis}
 .document-mobile-notice{display:none}
 .library-page .document-hero{height:174px;margin-top:12px;border-radius:13px;box-shadow:0 8px 22px rgba(35,94,201,.15)}
 .library-page .hero-content{padding:19px 17px 0}
 .library-page .hero-copy{width:auto;min-width:0}
 .library-page .hero-kicker{font-size:10px;margin-bottom:7px}
 .library-page .hero-copy h1{font-size:22px;margin-bottom:6px}
 .library-page .hero-copy p{font-size:11px;line-height:1.5}
 .library-page .hero-highlights{display:none}
 .library-page .document-search{left:14px;right:14px;bottom:15px;height:42px;padding-left:12px}
 .document-search input{min-width:0;padding:0 9px;font-size:12px}
 .library-page .document-search button{height:34px;margin-right:4px;padding:0 11px;font-size:11px;white-space:nowrap}
 .library-mobile-resource-link{display:flex;align-items:center;gap:11px;margin-top:12px;padding:12px 13px;border:1px solid #dfe8f9;border-radius:11px;background:#fff;color:#263d60;box-shadow:0 4px 14px rgba(27,57,104,.04)}
 .library-mobile-resource-link .library-mobile-resource-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:9px;background:#edf3ff;color:#456cf2;font-size:16px}
 .library-mobile-resource-link span:nth-child(2){display:grid;gap:3px;min-width:0;flex:1}.library-mobile-resource-link strong{font-size:13px}.library-mobile-resource-link small{color:#8a9ab0;font-size:10px;line-height:1.4}
 .library-mobile-resource-link>i{color:#9badc6;font-size:11px}
 .library-category-nav{margin-top:12px;padding:9px;gap:6px;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;border-radius:10px}
 .library-category-nav::-webkit-scrollbar,.category-tabs::-webkit-scrollbar,.category-subtabs::-webkit-scrollbar{display:none}
 .library-category-nav>span,.library-category-nav>a{flex:none;white-space:nowrap}
 .library-category-nav>span{font-size:12px;margin-right:0}
 .library-category-nav>a{padding:7px 9px;font-size:11px}
 .library-category-nav .category-nav-all{margin-left:0}
 .home-document-section,.document-section{margin-top:12px;border-radius:11px;box-shadow:none}
 .home-document-section .section-head,.section-head{height:45px;padding:0 13px}
 .home-document-section .section-head h2,.section-head h2{font-size:15px}
 .section-head h2:before{height:15px;margin-right:7px;vertical-align:-2px}
 .section-head a{font-size:11px}
 .home-document-section .document-grid,.category-results .document-grid,.document-grid{display:block;padding:0 13px}
 .home-document-section .document-card,.category-results .document-card,.document-card{position:relative;display:block;min-height:100px;margin:0;padding:8px 76px 8px 0;border:0;border-bottom:1px solid #edf1f6;border-radius:0;background:none;box-shadow:none}
 .document-grid .document-card:last-child{border-bottom:0}
 .home-document-section .document-cover,.category-results .document-cover,.document-cover{position:absolute;top:8px;right:0;width:66px;height:84px;aspect-ratio:auto;border-radius:4px}
 .document-cover:before{inset:4px}
 .document-cover-image{inset:4px;width:calc(100% - 8px);height:calc(100% - 8px)}
 .document-type{font-size:8px;padding:3px 4px}
 .home-document-section .document-card h3,.category-results .document-card h3,.document-card h3{height:auto;max-height:57px;margin:1px 0 4px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;font-size:13px;line-height:1.45;font-weight:600}
 .home-document-section .document-meta,.category-results .document-meta,.document-meta{justify-content:flex-start;gap:4px 9px;font-size:10px}
 .document-access{margin-right:0}
 .document-footer{padding:24px 12px;font-size:10px}
 .category-breadcrumb{gap:8px;padding:12px 0;font-size:11px;overflow:hidden;white-space:nowrap}
 .category-breadcrumb span{overflow:hidden;text-overflow:ellipsis}
 .category-search-hero{display:block;min-height:0;padding:17px;border-radius:11px}
 .category-search-hero small{font-size:10px}.category-search-hero h1{font-size:21px;margin:5px 0}.category-search-hero p{font-size:11px}
 .category-search-form{width:100%;height:40px;margin-top:14px}
 .category-search-form input{padding:0 11px;font-size:12px}
 .category-search-form button{width:69px;font-size:11px}
 .category-tabs,.category-subtabs{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:9px;gap:4px}
 .category-tabs a,.category-subtabs a{flex:none;padding:7px 9px;font-size:11px}
 .category-results{margin-top:11px;border-radius:10px;box-shadow:none}
 .category-result-toolbar{min-height:43px;padding:7px 12px;gap:8px;font-size:10px}
 .category-sort{gap:9px}.category-sort a{font-size:11px}
 .pagination{flex-wrap:wrap;padding:12px}
 .empty-state{padding:40px 14px}
 .detail-breadcrumb{padding:12px 0;gap:8px;font-size:11px}
 body.detail-page .detail-back{min-height:33px;padding:0 9px;font-size:11px}
 .detail-top{display:grid;grid-template-columns:80px minmax(0,1fr);gap:12px;padding:14px}
 .detail-cover{width:80px;height:108px}
 .detail-cover img{padding:4px}
 .detail-cover i{font-size:30px}
 .detail-info h1{font-size:17px;line-height:1.4;margin:3px 0 8px}
 .detail-category{font-size:10px;margin:0 0 5px;padding:4px 6px}
 .detail-summary{min-height:0;font-size:11px;line-height:1.55}
 .detail-facts{gap:6px 10px;margin-top:10px;font-size:10px}
 .detail-actions{grid-column:1/-1;padding:12px 0 0;border-left:0;border-top:1px solid #edf1f6}
 .permission-tip{margin-bottom:9px;font-size:11px}
 .detail-actions .primary-action,.detail-actions .purchase-action,.detail-actions .secondary-action{width:100%;height:40px;margin-top:8px;font-size:12px}
 .reader-layout{display:block;margin-top:12px}
 .reader-toolbar{height:auto;min-height:48px;padding:10px 12px;gap:8px}
 .reader-toolbar strong{min-width:0;font-size:11px}
 .reader-tools{gap:6px;font-size:10px;white-space:nowrap}
 .reader-tools button{display:none}
 .reader-pages{min-height:0;padding:10px}
 .preview-page{min-height:0;margin-bottom:10px}
 .preview-placeholder{height:250px;padding:20px;text-align:center}
 .preview-limit{padding:26px 16px}
 .preview-choice{flex-wrap:wrap}
 body.detail-page .preview-limit .preview-choice .primary-action,body.detail-page .preview-limit .preview-choice .purchase-action{width:100%}
 .download-notes{padding:0 16px 16px;margin-top:12px}
 .notes-tabs{height:48px;gap:16px}.notes-tabs strong{height:48px}
 .download-notes ol{margin-top:12px;padding-left:18px;font-size:11px}
 .detail-sidebar{margin-top:12px}.detail-sidebar .document-section{margin-bottom:12px}
 body.detail-page .sidebar-access{padding:14px 15px 15px;background:linear-gradient(145deg,#fff,#f7faff);border-color:#dce9fb}
 body.detail-page .sidebar-access-head{display:flex;align-items:flex-start;gap:11px;min-width:0;margin-bottom:13px}
 body.detail-page .sidebar-access-head>i{width:34px;height:34px;flex:0 0 34px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:#eaf3ff;color:var(--doc-blue);font-size:16px}
 body.detail-page .sidebar-access-head div{min-width:0;flex:1}
 body.detail-page .sidebar-access-head strong{display:block;margin:0 0 4px;color:#203b5e;font-size:15px;line-height:1.35}
 body.detail-page .sidebar-access-head span{display:block;color:#6f829b;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
 body.detail-page .sidebar-access .primary-action{height:42px;gap:7px;font-size:13px;font-weight:600}
 body.detail-page .sidebar-access .purchase-action{height:40px;margin-top:9px;font-size:12px}
 body.detail-page{padding-bottom:calc(126px + env(safe-area-inset-bottom,0px))}
 body.detail-page .reader-download-dock{display:flex;left:0!important;right:0;bottom:calc(56px + env(safe-area-inset-bottom,0px));width:100%!important;min-height:62px;padding:9px 14px;border:0;border-top:1px solid #dfe6ef;border-radius:0;gap:8px;box-shadow:0 -5px 18px rgba(25,48,78,.12);transform:translateY(12px)}
 body.detail-page .reader-download-dock.is-visible{transform:translateY(0)}
 body.detail-page .reader-download-dock .dock-file{min-width:0;flex:1;gap:7px}
 body.detail-page .reader-download-dock .dock-file-icon{width:32px;height:34px;font-size:17px}
 body.detail-page .reader-download-dock .dock-file strong{max-width:none;font-size:11px}
 body.detail-page .reader-download-dock .dock-file small{margin-top:2px;font-size:9px}
 body.detail-page .reader-download-dock .dock-actions{gap:5px}
 body.detail-page .reader-download-dock .dock-actions .primary-action,body.detail-page .reader-download-dock .dock-actions .secondary-dock-action{min-width:0;height:38px;padding:0 11px;border-radius:8px;font-size:11px;white-space:nowrap}
 body.detail-page .reader-download-dock .dock-actions .primary-action{background:#3379ed}
}

@media(max-width:1400px){.library-page .document-nav{gap:18px}.library-page .document-brand{margin-right:28px}}
