quality-management.scss 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078
  1. // 质量管理页面样式
  2. // 导入iOS主题变量 - 使用新的Sass @use语法以避免弃用警告
  3. @use '../ios-theme' as *;
  4. // 全局样式重置
  5. .quality-management-main {
  6. width: 100%;
  7. height: 100vh;
  8. background-color: $ios-background;
  9. color: $ios-text-primary;
  10. font-family: $ios-font-family;
  11. padding: $ios-spacing-xl;
  12. overflow-y: auto;
  13. // 应用iOS风格滚动条
  14. scrollbar-width: $ios-scrollbar-width;
  15. &::-webkit-scrollbar {
  16. width: $ios-scrollbar-width;
  17. }
  18. &::-webkit-scrollbar-track {
  19. background: $ios-scrollbar-track;
  20. }
  21. &::-webkit-scrollbar-thumb {
  22. background: $ios-scrollbar-thumb;
  23. border-radius: $ios-radius-full;
  24. }
  25. &::-webkit-scrollbar-thumb:hover {
  26. background: $ios-scrollbar-thumb-hover;
  27. }
  28. }
  29. // 页面标题
  30. .quality-management-header {
  31. margin-bottom: $ios-spacing-xl;
  32. h1 {
  33. font-size: $ios-font-size-xl + 4px;
  34. font-weight: $ios-font-weight-semibold;
  35. color: $ios-text-primary;
  36. margin: 0;
  37. padding-bottom: $ios-spacing-lg;
  38. border-bottom: 1px solid $ios-border;
  39. display: flex;
  40. align-items: center;
  41. .header-icon {
  42. width: 32px;
  43. height: 32px;
  44. background-color: $ios-primary;
  45. border-radius: $ios-radius-lg;
  46. display: flex;
  47. align-items: center;
  48. justify-content: center;
  49. margin-right: $ios-spacing-md;
  50. color: white;
  51. }
  52. }
  53. }
  54. // 内容区域
  55. .quality-management-content {
  56. display: flex;
  57. flex-direction: column;
  58. gap: $ios-spacing-xxl;
  59. }
  60. // 通用Section样式
  61. .section-header {
  62. display: flex;
  63. justify-content: space-between;
  64. align-items: center;
  65. margin-bottom: $ios-spacing-lg;
  66. h2 {
  67. font-size: $ios-font-size-xl;
  68. font-weight: $ios-font-weight-medium;
  69. color: $ios-text-primary;
  70. margin: 0;
  71. display: flex;
  72. align-items: center;
  73. &::before {
  74. content: '';
  75. display: inline-block;
  76. width: 4px;
  77. height: 24px;
  78. background-color: $ios-primary;
  79. border-radius: $ios-radius-full;
  80. margin-right: $ios-spacing-md;
  81. }
  82. }
  83. }
  84. // 筛选区域
  85. .filter-section {
  86. background-color: $ios-background-secondary;
  87. border-radius: $ios-radius-lg;
  88. padding: $ios-spacing-lg;
  89. margin-bottom: $ios-spacing-lg;
  90. border: 1px solid $ios-border;
  91. .search-filter {
  92. display: flex;
  93. align-items: center;
  94. gap: $ios-spacing-md;
  95. margin-bottom: $ios-spacing-md;
  96. .search-input {
  97. flex: 1;
  98. position: relative;
  99. input {
  100. width: 100%;
  101. padding: $ios-spacing-md $ios-spacing-lg $ios-spacing-md $ios-spacing-xxl;
  102. border: 1px solid $ios-border;
  103. border-radius: $ios-radius-md;
  104. background-color: $ios-background;
  105. color: $ios-text-primary;
  106. font-size: $ios-font-size-base;
  107. font-family: $ios-font-family;
  108. transition: border-color 0.2s ease;
  109. &:focus {
  110. outline: none;
  111. border-color: $ios-primary;
  112. box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);
  113. }
  114. &::placeholder {
  115. color: $ios-text-tertiary;
  116. }
  117. }
  118. .search-icon {
  119. position: absolute;
  120. left: $ios-spacing-md;
  121. top: 50%;
  122. transform: translateY(-50%);
  123. color: $ios-text-tertiary;
  124. }
  125. }
  126. .filter-select {
  127. select {
  128. padding: $ios-spacing-md $ios-spacing-lg;
  129. border: 1px solid $ios-border;
  130. border-radius: $ios-radius-md;
  131. background-color: $ios-background;
  132. color: $ios-text-primary;
  133. font-size: $ios-font-size-base;
  134. font-family: $ios-font-family;
  135. cursor: pointer;
  136. transition: border-color 0.2s ease;
  137. &:focus {
  138. outline: none;
  139. border-color: $ios-primary;
  140. box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);
  141. }
  142. option {
  143. background-color: $ios-background;
  144. color: $ios-text-primary;
  145. }
  146. }
  147. }
  148. }
  149. }
  150. // 任务列表样式
  151. .task-list {
  152. display: grid;
  153. grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  154. gap: $ios-spacing-lg;
  155. .task-card {
  156. background-color: $ios-background;
  157. border-radius: $ios-radius-lg;
  158. padding: $ios-spacing-lg;
  159. border: 1px solid $ios-border;
  160. box-shadow: $ios-shadow-sm;
  161. transition: all 0.2s ease;
  162. cursor: pointer;
  163. &:hover {
  164. box-shadow: $ios-shadow-md;
  165. transform: translateY(-2px);
  166. }
  167. .card-header {
  168. display: flex;
  169. justify-content: space-between;
  170. align-items: flex-start;
  171. margin-bottom: $ios-spacing-md;
  172. .task-title {
  173. font-size: $ios-font-size-base;
  174. font-weight: $ios-font-weight-medium;
  175. color: $ios-text-primary;
  176. margin: 0;
  177. flex: 1;
  178. margin-right: $ios-spacing-md;
  179. line-height: 1.4;
  180. }
  181. .task-status {
  182. font-size: $ios-font-size-xs;
  183. padding: 4px $ios-spacing-sm;
  184. border-radius: $ios-radius-full;
  185. font-weight: $ios-font-weight-medium;
  186. white-space: nowrap;
  187. }
  188. .status-pending {
  189. background-color: rgba(255, 149, 0, 0.1);
  190. color: $ios-warning;
  191. }
  192. .status-completed {
  193. background-color: rgba(52, 199, 89, 0.1);
  194. color: $ios-success;
  195. }
  196. .status-rejected {
  197. background-color: rgba(255, 59, 48, 0.1);
  198. color: $ios-danger;
  199. }
  200. }
  201. .card-body {
  202. font-size: $ios-font-size-sm;
  203. color: $ios-text-secondary;
  204. margin-bottom: $ios-spacing-md;
  205. .task-info {
  206. display: flex;
  207. justify-content: space-between;
  208. margin-bottom: $ios-spacing-xs;
  209. .info-label {
  210. color: $ios-text-tertiary;
  211. }
  212. .info-value {
  213. font-weight: $ios-font-weight-medium;
  214. color: $ios-text-primary;
  215. }
  216. }
  217. }
  218. .card-footer {
  219. display: flex;
  220. justify-content: space-between;
  221. align-items: center;
  222. padding-top: $ios-spacing-md;
  223. border-top: 1px solid $ios-border;
  224. .task-date {
  225. font-size: $ios-font-size-xs;
  226. color: $ios-text-tertiary;
  227. }
  228. .task-priority {
  229. font-size: $ios-font-size-xs;
  230. padding: 2px $ios-spacing-xs;
  231. border-radius: $ios-radius-sm;
  232. font-weight: $ios-font-weight-medium;
  233. &.high {
  234. background-color: rgba(255, 59, 48, 0.1);
  235. color: $ios-danger;
  236. }
  237. &.medium {
  238. background-color: rgba(255, 149, 0, 0.1);
  239. color: $ios-warning;
  240. }
  241. &.low {
  242. background-color: rgba(52, 199, 89, 0.1);
  243. color: $ios-success;
  244. }
  245. }
  246. }
  247. }
  248. }
  249. // 操作按钮样式 - iOS风格设计
  250. .action-buttons {
  251. display: flex;
  252. gap: $ios-spacing-md;
  253. margin-bottom: $ios-spacing-lg;
  254. .btn {
  255. padding: $ios-spacing-sm $ios-spacing-md;
  256. border-radius: $ios-radius-md;
  257. font-size: $ios-font-size-sm;
  258. font-weight: $ios-font-weight-medium;
  259. cursor: pointer;
  260. font-family: $ios-font-family;
  261. transition: $ios-feedback-tap;
  262. // 添加iOS风格的按钮背景模糊效果
  263. backdrop-filter: blur(8px);
  264. // 添加iOS风格的点击反馈效果
  265. -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  266. &.btn-primary {
  267. // 克莱因蓝主色调,添加微妙的渐变效果
  268. background: linear-gradient(145deg, $ios-primary, #003D99);
  269. color: white;
  270. border: none;
  271. // 添加iOS风格的光泽效果
  272. position: relative;
  273. overflow: hidden;
  274. &::before {
  275. content: '';
  276. position: absolute;
  277. top: 0;
  278. left: -100%;
  279. width: 50%;
  280. height: 100%;
  281. background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  282. transition: all 0.3s ease;
  283. }
  284. &:hover {
  285. // 悬停时轻微变亮并上移
  286. background: linear-gradient(145deg, #0052CC, $ios-primary);
  287. transform: translateY(-1px);
  288. box-shadow: 0 4px 12px rgba(0, 71, 171, 0.3);
  289. }
  290. &:active {
  291. // 点击时轻微压缩
  292. transform: translateY(0);
  293. box-shadow: 0 2px 6px rgba(0, 71, 171, 0.2);
  294. }
  295. }
  296. &.btn-secondary {
  297. background-color: $ios-background-secondary;
  298. color: $ios-text-primary;
  299. border: 1px solid $ios-border;
  300. &:hover {
  301. background-color: $ios-background;
  302. transform: translateY(-1px);
  303. }
  304. }
  305. }
  306. }
  307. // 分页控件样式
  308. .pagination {
  309. display: flex;
  310. justify-content: center;
  311. align-items: center;
  312. gap: $ios-spacing-sm;
  313. margin-top: $ios-spacing-xl;
  314. .page-item {
  315. .page-link {
  316. padding: $ios-spacing-xs $ios-spacing-md;
  317. border: 1px solid $ios-border;
  318. border-radius: $ios-radius-md;
  319. background-color: $ios-background;
  320. color: $ios-text-primary;
  321. cursor: pointer;
  322. transition: $ios-feedback-tap;
  323. &:hover:not(:disabled) {
  324. background-color: $ios-background-secondary;
  325. transform: translateY(-1px);
  326. }
  327. &.active {
  328. background-color: $ios-primary;
  329. color: white;
  330. border-color: $ios-primary;
  331. }
  332. &:disabled {
  333. opacity: 0.5;
  334. cursor: not-allowed;
  335. }
  336. }
  337. }
  338. }
  339. // 质量验收标准表格样式
  340. .quality-table {
  341. width: 100%;
  342. border-collapse: collapse;
  343. background-color: $ios-background;
  344. border-radius: $ios-radius-lg;
  345. overflow: hidden;
  346. box-shadow: $ios-shadow-sm;
  347. border: 1px solid $ios-border;
  348. thead {
  349. background-color: $ios-background-secondary;
  350. th {
  351. padding: $ios-spacing-md;
  352. text-align: left;
  353. font-weight: $ios-font-weight-medium;
  354. color: $ios-text-secondary;
  355. font-size: $ios-font-size-sm;
  356. border-bottom: 1px solid $ios-border;
  357. }
  358. }
  359. tbody {
  360. td {
  361. padding: $ios-spacing-md;
  362. color: $ios-text-primary;
  363. font-size: $ios-font-size-base;
  364. border-bottom: 1px solid $ios-border;
  365. &:last-child {
  366. text-align: center;
  367. }
  368. }
  369. tr:last-child td {
  370. border-bottom: none;
  371. }
  372. tr:hover {
  373. background-color: $ios-background-secondary;
  374. }
  375. }
  376. }
  377. // 培训资源区域样式
  378. .training-section {
  379. margin-top: $ios-spacing-xxl;
  380. .training-content {
  381. display: flex;
  382. gap: $ios-spacing-lg;
  383. flex-wrap: wrap;
  384. }
  385. .video-list {
  386. flex: 1;
  387. min-width: 300px;
  388. .video-item {
  389. display: flex;
  390. gap: $ios-spacing-md;
  391. padding: $ios-spacing-md;
  392. border-radius: $ios-radius-lg;
  393. background-color: $ios-background;
  394. border: 1px solid $ios-border;
  395. margin-bottom: $ios-spacing-md;
  396. transition: all 0.2s ease;
  397. cursor: pointer;
  398. &:hover {
  399. box-shadow: $ios-shadow-sm;
  400. transform: translateY(-2px);
  401. }
  402. .video-thumbnail {
  403. width: 120px;
  404. height: 70px;
  405. border-radius: $ios-radius-md;
  406. overflow: hidden;
  407. flex-shrink: 0;
  408. position: relative;
  409. img {
  410. width: 100%;
  411. height: 100%;
  412. object-fit: cover;
  413. }
  414. .play-icon {
  415. position: absolute;
  416. top: 50%;
  417. left: 50%;
  418. transform: translate(-50%, -50%);
  419. width: 30px;
  420. height: 30px;
  421. background-color: rgba(0, 0, 0, 0.7);
  422. border-radius: $ios-radius-full;
  423. display: flex;
  424. align-items: center;
  425. justify-content: center;
  426. color: white;
  427. }
  428. }
  429. .video-info {
  430. flex: 1;
  431. .video-title {
  432. font-size: $ios-font-size-base;
  433. font-weight: $ios-font-weight-medium;
  434. color: $ios-text-primary;
  435. margin: 0 0 $ios-spacing-xs 0;
  436. }
  437. .video-meta {
  438. font-size: $ios-font-size-xs;
  439. color: $ios-text-tertiary;
  440. }
  441. }
  442. }
  443. }
  444. }
  445. // 质量整改跟踪 - iOS风格美化
  446. .rectification-section {
  447. margin-top: $ios-spacing-xxl;
  448. .rectification-list {
  449. display: grid;
  450. grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  451. gap: $ios-spacing-lg;
  452. .rectification-item {
  453. // iOS风格卡片设计
  454. padding: $ios-spacing-lg;
  455. border-radius: $ios-radius-xl; // 更大的圆角
  456. background-color: $ios-background;
  457. border: 1px solid $ios-border;
  458. box-shadow: $ios-shadow-card;
  459. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  460. position: relative;
  461. overflow: hidden;
  462. // iOS风格卡片悬停效果
  463. &:hover {
  464. box-shadow: $ios-shadow-lg;
  465. transform: translateY(-2px);
  466. }
  467. // 添加iOS风格的顶部装饰线
  468. &::before {
  469. content: '';
  470. position: absolute;
  471. top: 0;
  472. left: 0;
  473. width: 100%;
  474. height: 4px;
  475. background: linear-gradient(90deg, $ios-primary, $ios-info);
  476. }
  477. .rectification-header {
  478. display: flex;
  479. justify-content: space-between;
  480. align-items: center;
  481. margin-bottom: $ios-spacing-md;
  482. h4 {
  483. font-size: $ios-font-size-base;
  484. font-weight: $ios-font-weight-medium;
  485. color: $ios-text-primary;
  486. margin: 0;
  487. flex: 1;
  488. margin-right: $ios-spacing-md;
  489. }
  490. .rectification-status {
  491. font-size: $ios-font-size-xs;
  492. padding: 4px $ios-spacing-sm;
  493. border-radius: $ios-radius-full;
  494. font-weight: $ios-font-weight-medium;
  495. white-space: nowrap;
  496. }
  497. .status-pending {
  498. background-color: rgba(255, 149, 0, 0.1);
  499. color: $ios-warning;
  500. }
  501. .status-processing {
  502. background-color: rgba(0, 122, 255, 0.1);
  503. color: $ios-primary;
  504. }
  505. .status-review {
  506. background-color: rgba(175, 82, 222, 0.1);
  507. color: $ios-info;
  508. }
  509. .status-completed {
  510. background-color: rgba(52, 199, 89, 0.1);
  511. color: $ios-success;
  512. }
  513. .status-rejected {
  514. background-color: rgba(255, 59, 48, 0.1);
  515. color: $ios-danger;
  516. }
  517. }
  518. .rectification-details {
  519. font-size: $ios-font-size-sm;
  520. color: $ios-text-secondary;
  521. margin-bottom: $ios-spacing-md;
  522. .detail-item {
  523. display: flex;
  524. margin-bottom: $ios-spacing-xs;
  525. .detail-label {
  526. width: 80px;
  527. color: $ios-text-tertiary;
  528. flex-shrink: 0;
  529. }
  530. .detail-value {
  531. flex: 1;
  532. &.priority-high {
  533. color: $ios-danger;
  534. font-weight: $ios-font-weight-medium;
  535. }
  536. &.priority-medium {
  537. color: $ios-warning;
  538. font-weight: $ios-font-weight-medium;
  539. }
  540. &.priority-low {
  541. color: $ios-success;
  542. font-weight: $ios-font-weight-medium;
  543. }
  544. &.score {
  545. color: $ios-primary;
  546. font-weight: $ios-font-weight-semibold;
  547. }
  548. }
  549. }
  550. }
  551. }
  552. }
  553. }
  554. .rectification-actions {
  555. display: flex;
  556. justify-content: flex-end;
  557. gap: $ios-spacing-sm;
  558. padding-top: $ios-spacing-md;
  559. border-top: 1px solid $ios-border;
  560. // iOS风格按钮组间距调整
  561. .btn {
  562. padding: $ios-spacing-xs $ios-spacing-lg;
  563. font-size: $ios-font-size-sm;
  564. }
  565. }
  566. .btn {
  567. padding: $ios-spacing-xs $ios-spacing-md;
  568. border-radius: $ios-radius-md;
  569. font-size: $ios-font-size-sm;
  570. border: 1px solid $ios-border;
  571. background-color: transparent;
  572. color: $ios-text-primary;
  573. cursor: pointer;
  574. font-family: $ios-font-family;
  575. transition: $ios-feedback-tap;
  576. &.btn-primary {
  577. background-color: $ios-primary;
  578. color: white;
  579. border-color: $ios-primary;
  580. }
  581. &:hover {
  582. opacity: 0.9;
  583. transform: translateY(-1px);
  584. }
  585. }
  586. // 任务详情样式
  587. .task-details-modal {
  588. background-color: $ios-background;
  589. border-radius: $ios-radius-xl;
  590. padding: $ios-spacing-xl;
  591. max-width: 600px;
  592. width: 90%;
  593. max-height: 80vh;
  594. overflow-y: auto;
  595. position: relative;
  596. .modal-header {
  597. display: flex;
  598. justify-content: space-between;
  599. align-items: center;
  600. margin-bottom: $ios-spacing-lg;
  601. padding-bottom: $ios-spacing-md;
  602. border-bottom: 1px solid $ios-border;
  603. h3 {
  604. font-size: $ios-font-size-xl;
  605. font-weight: $ios-font-weight-medium;
  606. color: $ios-text-primary;
  607. margin: 0;
  608. }
  609. .close-button {
  610. background: none;
  611. border: none;
  612. font-size: $ios-font-size-xl;
  613. color: $ios-text-tertiary;
  614. cursor: pointer;
  615. padding: $ios-spacing-xs;
  616. border-radius: $ios-radius-full;
  617. transition: $ios-feedback-tap;
  618. &:hover {
  619. background-color: $ios-background-secondary;
  620. }
  621. }
  622. }
  623. .task-info-section {
  624. margin-bottom: $ios-spacing-lg;
  625. .info-item {
  626. display: flex;
  627. margin-bottom: $ios-spacing-sm;
  628. .info-label {
  629. width: 120px;
  630. color: $ios-text-tertiary;
  631. font-weight: $ios-font-weight-medium;
  632. flex-shrink: 0;
  633. }
  634. .info-value {
  635. flex: 1;
  636. color: $ios-text-primary;
  637. }
  638. }
  639. }
  640. .task-description {
  641. margin-bottom: $ios-spacing-lg;
  642. h4 {
  643. font-size: $ios-font-size-base;
  644. font-weight: $ios-font-weight-medium;
  645. color: $ios-text-primary;
  646. margin: 0 0 $ios-spacing-md 0;
  647. }
  648. p {
  649. color: $ios-text-secondary;
  650. line-height: 1.5;
  651. margin: 0;
  652. }
  653. }
  654. }
  655. // 任务页脚
  656. .task-footer {
  657. display: flex;
  658. justify-content: flex-end;
  659. gap: $ios-spacing-md;
  660. margin-top: $ios-spacing-lg;
  661. padding-top: $ios-spacing-lg;
  662. border-top: 1px solid $ios-border;
  663. .btn {
  664. padding: $ios-spacing-sm $ios-spacing-lg;
  665. border-radius: $ios-radius-md;
  666. font-size: $ios-font-size-sm;
  667. font-weight: $ios-font-weight-medium;
  668. cursor: pointer;
  669. font-family: $ios-font-family;
  670. transition: $ios-feedback-tap;
  671. &.btn-primary {
  672. background-color: $ios-primary;
  673. color: white;
  674. border: none;
  675. &:hover {
  676. background-color: $ios-primary-light;
  677. transform: translateY(-1px);
  678. }
  679. }
  680. &.btn-secondary {
  681. background-color: $ios-background-secondary;
  682. color: $ios-text-primary;
  683. border: 1px solid $ios-border;
  684. &:hover {
  685. background-color: $ios-background;
  686. transform: translateY(-1px);
  687. }
  688. }
  689. &.btn-danger {
  690. background-color: $ios-danger;
  691. color: white;
  692. border: none;
  693. &:hover {
  694. background-color: #FF453A; // 稍微浅一点的红色
  695. transform: translateY(-1px);
  696. }
  697. }
  698. }
  699. }
  700. // 任务操作按钮
  701. .task-operation-buttons {
  702. display: flex;
  703. gap: $ios-spacing-sm;
  704. .btn {
  705. padding: $ios-spacing-xs $ios-spacing-md;
  706. border-radius: $ios-radius-md;
  707. font-size: $ios-font-size-sm;
  708. font-weight: $ios-font-weight-medium;
  709. cursor: pointer;
  710. font-family: $ios-font-family;
  711. transition: $ios-feedback-tap;
  712. &.btn-small {
  713. padding: $ios-spacing-xs $ios-spacing-sm;
  714. font-size: $ios-font-size-xs;
  715. }
  716. }
  717. }
  718. // SOP标签页 - 重写为白色底色蓝色切换效果
  719. .sop-tabs {
  720. margin-bottom: $ios-spacing-lg;
  721. .tab-buttons {
  722. display: flex;
  723. background-color: #ffffff; // 设置底色为白色
  724. border-radius: 12px; // 圆角效果
  725. padding: 4px; // 内边距
  726. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); // 轻微阴影
  727. border: 1px solid #f0f0f0; // 细微边框
  728. margin-bottom: $ios-spacing-lg;
  729. button {
  730. flex: 1; // 按钮平均分配宽度
  731. padding: 12px 16px; // 内边距
  732. background-color: transparent;
  733. border: none;
  734. color: #666666; // 默认文字颜色
  735. font-size: 15px; // 字体大小
  736. font-weight: 500; // 字重
  737. cursor: pointer;
  738. font-family: $ios-font-family;
  739. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  740. position: relative;
  741. text-align: center;
  742. border-radius: 8px; // 按钮圆角
  743. // 文字容器 - 确保文字在最上层
  744. span {
  745. position: relative;
  746. z-index: 10; // 文字层级最高
  747. display: inline-block;
  748. }
  749. // 左侧矩形色块修饰
  750. &::before {
  751. content: '';
  752. position: absolute;
  753. top: 0;
  754. left: 0;
  755. width: 4px;
  756. height: 100%;
  757. background-color: transparent;
  758. transition: background-color 0.3s ease;
  759. z-index: 5;
  760. }
  761. &.active {
  762. color: #ffffff; // 活动状态文字为白色
  763. font-weight: 600; // 活动状态字重
  764. // 左侧蓝色色块
  765. &::before {
  766. background-color: #007aff; // 左侧蓝色色块
  767. }
  768. // 蓝色背景填充 - 直接设置背景色,不使用伪元素和动画
  769. background-color: #007aff;
  770. }
  771. &:hover:not(.active) {
  772. background-color: rgba(0, 122, 255, 0.05); // 轻微蓝色背景
  773. color: #007aff; // 文字变为蓝色
  774. }
  775. // 点击效果
  776. &:active {
  777. transform: scale(0.98);
  778. }
  779. }
  780. }
  781. }
  782. // 标签切换动画
  783. @keyframes tabSlideIn {
  784. 0% {
  785. transform: translateX(100%);
  786. opacity: 0;
  787. }
  788. 100% {
  789. transform: translateX(0);
  790. opacity: 1;
  791. }
  792. }
  793. // SOP内容样式 - 修改为三栏布局
  794. .phase-content {
  795. display: flex; // 使用flex布局
  796. gap: $ios-spacing-lg; // 卡片间距
  797. background-color: transparent; // 移除背景色
  798. padding: 0; // 移除内边距
  799. box-shadow: none; // 移除阴影
  800. border: none; // 移除边框
  801. transform: translateY(0);
  802. transition: all 0.3s ease;
  803. .sop-section {
  804. flex: 1; // 每个卡片占三分之一宽度
  805. background-color: #ffffff; // 白色背景
  806. border-radius: 12px; // 圆角效果
  807. padding: $ios-spacing-lg; // 内边距
  808. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); // 轻微阴影
  809. border: 1px solid #f0f0f0; // 细微边框
  810. margin-bottom: 0; // 移除底部间距
  811. &:hover {
  812. box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); // 悬停时加深阴影
  813. transform: translateY(-2px); // 轻微上浮效果
  814. transition: all 0.3s ease;
  815. }
  816. h3 {
  817. font-size: $ios-font-size-lg;
  818. font-weight: $ios-font-weight-semibold;
  819. color: $ios-text-primary;
  820. margin: 0 0 $ios-spacing-lg 0;
  821. padding-bottom: $ios-spacing-md;
  822. border-bottom: 1px solid $ios-border;
  823. display: flex;
  824. align-items: center;
  825. span {
  826. display: inline-flex;
  827. align-items: center;
  828. justify-content: center;
  829. width: 28px;
  830. height: 28px;
  831. background-color: $ios-primary;
  832. color: white;
  833. border-radius: $ios-radius-full;
  834. font-size: $ios-font-size-sm;
  835. margin-right: $ios-spacing-md;
  836. font-weight: $ios-font-weight-semibold;
  837. }
  838. }
  839. .requirement-list,
  840. .rule-list {
  841. list-style: none;
  842. padding: $ios-spacing-md;
  843. margin: 0 0 $ios-spacing-lg 0;
  844. background-color: rgba(0, 71, 171, 0.03);
  845. border-radius: $ios-radius-lg;
  846. border-left: 3px solid $ios-primary;
  847. li {
  848. position: relative;
  849. padding-left: $ios-spacing-lg;
  850. margin-bottom: $ios-spacing-md;
  851. color: $ios-text-primary;
  852. line-height: 1.6;
  853. &:before {
  854. content: '✓';
  855. position: absolute;
  856. left: 0;
  857. color: $ios-primary;
  858. font-size: $ios-font-size-base;
  859. font-weight: $ios-font-weight-semibold;
  860. line-height: 1;
  861. }
  862. &:last-child {
  863. margin-bottom: 0;
  864. }
  865. }
  866. }
  867. .quality-table {
  868. width: 100%;
  869. border-collapse: collapse;
  870. background-color: $ios-background;
  871. border-radius: $ios-radius-xl;
  872. overflow: hidden;
  873. box-shadow: $ios-shadow-sm;
  874. border: 1px solid $ios-border;
  875. thead {
  876. // iOS风格表格头部
  877. background-color: $ios-background-secondary;
  878. th {
  879. padding: $ios-spacing-lg $ios-spacing-lg;
  880. text-align: left;
  881. font-weight: $ios-font-weight-semibold;
  882. color: $ios-text-secondary;
  883. font-size: $ios-font-size-sm;
  884. border-bottom: 1px solid $ios-border;
  885. letter-spacing: 0.5px;
  886. text-transform: uppercase;
  887. }
  888. }
  889. tbody {
  890. tr {
  891. transition: background-color 0.2s ease;
  892. &:hover {
  893. background-color: rgba(0, 71, 171, 0.03);
  894. }
  895. td {
  896. padding: $ios-spacing-lg $ios-spacing-lg;
  897. border-bottom: 1px solid $ios-border;
  898. color: $ios-text-primary;
  899. // iOS风格表格数据对齐和间距
  900. &:first-child {
  901. font-weight: $ios-font-weight-medium;
  902. }
  903. &:last-child {
  904. font-weight: $ios-font-weight-semibold;
  905. color: $ios-primary;
  906. }
  907. }
  908. &:last-child td {
  909. border-bottom: none;
  910. }
  911. }
  912. }
  913. tbody {
  914. td {
  915. padding: $ios-spacing-lg $ios-spacing-md;
  916. color: $ios-text-primary;
  917. font-size: $ios-font-size-base;
  918. border-bottom: 1px solid $ios-border;
  919. transition: all 0.2s ease;
  920. &:last-child {
  921. text-align: center;
  922. }
  923. }
  924. tr:last-child td {
  925. border-bottom: none;
  926. }
  927. tr {
  928. transition: all 0.3s ease;
  929. &:hover {
  930. background-color: $ios-background-secondary;
  931. transform: translateX(4px);
  932. }
  933. }
  934. }
  935. }
  936. .table-header {
  937. display: flex;
  938. justify-content: space-between;
  939. align-items: center;
  940. margin-bottom: $ios-spacing-md;
  941. h4 {
  942. font-size: $ios-font-size-base;
  943. font-weight: $ios-font-weight-medium;
  944. color: $ios-text-primary;
  945. margin: 0;
  946. }
  947. }
  948. }
  949. }
  950. // 审核任务列表
  951. .audit-task-list {
  952. display: grid;
  953. grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  954. gap: $ios-spacing-xl;
  955. .audit-task-item {
  956. padding: $ios-spacing-lg;
  957. border-radius: $ios-radius-xl;
  958. background-color: $ios-background;
  959. border: 1px solid $ios-border;
  960. box-shadow: $ios-shadow-md;
  961. transition: all 0.3s ease;
  962. overflow: hidden;
  963. position: relative;
  964. &:hover {
  965. box-shadow: $ios-shadow-lg;
  966. transform: translateY(-4px);
  967. }
  968. &.priority-high {
  969. border-left: 4px solid $ios-danger;
  970. }
  971. &.priority-medium {
  972. border-left: 4px solid $ios-warning;
  973. }
  974. &.priority-low {
  975. border-left: 4px solid $ios-success;
  976. }
  977. .task-header {
  978. display: flex;
  979. justify-content: space-between;
  980. align-items: flex-start;
  981. margin-bottom: $ios-spacing-md;
  982. h4 {
  983. font-size: $ios-font-size-base;
  984. font-weight: $ios-font-weight-semibold;
  985. color: $ios-text-primary;
  986. margin: 0 0 $ios-spacing-xs 0;
  987. flex: 1;
  988. margin-right: $ios-spacing-md;
  989. line-height: 1.4;
  990. }
  991. .task-meta {
  992. display: flex;
  993. flex-direction: column;
  994. align-items: flex-end;
  995. gap: $ios-spacing-xs;
  996. }
  997. .task-status {
  998. font-size: $ios-font-size-xs;
  999. padding: 4px $ios-spacing-sm;
  1000. border-radius: $ios-radius-full;
  1001. font-weight: $ios-font-weight-medium;
  1002. white-space: nowrap;
  1003. text-transform: uppercase;
  1004. letter-spacing: 0.5px;
  1005. }
  1006. .status-pending {
  1007. background-color: rgba(255, 149, 0, 0.15);
  1008. color: $ios-warning;
  1009. }
  1010. .status-completed {
  1011. background-color: rgba(52, 199, 89, 0.15);
  1012. color: $ios-success;
  1013. }
  1014. .status-rejected {
  1015. background-color: rgba(255, 59, 48, 0.15);
  1016. color: $ios-danger;
  1017. }
  1018. .priority-badge {
  1019. font-size: $ios-font-size-xs;
  1020. padding: 2px $ios-spacing-xs;
  1021. border-radius: $ios-radius-sm;
  1022. font-weight: $ios-font-weight-medium;
  1023. white-space: nowrap;
  1024. &.high {
  1025. background-color: rgba(255, 59, 48, 0.1);
  1026. color: $ios-danger;
  1027. }
  1028. &.medium {
  1029. background-color: rgba(255, 149, 0, 0.1);
  1030. color: $ios-warning;
  1031. }
  1032. &.low {
  1033. background-color: rgba(52, 199, 89, 0.1);
  1034. color: $ios-success;
  1035. }
  1036. }
  1037. }
  1038. .task-details {
  1039. font-size: $ios-font-size-sm;
  1040. color: $ios-text-secondary;
  1041. margin-bottom: $ios-spacing-lg;
  1042. padding: $ios-spacing-md;
  1043. background-color: $ios-background-secondary;
  1044. border-radius: $ios-radius-md;
  1045. .detail-item {
  1046. display: flex;
  1047. justify-content: space-between;
  1048. align-items: center;
  1049. margin-bottom: $ios-spacing-sm;
  1050. padding-bottom: $ios-spacing-sm;
  1051. border-bottom: 1px solid $ios-border;
  1052. &:last-child {
  1053. margin-bottom: 0;
  1054. padding-bottom: 0;
  1055. border-bottom: none;
  1056. }
  1057. .detail-label {
  1058. font-weight: $ios-font-weight-medium;
  1059. color: $ios-text-tertiary;
  1060. flex-shrink: 0;
  1061. }
  1062. .detail-value {
  1063. font-weight: $ios-font-weight-medium;
  1064. color: $ios-text-primary;
  1065. text-align: right;
  1066. }
  1067. .score {
  1068. font-size: $ios-font-size-base;
  1069. font-weight: $ios-font-weight-semibold;
  1070. color: $ios-primary;
  1071. }
  1072. }
  1073. }
  1074. .task-comments {
  1075. margin-bottom: $ios-spacing-lg;
  1076. padding: $ios-spacing-md;
  1077. background-color: rgba(0, 71, 171, 0.03);
  1078. border-radius: $ios-radius-md;
  1079. border-left: 3px solid $ios-primary;
  1080. .comments-label {
  1081. font-size: $ios-font-size-sm;
  1082. font-weight: $ios-font-weight-medium;
  1083. color: $ios-text-secondary;
  1084. margin-bottom: $ios-spacing-xs;
  1085. }
  1086. .comment-text {
  1087. font-size: $ios-font-size-sm;
  1088. color: $ios-text-primary;
  1089. line-height: 1.5;
  1090. }
  1091. }
  1092. .task-actions {
  1093. display: flex;
  1094. justify-content: flex-end;
  1095. gap: $ios-spacing-sm;
  1096. padding-top: $ios-spacing-md;
  1097. border-top: 1px solid $ios-border;
  1098. }
  1099. .btn {
  1100. padding: $ios-spacing-sm $ios-spacing-lg;
  1101. border-radius: $ios-radius-md;
  1102. font-size: $ios-font-size-sm;
  1103. border: 1px solid $ios-border;
  1104. background-color: transparent;
  1105. color: $ios-text-primary;
  1106. cursor: pointer;
  1107. font-family: $ios-font-family;
  1108. font-weight: $ios-font-weight-medium;
  1109. transition: all 0.3s ease;
  1110. position: relative;
  1111. overflow: hidden;
  1112. &::before {
  1113. content: '';
  1114. position: absolute;
  1115. top: 50%;
  1116. left: 50%;
  1117. width: 0;
  1118. height: 0;
  1119. border-radius: $ios-radius-full;
  1120. background-color: rgba(0, 0, 0, 0.1);
  1121. transform: translate(-50%, -50%);
  1122. transition: all 0.3s ease;
  1123. }
  1124. &:hover::before {
  1125. width: 100px;
  1126. height: 100px;
  1127. }
  1128. &.btn-primary {
  1129. background-color: $ios-primary;
  1130. color: white;
  1131. border-color: $ios-primary;
  1132. &::before {
  1133. background-color: rgba(255, 255, 255, 0.2);
  1134. }
  1135. }
  1136. &.btn-success {
  1137. background-color: $ios-success;
  1138. color: white;
  1139. border-color: $ios-success;
  1140. &::before {
  1141. background-color: rgba(255, 255, 255, 0.2);
  1142. }
  1143. }
  1144. &.btn-warning {
  1145. background-color: $ios-warning;
  1146. color: white;
  1147. border-color: $ios-warning;
  1148. &::before {
  1149. background-color: rgba(255, 255, 255, 0.2);
  1150. }
  1151. }
  1152. &:hover {
  1153. opacity: 0.9;
  1154. transform: translateY(-2px);
  1155. }
  1156. }
  1157. }
  1158. }
  1159. // 导出按钮样式
  1160. .btn-export {
  1161. padding: $ios-spacing-sm $ios-spacing-lg;
  1162. background-color: $ios-primary;
  1163. color: white;
  1164. border: none;
  1165. border-radius: $ios-radius-md;
  1166. font-size: $ios-font-size-sm;
  1167. font-weight: $ios-font-weight-semibold;
  1168. cursor: pointer;
  1169. font-family: $ios-font-family;
  1170. transition: all 0.3s ease;
  1171. display: inline-flex;
  1172. align-items: center;
  1173. gap: $ios-spacing-xs;
  1174. position: relative;
  1175. overflow: hidden;
  1176. &::before {
  1177. content: '';
  1178. position: absolute;
  1179. top: 50%;
  1180. left: 50%;
  1181. width: 0;
  1182. height: 0;
  1183. border-radius: $ios-radius-full;
  1184. background-color: rgba(255, 255, 255, 0.2);
  1185. transform: translate(-50%, -50%);
  1186. transition: all 0.3s ease;
  1187. }
  1188. &:hover {
  1189. background-color: $ios-primary-light;
  1190. transform: translateY(-2px);
  1191. }
  1192. &:hover::before {
  1193. width: 100px;
  1194. height: 100px;
  1195. }
  1196. }
  1197. // 状态徽章优化
  1198. .status-badge {
  1199. display: inline-flex;
  1200. align-items: center;
  1201. padding: 4px $ios-spacing-sm;
  1202. border-radius: $ios-radius-full;
  1203. font-size: $ios-font-size-xs;
  1204. font-weight: $ios-font-weight-medium;
  1205. text-transform: uppercase;
  1206. letter-spacing: 0.5px;
  1207. transition: all 0.3s ease;
  1208. &.status-approved {
  1209. background-color: rgba(52, 199, 89, 0.15);
  1210. color: $ios-success;
  1211. }
  1212. &.status-pending {
  1213. background-color: rgba(255, 149, 0, 0.15);
  1214. color: $ios-warning;
  1215. }
  1216. &.status-rejected {
  1217. background-color: rgba(255, 59, 48, 0.15);
  1218. color: $ios-danger;
  1219. }
  1220. &.status-processing {
  1221. background-color: rgba(0, 71, 171, 0.15);
  1222. color: $ios-primary;
  1223. }
  1224. &:hover {
  1225. transform: scale(1.05);
  1226. }
  1227. }
  1228. // 进度条样式
  1229. .progress-bar {
  1230. height: 8px;
  1231. background-color: $ios-background-secondary;
  1232. border-radius: $ios-radius-full;
  1233. overflow: hidden;
  1234. margin: $ios-spacing-md 0;
  1235. position: relative;
  1236. .progress-fill {
  1237. height: 100%;
  1238. background: linear-gradient(90deg, $ios-primary 0%, $ios-primary-light 100%);
  1239. border-radius: $ios-radius-full;
  1240. transition: width 0.5s ease;
  1241. position: relative;
  1242. overflow: hidden;
  1243. &::after {
  1244. content: '';
  1245. position: absolute;
  1246. top: 0;
  1247. left: 0;
  1248. right: 0;
  1249. bottom: 0;
  1250. background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  1251. animation: shimmer 2s infinite;
  1252. }
  1253. }
  1254. }
  1255. // 动画效果
  1256. @keyframes shimmer {
  1257. 0% {
  1258. transform: translateX(-100%);
  1259. }
  1260. 100% {
  1261. transform: translateX(100%);
  1262. }
  1263. }
  1264. // 卡片悬停效果增强
  1265. .card-hover {
  1266. transition: all 0.3s ease;
  1267. &:hover {
  1268. transform: translateY(-4px);
  1269. box-shadow: $ios-shadow-lg;
  1270. }
  1271. }
  1272. // 列表项增强
  1273. .list-item-enhanced {
  1274. transition: all 0.2s ease;
  1275. &:hover {
  1276. background-color: $ios-background-secondary;
  1277. transform: translateX(4px);
  1278. }
  1279. }
  1280. /* 响应式设计 */
  1281. @media (max-width: 768px) {
  1282. .quality-management-main {
  1283. padding: $ios-spacing-md;
  1284. }
  1285. .section-header {
  1286. flex-direction: column;
  1287. align-items: flex-start;
  1288. gap: $ios-spacing-md;
  1289. h2 {
  1290. &::before {
  1291. display: none;
  1292. }
  1293. }
  1294. }
  1295. .search-filter {
  1296. width: 100%;
  1297. flex-direction: column;
  1298. input,
  1299. select {
  1300. flex: 1;
  1301. width: 100%;
  1302. }
  1303. }
  1304. .sop-tabs .tab-buttons {
  1305. overflow-x: auto;
  1306. -webkit-overflow-scrolling: touch;
  1307. scrollbar-width: none;
  1308. &::-webkit-scrollbar {
  1309. display: none;
  1310. }
  1311. }
  1312. .task-details .detail-item {
  1313. flex-direction: column;
  1314. .label {
  1315. width: auto;
  1316. margin-bottom: $ios-spacing-xs;
  1317. }
  1318. }
  1319. .training-content {
  1320. flex-direction: column;
  1321. }
  1322. .video-item {
  1323. flex-direction: column;
  1324. .video-thumbnail {
  1325. width: 100%;
  1326. height: auto;
  1327. aspect-ratio: 16/9;
  1328. }
  1329. }
  1330. .rectification-list {
  1331. grid-template-columns: 1fr;
  1332. }
  1333. .quality-table {
  1334. display: block;
  1335. overflow-x: auto;
  1336. thead {
  1337. white-space: nowrap;
  1338. }
  1339. tbody {
  1340. td {
  1341. white-space: nowrap;
  1342. }
  1343. }
  1344. }
  1345. }
  1346. // 质量整改跟踪板块 - 搜索和筛选样式
  1347. .rectification-section {
  1348. .section-header {
  1349. display: flex;
  1350. justify-content: space-between;
  1351. align-items: center;
  1352. margin-bottom: $ios-spacing-xl;
  1353. }
  1354. .search-filter {
  1355. display: flex;
  1356. align-items: center;
  1357. gap: $ios-spacing-md;
  1358. padding: $ios-spacing-sm $ios-spacing-md;
  1359. background-color: $ios-background;
  1360. border: 1px solid $ios-border;
  1361. border-radius: $ios-radius-lg;
  1362. box-shadow: $ios-shadow-sm;
  1363. }
  1364. .search-filter input {
  1365. flex: 1;
  1366. padding: $ios-spacing-sm $ios-spacing-md;
  1367. border: 1px solid $ios-border;
  1368. border-radius: $ios-radius-md;
  1369. font-size: $ios-font-size-sm;
  1370. color: $ios-text-primary;
  1371. background-color: $ios-background-secondary;
  1372. font-family: $ios-font-family;
  1373. transition: all 0.2s ease;
  1374. min-width: 200px;
  1375. }
  1376. .search-filter input:focus {
  1377. outline: none;
  1378. border-color: $ios-primary;
  1379. background-color: white;
  1380. box-shadow: 0 0 0 2px rgba(0, 71, 171, 0.1);
  1381. }
  1382. .search-filter select {
  1383. padding: $ios-spacing-sm $ios-spacing-md;
  1384. border: 1px solid $ios-border;
  1385. border-radius: $ios-radius-md;
  1386. font-size: $ios-font-size-sm;
  1387. color: $ios-text-primary;
  1388. background-color: $ios-background-secondary;
  1389. font-family: $ios-font-family;
  1390. cursor: pointer;
  1391. transition: all 0.2s ease;
  1392. min-width: 120px;
  1393. -webkit-appearance: none;
  1394. -moz-appearance: none;
  1395. appearance: none;
  1396. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%238E8E93" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  1397. background-repeat: no-repeat;
  1398. background-position: right $ios-spacing-md center;
  1399. background-size: 16px;
  1400. padding-right: $ios-spacing-lg;
  1401. }
  1402. .search-filter select:focus {
  1403. outline: none;
  1404. border-color: $ios-primary;
  1405. background-color: white;
  1406. box-shadow: 0 0 0 2px rgba(0, 71, 171, 0.1);
  1407. }
  1408. .search-filter select::-ms-expand {
  1409. display: none;
  1410. }
  1411. // 整改任务列表样式
  1412. .rectification-list {
  1413. display: grid;
  1414. grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  1415. gap: $ios-spacing-xl;
  1416. }
  1417. // 整改任务卡片样式 - 现代感边缘优化
  1418. .rectification-item {
  1419. padding: $ios-spacing-lg;
  1420. border-radius: $ios-radius-xl;
  1421. background-color: $ios-background;
  1422. border: 1px solid $ios-border;
  1423. box-shadow: $ios-shadow-md;
  1424. transition: all 0.3s ease;
  1425. overflow: hidden;
  1426. position: relative;
  1427. // 添加现代感边缘光晕效果
  1428. box-shadow:
  1429. 0 4px 6px rgba(0, 0, 0, 0.05),
  1430. 0 1px 3px rgba(0, 0, 0, 0.1),
  1431. 0 0 0 1px rgba(0, 71, 171, 0.03);
  1432. // 悬停效果增强
  1433. &:hover {
  1434. box-shadow:
  1435. 0 10px 15px -3px rgba(0, 0, 0, 0.08),
  1436. 0 4px 6px -2px rgba(0, 0, 0, 0.04),
  1437. 0 0 0 2px rgba(0, 71, 171, 0.07);
  1438. transform: translateY(-2px);
  1439. }
  1440. // 高优先级任务特殊边缘样式
  1441. &.priority-high {
  1442. border-left: 4px solid $ios-danger;
  1443. // 添加红色边缘发光效果
  1444. box-shadow:
  1445. 0 4px 6px rgba(0, 0, 0, 0.05),
  1446. 0 1px 3px rgba(0, 0, 0, 0.1),
  1447. 0 0 0 1px rgba(255, 59, 48, 0.05),
  1448. inset 0 0 0 1px rgba(255, 59, 48, 0.1);
  1449. }
  1450. &.priority-medium {
  1451. border-left: 4px solid $ios-warning;
  1452. // 添加黄色边缘发光效果
  1453. box-shadow:
  1454. 0 4px 6px rgba(0, 0, 0, 0.05),
  1455. 0 1px 3px rgba(0, 0, 0, 0.1),
  1456. 0 0 0 1px rgba(255, 149, 0, 0.05),
  1457. inset 0 0 0 1px rgba(255, 149, 0, 0.1);
  1458. }
  1459. &.priority-low {
  1460. border-left: 4px solid $ios-success;
  1461. // 添加绿色边缘发光效果
  1462. box-shadow:
  1463. 0 4px 6px rgba(0, 0, 0, 0.05),
  1464. 0 1px 3px rgba(0, 0, 0, 0.1),
  1465. 0 0 0 1px rgba(52, 199, 89, 0.05),
  1466. inset 0 0 0 1px rgba(52, 199, 89, 0.1);
  1467. }
  1468. }
  1469. // 卡片头部样式
  1470. .rectification-header {
  1471. display: flex;
  1472. justify-content: space-between;
  1473. align-items: flex-start;
  1474. margin-bottom: $ios-spacing-md;
  1475. h4 {
  1476. font-size: $ios-font-size-base;
  1477. font-weight: $ios-font-weight-semibold;
  1478. color: $ios-text-primary;
  1479. margin: 0;
  1480. line-height: 1.4;
  1481. }
  1482. }
  1483. // 状态标签样式
  1484. .rectification-status {
  1485. font-size: $ios-font-size-xs;
  1486. padding: 4px $ios-spacing-sm;
  1487. border-radius: $ios-radius-full;
  1488. font-weight: $ios-font-weight-medium;
  1489. white-space: nowrap;
  1490. text-transform: uppercase;
  1491. letter-spacing: 0.5px;
  1492. }
  1493. }
  1494. // iOS风格滚动条
  1495. ::-webkit-scrollbar {
  1496. width: $ios-scrollbar-width;
  1497. }
  1498. ::-webkit-scrollbar-track {
  1499. background: $ios-scrollbar-track;
  1500. }
  1501. ::-webkit-scrollbar-thumb {
  1502. background: $ios-scrollbar-thumb;
  1503. border-radius: $ios-radius-full;
  1504. }
  1505. ::-webkit-scrollbar-thumb:hover {
  1506. background: $ios-scrollbar-thumb-hover;
  1507. }
  1508. // 能力提升工具板块样式 - 优化版
  1509. .section-description {
  1510. font-size: $ios-font-size-sm;
  1511. color: $ios-text-secondary;
  1512. margin-top: $ios-spacing-xs;
  1513. margin-bottom: 0;
  1514. }
  1515. .section-subheader {
  1516. display: flex;
  1517. justify-content: space-between;
  1518. align-items: center;
  1519. margin-bottom: $ios-spacing-lg;
  1520. h3 {
  1521. font-size: $ios-font-size-lg;
  1522. font-weight: $ios-font-weight-medium;
  1523. color: $ios-text-primary;
  1524. margin: 0;
  1525. }
  1526. .btn-view-all {
  1527. padding: $ios-spacing-xs $ios-spacing-md;
  1528. font-size: $ios-font-size-sm;
  1529. color: $ios-primary;
  1530. background-color: transparent;
  1531. border: 1px solid $ios-border;
  1532. border-radius: $ios-radius-md;
  1533. cursor: pointer;
  1534. transition: all 0.2s ease;
  1535. &:hover {
  1536. background-color: $ios-primary-light;
  1537. }
  1538. }
  1539. }
  1540. // 视频教程样式
  1541. .video-grid {
  1542. display: grid;
  1543. grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  1544. gap: $ios-spacing-lg;
  1545. }
  1546. .video-card {
  1547. background-color: $ios-background;
  1548. border-radius: $ios-radius-lg;
  1549. overflow: hidden;
  1550. border: 1px solid $ios-border;
  1551. box-shadow: $ios-shadow-sm;
  1552. transition: all 0.3s ease;
  1553. cursor: pointer;
  1554. &:hover {
  1555. box-shadow: $ios-shadow-md;
  1556. transform: translateY(-2px);
  1557. }
  1558. }
  1559. .video-thumbnail-container {
  1560. position: relative;
  1561. overflow: hidden;
  1562. }
  1563. .video-thumbnail {
  1564. position: relative;
  1565. width: 100%;
  1566. aspect-ratio: 16/9;
  1567. overflow: hidden;
  1568. .thumbnail-img {
  1569. width: 100%;
  1570. height: 100%;
  1571. object-fit: cover;
  1572. transition: transform 0.3s ease;
  1573. }
  1574. &:hover .thumbnail-img {
  1575. transform: scale(1.05);
  1576. }
  1577. }
  1578. .video-duration {
  1579. position: absolute;
  1580. bottom: $ios-spacing-sm;
  1581. right: $ios-spacing-sm;
  1582. background-color: rgba(0, 0, 0, 0.7);
  1583. color: white;
  1584. padding: $ios-spacing-xs $ios-spacing-sm;
  1585. border-radius: $ios-radius-full;
  1586. font-size: $ios-font-size-xs;
  1587. }
  1588. .play-overlay {
  1589. position: absolute;
  1590. top: 0;
  1591. left: 0;
  1592. right: 0;
  1593. bottom: 0;
  1594. background-color: rgba(0, 0, 0, 0.2);
  1595. display: flex;
  1596. align-items: center;
  1597. justify-content: center;
  1598. opacity: 0;
  1599. transition: opacity 0.2s ease;
  1600. &.visible {
  1601. opacity: 1;
  1602. }
  1603. }
  1604. .play-button {
  1605. background: transparent;
  1606. border: none;
  1607. cursor: pointer;
  1608. transition: transform 0.2s ease;
  1609. &:hover {
  1610. transform: scale(1.1);
  1611. }
  1612. }
  1613. .video-info {
  1614. padding: $ios-spacing-md;
  1615. }
  1616. .category-badge {
  1617. display: inline-block;
  1618. background-color: $ios-primary-light;
  1619. color: $ios-primary;
  1620. padding: 2px $ios-spacing-sm;
  1621. border-radius: $ios-radius-full;
  1622. font-size: $ios-font-size-xs;
  1623. margin-bottom: $ios-spacing-sm;
  1624. }
  1625. .video-title {
  1626. font-size: $ios-font-size-base;
  1627. font-weight: $ios-font-weight-medium;
  1628. color: $ios-text-primary;
  1629. margin: 0 0 $ios-spacing-sm 0;
  1630. line-height: 1.4;
  1631. display: -webkit-box;
  1632. -webkit-line-clamp: 2;
  1633. -webkit-box-orient: vertical;
  1634. line-clamp: 2;
  1635. overflow: hidden;
  1636. }
  1637. .video-description {
  1638. font-size: $ios-font-size-sm;
  1639. color: $ios-text-secondary;
  1640. margin: 0 0 $ios-spacing-sm 0;
  1641. line-height: 1.4;
  1642. display: -webkit-box;
  1643. -webkit-line-clamp: 2;
  1644. -webkit-box-orient: vertical;
  1645. line-clamp: 2;
  1646. overflow: hidden;
  1647. }
  1648. .video-meta {
  1649. display: flex;
  1650. justify-content: space-between;
  1651. align-items: center;
  1652. font-size: $ios-font-size-xs;
  1653. color: $ios-text-tertiary;
  1654. }
  1655. // 实践作业样式
  1656. .assignment-stats {
  1657. display: flex;
  1658. gap: $ios-spacing-md;
  1659. .stat {
  1660. font-size: $ios-font-size-sm;
  1661. color: $ios-text-secondary;
  1662. background-color: $ios-background-secondary;
  1663. padding: $ios-spacing-xs $ios-spacing-sm;
  1664. border-radius: $ios-radius-full;
  1665. }
  1666. }
  1667. .assignment-card {
  1668. background-color: $ios-background;
  1669. border-radius: $ios-radius-lg;
  1670. padding: $ios-spacing-lg;
  1671. border: 1px solid $ios-border;
  1672. box-shadow: $ios-shadow-sm;
  1673. margin-bottom: $ios-spacing-md;
  1674. transition: all 0.2s ease;
  1675. &:hover {
  1676. box-shadow: $ios-shadow-md;
  1677. }
  1678. }
  1679. .assignment-header {
  1680. display: flex;
  1681. justify-content: space-between;
  1682. align-items: flex-start;
  1683. margin-bottom: $ios-spacing-md;
  1684. }
  1685. .assignment-title-section {
  1686. flex: 1;
  1687. margin-right: $ios-spacing-md;
  1688. h4 {
  1689. font-size: $ios-font-size-base;
  1690. font-weight: $ios-font-weight-medium;
  1691. color: $ios-text-primary;
  1692. margin: 0 0 $ios-spacing-xs 0;
  1693. }
  1694. .assignment-badges {
  1695. display: flex;
  1696. gap: $ios-spacing-xs;
  1697. .badge {
  1698. font-size: $ios-font-size-xs;
  1699. padding: 2px $ios-spacing-xs;
  1700. border-radius: $ios-radius-sm;
  1701. &.related-sop {
  1702. background-color: $ios-background-secondary;
  1703. color: $ios-text-secondary;
  1704. }
  1705. }
  1706. }
  1707. }
  1708. .status-badge {
  1709. font-size: $ios-font-size-xs;
  1710. padding: $ios-spacing-xs $ios-spacing-sm;
  1711. border-radius: $ios-radius-full;
  1712. font-weight: $ios-font-weight-medium;
  1713. white-space: nowrap;
  1714. &.status-pending {
  1715. background-color: rgba($ios-warning, 0.1);
  1716. color: $ios-warning;
  1717. }
  1718. &.status-processing {
  1719. background-color: rgba($ios-info, 0.1);
  1720. color: $ios-info;
  1721. }
  1722. &.status-review {
  1723. background-color: $ios-primary-light;
  1724. color: $ios-primary;
  1725. }
  1726. &.status-completed {
  1727. background-color: rgba($ios-success, 0.1);
  1728. color: $ios-success;
  1729. }
  1730. }
  1731. .assignment-details {
  1732. margin-bottom: $ios-spacing-md;
  1733. }
  1734. .assignment-meta {
  1735. display: flex;
  1736. gap: $ios-spacing-lg;
  1737. margin-top: $ios-spacing-sm;
  1738. }
  1739. .meta-item {
  1740. display: flex;
  1741. align-items: center;
  1742. gap: $ios-spacing-xs;
  1743. font-size: $ios-font-size-sm;
  1744. color: $ios-text-secondary;
  1745. &.score-item {
  1746. color: $ios-primary;
  1747. }
  1748. }
  1749. .assignment-actions {
  1750. display: flex;
  1751. justify-content: flex-end;
  1752. gap: $ios-spacing-md;
  1753. .btn-primary,
  1754. .btn-secondary {
  1755. display: flex;
  1756. align-items: center;
  1757. gap: $ios-spacing-xs;
  1758. padding: $ios-spacing-sm $ios-spacing-md;
  1759. border-radius: $ios-radius-md;
  1760. font-size: $ios-font-size-sm;
  1761. font-weight: $ios-font-weight-medium;
  1762. cursor: pointer;
  1763. transition: all 0.2s ease;
  1764. border: none;
  1765. }
  1766. .btn-primary {
  1767. background-color: $ios-primary;
  1768. color: white;
  1769. &:hover {
  1770. background-color: #003A8C; // 比$ios-primary稍深的蓝色
  1771. }
  1772. }
  1773. .btn-secondary {
  1774. background-color: $ios-background-secondary;
  1775. color: $ios-text-primary;
  1776. &:hover {
  1777. background-color: $ios-border;
  1778. }
  1779. }
  1780. }