index.wxss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696
  1. page {
  2. background: #f4f8dc;
  3. color: #193524;
  4. }
  5. .page {
  6. min-height: 100vh;
  7. padding-bottom: 152rpx;
  8. background:
  9. linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0, rgba(244, 248, 220, 0) 360rpx),
  10. #f4f8dc;
  11. }
  12. .navbar {
  13. position: relative;
  14. z-index: 20;
  15. height: 88rpx;
  16. display: flex;
  17. align-items: center;
  18. padding-left: 24rpx;
  19. padding-right: 196rpx;
  20. background: rgba(255, 255, 255, 0.92);
  21. box-shadow: 0 1rpx 0 rgba(18, 78, 42, 0.08);
  22. }
  23. .navbar-left {
  24. display: flex;
  25. align-items: center;
  26. min-width: 128rpx;
  27. }
  28. .navbar-loc-text {
  29. margin: 0 4rpx 0 6rpx;
  30. font-size: 24rpx;
  31. color: #183c25;
  32. }
  33. .navbar-title {
  34. position: absolute;
  35. left: 156rpx;
  36. right: 196rpx;
  37. text-align: center;
  38. font-size: 28rpx;
  39. font-weight: 700;
  40. color: #111812;
  41. white-space: nowrap;
  42. overflow: hidden;
  43. text-overflow: ellipsis;
  44. }
  45. .navbar-right {
  46. width: 1rpx;
  47. }
  48. .hero {
  49. position: relative;
  50. height: 430rpx;
  51. overflow: hidden;
  52. background: #dcefb7;
  53. }
  54. .hero-img,
  55. .video-cover {
  56. width: 100%;
  57. height: 100%;
  58. display: block;
  59. }
  60. .hero-shade {
  61. position: absolute;
  62. left: 0;
  63. right: 0;
  64. bottom: 0;
  65. height: 230rpx;
  66. background: linear-gradient(180deg, rgba(16, 72, 43, 0) 0%, rgba(9, 55, 29, 0.72) 100%);
  67. }
  68. .hero-copy {
  69. position: absolute;
  70. left: 28rpx;
  71. right: 28rpx;
  72. bottom: 72rpx;
  73. color: #ffffff;
  74. }
  75. .hero-kicker {
  76. display: inline-flex;
  77. padding: 8rpx 18rpx;
  78. border-radius: 999rpx;
  79. background: rgba(255, 248, 192, 0.88);
  80. color: #0b7a3c;
  81. font-size: 22rpx;
  82. font-weight: 700;
  83. }
  84. .hero-title {
  85. display: block;
  86. margin-top: 18rpx;
  87. font-size: 42rpx;
  88. line-height: 1.2;
  89. font-weight: 800;
  90. text-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.28);
  91. }
  92. .hero-desc {
  93. display: flex;
  94. width: 100%;
  95. align-items: baseline;
  96. justify-content: space-between;
  97. margin-top: 10rpx;
  98. font-size: 24rpx;
  99. color: rgba(255, 255, 255, 0.9);
  100. }
  101. .hero-desc-sep {
  102. flex-shrink: 0;
  103. }
  104. .hero-desc-right {
  105. text-align: right;
  106. }
  107. .school-panel {
  108. position: relative;
  109. z-index: 3;
  110. margin: -48rpx 20rpx 0;
  111. padding: 34rpx 24rpx 28rpx;
  112. border-radius: 16rpx;
  113. background: rgba(255, 255, 255, 0.96);
  114. box-shadow: 0 16rpx 42rpx rgba(38, 90, 45, 0.12);
  115. }
  116. .school-badge {
  117. position: absolute;
  118. left: 50%;
  119. top: -52rpx;
  120. width: 104rpx;
  121. height: 104rpx;
  122. margin-left: -52rpx;
  123. padding: 8rpx;
  124. border-radius: 50%;
  125. background: #ffffff;
  126. box-shadow: 0 8rpx 24rpx rgba(11, 122, 60, 0.18);
  127. }
  128. .badge-ring {
  129. width: 88rpx;
  130. height: 88rpx;
  131. border-radius: 50%;
  132. border: 4rpx solid #0b7a3c;
  133. display: flex;
  134. align-items: center;
  135. justify-content: center;
  136. background: #faffdf;
  137. }
  138. .school-name {
  139. margin-top: 32rpx;
  140. text-align: center;
  141. font-size: 38rpx;
  142. line-height: 1.25;
  143. font-weight: 800;
  144. color: #101711;
  145. }
  146. .school-meta {
  147. margin-top: 18rpx;
  148. display: flex;
  149. justify-content: center;
  150. flex-wrap: wrap;
  151. gap: 8rpx 18rpx;
  152. font-size: 22rpx;
  153. color: #798777;
  154. }
  155. .school-tags {
  156. margin-top: 20rpx;
  157. display: grid;
  158. grid-template-columns: repeat(2, minmax(0, 1fr));
  159. gap: 10rpx;
  160. }
  161. .school-tag {
  162. min-height: 44rpx;
  163. padding: 7rpx 10rpx;
  164. border-radius: 8rpx;
  165. background: #e8ef38;
  166. color: #076636;
  167. font-size: 20rpx;
  168. line-height: 30rpx;
  169. text-align: center;
  170. }
  171. .quick-panel {
  172. margin: 20rpx 20rpx 0;
  173. padding: 22rpx 8rpx 6rpx;
  174. border-radius: 16rpx;
  175. background: #ffffff;
  176. display: grid;
  177. grid-template-columns: repeat(3, 1fr);
  178. box-shadow: 0 10rpx 30rpx rgba(35, 91, 42, 0.08);
  179. }
  180. .quick-item {
  181. min-width: 0;
  182. margin-bottom: 24rpx;
  183. display: flex;
  184. flex-direction: column;
  185. align-items: center;
  186. }
  187. .quick-icon {
  188. width: 74rpx;
  189. height: 74rpx;
  190. border-radius: 50%;
  191. border: 2rpx solid #0b7a3c;
  192. background: linear-gradient(135deg, #fbffe6, #f1f76a);
  193. display: flex;
  194. align-items: center;
  195. justify-content: center;
  196. }
  197. .quick-icon-1,
  198. .quick-icon-5 {
  199. background: linear-gradient(135deg, #f5ffe1, #bee7df);
  200. }
  201. .quick-icon-2,
  202. .quick-icon-6 {
  203. background: linear-gradient(135deg, #fff7c4, #d9ef5a);
  204. }
  205. .quick-name {
  206. margin-top: 12rpx;
  207. max-width: 200rpx;
  208. font-size: 24rpx;
  209. color: #3e493f;
  210. line-height: 1.25;
  211. text-align: center;
  212. }
  213. .notice-banner {
  214. margin: 28rpx 20rpx 0;
  215. height: 82rpx;
  216. border-radius: 16rpx;
  217. display: flex;
  218. align-items: center;
  219. overflow: hidden;
  220. background:
  221. linear-gradient(110deg, rgba(250, 232, 62, 0.94) 0%, rgba(245, 255, 202, 0.94) 43%, rgba(164, 223, 151, 0.94) 100%),
  222. #eef7c9;
  223. box-shadow: 0 8rpx 22rpx rgba(62, 116, 39, 0.12);
  224. }
  225. .notice-mark {
  226. flex-shrink: 0;
  227. margin-left: 20rpx;
  228. font-size: 34rpx;
  229. line-height: 1;
  230. font-weight: 900;
  231. color: #0b7a3c;
  232. }
  233. .notice-content {
  234. flex: 1;
  235. min-width: 0;
  236. margin: 0 18rpx;
  237. font-size: 24rpx;
  238. color: #286039;
  239. white-space: nowrap;
  240. overflow: hidden;
  241. text-overflow: ellipsis;
  242. }
  243. .notice-action {
  244. flex-shrink: 0;
  245. margin-right: 14rpx;
  246. padding: 12rpx 24rpx;
  247. border-radius: 999rpx;
  248. background: #0b7a3c;
  249. color: #ffffff;
  250. font-size: 24rpx;
  251. font-weight: 700;
  252. }
  253. .section-head {
  254. margin: 36rpx 20rpx 18rpx;
  255. }
  256. .section-between {
  257. display: flex;
  258. align-items: flex-end;
  259. justify-content: space-between;
  260. }
  261. .section-title {
  262. font-size: 34rpx;
  263. line-height: 1.12;
  264. font-weight: 800;
  265. color: #0b7a3c;
  266. }
  267. .section-desc {
  268. margin-top: 6rpx;
  269. font-size: 22rpx;
  270. color: #87937f;
  271. }
  272. .more {
  273. display: flex;
  274. align-items: center;
  275. color: #88947f;
  276. font-size: 22rpx;
  277. }
  278. .admission-scroll {
  279. width: 100%;
  280. white-space: nowrap;
  281. }
  282. .admission-row {
  283. display: inline-flex;
  284. padding: 0 20rpx 4rpx;
  285. }
  286. .admission-card {
  287. width: 306rpx;
  288. margin-right: 18rpx;
  289. border-radius: 14rpx;
  290. overflow: hidden;
  291. background: #ffffff;
  292. box-shadow: 0 10rpx 26rpx rgba(35, 91, 42, 0.09);
  293. }
  294. .admission-head {
  295. min-height: 86rpx;
  296. padding: 18rpx 18rpx 14rpx;
  297. display: flex;
  298. align-items: flex-start;
  299. justify-content: space-between;
  300. background:
  301. linear-gradient(165deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 45%),
  302. #edf043;
  303. }
  304. .admission-name {
  305. font-size: 28rpx;
  306. font-weight: 800;
  307. color: #111811;
  308. }
  309. .admission-label {
  310. margin-top: 4rpx;
  311. font-size: 20rpx;
  312. color: rgba(17, 24, 17, 0.58);
  313. }
  314. .bell {
  315. width: 44rpx;
  316. height: 44rpx;
  317. border-radius: 50%;
  318. background: rgba(255, 255, 255, 0.48);
  319. display: flex;
  320. align-items: center;
  321. justify-content: center;
  322. }
  323. .admission-list {
  324. padding: 4rpx 18rpx 2rpx;
  325. }
  326. .admission-item,
  327. .news-item {
  328. display: flex;
  329. }
  330. .admission-item {
  331. margin-top: 20rpx;
  332. }
  333. .line-dot {
  334. width: 10rpx;
  335. height: 10rpx;
  336. margin: 10rpx 14rpx 0 0;
  337. border-radius: 50%;
  338. background: #0b7a3c;
  339. flex-shrink: 0;
  340. }
  341. .article-body {
  342. flex: 1;
  343. min-width: 0;
  344. }
  345. .article-date {
  346. font-size: 20rpx;
  347. color: #8c9688;
  348. }
  349. .article-title {
  350. margin-top: 5rpx;
  351. color: #2c322e;
  352. font-size: 25rpx;
  353. line-height: 1.35;
  354. white-space: nowrap;
  355. overflow: hidden;
  356. text-overflow: ellipsis;
  357. }
  358. .card-foot {
  359. height: 58rpx;
  360. margin-top: 20rpx;
  361. display: flex;
  362. align-items: center;
  363. justify-content: center;
  364. gap: 4rpx;
  365. background: #f5f6ef;
  366. color: #83907d;
  367. font-size: 22rpx;
  368. }
  369. .college-grid {
  370. margin: 0 20rpx;
  371. display: grid;
  372. grid-template-columns: repeat(2, minmax(0, 1fr));
  373. gap: 18rpx;
  374. }
  375. .college-card {
  376. position: relative;
  377. min-height: 208rpx;
  378. overflow: hidden;
  379. padding: 20rpx 18rpx;
  380. border-radius: 16rpx;
  381. background: #ffffff;
  382. box-shadow: 0 10rpx 24rpx rgba(35, 91, 42, 0.08);
  383. }
  384. .building-lines {
  385. position: absolute;
  386. right: -14rpx;
  387. bottom: -10rpx;
  388. width: 180rpx;
  389. height: 112rpx;
  390. opacity: 0.22;
  391. background:
  392. linear-gradient(#93cf8d 0 0) 0 88rpx / 180rpx 4rpx no-repeat,
  393. repeating-linear-gradient(90deg, transparent 0 21rpx, #93cf8d 22rpx 24rpx),
  394. repeating-linear-gradient(0deg, transparent 0 25rpx, #93cf8d 26rpx 28rpx);
  395. }
  396. .college-head {
  397. position: relative;
  398. display: flex;
  399. align-items: center;
  400. }
  401. .college-icon {
  402. width: 42rpx;
  403. height: 42rpx;
  404. border-radius: 50%;
  405. background: #0b7a3c;
  406. display: flex;
  407. align-items: center;
  408. justify-content: center;
  409. flex-shrink: 0;
  410. }
  411. .college-name {
  412. min-width: 0;
  413. margin-left: 10rpx;
  414. color: #222a23;
  415. font-size: 26rpx;
  416. font-weight: 800;
  417. white-space: nowrap;
  418. overflow: hidden;
  419. text-overflow: ellipsis;
  420. }
  421. .college-tags {
  422. position: relative;
  423. margin-top: 18rpx;
  424. display: grid;
  425. grid-template-columns: repeat(2, minmax(0, 1fr));
  426. gap: 9rpx 16rpx;
  427. }
  428. .college-tag {
  429. justify-self: start;
  430. max-width: 100%;
  431. padding: 6rpx 10rpx;
  432. border-radius: 4rpx;
  433. background: #eef5a4;
  434. color: #0b7a3c;
  435. font-size: 20rpx;
  436. line-height: 28rpx;
  437. overflow: hidden;
  438. text-overflow: ellipsis;
  439. white-space: nowrap;
  440. }
  441. .videos-grid {
  442. margin: 0 20rpx;
  443. }
  444. .video-card {
  445. border-radius: 16rpx;
  446. overflow: hidden;
  447. background: #ffffff;
  448. box-shadow: 0 12rpx 30rpx rgba(35, 91, 42, 0.1);
  449. }
  450. .video-player {
  451. width: 100%;
  452. height: 380rpx;
  453. display: block;
  454. }
  455. .scenery-grid {
  456. margin: 0 20rpx;
  457. display: grid;
  458. grid-template-columns: repeat(2, minmax(0, 1fr));
  459. gap: 18rpx;
  460. }
  461. .scenery-card {
  462. position: relative;
  463. height: 176rpx;
  464. overflow: hidden;
  465. border-radius: 14rpx;
  466. box-shadow: 0 8rpx 20rpx rgba(35, 91, 42, 0.12);
  467. }
  468. /* 卡1 银杏大道:暖金天 + 金黄山丘 */
  469. .scenery-card-0 {
  470. background: linear-gradient(180deg, #ffe9a8 0%, #ffd977 100%);
  471. }
  472. .scenery-card-0 .scenery-hill-a {
  473. background: #f4b942;
  474. }
  475. .scenery-card-0 .scenery-hill-b {
  476. background: #e39a2d;
  477. }
  478. /* 卡2 教学楼:青蓝天 + 墨绿山丘 */
  479. .scenery-card-1 {
  480. background: linear-gradient(180deg, #cdeaf5 0%, #9ed3e8 100%);
  481. }
  482. .scenery-card-1 .scenery-hill-a {
  483. background: #4d9e7f;
  484. }
  485. .scenery-card-1 .scenery-hill-b {
  486. background: #2f7d63;
  487. }
  488. /* 卡3 智慧教室:淡紫天 + 蓝紫山丘 */
  489. .scenery-card-2 {
  490. background: linear-gradient(180deg, #e4dcf6 0%, #c3b4ea 100%);
  491. }
  492. .scenery-card-2 .scenery-hill-a {
  493. background: #7a6fc9;
  494. }
  495. .scenery-card-2 .scenery-hill-b {
  496. background: #5d54a8;
  497. }
  498. /* 卡4 林荫大道:晨雾绿 + 深绿山丘 */
  499. .scenery-card-3 {
  500. background: linear-gradient(180deg, #d8f0c8 0%, #a9dba2 100%);
  501. }
  502. .scenery-card-3 .scenery-hill-a {
  503. background: #59a86b;
  504. }
  505. .scenery-card-3 .scenery-hill-b {
  506. background: #3a8a4e;
  507. }
  508. /* 有 img 时显示真图,覆盖卡片背景 */
  509. .scenery-img {
  510. position: absolute;
  511. inset: 0;
  512. width: 100%;
  513. height: 100%;
  514. display: block;
  515. }
  516. /* 太阳:右上角圆 */
  517. .scenery-sun {
  518. position: absolute;
  519. right: 18rpx;
  520. top: 14rpx;
  521. width: 36rpx;
  522. height: 36rpx;
  523. border-radius: 50%;
  524. background: rgba(255, 255, 255, 0.75);
  525. box-shadow: 0 0 0 10rpx rgba(255, 255, 255, 0.25);
  526. }
  527. /* 山丘:两个错位的椭圆叠出层次 */
  528. .scenery-hill {
  529. position: absolute;
  530. border-radius: 50%;
  531. }
  532. .scenery-hill-a {
  533. left: -30%;
  534. bottom: -52rpx;
  535. width: 110%;
  536. height: 110rpx;
  537. }
  538. .scenery-hill-b {
  539. right: -35%;
  540. bottom: -70rpx;
  541. width: 120%;
  542. height: 128rpx;
  543. opacity: 0.9;
  544. }
  545. .scenery-overlay {
  546. position: absolute;
  547. inset: 0;
  548. background: linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, rgba(20, 60, 35, 0.28) 100%);
  549. }
  550. .scenery-icon {
  551. position: absolute;
  552. left: 50%;
  553. top: 50%;
  554. margin-left: -28rpx;
  555. margin-top: -44rpx;
  556. text-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.18);
  557. }
  558. .scenery-name {
  559. position: absolute;
  560. left: 18rpx;
  561. bottom: 12rpx;
  562. color: #ffffff;
  563. font-size: 25rpx;
  564. font-weight: 800;
  565. text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.28);
  566. }
  567. .tabbar {
  568. position: fixed;
  569. left: 0;
  570. right: 0;
  571. bottom: 0;
  572. z-index: 38;
  573. min-height: 98rpx;
  574. padding-bottom: constant(safe-area-inset-bottom);
  575. padding-bottom: env(safe-area-inset-bottom);
  576. display: grid;
  577. grid-template-columns: repeat(3, 1fr);
  578. background: rgba(255, 255, 255, 0.97);
  579. box-shadow: 0 -8rpx 24rpx rgba(22, 58, 29, 0.08);
  580. }
  581. .tabbar-item {
  582. position: relative;
  583. padding-top: 12rpx;
  584. display: flex;
  585. flex-direction: column;
  586. align-items: center;
  587. justify-content: flex-start;
  588. color: #9aa39a;
  589. font-size: 20rpx;
  590. }
  591. .tabbar-item text {
  592. margin-top: 4rpx;
  593. }
  594. .tabbar-active {
  595. color: #0b7a3c;
  596. font-weight: 800;
  597. }
  598. .tabbar-active::before {
  599. content: "";
  600. position: absolute;
  601. top: 5rpx;
  602. width: 52rpx;
  603. height: 6rpx;
  604. border-radius: 999rpx;
  605. background: #e8ef38;
  606. }