tab3.page.scss 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. ion-content {
  2. --background: linear-gradient(135deg, #F8F9FF, #E6F7FF);
  3. background-size: cover;
  4. --padding-start: 16px;
  5. --padding-end: 16px;
  6. --padding-top: 20px;
  7. }
  8. :root {
  9. --primary: #3A5FE5;
  10. --secondary: #00C4A1;
  11. --danger: #FF4D4F;
  12. --bg: #F8F9FF;
  13. --text: #2D3748;
  14. --card: #FFFFFF;
  15. }
  16. * {
  17. margin: 0;
  18. padding: 0;
  19. box-sizing: border-box;
  20. font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  21. }
  22. .container {
  23. width: 100%;
  24. max-width: 480px;
  25. margin: 0 auto;
  26. padding: 15px;
  27. min-height: 100vh;
  28. display: flex;
  29. flex-direction: column;
  30. }
  31. /* 顶部导航 */
  32. .header {
  33. display: flex;
  34. justify-content: space-between;
  35. align-items: center;
  36. padding: 10px 0;
  37. margin-bottom: 15px;
  38. }
  39. .logo {
  40. font-weight: bold;
  41. font-size: 20px;
  42. color: #3A5FE5;
  43. display: flex;
  44. align-items: center;
  45. }
  46. .logo i {
  47. margin-right: 8px;
  48. color: #00C4A1;
  49. }
  50. .user-avatar {
  51. width: 36px;
  52. height: 36px;
  53. border-radius: 50%;
  54. background-color: #3A5FE5;
  55. display: flex;
  56. align-items: center;
  57. justify-content: center;
  58. color: white;
  59. }
  60. /* 文书页面特有样式 */
  61. .documents-page {
  62. padding-bottom: 70px;
  63. }
  64. .search-bar {
  65. display: flex;
  66. background: white;
  67. border-radius: 24px;
  68. padding: 10px 15px;
  69. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  70. margin-bottom: 20px;
  71. }
  72. .search-input {
  73. flex: 1;
  74. border: none;
  75. outline: none;
  76. padding: 5px;
  77. font-size: 16px;
  78. }
  79. .search-btn {
  80. background: none;
  81. border: none;
  82. color: #3A5FE5;
  83. font-size: 18px;
  84. }
  85. .section-title {
  86. font-size: 18px;
  87. font-weight: bold;
  88. margin: 15px 0;
  89. display: flex;
  90. justify-content: space-between;
  91. align-items: center;
  92. }
  93. .section-title a {
  94. font-size: 14px;
  95. font-weight: normal;
  96. color: #3A5FE5;
  97. text-decoration: none;
  98. }
  99. .category-tabs {
  100. display: flex;
  101. overflow-x: auto;
  102. gap: 10px;
  103. padding-bottom: 10px;
  104. margin: 15px 0;
  105. }
  106. .category-tab {
  107. padding: 8px 15px;
  108. background: white;
  109. border-radius: 20px;
  110. white-space: nowrap;
  111. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  112. font-size: 14px;
  113. }
  114. .category-tab.active {
  115. background: #3A5FE5;
  116. color: white;
  117. }
  118. .document-grid {
  119. display: grid;
  120. grid-template-columns: repeat(2, 1fr);
  121. gap: 15px;
  122. margin: 15px 0;
  123. }
  124. .document-card {
  125. background: white;
  126. border-radius: 12px;
  127. padding: 15px;
  128. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  129. transition: transform 0.3s;
  130. }
  131. .document-card:active {
  132. transform: scale(0.98);
  133. }
  134. .document-icon {
  135. width: 40px;
  136. height: 40px;
  137. border-radius: 10px;
  138. display: flex;
  139. align-items: center;
  140. justify-content: center;
  141. margin-bottom: 10px;
  142. color: white;
  143. font-size: 18px;
  144. }
  145. .document-title {
  146. font-weight: bold;
  147. margin-bottom: 5px;
  148. }
  149. .document-desc {
  150. font-size: 12px;
  151. color: #666;
  152. display: -webkit-box;
  153. -webkit-box-orient: vertical;
  154. overflow: hidden;
  155. }
  156. .recent-section {
  157. margin: 25px 0;
  158. }
  159. .recent-list {
  160. background: white;
  161. border-radius: 12px;
  162. padding: 15px;
  163. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  164. }
  165. .recent-item {
  166. display: flex;
  167. align-items: center;
  168. padding: 10px 0;
  169. border-bottom: 1px solid #eee;
  170. }
  171. .recent-item:last-child {
  172. border-bottom: none;
  173. }
  174. .recent-icon {
  175. width: 36px;
  176. height: 36px;
  177. border-radius: 8px;
  178. background: #E6F7FF;
  179. display: flex;
  180. align-items: center;
  181. justify-content: center;
  182. margin-right: 10px;
  183. color: #3A5FE5;
  184. }
  185. .recent-info {
  186. flex: 1;
  187. }
  188. .recent-name {
  189. font-weight: 500;
  190. margin-bottom: 3px;
  191. }
  192. .recent-date {
  193. font-size: 12px;
  194. color: #999;
  195. }
  196. .recent-action {
  197. color: #3A5FE5;
  198. }
  199. .floating-btn {
  200. position: fixed;
  201. bottom: 80px;
  202. right: 20px;
  203. width: 56px;
  204. height: 56px;
  205. background: #3A5FE5;
  206. border-radius: 50%;
  207. display: flex;
  208. align-items: center;
  209. justify-content: center;
  210. color: white;
  211. box-shadow: 0 4px 12px rgba(58, 95, 229, 0.3);
  212. z-index: 10;
  213. }
  214. /* 加载动画 */
  215. .loading {
  216. display: flex;
  217. justify-content: center;
  218. padding: 20px;
  219. }
  220. .loading-dots {
  221. display: flex;
  222. gap: 5px;
  223. }
  224. .loading-dots span {
  225. width: 8px;
  226. height: 8px;
  227. background: #3A5FE5;
  228. border-radius: 50%;
  229. animation: bounce 1s infinite alternate;
  230. }
  231. .loading-dots span:nth-child(2) {
  232. animation-delay: 0.2s;
  233. }
  234. .loading-dots span:nth-child(3) {
  235. animation-delay: 0.4s;
  236. }
  237. @keyframes bounce {
  238. to {
  239. transform: translateY(-5px);
  240. }
  241. }