dept-red.css 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924
  1. :root{--red:#9b1a30;--text:#222;--muted:#7f8993;--line:#e4e3e0;--page:min(1200px,calc(100vw - 40px))}
  2. *{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--text);background:#fff;font-family:Arial,Helvetica,"Microsoft YaHei","PingFang SC",sans-serif;font-size:16px;line-height:24px}
  3. button,input{font:inherit}.hero-head{--hero-bg:url("news-red/hero-building.jpg");height:405px;color:#fff;background:linear-gradient(90deg,rgba(143,12,33,.92),rgba(153,29,48,.72)),var(--hero-bg) center center/cover no-repeat;position:relative;overflow:hidden}
  4. .head-inner{width:var(--page);height:100%;margin:auto;position:relative;padding-top:132px}.brand{font-size:62px;letter-spacing:3px;white-space:nowrap}.brand small{font-size:39px;margin-left:28px;letter-spacing:1px}.motto{margin-top:42px;display:flex;gap:46px;font-size:25px;letter-spacing:8px}.top-links{position:absolute;top:38px;right:0;font-family:Arial,sans-serif;font-size:18px;opacity:.92}.top-links a{color:#fff;text-decoration:none}.top-links b{padding:0 18px;font-weight:normal}.search{position:absolute;right:0;top:105px;width:485px;height:76px;background:#fff;border-radius:42px;display:flex;align-items:center;padding:0 28px;color:#9aa0a7;font-family:Arial,sans-serif}.search input{border:0;outline:0;flex:1;font-size:20px;color:#555;background:transparent}.search button{border:0;background:none;color:var(--red);font-weight:700;cursor:pointer}.slogan{position:absolute;right:32px;bottom:86px;font-size:27px;line-height:1.75;letter-spacing:7px;text-align:center}
  5. .main-nav{height:115px;border-bottom:1px solid var(--line);background:#fff}.main-nav ul{width:var(--page);height:100%;margin:auto;padding:0;display:flex;align-items:center;justify-content:center;gap:74px;list-style:none} .main-nav a{display:flex;align-items:center;height:100%;padding:0 4px;border-bottom:5px solid transparent;color:#253344;font-size:25px;text-decoration:none;white-space:nowrap}.main-nav a.active,.main-nav a:hover{color:var(--red);border-color:var(--red)}
  6. main{width:var(--page);margin:0 auto;padding-bottom:78px}.section{margin-top:57px}.section-title{height:70px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:17px;position:relative}.section-title:before{content:"";width:10px;height:43px;background:var(--red);display:block}.section-title h2{margin:0;font-size:36px;font-weight:500;letter-spacing:1px}.section-title em{font:18px Arial,sans-serif;color:#8a9097;letter-spacing:1px;font-style:normal}.more{margin-left:auto;color:#8a929b;text-decoration:none;font-size:21px}.more:hover{color:var(--red)}
  7. .feature{display:grid;grid-template-columns:1fr 1fr;gap:43px;margin-top:34px}.feature-image{width:100%;aspect-ratio:1090/427;object-fit:cover;display:block}.feature-copy{padding-top:2px}.news-list,.plain-list{list-style:none;margin:0;padding:0}.news-list li,.plain-list li{border-bottom:1px solid var(--line);display:flex;align-items:center;gap:18px;min-height:72px;font-size:22px;cursor:pointer;transition:.2s}.news-list li:hover,.plain-list li:hover{color:var(--red);padding-left:7px}.news-list time,.plain-list time{margin-left:auto;color:#9299a2;font:18px Arial,sans-serif;white-space:nowrap}.feature-caption{padding-top:32px}.feature-caption .tag{color:#b73849;font:18px Arial,sans-serif;letter-spacing:2px}.feature-caption h3{font-size:28px;font-weight:500;margin:20px 0 12px}.feature-caption p{margin:0;color:#8e9298;font-size:18px}
  8. .two-col{display:grid;grid-template-columns:1fr 1fr;gap:62px}.sub-list li{display:block;padding:24px 0 20px;min-height:0}.sub-list li strong{font-size:21px;font-weight:500}.sub-list li span{display:block;color:#9ba0a6;font-size:16px;margin-top:11px}.sub-list li time{float:right;margin-top:-23px}
  9. .media-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:38px;margin-top:34px}.media-card{display:block;color:inherit;text-decoration:none;background:#f4f4f1;cursor:pointer;transition:.2s}.media-card:hover{transform:translateY(-4px);box-shadow:0 10px 24px rgba(54,31,31,.1)}.media-card img{display:block;width:100%;aspect-ratio:733/296;object-fit:cover}.media-card .meta{padding:22px 27px 28px}.media-card .meta small{color:#ac3341;font-size:17px}.media-card h3{font-size:25px;font-weight:500;margin:13px 0 10px}.media-card time{color:#9299a2;font:18px Arial,sans-serif}
  10. .bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:62px}.download-box{background:#f5f5f2;padding:0 44px 25px}.download-box .section-title{border-bottom:1px solid #deded9}.download-row{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;padding:20px 0;border-bottom:1px solid #deded9;color:inherit;text-decoration:none;cursor:pointer}.download-row:hover{color:var(--red)}.download-row strong{display:block;font-size:21px;font-weight:500}.download-row small{display:block;color:#9299a2;font:17px Arial,sans-serif;margin-top:8px}.download-row span{color:#8b9098;font-size:18px}
  11. .toast{position:fixed;left:50%;bottom:34px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:rgba(43,49,57,.92);color:#fff;padding:13px 22px;border-radius:4px;font:16px Arial,sans-serif;transition:.25s;z-index:5}.toast.show{opacity:1;transform:translate(-50%,0)}.modal{position:fixed;inset:0;background:rgba(0,0,0,.38);display:none;align-items:center;justify-content:center;z-index:4}.modal.show{display:flex}.dialog{width:min(680px,calc(100vw - 40px));background:#fff;padding:32px 36px 36px;box-shadow:0 16px 50px rgba(0,0,0,.2)}.dialog h3{margin:0 0 16px;color:var(--red);font-size:27px;font-weight:500}.dialog p{margin:0 0 26px;line-height:1.8;font-size:18px}.dialog button{border:0;background:var(--red);color:#fff;padding:10px 24px;cursor:pointer}
  12. @media (min-width:901px) and (max-width:1600px){
  13. .hero-head{height:234px}
  14. .head-inner{padding-top:76px}
  15. .brand{font-size:36px;letter-spacing:1.7px}
  16. .brand small{font-size:23px;margin-left:16px}
  17. .motto{margin-top:24px;gap:26px;font-size:15px;letter-spacing:4px}
  18. .top-links{top:22px;font-size:15px}
  19. .top-links b{padding:0 15px}
  20. .search{top:61px;width:300px;height:44px;border-radius:22px;padding:0 18px}
  21. .search input{font-size:14px}
  22. .slogan{right:18px;bottom:50px;font-size:16px;letter-spacing:4px}
  23. .main-nav{height:66px}
  24. .main-nav ul{gap:38px}
  25. .main-nav a{font-size:18px;border-bottom-width:3px}
  26. main{padding-bottom:45px}
  27. .section{margin-top:43px}
  28. .section#campus{margin-top:33px}
  29. .section-title{height:70px;gap:10px}
  30. .section-title:before{width:6px;height:32px}
  31. .section-title h2{font-size:24px;line-height:26.4px}
  32. .section-title em{font-size:12px;line-height:18px}
  33. .more{font-size:14px;line-height:21px}
  34. .feature{gap:36px;margin-top:22px}
  35. .news-list li,.plain-list li{min-height:72px;gap:16px;font-size:16px;line-height:24px}
  36. .news-list time,.plain-list time{font-size:16px;line-height:24px;color:#7f8993}
  37. .feature-caption{padding-top:16px}
  38. .feature-caption .tag{font-size:13px;line-height:19.5px}
  39. .feature-caption h3{font-size:24px;line-height:1.3;margin:10px 0 8px}
  40. .feature-caption p{font-size:16px;line-height:24px;color:#7f8993}
  41. .two-col{gap:36px}
  42. .sub-list li{padding:20px 0 16px}
  43. .sub-list li strong{font-size:16px;line-height:24px}
  44. .sub-list li span{font-size:14px;line-height:21px;margin-top:6px;color:#7f8993}
  45. .sub-list li time{font-size:14px;line-height:21px;margin-top:-21px}
  46. .media-grid{gap:24px;margin-top:22px}
  47. .media-card{background:#f3f2ef}
  48. .media-card .meta{padding:16px 18px 18px}
  49. .media-card .meta small{font-size:12px;line-height:18px}
  50. .media-card h3{font-size:16px;line-height:24px;margin:4px 0 6px}
  51. .media-card time{font-size:14px;line-height:21px;color:#7f8993}
  52. .bottom-grid{gap:36px}
  53. .download-box{padding:0 28px 16px;background:#f5f4f1}
  54. .download-row{gap:10px;padding:16px 0}
  55. .download-row strong{font-size:16px;line-height:24px}
  56. .download-row small{font-size:14px;line-height:21px;margin-top:5px;color:#7f8993}
  57. .download-row span{font-size:14px;line-height:21px}
  58. .news-list-layout{gap:36px}
  59. .news-sidebar-title{font-size:22px;line-height:1.4;font-weight:600}
  60. .news-sidebar-links a{min-height:43.6px;padding:10px 12px;font-size:16px;line-height:21.6px}
  61. .news-list-head{padding-bottom:10px;margin-bottom:22px}
  62. .news-list-head h1{font-size:26px;line-height:31.2px}
  63. .news-list-head span{font-size:14px;line-height:21px}
  64. .article-list a{gap:24px;padding:20px 0;font-size:16px;line-height:24px}
  65. .article-list time{flex:0 0 112px;font-size:16px;line-height:24px;color:#7f8993}
  66. .article-list strong{font-size:19px;line-height:28.5px;font-weight:600}
  67. .article-list p{margin:4px 0 0;font-size:14px;line-height:21.7px;color:#7f8993}
  68. .article-list-media{gap:24px}
  69. .article-list-media .article-copy{padding:16px 18px 18px}
  70. .article-list-media strong{font-size:16px;line-height:24px}
  71. .news-pagination a{font-size:14px;line-height:21px}
  72. .article-detail-body{margin-top:24px;font-size:17px;line-height:2.05}
  73. .dialog h3{font-size:18px}
  74. .dialog p{font-size:14px;line-height:24px}
  75. .dialog button{font-size:14px;padding:8px 18px}
  76. }
  77. @media (max-width:900px){:root{--page:calc(100vw - 36px)}.hero-head{height:320px}.head-inner{padding-top:108px}.brand{font-size:32px}.brand small{font-size:22px;margin-left:8px}.motto{margin-top:25px;gap:17px;font-size:15px;letter-spacing:3px}.top-links{top:18px;right:0;font-size:12px}.search{top:57px;width:250px;height:42px;padding:0 15px}.search input{font-size:14px}.slogan{right:0;bottom:25px;font-size:16px;letter-spacing:3px}.main-nav{height:72px}.main-nav ul{justify-content:flex-start;gap:20px;overflow:auto}.main-nav a{font-size:15px;white-space:nowrap}.section{margin-top:30px}.section-title{height:49px;gap:8px}.section-title:before{width:6px;height:27px}.section-title h2{font-size:23px}.section-title em{font-size:12px}.more{font-size:13px}.feature,.two-col,.bottom-grid{grid-template-columns:1fr;gap:28px}.feature{margin-top:20px}.news-list li,.plain-list li{min-height:48px;font-size:15px}.news-list time,.plain-list time{font-size:12px}.feature-caption{padding-top:3px}.feature-caption .tag{font-size:12px}.feature-caption h3{font-size:23px;margin:8px 0 7px}.feature-caption p{font-size:14px}.sub-list li strong{font-size:15px}.sub-list li span{font-size:12px;margin-top:6px}.sub-list li time{font-size:12px;margin-top:-17px}.media-grid{grid-template-columns:1fr;gap:18px;margin-top:20px}.media-card .meta{padding:14px 17px 18px}.media-card .meta small{font-size:12px}.media-card h3{font-size:18px;margin:4px 0 7px}.media-card time{font-size:12px}.download-box{padding:0 18px 16px}.download-row{padding:14px 0}.download-row strong{font-size:15px}.download-row small,.download-row span{font-size:12px}.dialog{padding:24px}.dialog h3{font-size:22px}.dialog p{font-size:15px}}
  78. .feature-image-link{display:block;color:inherit;text-decoration:none}.news-list a,.plain-list a{display:flex;align-items:center;gap:18px;width:100%;color:inherit;text-decoration:none}.sub-list li a{display:block;width:100%;color:inherit;text-decoration:none}.empty-line{padding:24px 0;color:#9299a2;font-size:18px}
  79. .news-list-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:36px;align-items:start}.news-sidebar{min-width:0}.news-sidebar-media{position:relative;aspect-ratio:3/1;overflow:hidden;background:#eef1f4}.news-sidebar-media img{display:block;width:100%;height:100%;object-fit:cover;filter:brightness(.72)}.news-sidebar-media:after{position:absolute;inset:0;content:"";background:rgba(0,0,0,.14)}.news-sidebar-title{position:absolute;inset:auto 18px 16px;z-index:1;color:#fff;font-size:22px;font-weight:600;line-height:1.4;text-shadow:0 1px 3px rgba(0,0,0,.34)}.news-sidebar-links{display:grid}.news-sidebar-links a{display:block;min-height:43.6px;padding:10px 12px;color:#333;background:#f7f7f7;border-bottom:1px solid #e5e7eb;border-left:3px solid transparent;font-size:16px;line-height:21.6px;text-decoration:none}.news-sidebar-links a:first-child{border-top:1px solid #e5e7eb}.news-sidebar-links a.active,.news-sidebar-links a:hover{color:var(--red);background:#eee;border-left-color:var(--red)}.news-list-panel{min-width:0}.news-list-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px;padding-bottom:10px;border-bottom:3px solid var(--red)}.news-list-head h1{margin:0;font-size:26px;font-weight:500;line-height:31.2px}.news-list-head span{color:var(--muted);font:14px/21px Arial,sans-serif}.article-list{list-style:none;margin:0;padding:0}.article-list li{border-bottom:1px solid var(--line)}.article-list a{display:flex;gap:24px;align-items:center;padding:20px 0;color:inherit;font-size:16px;line-height:24px;text-decoration:none}.article-list time{flex:0 0 112px;color:#9299a2;font:16px/24px Arial,sans-serif}.article-list strong{display:block;font-size:19px;font-weight:600;line-height:28.5px}.article-list p{display:-webkit-box;margin:4px 0 0;overflow:hidden;color:#8e9298;font-size:14px;line-height:21.7px;-webkit-box-orient:vertical;-webkit-line-clamp:2}.article-list a:hover strong{color:var(--red)}.article-list-graphic a{align-items:flex-start}.article-list-graphic img{width:210px;aspect-ratio:16/9;object-fit:cover}.article-list-graphic .article-copy{min-width:0;flex:1}.article-list-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;padding:24px 0}.article-list-media li{border:0}.article-list-media a{display:block;padding:0;background:#f5f5f2}.article-list-media img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.article-list-media .article-copy{padding:16px 18px 20px}.article-list-media strong{font-size:18px}.news-pagination{display:flex;justify-content:center;gap:8px;margin-top:26px}.news-pagination a{display:grid;place-items:center;min-width:36px;height:36px;padding:0 12px;color:#5d6670;background:#fff;border:1px solid var(--line);text-decoration:none}.news-pagination a.active,.news-pagination a:hover{color:#fff;background:var(--red);border-color:var(--red)}.article-detail-wrap{max-width:1200px;margin:0 auto}.article-detail{padding:28px 34px 34px;background:#fff;border:1px solid var(--line)}.article-detail-header{padding-bottom:20px;border-bottom:1px solid var(--line);text-align:center}.article-detail-title{margin:0;color:#222;font-size:30px;font-weight:600;line-height:1.42}.article-detail-meta{display:flex;justify-content:center;flex-wrap:wrap;gap:16px;margin-top:16px;color:#8e9298;font-size:14px}.article-detail-body{margin-top:24px;color:#332d28;font-size:17px;line-height:2.05}.article-detail-body>h1:first-child,.article-detail-body>h2:first-child,.article-detail-body .ck-content>h1:first-child,.article-detail-body .ck-content>h2:first-child{text-align:center}.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;padding:26px 0}.catalog-card{display:block;padding:24px;color:inherit;background:#f5f5f2;text-decoration:none;border-bottom:4px solid var(--red)}.catalog-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(54,31,31,.1)}.catalog-card strong{font-size:22px;font-weight:500}.catalog-card p{margin:12px 0 0;color:#8e9298;font-size:15px;line-height:1.7}.news-footer{margin-top:56px;padding:34px 0;color:#fff;background:#8f0c21}.news-footer-inner{display:flex;justify-content:space-between;gap:30px;width:var(--page);margin:0 auto}.news-footer p{margin:0 0 8px;line-height:1.7}.news-footer a{color:#fff}.news-breadcrumb{padding:20px 0 0;color:#858d96;font-size:15px}.news-breadcrumb a{color:#5f6872;text-decoration:none}.news-breadcrumb a:hover{color:var(--red)}@media(max-width:900px){.news-list-layout{grid-template-columns:1fr}.news-sidebar{display:none}.article-list-graphic img{width:130px}.article-list-media,.catalog-grid{grid-template-columns:1fr}.article-detail{padding:24px 20px 30px}.article-detail-title{font-size:26px}.news-footer-inner{display:block;width:calc(100vw - 36px)}}
  80. /* 新闻网-2026 同款底部区域 */
  81. body.screen-red-theme{--hx-red:#941c1e;--hx-red-dark:#580b0c;--hx-footer-soft:#fff1f1;--hx-top-link:#f6e1e3;--white:#fff}
  82. .screen-red-theme .footer-top{color:var(--white);background:var(--hx-red);position:relative;overflow:hidden}
  83. .screen-red-theme .department-footer-top{margin-top:12px}
  84. .screen-red-theme .footer-top>.wrap,.screen-red-theme .copyright>.wrap{width:min(1200px,calc(100% - 40px));margin:0 auto}
  85. .screen-red-theme .footer-main{display:grid;grid-template-columns:minmax(300px,1fr) minmax(260px,360px) minmax(300px,1fr);justify-content:stretch;gap:48px;min-height:190px;align-items:center}
  86. .screen-red-theme .footer-address p{margin:4px 0;color:var(--hx-footer-soft);font-size:13px;line-height:24px}
  87. .screen-red-theme .footer-logo{height:118px;background:url("/main/ffkj-portal/assets/official/logo.png") center/contain no-repeat}
  88. .screen-red-theme .footer-logo img{display:block;width:100%;height:100%;object-fit:contain}
  89. .screen-red-theme .footer-logo-custom{background:none}
  90. .screen-red-theme .footer-philosophy{justify-self:end;max-width:360px;color:var(--hx-footer-soft);text-align:left}
  91. .screen-red-theme .footer-philosophy strong{display:block;margin-bottom:12px;color:var(--white);font-size:19px;font-weight:700;letter-spacing:0}
  92. .screen-red-theme .department-footer-link-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}
  93. .screen-red-theme .department-footer-link-list a{position:relative;min-width:0;padding-left:12px;overflow:hidden;color:var(--hx-footer-soft);font-size:14px;line-height:1.8;text-overflow:ellipsis;white-space:nowrap}
  94. .screen-red-theme .department-footer-link-list a::before{content:"";position:absolute;top:50%;left:0;width:4px;height:4px;background:rgba(255,255,255,.76);transform:translateY(-50%)}
  95. .screen-red-theme .department-footer-link-list a:hover{color:var(--white);text-decoration:none}
  96. .screen-red-theme .copyright{color:var(--hx-top-link);background:var(--hx-red-dark)}
  97. .screen-red-theme .copyright .wrap{display:flex;align-items:center;justify-content:center;gap:12px;min-height:40px;font-size:12px}
  98. .screen-red-theme .copyright a{color:var(--hx-top-link)}
  99. @media (max-width:1210px){.screen-red-theme .footer-main{grid-template-columns:minmax(260px,1fr) 260px minmax(260px,1fr);gap:30px}.screen-red-theme .footer-philosophy p{font-size:18px}}
  100. @media (max-width:900px){.screen-red-theme .footer-main{grid-template-columns:1fr;gap:22px}.screen-red-theme .footer-address,.screen-red-theme .footer-philosophy{justify-self:center;max-width:420px;text-align:center}.screen-red-theme .department-footer-link-list{grid-template-columns:1fr;justify-items:center}.screen-red-theme .department-footer-link-list a{max-width:min(320px,86vw)}.screen-red-theme .footer-logo{order:-1;width:min(360px,78vw);justify-self:center}.screen-red-theme .copyright .wrap{flex-direction:column;gap:2px}}
  101. /* 首页列表记录:降低字号和视觉重量 */
  102. .news-list li,.plain-list li{font-size:15px;line-height:22.5px;font-weight:400;color:#333}
  103. .news-list a,.plain-list a{color:inherit;font-weight:400}
  104. .sub-list li strong,.download-row strong{font-size:15px;line-height:22.5px;font-weight:400;color:#333}
  105. /* 首页头部:降低高度并修正品牌文字颜色 */
  106. @media (min-width:901px){
  107. .hero-head{height:177px}
  108. .head-inner{padding-top:30px}
  109. .brand{display:inline-block;color:#fff;text-decoration:none;font-size:24px;line-height:1.2}
  110. .brand small{font-size:14px;margin-left:10px}
  111. .motto{margin-top:6px;gap:14px;font-size:11px;line-height:14px;letter-spacing:3px}
  112. .top-links{top:8px;font-size:11px;line-height:16px}
  113. .top-links b{padding:0 8px}
  114. .search{top:28px;width:180px;height:24px;border-radius:12px;padding:0 10px}
  115. .search input{font-size:11px;line-height:16px}
  116. .search button{font-size:11px}
  117. .slogan{right:12px;bottom:22px;font-size:11px;line-height:1.5;letter-spacing:3px}
  118. .main-nav{height:44px}
  119. .main-nav ul{gap:30px}
  120. .main-nav a{font-size:14px;border-bottom-width:2px}
  121. }
  122. /* 一线动态、媒体华夏:日期与标题垂直居中 */
  123. .sub-list li a{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:14px;row-gap:0;align-items:start}
  124. .sub-list li strong{grid-column:1;grid-row:1;min-width:0}
  125. .sub-list li time{grid-column:2;grid-row:1;float:none;margin:0;align-self:center;white-space:nowrap}
  126. .sub-list li span{grid-column:1/-1;grid-row:2}
  127. /* 融媒头条卡片:底部灰色区严格跟随图片宽度 */
  128. .media-card{display:grid;grid-template-columns:minmax(0,1fr);background:transparent;overflow:hidden}
  129. .media-card img{width:100%;max-width:100%;min-width:0}
  130. .media-card .meta{width:100%;min-width:0;margin:0;background:#f3f2ef}
  131. /* 主导航:增高、纯黑字体与贴底选中线 */
  132. @media (min-width:901px){
  133. .main-nav{height:44px}
  134. .main-nav ul{align-items:stretch}
  135. .main-nav li{display:flex;height:100%}
  136. .main-nav a{height:100%;display:flex;align-items:center;color:#000;border-bottom:2px solid transparent}
  137. .main-nav a.active,.main-nav a:hover{color:#000;border-bottom-color:var(--red)}
  138. }
  139. /* 头部整体等比放大:按221/161比例同步调整红色区和导航 */
  140. @media (min-width:901px){
  141. .hero-head{height:161px}
  142. .head-inner{padding-top:41px}
  143. .brand{display:inline-block;color:#fff;text-decoration:none;font-size:33px;line-height:1.2}
  144. .brand small{font-size:19px;margin-left:14px}
  145. .motto{margin-top:8px;gap:19px;font-size:15px;line-height:19px;letter-spacing:4px}
  146. .top-links{top:19px;font-size:15px;line-height:22px}
  147. .top-links b{padding:0 11px}
  148. .search{top:46px;width:248px;height:33px;border-radius:17px;padding:0 14px}
  149. .search input{font-size:15px;line-height:22px}
  150. .search button{font-size:15px}
  151. .slogan{right:16px;bottom:30px;font-size:15px;line-height:1.5;letter-spacing:4px}
  152. .main-nav{height:60px}
  153. .main-nav ul{gap:41px}
  154. .main-nav a{font-size:19px;border-bottom-width:3px}
  155. }
  156. /* 一线动态:记录行高减少约三分之一 */
  157. #campus-life > div:first-child .sub-list li{height:72px;min-height:72px;padding:19px 0}
  158. #campus-life > div:first-child .sub-list li strong,
  159. #campus-life > div:first-child .sub-list li time,
  160. #campus-life > div:first-child .sub-list li span{line-height:15px}
  161. #campus-life > div:first-child .sub-list li span{margin-top:4px}
  162. #campus-life > div:first-child .sub-list li a{row-gap:0}
  163. /* 栏目辅助文字:更多缩小两号,英文标注收紧字距 */
  164. .section-title .more{font-size:14px;line-height:21px}
  165. .section-title em{letter-spacing:.5px}
  166. /* 融媒头条卡片:锁定图片与灰色内容区为同一精确列宽 */
  167. .media-card{grid-template-columns:100%;width:100%;max-width:100%;overflow:hidden}
  168. .media-card img,.media-card .meta{box-sizing:border-box;width:100%;max-width:100%;min-width:0}
  169. .media-card .meta{margin-left:0;margin-right:0}
  170. .media-card img{width:100%;height:auto;aspect-ratio:733/296;object-fit:cover;object-position:center}
  171. /* 宽屏下媒体华夏与一线动态保持72px记录高度 */
  172. #media .sub-list li{height:72px;min-height:72px;padding:19px 0}
  173. /* 融媒头条卡片标题和时间:小一号、单行省略 */
  174. .media-card h3,.media-card time{display:block;max-width:100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  175. .media-card h3{font-size:18px;line-height:24px}
  176. .media-card time{font-size:14px;line-height:21px;position:relative;top:-4px}
  177. /* 更宽屏下融媒头条灰色内容区固定128px */
  178. @media (min-width:1601px){
  179. .media-card .meta{height:128px;box-sizing:border-box}
  180. }
  181. /* 首页区块间距追加:校园新闻到双栏增加80px,双栏到融媒头条增加60px */
  182. @media (min-width:901px) and (max-width:1600px){
  183. #campus-life{margin-top:93px}
  184. #multimedia{margin-top:73px}
  185. }
  186. @media (min-width:1601px){
  187. #campus-life{margin-top:107px}
  188. #multimedia{margin-top:87px}
  189. }
  190. /* 下载专栏文章描述缩小一号 */
  191. .download-row small{font-size:12px;line-height:18px}
  192. /* 融媒头条视频卡片:类型文字前显示红色播放图标 */
  193. .media-card .meta small.is-video{display:inline-flex;align-items:center;gap:6px}
  194. .media-card .meta small.is-video::before{content:"";width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:8px solid #d40000}
  195. /* 校园新闻焦点头条整块上移4px */
  196. .feature-caption{position:relative;top:-4px}
  197. /* 手机端:紧凑红色头部、白色标题、搜索收起、三横线侧边导航 */
  198. .mobile-nav-mask{display:none}
  199. .mobile-nav-toggle{display:none}
  200. @media (max-width:900px){
  201. .hero-head{height:177px}
  202. .head-inner{width:calc(100vw - 36px);margin:0 auto;padding-top:26px}
  203. .brand{display:block;max-width:calc(100% - 52px);color:#fff;text-decoration:none;font-size:24px;line-height:1.2;white-space:normal}
  204. .brand small{font-size:14px;margin-left:6px}
  205. .motto{margin-top:8px;gap:12px;font-size:12px;line-height:16px;letter-spacing:2px}
  206. .top-links{display:none}
  207. .search{display:none}
  208. .slogan{right:0;bottom:18px;font-size:12px;line-height:1.5;letter-spacing:3px}
  209. .mobile-nav-toggle{position:absolute;top:17px;right:0;z-index:101;display:flex;width:42px;height:36px;flex-direction:column;justify-content:center;gap:5px;padding:6px 8px;border:0;background:transparent;cursor:pointer}
  210. .mobile-nav-toggle span{display:block;width:26px;height:2px;background:#fff;transition:transform .2s ease,opacity .2s ease}
  211. .mobile-nav-toggle.is-open span{background:#222}
  212. .mobile-nav-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  213. .mobile-nav-toggle.is-open span:nth-child(2){opacity:0}
  214. .mobile-nav-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  215. .main-nav{position:fixed;top:0;right:0;bottom:0;left:auto;z-index:100;display:block;width:min(82vw,320px);height:100dvh;margin:0;padding:0;background:#fff;border:0;box-shadow:-12px 0 30px rgba(0,0,0,.16);transform:translateX(100%);transition:transform .25s ease;overflow-y:auto}
  216. .main-nav.is-open{transform:translateX(0)}
  217. .main-nav ul{display:flex;width:100%;height:auto;margin:0;padding:76px 20px 28px;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;overflow:visible}
  218. .main-nav li{display:block;height:auto}
  219. .main-nav a{display:flex;align-items:center;justify-content:flex-start;width:100%;height:auto;min-height:52px;padding:12px 14px;color:#000;border:0;border-bottom:1px solid #ededed;border-left:3px solid transparent;font-size:16px;line-height:24px;text-decoration:none}
  220. .main-nav a.active{border-bottom-color:#ededed;border-left-color:var(--red);color:#000}
  221. .mobile-nav-mask{position:fixed;inset:0;z-index:99;display:block;background:rgba(0,0,0,.36);opacity:0;pointer-events:none;transition:opacity .25s ease}
  222. .mobile-nav-mask.is-open{opacity:1;pointer-events:auto}
  223. }
  224. /* 手机端侧边导航内的搜索 */
  225. .mobile-nav-search-item{display:none}
  226. @media (max-width:900px){
  227. .mobile-nav-search-item{display:block;padding:0 0 14px;margin-bottom:8px;border-bottom:1px solid #ededed}
  228. .mobile-nav-search{display:flex;align-items:center;height:42px;padding:0 12px;background:#f5f5f5;border:1px solid #e5e7eb;border-radius:21px}
  229. .mobile-nav-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:#555;font-size:14px}
  230. .mobile-nav-search button{border:0;background:transparent;color:var(--red);font-size:14px;font-weight:600;cursor:pointer}
  231. }
  232. /* 手机搜索项只能在手机侧边导航中出现 */
  233. .main-nav .mobile-nav-search-item{display:none}
  234. @media (max-width:900px){.main-nav .mobile-nav-search-item{display:block;padding:0 0 14px;margin-bottom:8px;border-bottom:1px solid #ededed}}
  235. /* 手机端头部再压缩并放大右侧标语 */
  236. @media (max-width:900px){
  237. .hero-head{height:127px}
  238. .slogan{font-size:14px}
  239. }
  240. /* 手机端标语位于三横线左侧并保留80px间距 */
  241. @media (max-width:900px){
  242. .slogan{right:104px}
  243. }
  244. /* 手机端三横线放大并保留右侧20px边距 */
  245. @media (max-width:900px){
  246. .mobile-nav-toggle{top:21.5px;right:20px;width:50px;height:46px;gap:6px;padding:8px 10px}
  247. .mobile-nav-toggle span{width:30px;height:3px}
  248. .mobile-nav-toggle.is-open span:nth-child(1){transform:translateY(9px) rotate(45deg)}
  249. .mobile-nav-toggle.is-open span:nth-child(3){transform:translateY(-9px) rotate(-45deg)}
  250. .slogan{right:72px}
  251. }
  252. /* 手机端焦点头条文案距离上方图片20px */
  253. @media (max-width:900px){
  254. #campus .feature-caption{padding-top:20px;top:0}
  255. }
  256. /* 顶部红色区域改为0.78纯色遮罩,不使用渐变 */
  257. .hero-head{background:var(--hero-bg) center center/cover no-repeat}
  258. .hero-head::before{position:absolute;inset:0;z-index:0;background:rgba(143,12,33,.9);pointer-events:none;content:""}
  259. .hero-head>.head-inner{position:relative;z-index:1}
  260. /* 列表页左侧媒体区:新闻网反白Logo居中,子栏目保持上级标题 */
  261. .news-sidebar-caption{position:absolute;inset:auto 18px 16px;z-index:1}
  262. .news-sidebar-caption .news-sidebar-title{position:static;inset:auto;display:block}
  263. .news-sidebar-caption.is-news{inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}
  264. .news-sidebar-caption.is-news .news-sidebar-logo{display:block;width:150px;max-width:76%;height:auto}
  265. /* 新闻网左侧圆形反白标识与文字并排 */
  266. .news-sidebar-caption.is-news{flex-direction:row;gap:8px;text-align:left}
  267. .news-sidebar-caption.is-news .news-sidebar-logo{width:34px;height:34px;max-width:none;object-fit:contain}
  268. /* 新闻网左侧纯白圆形Logo,整组靠左并放大 */
  269. .news-sidebar-caption.is-news{justify-content:flex-start;text-align:left;padding-left:18px;gap:8px}
  270. .news-sidebar-caption.is-news .news-sidebar-logo{width:48px;height:48px;max-width:none;object-fit:contain}
  271. /* 新闻网侧栏Logo尺寸与层级最终调整 */
  272. .news-sidebar-caption.is-news{z-index:3}
  273. .news-sidebar-caption.is-news .news-sidebar-logo{position:relative;z-index:4;width:38px;height:38px;max-width:none;object-fit:contain}
  274. .news-sidebar-caption.is-news .news-sidebar-title{color:#fff}
  275. /* 圆形Logo不受侧栏图片压暗滤镜影响 */
  276. .news-sidebar-caption.is-news .news-sidebar-logo{filter:none;opacity:1}
  277. /* 列表页日期统一放在记录右侧 */
  278. .article-list time{margin-left:auto;text-align:right}
  279. .article-list-graphic time{align-self:center;text-align:right}
  280. .article-list-media time{display:block;margin:0 18px 16px auto;text-align:right}
  281. /* 列表页底部固定到视口最下方并展示页码分页 */
  282. body.screen-list-page{min-height:100vh;display:flex;flex-direction:column}
  283. body.screen-list-page main{flex:1 0 auto}
  284. body.screen-list-page .footer-top{margin-top:auto}
  285. .news-pagination{flex-wrap:wrap}
  286. .news-pagination .page-summary{display:flex;align-items:center;margin-right:auto;color:#7f8993;font-size:14px;line-height:21px}
  287. .news-pagination .page-arrow,.news-pagination .page-ellipsis{display:grid;place-items:center;min-width:36px;height:36px;padding:0 12px;color:#5d6670;background:#fff;border:1px solid var(--line);text-decoration:none}
  288. .news-pagination .page-ellipsis{border-color:transparent;background:transparent}
  289. .news-pagination .page-arrow.is-disabled{color:#b9bec4;cursor:not-allowed}
  290. /* 2026-09-21:导航吸顶、校园新闻文案截断、一线动态部门字号 */
  291. @media (min-width:901px){
  292. .main-nav{position:sticky;top:0;z-index:90}
  293. }
  294. #campus .feature-caption h3{display:block;max-width:100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  295. #campus .feature-caption p{display:-webkit-box;max-width:100%;max-height:48px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:24px}
  296. #campus-life > div:first-child .sub-list li strong{font-size:15px;line-height:15px}
  297. #campus-life > div:first-child .sub-list li span{font-size:14px;line-height:15px}
  298. @media (min-width:901px){
  299. #campus .feature{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  300. }
  301. #campus .feature-image-link,
  302. #campus .feature-caption,
  303. #campus .news-list,
  304. #campus .news-list li,
  305. #campus .news-list li a{min-width:0}
  306. @media (min-width:901px){
  307. #campus .feature-caption{top:0;padding-top:16px}
  308. #campus .feature-caption h3{padding-top:2px;margin-top:8px}
  309. }
  310. #campus .feature-caption h3,
  311. .section-title h2{font-weight:400}
  312. /* 正文图片不得超出内容框,兼容编辑器内联固定宽高 */
  313. .article-detail-body img,
  314. .article-detail-body .ck-content img{max-width:100%!important;height:auto!important}
  315. /* 通知公告与下载专栏:条数及桌面端行高对齐 */
  316. @media (min-width:901px){
  317. #notice .plain-list li{height:60.5px;min-height:60.5px;padding:0}
  318. #notice .plain-list li a{height:100%;align-items:center}
  319. }
  320. /* 通知公告与下载专栏容器样式保持一致 */
  321. .notice-box{background:#f5f5f2;padding:0 44px 25px}
  322. .notice-box .section-title{border-bottom:1px solid #deded9}
  323. @media (max-width:900px){.notice-box{padding:0 18px 16px}}
  324. /* 下载专栏固定行高与预览字号;通知公告仅保留透明对齐留白 */
  325. .notice-box{background:transparent}
  326. @media (min-width:901px){
  327. #downloads .download-row{height:60.5px;min-height:60.5px;padding:0;box-sizing:border-box;overflow:hidden}
  328. #downloads .download-row>div{min-width:0}
  329. #downloads .download-row strong,
  330. #downloads .download-row small{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  331. #downloads .download-row>span{font-size:14px!important;line-height:21px!important}
  332. }
  333. /* 校园新闻焦点文章摘要 */
  334. #campus .feature-caption p{font-size:15px}
  335. /* 媒体华夏:单行和两行标题均在记录行内垂直居中 */
  336. #media .sub-list li{display:flex;align-items:center;padding:0}
  337. /* 宽屏不放大字体,只让布局宽度自适应 */
  338. @media (min-width:1601px){
  339. .section-title h2{font-size:24px}
  340. .section-title em{font-size:12px}
  341. #campus .feature-caption h3{font-size:24px}
  342. }
  343. /* 通知公告去掉左右留白,左边缘与融媒头条一致 */
  344. .notice-box{padding:0 0 25px;background:transparent}
  345. @media (max-width:900px){.notice-box{padding:0 0 16px}}
  346. /* 首页区块间距:两段距离缩小30px并保持一致 */
  347. @media (min-width:901px) and (max-width:1600px){
  348. #campus-life{margin-top:63px}
  349. #multimedia{margin-top:63px}
  350. }
  351. @media (min-width:1601px){
  352. #campus-life{margin-top:77px}
  353. #multimedia{margin-top:77px}
  354. }
  355. /* 下载专栏:标题和摘要间距缩小并整体垂直居中 */
  356. #downloads .download-row small{margin-top:3px}
  357. @media (min-width:901px){
  358. #downloads .download-row>div{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;align-self:stretch;min-width:0}
  359. #downloads .download-row>span{align-self:center}
  360. }
  361. /* 一线动态标题单行省略 */
  362. #campus-life > div:first-child .sub-list li strong{display:block;max-width:100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  363. /* 媒体华夏标题单行省略 */
  364. #media .sub-list li strong{display:block;max-width:100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  365. /* 手机端首页相邻栏目间距增加6px */
  366. @media (max-width:900px){
  367. #home > .section + .section{margin-top:36px}
  368. }
  369. /* 顶部网站标题字体 */
  370. .brand{font-family:"Microsoft YaHei","PingFang SC","Hiragino Sans GB",sans-serif}
  371. /* 首页校园新闻:16:9图片,标题底部与右侧列表底部对齐 */
  372. #campus .feature-image{aspect-ratio:16/9}
  373. @media (min-width:901px){
  374. #campus .feature{align-items:stretch}
  375. #campus .feature-image-link{display:flex;flex-direction:column;height:100%}
  376. #campus .feature-caption{display:flex;flex:1;align-items:flex-end;padding-top:16px;top:0}
  377. #campus .feature-caption h3{margin:0;padding:0;font-size:24px;line-height:1.3}
  378. }
  379. /* 列表页记录标题仅参考外部样式的字号与颜色 */
  380. body.screen-list-page .article-list strong{font-size:16px;color:#515151}
  381. /* 首页底部:使用主站同一套底部视觉,可继续按本站栏目独立维护 */
  382. :root{--hx-red-dark-rgb:88,11,12}
  383. body.screen-red-theme .screen-footer-main {
  384. position: relative;
  385. z-index: 30;
  386. grid-template-columns:
  387. minmax(290px, 1.34fr)
  388. minmax(150px, 0.82fr)
  389. minmax(260px, 1.24fr)
  390. minmax(182px, 1fr);
  391. gap: clamp(14px, 1.7vw, 26px);
  392. min-height: 190px;
  393. padding: 20px 0;
  394. align-items: center;
  395. }
  396. body.screen-red-theme .screen-footer-main > * {
  397. min-width: 0;
  398. }
  399. body.screen-red-theme .screen-footer-address {
  400. margin-top: 3px;
  401. margin-right: 28px;
  402. padding: 3px 2px 2px 0;
  403. }
  404. body.screen-red-theme .screen-footer-address p {
  405. margin: 3px 0;
  406. font-size: 13px;
  407. line-height: 1.55;
  408. }
  409. body.screen-red-theme .screen-footer-qrcode {
  410. position: relative;
  411. z-index: 60;
  412. display: grid;
  413. grid-template-columns: repeat(3, 56px);
  414. gap: 8px 12px;
  415. align-items: start;
  416. justify-content: center;
  417. margin: 6px 0 2px -59px;
  418. padding: 9px 15px 0 0;
  419. overflow: visible;
  420. }
  421. body.screen-red-theme .screen-footer-qrcode .screen-qr-link {
  422. position: relative;
  423. display: flex;
  424. width: 56px;
  425. min-width: 0;
  426. flex-direction: column;
  427. align-items: center;
  428. gap: 5px;
  429. color: #ffffff;
  430. font-size: 12px;
  431. font-weight: 500;
  432. line-height: 1.2;
  433. text-align: center;
  434. text-decoration: none;
  435. text-shadow: 0 1px 3px rgba(var(--hx-red-dark-rgb), 0.28);
  436. transition: transform 0.2s ease, color 0.2s ease;
  437. isolation: isolate;
  438. }
  439. body.screen-red-theme .screen-footer-qrcode .screen-qr-link:hover {
  440. z-index: 80;
  441. color: #ffffff;
  442. transform: translateY(-2px);
  443. }
  444. body.screen-red-theme .screen-footer-qrcode .screen-qr-link:focus-visible {
  445. z-index: 80;
  446. }
  447. body.screen-red-theme .screen-footer-qrcode .screen-social-icon {
  448. display: grid;
  449. width: 46px;
  450. height: 46px;
  451. overflow: hidden;
  452. place-items: center;
  453. border: 2px solid rgba(255, 255, 255, 0.86);
  454. border-radius: 50%;
  455. background: #ffffff;
  456. box-shadow: 0 8px 18px rgba(var(--hx-red-dark-rgb), 0.16);
  457. }
  458. body.screen-red-theme .screen-footer-qrcode .screen-social-icon img {
  459. display: block;
  460. width: 100%;
  461. height: 100%;
  462. border-radius: 50%;
  463. object-fit: cover;
  464. }
  465. body.screen-red-theme .screen-footer-qrcode .screen-qr-image {
  466. position: absolute;
  467. bottom: calc(100% + 10px);
  468. left: 50%;
  469. z-index: 120;
  470. width: 98px;
  471. height: 98px;
  472. max-width: none;
  473. padding: 6px;
  474. border: 1px solid rgba(var(--hx-red-dark-rgb), 0.16);
  475. border-radius: 8px;
  476. background: #ffffff;
  477. box-shadow: 0 14px 30px rgba(var(--hx-red-dark-rgb), 0.2);
  478. opacity: 0;
  479. object-fit: contain;
  480. pointer-events: none;
  481. transform: translate(-50%, 8px) scale(0.96);
  482. transition: opacity 0.2s ease, transform 0.2s ease;
  483. }
  484. body.screen-red-theme .screen-footer-qrcode .screen-qr-link:hover .screen-qr-image,
  485. body.screen-red-theme .screen-footer-qrcode .screen-qr-link:focus-visible .screen-qr-image {
  486. opacity: 1;
  487. transform: translate(-50%, 0) scale(1);
  488. }
  489. body.screen-red-theme .screen-footer-qrcode .screen-qr-label {
  490. display: block;
  491. max-width: 70px;
  492. overflow: hidden;
  493. text-overflow: ellipsis;
  494. white-space: nowrap;
  495. }
  496. body.screen-red-theme .screen-footer-logo {
  497. width: 100%;
  498. max-width: 288px;
  499. height: 52px;
  500. margin: 0 0 12px;
  501. background-position: left center;
  502. justify-self: start;
  503. }
  504. body.screen-red-theme .screen-footer-links {
  505. color: var(--hx-footer-soft);
  506. }
  507. body.screen-red-theme .screen-footer-links strong {
  508. display: block;
  509. margin-bottom: 10px;
  510. color: #ffffff;
  511. font-size: 16px;
  512. font-weight: 700;
  513. line-height: 1.2;
  514. text-shadow: 0 1px 3px rgba(var(--hx-red-dark-rgb), 0.28);
  515. }
  516. body.screen-red-theme .screen-footer-links div {
  517. display: grid;
  518. gap: 6px;
  519. }
  520. body.screen-red-theme .screen-footer-friend-grid {
  521. display: grid;
  522. grid-template-columns: repeat(2, minmax(0, 1fr));
  523. gap: 6px 24px;
  524. }
  525. body.screen-red-theme .screen-footer-friend-grid > div {
  526. min-width: 0;
  527. }
  528. body.screen-red-theme .screen-footer-links a {
  529. overflow: hidden;
  530. color: var(--hx-footer-soft);
  531. font-size: 13px;
  532. line-height: 1.35;
  533. text-overflow: ellipsis;
  534. white-space: nowrap;
  535. transition: color 0.2s ease, transform 0.2s ease;
  536. }
  537. body.screen-red-theme .screen-footer-links a:hover {
  538. color: #ffffff;
  539. transform: translateX(4px);
  540. text-decoration: none;
  541. }
  542. body.screen-red-theme .screen-footer-philosophy {
  543. justify-self: end;
  544. max-width: 220px;
  545. }
  546. body.screen-red-theme .screen-footer-philosophy strong {
  547. margin-bottom: 9px;
  548. font-size: 16px;
  549. text-shadow: 0 1px 3px rgba(var(--hx-red-dark-rgb), 0.28);
  550. }
  551. body.screen-red-theme .screen-footer-philosophy p {
  552. margin-bottom: 6px;
  553. font-size: 18px;
  554. }
  555. body.screen-red-theme .screen-footer-philosophy span {
  556. font-size: 13px;
  557. }
  558. @media (max-width:900px){
  559. body.screen-red-theme .screen-footer-main {
  560. grid-template-columns: 1fr;
  561. gap: 22px;
  562. min-height: 0;
  563. padding: 26px 0;
  564. text-align: center;
  565. }
  566. body.screen-red-theme .screen-footer-address,
  567. body.screen-red-theme .screen-footer-philosophy {
  568. justify-self: center;
  569. max-width: 420px;
  570. margin-right: 0;
  571. padding: 0;
  572. text-align: center;
  573. }
  574. body.screen-red-theme .screen-footer-qrcode {
  575. justify-content: center;
  576. margin: 20px -4px 31px 0;
  577. padding: 1px 0 0;
  578. }
  579. body.screen-red-theme .screen-footer-logo {
  580. order: 0;
  581. width: min(320px, 72vw);
  582. max-width: none;
  583. height: 70px;
  584. margin: 0 auto 10px;
  585. background-position: center;
  586. }
  587. body.screen-red-theme .screen-footer-links div {
  588. display: flex;
  589. flex-wrap: wrap;
  590. justify-content: center;
  591. gap: 8px 16px;
  592. }
  593. body.screen-red-theme .screen-footer-links .screen-footer-friend-grid {
  594. display: grid;
  595. width: min(420px, 100%);
  596. margin: 0 auto 28px;
  597. padding-bottom: 13px;
  598. grid-template-columns: repeat(2, minmax(0, 1fr));
  599. gap: 8px 28px;
  600. }
  601. body.screen-red-theme .screen-footer-links .screen-footer-friend-grid > div {
  602. display: grid;
  603. min-width: 0;
  604. gap: 8px;
  605. }
  606. body.screen-red-theme .screen-footer-links a {
  607. white-space: nowrap;
  608. }
  609. body.screen-red-theme .copyright .wrap {
  610. display: grid;
  611. grid-template-columns: 1fr;
  612. gap: 3px;
  613. min-height: 0;
  614. padding: 8px 0;
  615. text-align: center;
  616. }
  617. }
  618. /* 校园新闻图片轮播:最多取有缩略图的前5篇文章 */
  619. #campus .campus-feature-carousel{display:flex;flex-direction:column;min-width:0;height:100%}
  620. #campus .campus-feature-images{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:#eef1f4}
  621. #campus .campus-feature-slide{position:absolute;inset:0;display:block;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .45s ease}
  622. #campus .campus-feature-slide.is-active{opacity:1;visibility:visible;pointer-events:auto;z-index:2}
  623. #campus .campus-feature-slide .feature-image{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:auto}
  624. #campus .campus-feature-caption{display:none;min-width:0}
  625. #campus .campus-feature-caption.is-active{display:block}
  626. #campus .campus-feature-arrow{position:absolute;top:50%;z-index:4;display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;color:#fff;background:rgba(24,28,32,.34);font:24px/1 Arial,sans-serif;cursor:pointer;transform:translateY(-50%);transition:background .2s}
  627. #campus .campus-feature-arrow:hover{background:rgba(24,28,32,.58)}
  628. #campus .campus-feature-arrow.prev{left:14px}
  629. #campus .campus-feature-arrow.next{right:14px}
  630. #campus .campus-feature-dots{position:absolute;right:16px;bottom:12px;z-index:4;display:flex;gap:7px}
  631. #campus .campus-feature-dots button{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.62);box-shadow:0 0 0 1px rgba(0,0,0,.16);cursor:pointer}
  632. #campus .campus-feature-dots button.is-active{background:var(--red);box-shadow:none}
  633. @media (min-width:901px){
  634. #campus .campus-feature-caption.is-active{display:flex;flex:1;align-items:flex-end;padding-top:16px;top:0}
  635. }
  636. @media (max-width:900px){
  637. #campus .campus-feature-arrow{width:32px;height:32px;font-size:21px}
  638. #campus .campus-feature-arrow.prev{left:10px}
  639. #campus .campus-feature-arrow.next{right:10px}
  640. }
  641. /* 校园新闻轮播标题:纯黑且无下划线 */
  642. #campus .campus-feature-caption,
  643. #campus .campus-feature-caption:link,
  644. #campus .campus-feature-caption:visited,
  645. #campus .campus-feature-caption:hover,
  646. #campus .campus-feature-caption:active{color:#000;text-decoration:none}
  647. #campus .campus-feature-caption h3{color:#000;text-decoration:none}
  648. /* 顶栏搜索框:兼容 Edge/Chromium,按钮文字固定横向且不换行 */
  649. .search input{min-width:0;width:100%}
  650. .search button,
  651. .mobile-nav-search button{flex:0 0 auto;width:auto;min-width:max-content;padding:0;white-space:nowrap;word-break:keep-all;overflow-wrap:normal;writing-mode:horizontal-tb;text-orientation:mixed;line-height:1;appearance:none;-webkit-appearance:none}
  652. /* 顶部品牌:网站属性徽标 + 网站名称 */
  653. .brand{display:inline-flex;align-items:center;max-width:calc(100% - 230px);gap:14px;color:#fff;text-decoration:none;white-space:nowrap}
  654. .brand-name{display:inline-block;min-width:0;white-space:nowrap}
  655. .brand-logo{display:block;flex:0 0 auto;width:auto;max-width:none;height:52px;object-fit:contain}
  656. .brand-name{font-size:1em;font-weight:600;line-height:1.2}
  657. @media (max-width:900px){
  658. .hero-head{height:92px}
  659. .head-inner{padding-top:16px}
  660. .brand{display:flex;flex-direction:row;align-items:center;width:calc(100% - 54px);max-width:none;gap:0;white-space:normal}
  661. .brand-logo{width:100%;max-width:320px;height:auto;margin-left:0}
  662. .brand-name{display:none}
  663. }
  664. /* 华夏部门模版:首页模块、轮播和底部信息 */
  665. .dept-red-page main.dept-home-main{width:var(--page)}
  666. .dept-hero-section{margin-top:28px}
  667. .dept-hero-carousel{position:relative;overflow:hidden;background:#eef1f4}
  668. .dept-hero-slides{position:relative;aspect-ratio:1920/620}
  669. .dept-hero-slide{position:absolute;inset:0;display:block;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .45s ease}
  670. .dept-hero-slide.is-active{opacity:1;visibility:visible;pointer-events:auto}
  671. .dept-hero-slide img{display:block;width:100%;height:100%;object-fit:cover}
  672. .dept-hero-slide>span{position:absolute;left:0;right:0;bottom:0;display:block;padding:24px 32px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.58))}
  673. .dept-hero-slide strong{display:block;max-width:78%;font-size:24px;font-weight:400;line-height:1.35;text-shadow:0 2px 5px rgba(0,0,0,.34)}
  674. .dept-hero-arrow{position:absolute;top:50%;z-index:4;display:grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-radius:50%;color:#fff;background:rgba(24,28,32,.38);font:26px/1 Arial,sans-serif;cursor:pointer;transform:translateY(-50%)}
  675. .dept-hero-arrow.prev{left:16px}.dept-hero-arrow.next{right:16px}
  676. .dept-hero-dots{position:absolute;right:20px;bottom:18px;z-index:4;display:flex;gap:8px}
  677. .dept-hero-dots button{width:9px;height:9px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.62);cursor:pointer}
  678. .dept-hero-dots button.is-active{background:var(--red)}
  679. .dept-home-section .plain-list li a{display:flex;align-items:center;width:100%;color:inherit;text-decoration:none}
  680. .dept-home-section .plain-list li a time{margin-left:auto}
  681. .dept-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin-top:30px}
  682. .dept-card{display:flex;flex-direction:column;min-width:0;color:inherit;text-decoration:none;background:#f5f5f2;transition:.2s}
  683. .dept-card:hover{color:var(--red);transform:translateY(-3px);box-shadow:0 8px 20px rgba(38,32,31,.1)}
  684. .dept-card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
  685. .dept-card>span{display:flex;flex:1;flex-direction:column;gap:12px;padding:18px 20px 20px}
  686. .dept-card strong{display:-webkit-box;overflow:hidden;font-size:16px;font-weight:400;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  687. .dept-card time{margin-top:auto;color:#9299a2;font:14px Arial,sans-serif}
  688. .dept-media-grid{margin-top:30px}
  689. .dept-media-card .meta small.is-video:before{content:"▶";display:inline-block;margin-right:6px;color:var(--red)}
  690. .dept-footer{margin-top:32px;padding:38px 0 34px;color:#fff;background:#94152c}
  691. .dept-footer-main{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(180px,.65fr) minmax(210px,.65fr);gap:40px;width:var(--page);margin:0 auto;align-items:center}
  692. .dept-footer-contact{display:grid;min-width:0;gap:16px}
  693. .dept-footer-logo{display:block;width:auto;max-width:320px;height:58px;object-fit:contain;object-position:left center}
  694. .dept-footer-contact>strong{font-size:22px;font-weight:500}
  695. .dept-footer-contact-lines{display:grid;gap:2px}
  696. .dept-footer-contact p{margin:0;color:rgba(255,255,255,.88);font-size:13px;line-height:1.75;overflow-wrap:anywhere}
  697. .dept-footer-links strong{display:block;margin-bottom:14px;font-size:17px;font-weight:500}
  698. .dept-footer-links>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}
  699. .dept-footer-links a{overflow:hidden;color:rgba(255,255,255,.9);font-size:14px;line-height:1.8;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}
  700. .dept-footer-links a:hover{color:#fff;text-decoration:underline}
  701. .dept-footer-image{display:flex;justify-content:flex-end}
  702. .dept-footer-image img{display:block;width:150px;height:150px;padding:5px;background:#fff;object-fit:contain}
  703. .dept-footer-copyright{padding:11px 0;color:rgba(255,255,255,.76);background:#760c1b;font-size:12px;line-height:20px;text-align:center}
  704. @media (max-width:900px){
  705. .dept-red-page main.dept-home-main{width:var(--page)}
  706. .dept-hero-section{margin-top:20px}
  707. .dept-hero-slide>span{padding:14px 16px}
  708. .dept-hero-slide strong{max-width:100%;font-size:17px}
  709. .dept-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:22px}
  710. .dept-card>span{padding:13px 14px 15px}
  711. .dept-card strong{font-size:15px}
  712. .dept-home-section .plain-list li a{display:block}
  713. .dept-home-section .plain-list li a time{display:block;float:none;margin:6px 0 0}
  714. .dept-footer{padding:30px 0 26px}
  715. .dept-footer-main{grid-template-columns:1fr;gap:24px;text-align:center}
  716. .dept-footer-contact{justify-items:center;gap:12px;text-align:center}
  717. .dept-footer-logo{width:min(300px,100%);max-width:100%;height:auto}
  718. .dept-footer-contact p{font-size:13px;line-height:1.75}
  719. .dept-footer-links>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
  720. .dept-footer-links a{text-align:center}
  721. .dept-footer-image{display:none}
  722. .dept-footer-copyright{padding:10px 0;font-size:11px;line-height:18px}
  723. }
  724. /* 首页首屏:左侧轮播,右侧公告 */
  725. .dept-hero-notice-section{margin-top:28px}
  726. .dept-hero-notice-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:43px;align-items:stretch}
  727. .dept-hero-notice-grid .dept-hero-carousel{height:100%}
  728. .dept-hero-notice-grid .dept-hero-slides{aspect-ratio:16/9}
  729. .dept-notice-panel{display:flex;flex-direction:column;min-width:0;padding:0 28px 18px;background:#f5f5f2}
  730. .dept-notice-panel>.section-title{margin:0;padding:0;border-bottom:1px solid var(--line)}
  731. .dept-notice-list{flex:1;margin-top:0}
  732. .dept-notice-list li{min-height:47px;font-size:15px;line-height:22px}
  733. .dept-notice-list li a{display:flex;align-items:center;width:100%;color:#333;text-decoration:none}
  734. .dept-notice-list li a time{margin-left:auto;color:#9299a2;font-size:13px;white-space:nowrap}
  735. .dept-notice-list li a:hover{color:var(--red)}
  736. @media (max-width:900px){
  737. .dept-hero-notice-grid{grid-template-columns:minmax(0,1fr);gap:20px}
  738. .dept-hero-notice-grid .dept-hero-slides{aspect-ratio:16/9}
  739. .dept-notice-panel{padding:0 16px 12px}
  740. .dept-notice-list li{min-height:48px}
  741. .dept-notice-list li a{display:block}
  742. .dept-notice-list li a time{display:block;float:none;margin:4px 0 0}
  743. }
  744. /* 专业建设与学院风采并排 */
  745. .dept-major-showcase-section{margin-top:57px}
  746. .dept-two-module-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:43px;align-items:stretch}
  747. .dept-side-module{display:flex;flex-direction:column;min-width:0;height:100%}
  748. .dept-side-module>.section-title{margin-bottom:18px}
  749. .dept-side-list li{min-height:56px;font-size:15px;line-height:22.5px}
  750. .dept-side-list li a{display:flex;align-items:center;width:100%;color:#333;text-decoration:none}
  751. .dept-side-list li a time{margin-left:auto;color:#9299a2;font-size:13px;white-space:nowrap}
  752. .dept-side-list li a:hover{color:var(--red)}
  753. .dept-showcase-grid{flex:1;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:12px;margin-top:0;margin-bottom:0}
  754. .dept-showcase-card{position:relative;display:block;min-height:150px;overflow:hidden;background-color:#e7e3de;background-position:center;background-size:cover}
  755. .dept-showcase-card:nth-child(1){background-image:url("/main/ffkj-portal/assets/official/view-1.jpg")}
  756. .dept-showcase-card:nth-child(2){background-image:url("/main/ffkj-portal/assets/official/view-2.jpg")}
  757. .dept-showcase-card:nth-child(3){background-image:url("/main/ffkj-portal/assets/official/view-3.jpg")}
  758. .dept-showcase-card:nth-child(4){background-image:url("/main/ffkj-portal/assets/official/campus-4.jpg")}
  759. .dept-showcase-card>img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover;transition:transform .35s ease}
  760. .dept-showcase-card:hover{color:#fff}
  761. .dept-showcase-card:hover>img{transform:scale(1.03)}
  762. .dept-showcase-card>span{position:absolute;left:0;right:0;bottom:0;display:block;flex:none;padding:13px 15px 14px;color:#fff;background:rgba(0,0,0,.48)}
  763. .dept-showcase-card strong{display:block;overflow:hidden;color:#fff;font-size:15px;line-height:1.5;text-overflow:ellipsis;white-space:nowrap}
  764. @media (max-width:900px){
  765. .dept-major-showcase-section{margin-top:36px}
  766. .dept-two-module-grid{grid-template-columns:minmax(0,1fr);gap:36px}
  767. .dept-showcase-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  768. .dept-showcase-card{min-height:170px}
  769. .dept-showcase-card>span{padding:11px 12px 12px}
  770. .dept-showcase-card strong{font-size:14px}
  771. .dept-side-list li a{display:block}
  772. .dept-side-list li a time{display:block;float:none;margin:5px 0 0}
  773. }
  774. /* 主导航二级栏目下拉 */
  775. .main-nav>ul>li.has-children{position:relative}
  776. .main-nav .dept-nav-panel{position:absolute;top:100%;left:50%;z-index:30;display:none;width:220px;height:auto;margin:0;padding:8px 0;transform:translateX(-50%);background:#fff;box-shadow:0 12px 26px rgba(0,0,0,.14);list-style:none}
  777. .main-nav .dept-nav-panel li{display:block;height:auto}
  778. .main-nav .dept-nav-panel a{display:block;width:100%;height:auto;min-height:0;padding:10px 18px;border:0;color:#333;font-size:15px;line-height:22px;text-align:center;white-space:nowrap}
  779. .main-nav .dept-nav-panel a:hover,.main-nav .dept-nav-panel a.active{color:var(--red);background:#f7f4f1}
  780. .main-nav>ul>li.has-children:hover>.dept-nav-panel{display:block}
  781. @media (max-width:900px){
  782. .main-nav .dept-nav-panel{position:static;display:block;width:100%;padding:0 0 6px 14px;transform:none;background:transparent;border-top:0;box-shadow:none}
  783. .main-nav .dept-nav-panel a{min-height:42px;padding:8px 14px;color:#555;font-size:14px;text-align:left}
  784. }