app.css 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263
  1. /* 使用系统字体栈,避免依赖外部CDN */
  2. @tailwind base;
  3. @tailwind components;
  4. @tailwind utilities;
  5. @layer base {
  6. :root {
  7. /* 使用系统字体:PingFang SC (macOS), 苹方-简 (iOS), 微软雅黑 (Windows), 文泉驿微米黑 (Linux) */
  8. --font-sans: 'PingFang SC', 'PingFang SC Regular', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  9. }
  10. body {
  11. @apply bg-slate-50 text-slate-900 font-sans antialiased;
  12. }
  13. /* 平滑滚动 */
  14. html {
  15. scroll-behavior: smooth;
  16. }
  17. /* 自定义滚动条 */
  18. ::-webkit-scrollbar {
  19. @apply w-2 h-2;
  20. }
  21. ::-webkit-scrollbar-track {
  22. @apply bg-slate-100 rounded-lg;
  23. }
  24. ::-webkit-scrollbar-thumb {
  25. @apply bg-slate-300 rounded-lg hover:bg-slate-400 transition-colors duration-200;
  26. }
  27. ::-webkit-scrollbar-thumb:hover {
  28. @apply bg-slate-400;
  29. }
  30. }
  31. @layer components {
  32. /* UI baseline */
  33. .ui-page {
  34. @apply min-h-screen bg-slate-50;
  35. }
  36. .ui-header {
  37. @apply flex flex-col gap-4 rounded-2xl border border-slate-200 bg-white px-6 py-5 shadow-sm;
  38. }
  39. .ui-title {
  40. @apply text-2xl font-semibold text-slate-900;
  41. }
  42. .ui-subtitle {
  43. @apply text-sm text-slate-500;
  44. }
  45. .ui-section-title {
  46. @apply text-lg font-semibold text-slate-900;
  47. }
  48. .ui-kicker {
  49. @apply text-xs font-medium uppercase tracking-widest text-slate-400;
  50. }
  51. .ui-card {
  52. @apply rounded-2xl border border-slate-200 bg-white shadow-sm;
  53. }
  54. .ui-card-header {
  55. @apply flex items-center justify-between border-b border-slate-200 px-5 py-4;
  56. }
  57. .ui-card-body {
  58. @apply px-5 py-4;
  59. }
  60. .ui-stat {
  61. @apply rounded-xl border border-slate-200 bg-white px-4 py-4 shadow-sm;
  62. }
  63. .ui-stat-label {
  64. @apply text-xs font-medium text-slate-500;
  65. }
  66. .ui-stat-value {
  67. @apply mt-1 text-2xl font-semibold text-slate-900;
  68. }
  69. .ui-badge-muted {
  70. @apply inline-flex items-center rounded-full bg-slate-100 px-2.5 py-0.5 text-xs text-slate-600;
  71. }
  72. .ui-action-group {
  73. @apply inline-flex items-center gap-1 rounded-lg border border-slate-200 bg-white p-1;
  74. }
  75. .ui-action-icon {
  76. @apply btn btn-ghost btn-sm h-8 w-8 min-h-0 p-0;
  77. }
  78. .ui-filter-bar {
  79. @apply rounded-2xl border border-slate-200 bg-white px-5 py-4 shadow-sm;
  80. }
  81. .ui-empty {
  82. @apply flex flex-col items-center justify-center gap-3 rounded-2xl border border-dashed border-slate-200 bg-white px-6 py-10 text-center;
  83. }
  84. .ui-empty-title {
  85. @apply text-base font-semibold text-slate-900;
  86. }
  87. .ui-empty-desc {
  88. @apply text-sm text-slate-500;
  89. }
  90. /* Table density */
  91. body[data-density="compact"] .table :where(th, td),
  92. body[data-density="compact"] .fi-ta-table :where(th, td) {
  93. padding-top: 0.4rem;
  94. padding-bottom: 0.4rem;
  95. }
  96. body[data-density="comfortable"] .table :where(th, td),
  97. body[data-density="comfortable"] .fi-ta-table :where(th, td) {
  98. padding-top: 0.75rem;
  99. padding-bottom: 0.75rem;
  100. }
  101. /* Standard table header */
  102. .ui-table-head th {
  103. @apply text-xs font-semibold uppercase tracking-wide text-slate-500;
  104. }
  105. /* Status tags */
  106. .ui-tag {
  107. @apply inline-flex items-center gap-1 rounded-full border border-slate-200 px-2.5 py-0.5 text-xs text-slate-600;
  108. }
  109. /* 表格响应式优化 */
  110. .fi-ta-container {
  111. @apply overflow-x-auto;
  112. }
  113. .fi-ta-table {
  114. @apply min-w-full;
  115. }
  116. /* 移动端表格优化 */
  117. @media (max-width: 1024px) {
  118. .fi-ta-table thead th:nth-child(n+6) {
  119. @apply hidden;
  120. }
  121. .fi-ta-table tbody td:nth-child(n+6) {
  122. @apply hidden;
  123. }
  124. }
  125. @media (max-width: 768px) {
  126. .fi-ta-table thead th:nth-child(n+4) {
  127. @apply hidden;
  128. }
  129. .fi-ta-table tbody td:nth-child(n+4) {
  130. @apply hidden;
  131. }
  132. }
  133. /* 表格行悬停效果 */
  134. .fi-ta-row:hover {
  135. @apply bg-slate-50/50;
  136. }
  137. /* 表格单元格内边距优化 */
  138. .fi-ta-table .fi-ta-cell {
  139. @apply px-4 py-3;
  140. }
  141. /* 表格列宽优化 */
  142. .fi-ta-table .fi-ta-header-cell {
  143. @apply whitespace-nowrap;
  144. }
  145. /* 教材管理页面美化 */
  146. .textbook-page {
  147. @apply bg-slate-50 min-h-screen;
  148. }
  149. .textbook-header {
  150. @apply mb-6 p-6 bg-gradient-to-r from-blue-50 to-purple-50 rounded-xl border border-blue-100 shadow-sm;
  151. }
  152. .textbook-header h1 {
  153. @apply text-3xl font-bold text-blue-600 mb-2;
  154. }
  155. .textbook-header p {
  156. @apply text-sm text-slate-600;
  157. }
  158. /* 卡片美化 */
  159. .textbook-card {
  160. @apply bg-white rounded-xl shadow-lg border border-slate-200 p-6 transition-all duration-300 hover:shadow-xl;
  161. }
  162. .textbook-card-header {
  163. @apply mb-4 p-4 bg-slate-50 rounded-lg border border-slate-200;
  164. }
  165. .textbook-card-header h2 {
  166. @apply text-lg font-semibold text-slate-900;
  167. }
  168. .textbook-card-header p {
  169. @apply text-sm text-slate-600 mt-1;
  170. }
  171. /* 表格美化 */
  172. .textbook-table {
  173. @apply w-full border-collapse overflow-hidden rounded-lg shadow-sm border border-slate-200 bg-white;
  174. }
  175. .textbook-table thead th {
  176. @apply px-6 py-4 text-left text-xs font-semibold text-slate-600 uppercase tracking-wider bg-slate-50;
  177. }
  178. .textbook-table tbody tr {
  179. @apply transition-colors duration-200 hover:bg-slate-50;
  180. }
  181. .textbook-table tbody td {
  182. @apply px-6 py-4 text-sm text-slate-900 border-t border-slate-200;
  183. }
  184. /* 按钮美化 */
  185. .textbook-btn {
  186. @apply px-4 py-2 rounded-lg font-medium transition-all duration-200;
  187. }
  188. .textbook-btn-primary {
  189. @apply bg-blue-600 text-white hover:bg-blue-700 shadow-sm hover:shadow-md;
  190. }
  191. .textbook-btn-secondary {
  192. @apply bg-white text-slate-700 border border-slate-300 hover:bg-slate-50;
  193. }
  194. .textbook-btn-danger {
  195. @apply bg-red-600 text-white hover:bg-red-700 shadow-sm hover:shadow-md;
  196. }
  197. /* 表单美化 */
  198. .textbook-form-field {
  199. @apply mb-4;
  200. }
  201. .textbook-form-label {
  202. @apply block text-sm font-medium text-slate-700 mb-2;
  203. }
  204. .textbook-form-input {
  205. @apply w-full px-4 py-3 text-sm border border-slate-300 rounded-lg transition-all duration-200 focus:border-blue-500 focus:ring-2 focus:ring-blue-200 focus:outline-none hover:border-slate-400;
  206. }
  207. /* 徽章美化 */
  208. .textbook-badge {
  209. @apply inline-flex items-center px-3 py-1 rounded-full text-xs font-medium;
  210. }
  211. .textbook-badge-primary {
  212. @apply bg-blue-100 text-blue-800;
  213. }
  214. .textbook-badge-success {
  215. @apply bg-green-100 text-green-800;
  216. }
  217. .textbook-badge-warning {
  218. @apply bg-yellow-100 text-yellow-800;
  219. }
  220. .textbook-badge-danger {
  221. @apply bg-red-100 text-red-800;
  222. }
  223. /* 状态指示器 */
  224. .textbook-status {
  225. @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
  226. }
  227. .textbook-status-active {
  228. @apply bg-green-100 text-green-800;
  229. }
  230. .textbook-status-inactive {
  231. @apply bg-red-100 text-red-800;
  232. }
  233. .textbook-status-pending {
  234. @apply bg-yellow-100 text-yellow-800;
  235. }
  236. /* Filament 登录页面定制 */
  237. .fi-logo {
  238. display: none !important;
  239. }
  240. .fi-logo::after {
  241. content: '数学知识图谱管理系统' !important;
  242. display: inline-block !important;
  243. font-size: 1.25rem !important;
  244. font-weight: 600 !important;
  245. color: #0ea5e9 !important;
  246. }
  247. /* 玻璃态面板 */
  248. .glass-panel {
  249. @apply rounded-2xl border border-white/20 bg-white/70 shadow-lg backdrop-blur-md transition-all duration-300 hover:shadow-xl dark:border-white/10 dark:bg-slate-900/60;
  250. }
  251. /* 卡片组件 */
  252. .metric-card {
  253. @apply rounded-xl border border-slate-200/80 bg-white/90 px-6 py-5 shadow-sm transition-all duration-300 hover:shadow-md hover:scale-[1.02] dark:border-slate-700/80 dark:bg-slate-900/50;
  254. }
  255. /* 渐变背景 */
  256. .gradient-bg {
  257. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  258. }
  259. .gradient-bg-light {
  260. background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  261. }
  262. /* 现代化按钮 */
  263. .btn-modern {
  264. @apply relative inline-flex items-center justify-center px-6 py-3 text-sm font-medium text-white bg-primary-600 rounded-lg shadow-md transition-all duration-300 hover:bg-primary-700 hover:shadow-lg hover:scale-105 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 active:scale-95;
  265. }
  266. .btn-modern-outline {
  267. @apply relative inline-flex items-center justify-center px-6 py-3 text-sm font-medium text-primary-600 bg-transparent border border-primary-600 rounded-lg shadow-sm transition-all duration-300 hover:bg-primary-50 hover:shadow-md hover:scale-105 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 active:scale-95;
  268. }
  269. /* 输入框样式 */
  270. .input-modern {
  271. @apply w-full px-4 py-3 text-sm border border-slate-300 rounded-lg transition-all duration-200 focus:border-primary-500 focus:ring-2 focus:ring-primary-200 focus:outline-none hover:border-slate-400 dark:bg-slate-800 dark:border-slate-600 dark:text-slate-100 dark:hover:border-slate-500;
  272. }
  273. /* 表格样式增强 */
  274. .table-modern {
  275. @apply w-full border-collapse overflow-hidden rounded-lg shadow-sm border border-slate-200 dark:border-slate-700;
  276. }
  277. .table-modern thead th {
  278. @apply px-6 py-4 text-left text-xs font-semibold text-slate-600 uppercase tracking-wider bg-slate-50/50 dark:bg-slate-800/50 dark:text-slate-300;
  279. }
  280. .table-modern tbody tr {
  281. @apply transition-colors duration-200 hover:bg-slate-50/70 dark:hover:bg-slate-800/50;
  282. }
  283. .table-modern tbody td {
  284. @apply px-6 py-4 text-sm text-slate-900 border-t border-slate-200 dark:border-slate-700 dark:text-slate-100;
  285. }
  286. /* 导航栏样式 */
  287. .navbar-modern {
  288. @apply backdrop-blur-md bg-white/80 shadow-sm border-b border-slate-200/50 dark:bg-slate-900/80 dark:border-slate-700/50;
  289. }
  290. /* 侧边栏样式 */
  291. .sidebar-modern {
  292. @apply bg-white border-r border-slate-200 dark:bg-slate-900 dark:border-slate-700;
  293. }
  294. /* 页面标题 */
  295. .page-title {
  296. @apply text-3xl font-bold text-slate-900 mb-2 dark:text-white;
  297. }
  298. .page-subtitle {
  299. @apply text-sm text-slate-600 dark:text-slate-400;
  300. }
  301. /* 状态指示器 */
  302. .status-online {
  303. @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800 dark:bg-green-900/50 dark:text-green-400;
  304. }
  305. .status-offline {
  306. @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-800 dark:bg-red-900/50 dark:text-red-400;
  307. }
  308. .status-pending {
  309. @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800 dark:bg-yellow-900/50 dark:text-yellow-400;
  310. }
  311. /* 加载动画 */
  312. .loading-spinner {
  313. @apply inline-block w-4 h-4 border-2 border-slate-300 border-t-primary-600 rounded-full animate-spin;
  314. }
  315. /* 动画效果 */
  316. .animate-fade-in {
  317. @apply animate-fadeIn;
  318. }
  319. .animate-slide-up {
  320. @apply animate-slideUp;
  321. }
  322. /* OCR记录详情页面特有样式 */
  323. .ocr-record-table {
  324. @apply table-zebra table-compact;
  325. }
  326. .ocr-record-table thead th {
  327. @apply bg-base-200 text-sm font-semibold text-base-content/80;
  328. }
  329. .ocr-record-table tbody tr {
  330. @apply hover:bg-base-100;
  331. }
  332. .ocr-record-table tbody td {
  333. @apply border-t border-base-300;
  334. vertical-align: middle;
  335. }
  336. /* 时间轴样式增强 */
  337. .timeline.timeline-vertical .timeline-middle .timeline-box {
  338. @apply border-2 shadow-lg transition-all duration-300 hover:scale-110;
  339. }
  340. .timeline.timeline-vertical .timeline-middle .timeline-box:hover {
  341. @apply transform hover:scale-125 hover:shadow-xl;
  342. }
  343. /* 状态徽章增强 */
  344. .status-badge {
  345. @apply inline-flex items-center gap-1 px-3 py-1 rounded-full text-xs font-medium transition-all duration-200;
  346. }
  347. .status-badge:hover {
  348. @apply transform hover:scale-105;
  349. }
  350. /* Filament 页面头部统一样式 */
  351. .fi-header {
  352. @apply mb-6 flex flex-wrap items-start justify-between gap-3 rounded-xl bg-white/90 px-5 py-4 shadow-sm ring-1 ring-slate-200/80 backdrop-blur-sm;
  353. }
  354. .fi-header-heading {
  355. @apply text-2xl font-bold text-slate-900 leading-tight;
  356. }
  357. .fi-header-subheading {
  358. @apply mt-1 text-sm text-slate-600;
  359. }
  360. /* Filament 内置面包屑全局样式 */
  361. .fi-breadcrumbs {
  362. @apply mb-4 flex items-center rounded-lg bg-base-100 px-4 py-2 shadow-sm ring-1 ring-base-200;
  363. }
  364. .fi-breadcrumbs-list {
  365. @apply breadcrumbs text-sm text-base-content/70;
  366. }
  367. .fi-breadcrumbs-item-label {
  368. @apply inline-flex items-center gap-1 text-base-content/70 transition-colors duration-150 hover:text-primary-600;
  369. }
  370. .fi-breadcrumbs-item .fi-breadcrumbs-item-separator {
  371. @apply text-base-300;
  372. }
  373. /* 当前节点加粗,禁用 hover 色 */
  374. .fi-breadcrumbs-item:last-child .fi-breadcrumbs-item-label {
  375. @apply font-semibold text-base-content cursor-default hover:text-base-content;
  376. }
  377. /* 头部栏里的面包屑去掉额外下边距 */
  378. .fi-header nav.fi-breadcrumbs {
  379. @apply mb-0;
  380. }
  381. /* 面包屑样式增强(全局) */
  382. nav[aria-label="Breadcrumb"],
  383. .breadcrumb-modern {
  384. @apply mb-4 flex items-center rounded-xl bg-white/80 px-4 py-2 shadow-sm ring-1 ring-slate-200/80 backdrop-blur-sm;
  385. }
  386. nav[aria-label="Breadcrumb"] ol,
  387. .breadcrumb-modern ol {
  388. @apply flex items-center gap-3 text-sm text-slate-600;
  389. }
  390. nav[aria-label="Breadcrumb"] a,
  391. .breadcrumb-modern a {
  392. @apply inline-flex items-center gap-1 text-slate-600 transition-colors duration-150 hover:text-primary-600;
  393. }
  394. nav[aria-label="Breadcrumb"] .crumb-current,
  395. .breadcrumb-modern .crumb-current {
  396. @apply inline-flex items-center gap-1 font-semibold text-slate-900;
  397. }
  398. nav[aria-label="Breadcrumb"] .crumb-divider,
  399. .breadcrumb-modern .crumb-divider {
  400. @apply h-4 w-px bg-slate-200;
  401. }
  402. /* 图片预览框架 */
  403. .mockup-window {
  404. @apply border border-slate-300 rounded-t-lg overflow-hidden;
  405. }
  406. .mockup-browser-toolbar {
  407. @apply bg-slate-200 px-2 py-1 flex items-center gap-1 border-b border-slate-300;
  408. }
  409. .mockup-browser-content {
  410. @apply bg-white;
  411. min-height: 200px;
  412. }
  413. .mockup-browser-dot {
  414. @apply w-2 h-2 rounded-full bg-slate-300;
  415. }
  416. /* OCR置信度指示器 */
  417. .confidence-indicator {
  418. @apply w-2 h-2 rounded-full;
  419. transition: all 0.3s ease;
  420. }
  421. .confidence-high {
  422. @apply bg-green-500;
  423. }
  424. .confidence-medium {
  425. @apply bg-yellow-500;
  426. }
  427. .confidence-low {
  428. @apply bg-red-500;
  429. }
  430. /* AI分析结果卡片 */
  431. .ai-result-card {
  432. @apply bg-gradient-to-br from-success/10 to-success/5 border border-success/20 rounded-lg p-4;
  433. }
  434. .ai-result-card.high-score {
  435. @apply from-success/10 to-success/5;
  436. }
  437. .ai-result-card.medium-score {
  438. @apply from-yellow/10 to-yellow/5;
  439. }
  440. .ai-result-card.low-score {
  441. @apply from-error/10 to-error/5;
  442. }
  443. /* 提交按钮区域 */
  444. .submit-analysis-section {
  445. @apply bg-gradient-to-r from-primary/5 to-primary/10 border border-primary/20 rounded-xl p-6 transition-all duration-300;
  446. }
  447. .submit-analysis-section:hover {
  448. @apply bg-primary/10 border-primary/30;
  449. }
  450. .submit-analysis-section.completed {
  451. @apply bg-gradient-to-r from-success/5 to-success/10 border border-success/20;
  452. }
  453. /* 响应式优化 */
  454. @media (max-width: 768px) {
  455. .stats-vertical,
  456. .stats-horizontal {
  457. @apply grid grid-cols-2;
  458. }
  459. .ocr-record-table {
  460. @apply text-xs;
  461. }
  462. .ocr-record-table th,
  463. .ocr-record-table td {
  464. @apply px-2 py-1;
  465. }
  466. /* 移动端隐藏部分列 */
  467. .mobile-hidden {
  468. @apply hidden;
  469. }
  470. }
  471. @media (max-width: 480px) {
  472. .stats-vertical,
  473. .stats-horizontal {
  474. @apply grid grid-cols-1;
  475. }
  476. .ocr-record-table {
  477. @apply text-xs;
  478. }
  479. .mobile-sm-only {
  480. @apply block;
  481. }
  482. .mobile-hidden {
  483. @apply hidden;
  484. }
  485. }
  486. /* 深色模式适配 */
  487. @media (prefers-color-scheme: dark) {
  488. .mockup-window {
  489. @apply border-slate-700;
  490. }
  491. .mockup-browser-toolbar {
  492. @apply bg-slate-800 border-slate-700;
  493. }
  494. .mockup-browser-content {
  495. @apply bg-slate-800;
  496. }
  497. .mockup-browser-dot {
  498. @apply bg-slate-600;
  499. }
  500. }
  501. /* 毛玻璃效果 */
  502. .frosted-glass {
  503. @apply bg-white/10 backdrop-blur-lg border border-white/20 shadow-xl;
  504. }
  505. .frosted-glass-dark {
  506. @apply bg-slate-900/10 backdrop-blur-lg border border-slate-700/20 shadow-xl;
  507. }
  508. /* 悬停效果 */
  509. .hover-lift {
  510. @apply transition-transform duration-300 hover:-translate-y-1 hover:shadow-lg;
  511. }
  512. /* 统计卡片特殊样式 */
  513. .stat-card {
  514. @apply relative overflow-hidden rounded-xl border border-slate-200 bg-gradient-to-br from-white to-slate-50 p-6 shadow-sm transition-all duration-300 hover:shadow-md hover:border-primary-200 dark:border-slate-700 dark:from-slate-800 dark:to-slate-900 dark:hover:border-primary-800;
  515. }
  516. .stat-card::before {
  517. content: '';
  518. @apply absolute inset-0 bg-gradient-to-br from-primary-500/10 to-transparent opacity-0 transition-opacity duration-300;
  519. }
  520. .stat-card:hover::before {
  521. @apply opacity-100;
  522. }
  523. /* 徽章样式 */
  524. .badge-modern {
  525. @apply inline-flex items-center px-2.5 py-1 rounded-full text-xs font-medium transition-colors duration-200;
  526. }
  527. .badge-primary {
  528. @apply bg-primary-100 text-primary-800 dark:bg-primary-900/50 dark:text-primary-300;
  529. }
  530. .badge-secondary {
  531. @apply bg-secondary-100 text-secondary-800 dark:bg-secondary-900/50 dark:text-secondary-300;
  532. }
  533. .badge-success {
  534. @apply bg-green-100 text-green-800 dark:bg-green-900/50 dark:text-green-400;
  535. }
  536. .badge-warning {
  537. @apply bg-yellow-100 text-yellow-800 dark:bg-yellow-900/50 dark:text-yellow-400;
  538. }
  539. .badge-error {
  540. @apply bg-red-100 text-red-800 dark:bg-red-900/50 dark:text-red-400;
  541. }
  542. /* 分割线 */
  543. .divider-modern {
  544. @apply my-6 border-0 border-t border-slate-200 dark:border-slate-700;
  545. }
  546. /* =========================================
  547. 全局输入框美化 (Global Input Polish)
  548. ========================================= */
  549. /*
  550. 策略:
  551. 1. 对于登录页 (.fi-simple-layout),我们禁用 Filament 的 wrapper 样式,直接对 input 应用 DaisyUI 组件样式。
  552. 2. 对于后台管理页,我们保留 Filament 的 wrapper 结构(为了兼容前缀/后缀图标),但用 CSS 模拟 DaisyUI 的外观。
  553. */
  554. /* --- 登录页面 (Simple Layout) --- */
  555. /* 移除 Filament wrapper 的默认样式 */
  556. .fi-simple-layout .fi-input-wrp {
  557. @apply ring-0 shadow-none bg-transparent !important;
  558. }
  559. /* 直接对 input 应用 DaisyUI 样式 */
  560. .fi-simple-layout input:not([type='checkbox']):not([type='radio']),
  561. .fi-simple-layout select {
  562. @apply input input-bordered input-primary w-full bg-white text-gray-900 !important;
  563. height: 2.75rem !important;
  564. /* 修复高度 */
  565. }
  566. .fi-simple-layout input:focus,
  567. .fi-simple-layout select:focus {
  568. @apply outline-none border-primary-500 ring-2 ring-primary-500/20 !important;
  569. }
  570. /* 登录按钮美化 */
  571. .fi-simple-layout .fi-btn {
  572. @apply btn btn-primary w-full text-white font-bold shadow-lg hover:shadow-xl transition-all duration-300 !important;
  573. border: none !important;
  574. }
  575. /* 复选框美化 */
  576. .fi-simple-layout input[type='checkbox'] {
  577. @apply checkbox checkbox-primary rounded border-gray-300 !important;
  578. }
  579. /* 链接美化 */
  580. .fi-simple-layout a {
  581. @apply link link-primary hover:link-hover transition-colors !important;
  582. }
  583. /* --- 后台管理页面 (Admin Panel) --- */
  584. /* 模拟 DaisyUI input-bordered 的外观 */
  585. .fi-input-wrp,
  586. .fi-select-input {
  587. @apply bg-white border border-base-300 shadow-sm rounded-lg transition-all duration-200 !important;
  588. /* 覆盖 Filament 的默认 ring */
  589. box-shadow: none !important;
  590. ring: 0 !important;
  591. }
  592. /* 聚焦状态 */
  593. .fi-input-wrp:focus-within,
  594. .fi-select-input:focus-within {
  595. @apply border-primary-500 ring-2 ring-primary-500/20 !important;
  596. }
  597. /* 内部 input 保持透明 */
  598. .fi-input-wrp input,
  599. .fi-select-input select {
  600. @apply bg-transparent border-none shadow-none ring-0 focus:ring-0 !important;
  601. }
  602. /* 暗色模式适配 */
  603. :is(.dark) .fi-simple-layout input:not([type='checkbox']):not([type='radio']),
  604. :is(.dark) .fi-simple-layout select {
  605. @apply bg-base-200 text-base-content border-base-content/20 !important;
  606. }
  607. :is(.dark) .fi-input-wrp,
  608. :is(.dark) .fi-select-input {
  609. @apply bg-base-200 border-base-content/20 !important;
  610. }
  611. :is(.dark) .fi-simple-layout .fi-btn {
  612. @apply btn-primary text-white !important;
  613. }
  614. /* =========================================
  615. 教材管理表单美化 (Textbook Form Polish)
  616. ========================================= */
  617. /* 表单容器美化 */
  618. .fi-fo-component-ctn {
  619. @apply space-y-6 !important;
  620. }
  621. /* 表单字段组美化 */
  622. .fi-fo-field-wrp {
  623. @apply mb-5 !important;
  624. }
  625. /* 标签美化 */
  626. .fi-fo-field-wrp-label {
  627. @apply text-sm font-semibold text-slate-700 mb-2 flex items-center gap-2 !important;
  628. }
  629. .fi-fo-field-wrp-label sup {
  630. @apply text-red-500 font-bold !important;
  631. }
  632. /* 输入框容器 - 玻璃态效果 */
  633. .fi-input-wrp {
  634. @apply bg-white/90 backdrop-blur-sm border-2 border-slate-200 rounded-xl shadow-sm transition-all duration-300 overflow-hidden !important;
  635. }
  636. .fi-input-wrp:hover {
  637. @apply border-slate-300 shadow-md !important;
  638. }
  639. .fi-input-wrp:focus-within {
  640. @apply border-blue-500 shadow-lg shadow-blue-500/10 ring-4 ring-blue-500/10 !important;
  641. }
  642. /* 输入框本体 */
  643. .fi-input-wrp input,
  644. .fi-input-wrp textarea {
  645. @apply bg-transparent px-4 py-3 text-slate-800 placeholder-slate-400 text-base !important;
  646. }
  647. .fi-input-wrp input::placeholder,
  648. .fi-input-wrp textarea::placeholder {
  649. @apply text-slate-400 !important;
  650. }
  651. /* 选择框美化 */
  652. .fi-select-wrp {
  653. @apply bg-white/90 backdrop-blur-sm border-2 border-slate-200 rounded-xl shadow-sm transition-all duration-300 !important;
  654. }
  655. .fi-select-wrp:hover {
  656. @apply border-slate-300 shadow-md !important;
  657. }
  658. .fi-select-wrp:focus-within {
  659. @apply border-blue-500 shadow-lg shadow-blue-500/10 ring-4 ring-blue-500/10 !important;
  660. }
  661. /* 原生选择框 */
  662. .fi-select-input {
  663. @apply bg-white/90 backdrop-blur-sm border-2 border-slate-200 rounded-xl shadow-sm px-4 py-3 text-slate-800 transition-all duration-300 !important;
  664. }
  665. .fi-select-input:hover {
  666. @apply border-slate-300 shadow-md !important;
  667. }
  668. .fi-select-input:focus {
  669. @apply border-blue-500 shadow-lg shadow-blue-500/10 ring-4 ring-blue-500/10 outline-none !important;
  670. }
  671. /* 多选框美化 */
  672. .fi-checkbox-input {
  673. @apply w-5 h-5 rounded-lg border-2 border-slate-300 text-blue-600 transition-all duration-200 cursor-pointer !important;
  674. }
  675. .fi-checkbox-input:hover {
  676. @apply border-blue-400 !important;
  677. }
  678. .fi-checkbox-input:checked {
  679. @apply bg-blue-600 border-blue-600 !important;
  680. }
  681. .fi-checkbox-input:focus {
  682. @apply ring-4 ring-blue-500/20 !important;
  683. }
  684. /* Radio 美化 */
  685. .fi-radio-input {
  686. @apply w-5 h-5 border-2 border-slate-300 text-blue-600 transition-all duration-200 cursor-pointer !important;
  687. }
  688. .fi-radio-input:hover {
  689. @apply border-blue-400 !important;
  690. }
  691. .fi-radio-input:checked {
  692. @apply border-blue-600 !important;
  693. }
  694. .fi-radio-input:focus {
  695. @apply ring-4 ring-blue-500/20 !important;
  696. }
  697. /* Toggle 开关美化 */
  698. .fi-toggle-input {
  699. @apply w-11 h-6 bg-slate-200 rounded-full transition-all duration-300 cursor-pointer !important;
  700. }
  701. .fi-toggle-input:checked {
  702. @apply bg-blue-600 !important;
  703. }
  704. /* 文本域美化 */
  705. .fi-textarea-wrp {
  706. @apply bg-white/90 backdrop-blur-sm border-2 border-slate-200 rounded-xl shadow-sm transition-all duration-300 !important;
  707. }
  708. .fi-textarea-wrp:hover {
  709. @apply border-slate-300 shadow-md !important;
  710. }
  711. .fi-textarea-wrp:focus-within {
  712. @apply border-blue-500 shadow-lg shadow-blue-500/10 ring-4 ring-blue-500/10 !important;
  713. }
  714. .fi-textarea-wrp textarea {
  715. @apply bg-transparent px-4 py-3 text-slate-800 placeholder-slate-400 text-base min-h-[120px] !important;
  716. }
  717. /* 帮助文本美化 */
  718. .fi-fo-field-wrp-hint {
  719. @apply mt-2 text-xs text-slate-500 flex items-center gap-1 !important;
  720. }
  721. .fi-fo-field-wrp-hint::before {
  722. content: '💡';
  723. @apply text-sm;
  724. }
  725. /* 错误提示美化 */
  726. .fi-fo-field-wrp-error-message {
  727. @apply mt-2 text-sm text-red-600 flex items-center gap-1 bg-red-50 px-3 py-2 rounded-lg !important;
  728. }
  729. .fi-fo-field-wrp-error-message::before {
  730. content: '⚠️';
  731. }
  732. /* 表单区块美化 */
  733. .fi-fo-section {
  734. @apply bg-white/60 backdrop-blur-sm rounded-2xl border border-slate-200/50 p-6 mb-6 shadow-sm !important;
  735. }
  736. .fi-fo-section-header {
  737. @apply pb-4 mb-4 border-b border-slate-200 !important;
  738. }
  739. .fi-fo-section-header-heading {
  740. @apply text-lg font-bold text-slate-800 !important;
  741. }
  742. .fi-fo-section-header-description {
  743. @apply text-sm text-slate-500 mt-1 !important;
  744. }
  745. /* =========================================
  746. 表单按钮美化 (Enhanced Form Actions)
  747. ========================================= */
  748. /* 按钮容器 */
  749. .fi-ac {
  750. @apply flex items-center justify-between gap-4 pt-8 mt-8 border-t border-slate-200 bg-gradient-to-r from-slate-50 to-white px-6 py-6 rounded-xl shadow-sm !important;
  751. }
  752. /* 基础按钮样式重写 - 扩展到所有按钮 */
  753. .fi-btn,
  754. button[wire*="click"],
  755. button[type="submit"],
  756. button[type="button"],
  757. .fi-icon-btn,
  758. .fi-dropdown-list-item-button {
  759. @apply transition-all duration-300 !important;
  760. }
  761. /* ===== 主要按钮 (保存/提交) ===== */
  762. button.fi-btn[class*="bg-primary"],
  763. a.fi-btn[class*="bg-primary"],
  764. .fi-btn-fi-color-primary,
  765. button[type="submit"] {
  766. @apply bg-gradient-to-r from-blue-600 to-blue-700 hover:from-blue-700 hover:to-blue-800 text-white font-semibold px-8 py-3 rounded-xl shadow-lg shadow-blue-500/30 transition-all duration-300 hover:shadow-xl hover:shadow-blue-500/40 hover:-translate-y-0.5 focus:ring-4 focus:ring-blue-500/20 active:translate-y-0 active:shadow-md border-0 relative overflow-hidden !important;
  767. }
  768. button.fi-btn[class*="bg-primary"]::before,
  769. a.fi-btn[class*="bg-primary"]::before,
  770. .fi-btn-fi-color-primary::before,
  771. button[type="submit"]::before {
  772. content: '';
  773. @apply absolute inset-0 bg-gradient-to-r from-white/0 via-white/20 to-white/0 transition-transform duration-700;
  774. transform: translateX(-100%);
  775. }
  776. button.fi-btn[class*="bg-primary"]:hover::before,
  777. a.fi-btn[class*="bg-primary"]:hover::before,
  778. .fi-btn-fi-color-primary:hover::before,
  779. button[type="submit"]:hover::before {
  780. transform: translateX(100%);
  781. }
  782. button.fi-btn[class*="bg-primary"]:hover,
  783. a.fi-btn[class*="bg-primary"]:hover,
  784. .fi-btn-fi-color-primary:hover,
  785. button[type="submit"]:hover {
  786. @apply shadow-blue-500/40 !important;
  787. }
  788. /* ===== 次要按钮 (取消/返回) ===== */
  789. button.fi-btn[class*="bg-gray"],
  790. a.fi-btn[class*="bg-gray"],
  791. .fi-btn-fi-color-gray {
  792. @apply bg-white hover:bg-slate-50 text-slate-700 font-semibold px-8 py-3 rounded-xl border-2 border-slate-200 shadow-md hover:shadow-lg transition-all duration-300 hover:-translate-y-0.5 focus:ring-4 focus:ring-slate-300/50 active:translate-y-0 active:shadow-sm !important;
  793. }
  794. button.fi-btn[class*="bg-gray"]:hover,
  795. a.fi-btn[class*="bg-gray"]:hover,
  796. .fi-btn-fi-color-gray:hover {
  797. @apply border-slate-300 text-slate-900 !important;
  798. }
  799. /* ===== 成功按钮 (保存并创建另一个) ===== */
  800. button.fi-btn[class*="bg-success"],
  801. a.fi-btn[class*="bg-success"],
  802. .fi-btn-fi-color-success {
  803. @apply bg-gradient-to-r from-emerald-600 to-teal-600 hover:from-emerald-700 hover:to-teal-700 text-white font-semibold px-8 py-3 rounded-xl shadow-lg shadow-emerald-500/30 transition-all duration-300 hover:shadow-xl hover:shadow-emerald-500/40 hover:-translate-y-0.5 focus:ring-4 focus:ring-emerald-500/20 active:translate-y-0 active:shadow-md border-0 relative overflow-hidden !important;
  804. }
  805. button.fi-btn[class*="bg-success"]::before,
  806. a.fi-btn[class*="bg-success"]::before,
  807. .fi-btn-fi-color-success::before {
  808. content: '';
  809. @apply absolute inset-0 bg-gradient-to-r from-white/0 via-white/20 to-white/0 transition-transform duration-700;
  810. transform: translateX(-100%);
  811. }
  812. button.fi-btn[class*="bg-success"]:hover::before,
  813. a.fi-btn[class*="bg-success"]:hover::before,
  814. .fi-btn-fi-color-success:hover::before {
  815. transform: translateX(100%);
  816. }
  817. button.fi-btn[class*="bg-success"]:hover,
  818. a.fi-btn[class*="bg-success"]:hover,
  819. .fi-btn-fi-color-success:hover {
  820. @apply shadow-emerald-500/40 !important;
  821. }
  822. /* ===== 危险按钮 (删除) ===== */
  823. button.fi-btn[class*="bg-danger"],
  824. a.fi-btn[class*="bg-danger"],
  825. .fi-btn-fi-color-danger {
  826. @apply bg-gradient-to-r from-red-500 to-rose-500 hover:from-red-600 hover:to-rose-600 text-white font-semibold px-8 py-3 rounded-xl shadow-lg shadow-red-500/30 transition-all duration-300 hover:shadow-xl hover:shadow-red-500/40 hover:-translate-y-0.5 focus:ring-4 focus:ring-red-500/20 active:translate-y-0 active:shadow-md border-0 relative overflow-hidden !important;
  827. }
  828. button.fi-btn[class*="bg-danger"]::before,
  829. a.fi-btn[class*="bg-danger"]::before,
  830. .fi-btn-fi-color-danger::before {
  831. content: '';
  832. @apply absolute inset-0 bg-gradient-to-r from-white/0 via-white/20 to-white/0 transition-transform duration-700;
  833. transform: translateX(-100%);
  834. }
  835. button.fi-btn[class*="bg-danger"]:hover::before,
  836. a.fi-btn[class*="bg-danger"]:hover::before,
  837. .fi-btn-fi-color-danger:hover::before {
  838. transform: translateX(100%);
  839. }
  840. button.fi-btn[class*="bg-danger"]:hover,
  841. a.fi-btn[class*="bg-danger"]:hover,
  842. .fi-btn-fi-color-danger:hover {
  843. @apply shadow-red-500/40 !important;
  844. }
  845. /* ===== 警告按钮 ===== */
  846. button.fi-btn[class*="bg-warning"],
  847. a.fi-btn[class*="bg-warning"],
  848. .fi-btn-fi-color-warning {
  849. @apply bg-gradient-to-r from-amber-500 to-orange-500 hover:from-amber-600 hover:to-orange-600 text-white font-semibold px-8 py-3 rounded-xl shadow-lg shadow-amber-500/30 transition-all duration-300 hover:shadow-xl hover:shadow-amber-500/40 hover:-translate-y-0.5 focus:ring-4 focus:ring-amber-500/20 active:translate-y-0 active:shadow-md border-0 relative overflow-hidden !important;
  850. }
  851. button.fi-btn[class*="bg-warning"]::before,
  852. a.fi-btn[class*="bg-warning"]::before,
  853. .fi-btn-fi-color-warning::before {
  854. content: '';
  855. @apply absolute inset-0 bg-gradient-to-r from-white/0 via-white/20 to-white/0 transition-transform duration-700;
  856. transform: translateX(-100%);
  857. }
  858. button.fi-btn[class*="bg-warning"]:hover::before,
  859. a.fi-btn[class*="bg-warning"]:hover::before,
  860. .fi-btn-fi-color-warning:hover::before {
  861. transform: translateX(100%);
  862. }
  863. button.fi-btn[class*="bg-warning"]:hover,
  864. a.fi-btn[class*="bg-warning"]:hover,
  865. .fi-btn-fi-color-warning:hover {
  866. @apply shadow-amber-500/40 !important;
  867. }
  868. /* ===== 操作按钮 (编辑/查看) ===== */
  869. .fi-btn-fi-color-secondary {
  870. @apply bg-gradient-to-r from-indigo-500 to-purple-600 hover:from-indigo-600 hover:to-purple-700 text-white font-semibold px-6 py-2.5 rounded-lg shadow-md transition-all duration-300 hover:shadow-lg hover:-translate-y-0.5 !important;
  871. }
  872. /* ===== 通用轮廓按钮 ===== */
  873. .fi-outlined.fi-btn,
  874. button.fi-btn.outline,
  875. a.fi-btn.outline {
  876. @apply bg-white hover:bg-slate-50 text-slate-700 border-2 border-slate-200 shadow-sm hover:shadow-md transition-all duration-300 hover:-translate-y-0.5 !important;
  877. }
  878. .fi-outlined.fi-btn:hover,
  879. button.fi-btn.outline:hover,
  880. a.fi-btn.outline:hover {
  881. @apply border-slate-300 text-slate-900 !important;
  882. }
  883. /* ===== 表格操作按钮 ===== */
  884. .fi-table .fi-btn,
  885. [data-fi-table] button,
  886. .fi-bulk-action,
  887. .fi-dropdown-list-item-button {
  888. @apply transition-all duration-300 !important;
  889. }
  890. .fi-table .fi-btn:hover,
  891. [data-fi-table] button:hover,
  892. .fi-bulk-action:hover,
  893. .fi-dropdown-list-item-button:hover {
  894. @apply -translate-y-0.5 shadow-lg !important;
  895. }
  896. /* ===== 批量操作按钮 ===== */
  897. .fi-bulk-action-group .fi-btn {
  898. @apply mx-1 !important;
  899. }
  900. /* ===== 响应式按钮 ===== */
  901. @media (max-width: 640px) {
  902. .fi-ac {
  903. @apply flex-col !important;
  904. }
  905. .fi-ac .fi-btn {
  906. @apply w-full justify-center !important;
  907. }
  908. .fi-btn,
  909. button[type="submit"],
  910. button[type="button"],
  911. a.fi-btn {
  912. @apply px-6 py-3 text-sm !important;
  913. }
  914. .fi-table .fi-btn {
  915. @apply px-3 py-2 text-xs !important;
  916. }
  917. }
  918. /* KeyValue 组件美化 */
  919. .fi-fo-key-value {
  920. @apply bg-white/80 backdrop-blur-sm rounded-xl border-2 border-slate-200 overflow-hidden !important;
  921. }
  922. .fi-fo-key-value-header {
  923. @apply bg-slate-50 px-4 py-3 border-b border-slate-200 !important;
  924. }
  925. .fi-fo-key-value-row {
  926. @apply flex items-center border-b border-slate-100 last:border-b-0 !important;
  927. }
  928. .fi-fo-key-value-row input {
  929. @apply px-4 py-3 text-slate-800 !important;
  930. }
  931. /* TagsInput 美化 */
  932. .fi-fo-tags-input {
  933. @apply bg-white/90 backdrop-blur-sm border-2 border-slate-200 rounded-xl p-2 transition-all duration-300 !important;
  934. }
  935. .fi-fo-tags-input:focus-within {
  936. @apply border-blue-500 shadow-lg shadow-blue-500/10 ring-4 ring-blue-500/10 !important;
  937. }
  938. .fi-fo-tags-input-tag {
  939. @apply bg-blue-100 text-blue-800 px-3 py-1 rounded-lg text-sm font-medium !important;
  940. }
  941. /* Repeater 美化 */
  942. .fi-fo-repeater-item {
  943. @apply bg-white/80 backdrop-blur-sm rounded-xl border-2 border-slate-200 p-4 mb-4 transition-all duration-300 !important;
  944. }
  945. .fi-fo-repeater-item:hover {
  946. @apply border-slate-300 shadow-md !important;
  947. }
  948. /* 文件上传美化 */
  949. .fi-fo-file-upload {
  950. @apply bg-white/90 backdrop-blur-sm border-2 border-dashed border-slate-300 rounded-xl p-8 text-center transition-all duration-300 !important;
  951. }
  952. .fi-fo-file-upload:hover {
  953. @apply border-blue-400 bg-blue-50/50 !important;
  954. }
  955. .fi-fo-file-upload-icon {
  956. @apply text-slate-400 mb-3 !important;
  957. }
  958. /* 日期选择器美化 */
  959. .fi-fo-date-time-picker {
  960. @apply bg-white/90 backdrop-blur-sm border-2 border-slate-200 rounded-xl shadow-sm transition-all duration-300 !important;
  961. }
  962. .fi-fo-date-time-picker:focus-within {
  963. @apply border-blue-500 shadow-lg shadow-blue-500/10 ring-4 ring-blue-500/10 !important;
  964. }
  965. /* 富文本编辑器美化 */
  966. .fi-fo-rich-editor {
  967. @apply bg-white/90 backdrop-blur-sm border-2 border-slate-200 rounded-xl overflow-hidden transition-all duration-300 !important;
  968. }
  969. .fi-fo-rich-editor:focus-within {
  970. @apply border-blue-500 shadow-lg shadow-blue-500/10 !important;
  971. }
  972. .fi-fo-rich-editor-toolbar {
  973. @apply bg-slate-50 border-b border-slate-200 px-3 py-2 !important;
  974. }
  975. .fi-fo-rich-editor-content {
  976. @apply px-4 py-3 min-h-[200px] !important;
  977. }
  978. }
  979. @layer utilities {
  980. /* 文字渐变 */
  981. .text-gradient {
  982. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  983. -webkit-background-clip: text;
  984. -webkit-text-fill-color: transparent;
  985. background-clip: text;
  986. }
  987. /* 隐藏滚动条 */
  988. .no-scrollbar {
  989. -ms-overflow-style: none;
  990. scrollbar-width: none;
  991. }
  992. .no-scrollbar::-webkit-scrollbar {
  993. display: none;
  994. }
  995. /* 混合模式 */
  996. .mix-blend-multiply {
  997. mix-blend-mode: multiply;
  998. }
  999. .mix-blend-screen {
  1000. mix-blend-mode: screen;
  1001. }
  1002. }