project-detail.component.scss 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421
  1. // 项目详情核心组件样式
  2. // CSS Variables
  3. :host {
  4. --primary-color: #3880ff;
  5. --primary-rgb: 56, 128, 255;
  6. --secondary-color: #0cd1e8;
  7. --tertiary-color: #7044ff;
  8. --success-color: #2dd36f;
  9. --warning-color: #ffc409;
  10. --danger-color: #eb445a;
  11. --dark-color: #222428;
  12. --medium-color: #92949c;
  13. --light-color: #f4f5f8;
  14. --light-shade: #d7d8da;
  15. --white: #ffffff;
  16. }
  17. // Header Container
  18. .header {
  19. position: sticky;
  20. top: 0;
  21. z-index: 10;
  22. background: var(--white);
  23. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  24. }
  25. // Toolbar
  26. .toolbar {
  27. display: flex;
  28. align-items: center;
  29. justify-content: space-between;
  30. min-height: 56px;
  31. padding: 0 16px;
  32. background: var(--white);
  33. border-bottom: 1px solid var(--light-shade);
  34. .buttons-start,
  35. .buttons-end {
  36. display: flex;
  37. align-items: center;
  38. gap: 8px;
  39. flex-shrink: 0;
  40. }
  41. .title {
  42. flex: 1;
  43. font-size: 20px;
  44. font-weight: 600;
  45. color: var(--dark-color);
  46. text-align: center;
  47. padding: 0 16px;
  48. white-space: nowrap;
  49. overflow: hidden;
  50. text-overflow: ellipsis;
  51. }
  52. .back-button,
  53. .icon-button {
  54. display: flex;
  55. align-items: center;
  56. justify-content: center;
  57. width: 40px;
  58. height: 40px;
  59. border: none;
  60. background: transparent;
  61. border-radius: 50%;
  62. cursor: pointer;
  63. transition: background-color 0.2s;
  64. padding: 0;
  65. &:hover {
  66. background-color: rgba(var(--primary-color), 0.1);
  67. }
  68. &:active {
  69. background-color: rgba(var(--primary-color), 0.2);
  70. }
  71. .icon {
  72. width: 24px;
  73. height: 24px;
  74. color: var(--primary-color);
  75. }
  76. }
  77. }
  78. // 阶段导航工具栏
  79. .stage-toolbar {
  80. background: var(--white);
  81. border-bottom: 1px solid var(--light-shade);
  82. padding: 12px 0;
  83. .stage-navigation {
  84. display: flex;
  85. align-items: center;
  86. justify-content: space-between;
  87. padding: 0 16px;
  88. max-width: 100%;
  89. overflow-x: auto;
  90. -webkit-overflow-scrolling: touch;
  91. &::-webkit-scrollbar {
  92. display: none;
  93. }
  94. .stage-item {
  95. display: flex;
  96. flex-direction: column;
  97. align-items: center;
  98. gap: 4px;
  99. cursor: pointer;
  100. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  101. flex-shrink: 0;
  102. min-width: 60px;
  103. position: relative;
  104. // 悬停效果
  105. &.clickable:hover {
  106. transform: translateY(-2px);
  107. .stage-circle {
  108. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  109. }
  110. }
  111. &.clickable:active {
  112. transform: translateY(0);
  113. }
  114. .stage-circle {
  115. width: 36px;
  116. height: 36px;
  117. border-radius: 50%;
  118. display: flex;
  119. align-items: center;
  120. justify-content: center;
  121. font-weight: 600;
  122. font-size: 14px;
  123. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  124. border: 2px solid var(--light-shade);
  125. background-color: var(--white);
  126. color: var(--medium-color);
  127. position: relative;
  128. z-index: 2;
  129. .stage-number {
  130. font-weight: 600;
  131. font-size: 14px;
  132. }
  133. .icon {
  134. width: 20px;
  135. height: 20px;
  136. &.checkmark {
  137. animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  138. }
  139. }
  140. }
  141. .stage-label {
  142. font-size: 11px;
  143. color: var(--medium-color);
  144. text-align: center;
  145. white-space: nowrap;
  146. transition: all 0.3s;
  147. font-weight: 500;
  148. }
  149. // 已完成状态(绿色)- 参考设计师端
  150. &.completed {
  151. .stage-circle {
  152. background: linear-gradient(135deg, #2dd36f 0%, #28ba62 100%);
  153. border-color: var(--success-color);
  154. color: var(--white);
  155. box-shadow: 0 2px 8px rgba(45, 211, 111, 0.3);
  156. }
  157. .stage-label {
  158. color: var(--success-color);
  159. font-weight: 600;
  160. }
  161. }
  162. // 当前阶段(红色)- 参考设计师端
  163. &.active {
  164. .stage-circle {
  165. background: linear-gradient(135deg, #eb445a 0%, #d33850 100%);
  166. border-color: var(--danger-color);
  167. color: var(--white);
  168. box-shadow: 0 0 0 4px rgba(235, 68, 90, 0.2),
  169. 0 4px 12px rgba(235, 68, 90, 0.4);
  170. transform: scale(1.15);
  171. animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  172. }
  173. .stage-label {
  174. color: var(--danger-color);
  175. font-weight: 700;
  176. }
  177. }
  178. // 待开始状态(灰色,可点击查看)
  179. &.pending {
  180. opacity: 0.7; // 半透明提示这是预览模式
  181. .stage-circle {
  182. background-color: var(--white);
  183. border-color: var(--light-shade);
  184. color: var(--medium-color);
  185. }
  186. .stage-label {
  187. color: var(--medium-color);
  188. }
  189. // 悬停效果稍弱,提示可以查看但未开始
  190. &.clickable:hover {
  191. opacity: 1;
  192. transform: translateY(-1px); // 比已完成的悬停效果弱一些
  193. .stage-circle {
  194. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); // 比已完成的阴影弱
  195. }
  196. }
  197. }
  198. }
  199. // 脉冲动画(当前阶段)
  200. @keyframes pulse {
  201. 0%, 100% {
  202. box-shadow: 0 0 0 4px rgba(235, 68, 90, 0.2),
  203. 0 4px 12px rgba(235, 68, 90, 0.4);
  204. }
  205. 50% {
  206. box-shadow: 0 0 0 8px rgba(235, 68, 90, 0.1),
  207. 0 4px 16px rgba(235, 68, 90, 0.5);
  208. }
  209. }
  210. // 完成图标缩放动画
  211. @keyframes scaleIn {
  212. 0% {
  213. transform: scale(0);
  214. opacity: 0;
  215. }
  216. 50% {
  217. transform: scale(1.2);
  218. }
  219. 100% {
  220. transform: scale(1);
  221. opacity: 1;
  222. }
  223. }
  224. .stage-connector {
  225. flex: 1;
  226. height: 2px;
  227. background-color: var(--light-shade);
  228. margin: 0 8px;
  229. margin-bottom: 20px;
  230. transition: background-color 0.3s;
  231. min-width: 20px;
  232. &.completed {
  233. background-color: var(--success-color);
  234. }
  235. }
  236. }
  237. }
  238. // Content Container
  239. .content {
  240. position: relative;
  241. width: 100%;
  242. height: calc(100vh - 80px); // 减去阶段导航工具栏的高度,为底部卡片留空间
  243. overflow-y: auto;
  244. overflow-x: hidden;
  245. -webkit-overflow-scrolling: touch;
  246. background-color: var(--light-color);
  247. }
  248. /* 可折叠的项目基本信息卡片 */
  249. .project-info-card {
  250. background: #fff;
  251. border-radius: 12px;
  252. box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  253. margin-bottom: 12px;
  254. .project-info-header {
  255. display: flex;
  256. align-items: center;
  257. justify-content: space-between;
  258. padding: 12px 16px;
  259. cursor: pointer;
  260. .title {
  261. display: flex;
  262. align-items: center;
  263. gap: 8px;
  264. font-weight: 600;
  265. color: #222;
  266. }
  267. .actions {
  268. display: flex;
  269. align-items: center;
  270. gap: 6px;
  271. color: #666;
  272. .arrow { transition: transform .2s ease; }
  273. .arrow.up { transform: rotate(180deg); }
  274. }
  275. .icon { width: 18px; height: 18px; }
  276. }
  277. .project-info-content {
  278. padding: 12px 16px 16px;
  279. .info-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
  280. .info-item { background:#f7f7f8; border-radius:8px; padding:10px 12px; display:flex; flex-direction:column; gap:4px; }
  281. .label { font-size:12px; color:#888; }
  282. .value { font-size:14px; color:#222; font-weight:600; }
  283. }
  284. }
  285. // 加载和错误容器
  286. .loading-container,
  287. .error-container {
  288. display: flex;
  289. flex-direction: column;
  290. align-items: center;
  291. justify-content: center;
  292. min-height: 60vh;
  293. padding: 20px;
  294. text-align: center;
  295. p {
  296. color: var(--medium-color);
  297. margin: 0;
  298. font-size: 14px;
  299. }
  300. }
  301. // Spinner
  302. .spinner {
  303. width: 48px;
  304. height: 48px;
  305. margin-bottom: 16px;
  306. position: relative;
  307. .spinner-circle {
  308. width: 100%;
  309. height: 100%;
  310. border: 4px solid var(--light-shade);
  311. border-top-color: var(--primary-color);
  312. border-radius: 50%;
  313. animation: spin 0.8s linear infinite;
  314. }
  315. }
  316. @keyframes spin {
  317. 0% {
  318. transform: rotate(0deg);
  319. }
  320. 100% {
  321. transform: rotate(360deg);
  322. }
  323. }
  324. // Error Container
  325. .error-container {
  326. .error-icon {
  327. width: 64px;
  328. height: 64px;
  329. color: var(--danger-color);
  330. margin-bottom: 16px;
  331. }
  332. .button {
  333. margin-top: 16px;
  334. padding: 10px 24px;
  335. border: none;
  336. border-radius: 8px;
  337. font-size: 14px;
  338. font-weight: 600;
  339. cursor: pointer;
  340. transition: all 0.2s;
  341. background-color: var(--primary-color);
  342. color: var(--white);
  343. &.outline {
  344. background-color: transparent;
  345. border: 2px solid var(--primary-color);
  346. color: var(--primary-color);
  347. &:hover {
  348. background-color: var(--primary-color);
  349. color: var(--white);
  350. }
  351. }
  352. &:active {
  353. transform: scale(0.95);
  354. }
  355. }
  356. }
  357. // 客户快速查看
  358. .contact-quick-view {
  359. padding: 12px 12px 0;
  360. .card {
  361. margin: 0;
  362. background: var(--white);
  363. border-radius: 12px;
  364. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  365. overflow: hidden;
  366. .card-content {
  367. padding: 12px;
  368. .contact-info {
  369. display: flex;
  370. align-items: center;
  371. gap: 12px;
  372. .avatar {
  373. width: 48px;
  374. height: 48px;
  375. flex-shrink: 0;
  376. border-radius: 50%;
  377. overflow: hidden;
  378. background-color: var(--light-color);
  379. display: flex;
  380. align-items: center;
  381. justify-content: center;
  382. img {
  383. width: 100%;
  384. height: 100%;
  385. object-fit: cover;
  386. }
  387. .avatar-icon {
  388. width: 48px;
  389. height: 48px;
  390. color: var(--medium-color);
  391. }
  392. }
  393. .info-text {
  394. flex: 1;
  395. min-width: 0;
  396. h3 {
  397. margin: 0 0 4px;
  398. font-size: 16px;
  399. font-weight: 600;
  400. color: var(--dark-color);
  401. white-space: nowrap;
  402. overflow: hidden;
  403. text-overflow: ellipsis;
  404. }
  405. p {
  406. margin: 0 0 6px;
  407. font-size: 13px;
  408. color: var(--medium-color);
  409. }
  410. .tags {
  411. display: flex;
  412. flex-wrap: wrap;
  413. gap: 6px;
  414. .badge {
  415. display: inline-block;
  416. font-size: 11px;
  417. padding: 4px 8px;
  418. border-radius: 6px;
  419. font-weight: 600;
  420. white-space: nowrap;
  421. &.badge-primary {
  422. background-color: rgba(56, 128, 255, 0.15);
  423. color: var(--primary-color);
  424. }
  425. &.badge-success {
  426. background-color: rgba(45, 211, 111, 0.15);
  427. color: var(--success-color);
  428. }
  429. &.badge-warning {
  430. background-color: rgba(255, 196, 9, 0.15);
  431. color: var(--warning-color);
  432. }
  433. }
  434. }
  435. }
  436. }
  437. }
  438. }
  439. }
  440. // 阶段内容区域
  441. .stage-content {
  442. padding: 12px;
  443. padding-bottom: 120px; // 为新的固定底部卡片留空间
  444. }
  445. // 通用卡片样式
  446. .card {
  447. background: white;
  448. border-radius: 12px;
  449. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  450. margin-bottom: 16px;
  451. overflow: hidden;
  452. .card-header {
  453. padding: 16px;
  454. border-bottom: 1px solid var(--light-shade);
  455. .card-title {
  456. display: flex;
  457. align-items: center;
  458. gap: 8px;
  459. margin: 0;
  460. font-size: 16px;
  461. font-weight: 600;
  462. color: var(--dark-color);
  463. .icon {
  464. width: 20px;
  465. height: 20px;
  466. color: var(--primary-color);
  467. }
  468. }
  469. .card-subtitle {
  470. margin: 4px 0 0;
  471. font-size: 12px;
  472. color: var(--medium-color);
  473. }
  474. }
  475. .card-content {
  476. padding: 16px;
  477. }
  478. }
  479. // Badge 组件增强
  480. .badge {
  481. display: inline-block;
  482. padding: 4px 10px;
  483. border-radius: 12px;
  484. font-size: 11px;
  485. font-weight: 600;
  486. &.badge-secondary {
  487. background: var(--secondary-color);
  488. color: white;
  489. }
  490. &.badge-tertiary {
  491. background: var(--tertiary-color);
  492. color: white;
  493. }
  494. &.badge-danger {
  495. background: var(--danger-color);
  496. color: white;
  497. }
  498. &.badge-medium {
  499. background: var(--medium-color);
  500. color: white;
  501. }
  502. &.badge-light {
  503. background: var(--light-color);
  504. color: var(--dark-color);
  505. }
  506. }
  507. // 图标样式
  508. .icon {
  509. width: 20px;
  510. height: 20px;
  511. flex-shrink: 0;
  512. &.icon-sm {
  513. width: 14px;
  514. height: 14px;
  515. }
  516. &.icon-md {
  517. width: 24px;
  518. height: 24px;
  519. }
  520. &.icon-lg {
  521. width: 32px;
  522. height: 32px;
  523. }
  524. }
  525. // 按钮样式
  526. .btn {
  527. padding: 12px 24px;
  528. border-radius: 8px;
  529. font-size: 14px;
  530. font-weight: 600;
  531. cursor: pointer;
  532. transition: all 0.3s;
  533. border: none;
  534. outline: none;
  535. display: inline-flex;
  536. align-items: center;
  537. gap: 8px;
  538. &.btn-primary {
  539. background: var(--primary-color);
  540. color: white;
  541. &:hover {
  542. background: #2f6ce5;
  543. transform: translateY(-2px);
  544. box-shadow: 0 4px 12px rgba(56, 128, 255, 0.3);
  545. }
  546. &:active {
  547. transform: translateY(0);
  548. }
  549. }
  550. &.btn-secondary {
  551. background: var(--secondary-color);
  552. color: white;
  553. &:hover {
  554. background: #0bb8d4;
  555. transform: translateY(-2px);
  556. box-shadow: 0 4px 12px rgba(12, 209, 232, 0.3);
  557. }
  558. &:active {
  559. transform: translateY(0);
  560. }
  561. }
  562. &.btn-success {
  563. background: var(--success-color);
  564. color: white;
  565. &:hover {
  566. background: #28ba62;
  567. transform: translateY(-2px);
  568. box-shadow: 0 4px 12px rgba(45, 211, 111, 0.3);
  569. }
  570. &:active {
  571. transform: translateY(0);
  572. }
  573. }
  574. &.btn-outline {
  575. background: white;
  576. color: var(--primary-color);
  577. border: 2px solid var(--primary-color);
  578. &:hover {
  579. background: var(--primary-color);
  580. color: white;
  581. }
  582. &:active {
  583. transform: scale(0.98);
  584. }
  585. }
  586. &.btn-light {
  587. background: var(--light-color);
  588. color: var(--dark-color);
  589. &:hover {
  590. background: var(--light-shade);
  591. }
  592. &:active {
  593. transform: scale(0.98);
  594. }
  595. }
  596. &:disabled {
  597. opacity: 0.5;
  598. cursor: not-allowed;
  599. pointer-events: none;
  600. }
  601. .icon {
  602. width: 20px;
  603. height: 20px;
  604. }
  605. }
  606. // 底部操作栏
  607. .footer-toolbar {
  608. background: white;
  609. border-top: 1px solid var(--light-shade);
  610. padding: 12px 16px;
  611. position: fixed;
  612. bottom: 0;
  613. left: 0;
  614. right: 0;
  615. z-index: 90;
  616. box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  617. .action-buttons {
  618. display: flex;
  619. gap: 12px;
  620. max-width: 800px;
  621. margin: 0 auto;
  622. .btn {
  623. flex: 1;
  624. }
  625. }
  626. }
  627. // 表单样式
  628. .form-group {
  629. margin-bottom: 20px;
  630. .form-label {
  631. display: block;
  632. margin-bottom: 8px;
  633. font-size: 14px;
  634. font-weight: 600;
  635. color: var(--dark-color);
  636. .required {
  637. color: var(--danger-color);
  638. margin-left: 4px;
  639. }
  640. }
  641. .form-input,
  642. .form-textarea,
  643. .form-select {
  644. width: 100%;
  645. padding: 12px 16px;
  646. border: 1px solid var(--light-shade);
  647. border-radius: 8px;
  648. font-size: 14px;
  649. color: var(--dark-color);
  650. background: white;
  651. transition: all 0.3s;
  652. &:focus {
  653. outline: none;
  654. border-color: var(--primary-color);
  655. box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
  656. }
  657. &::placeholder {
  658. color: var(--medium-color);
  659. }
  660. &:disabled {
  661. background: var(--light-color);
  662. cursor: not-allowed;
  663. }
  664. }
  665. .form-textarea {
  666. min-height: 100px;
  667. resize: vertical;
  668. font-family: inherit;
  669. }
  670. .form-help {
  671. margin-top: 6px;
  672. font-size: 12px;
  673. color: var(--medium-color);
  674. }
  675. .form-error {
  676. margin-top: 6px;
  677. font-size: 12px;
  678. color: var(--danger-color);
  679. }
  680. }
  681. // 列表样式
  682. .list {
  683. background: white;
  684. border-radius: 12px;
  685. overflow: hidden;
  686. .list-item {
  687. display: flex;
  688. align-items: center;
  689. gap: 12px;
  690. padding: 16px;
  691. border-bottom: 1px solid var(--light-shade);
  692. cursor: pointer;
  693. transition: background-color 0.3s;
  694. &:last-child {
  695. border-bottom: none;
  696. }
  697. &:hover {
  698. background-color: var(--light-color);
  699. }
  700. &:active {
  701. background-color: var(--light-shade);
  702. }
  703. .item-icon {
  704. width: 40px;
  705. height: 40px;
  706. display: flex;
  707. align-items: center;
  708. justify-content: center;
  709. border-radius: 50%;
  710. background-color: var(--light-color);
  711. flex-shrink: 0;
  712. .icon {
  713. width: 24px;
  714. height: 24px;
  715. color: var(--primary-color);
  716. }
  717. }
  718. .item-content {
  719. flex: 1;
  720. min-width: 0;
  721. .item-title {
  722. margin: 0 0 4px;
  723. font-size: 15px;
  724. font-weight: 600;
  725. color: var(--dark-color);
  726. }
  727. .item-subtitle {
  728. margin: 0;
  729. font-size: 13px;
  730. color: var(--medium-color);
  731. }
  732. }
  733. .item-arrow {
  734. width: 20px;
  735. height: 20px;
  736. color: var(--medium-color);
  737. flex-shrink: 0;
  738. }
  739. }
  740. }
  741. // 空状态
  742. .empty-state {
  743. display: flex;
  744. flex-direction: column;
  745. align-items: center;
  746. justify-content: center;
  747. padding: 40px 20px;
  748. text-align: center;
  749. .icon-large {
  750. width: 80px;
  751. height: 80px;
  752. color: var(--medium-color);
  753. margin-bottom: 16px;
  754. opacity: 0.5;
  755. }
  756. .empty-title {
  757. margin: 0 0 8px;
  758. font-size: 16px;
  759. font-weight: 600;
  760. color: var(--dark-color);
  761. }
  762. .empty-message {
  763. margin: 0 0 20px;
  764. font-size: 14px;
  765. color: var(--medium-color);
  766. }
  767. }
  768. // Chip 组件
  769. .chip {
  770. display: inline-flex;
  771. align-items: center;
  772. padding: 6px 12px;
  773. border-radius: 16px;
  774. font-size: 12px;
  775. font-weight: 500;
  776. background: rgba(255, 255, 255, 0.2);
  777. color: white;
  778. &.chip-primary {
  779. background: rgba(56, 128, 255, 0.15);
  780. color: var(--primary-color);
  781. }
  782. &.chip-success {
  783. background: rgba(45, 211, 111, 0.15);
  784. color: var(--success-color);
  785. }
  786. &.chip-warning {
  787. background: rgba(255, 196, 9, 0.15);
  788. color: var(--warning-color);
  789. }
  790. }
  791. // 项目状态样式
  792. .status-pending {
  793. background: var(--warning-color) !important;
  794. color: var(--dark-color) !important;
  795. }
  796. .status-active {
  797. background: var(--primary-color) !important;
  798. color: white !important;
  799. }
  800. .status-completed {
  801. background: var(--success-color) !important;
  802. color: white !important;
  803. }
  804. .status-paused {
  805. background: var(--medium-color) !important;
  806. color: white !important;
  807. }
  808. .status-cancelled {
  809. background: var(--danger-color) !important;
  810. color: white !important;
  811. }
  812. .status-default {
  813. background: var(--light-color) !important;
  814. color: var(--dark-color) !important;
  815. }
  816. // 响应式适配
  817. @media (min-width: 768px) {
  818. .stage-navigation {
  819. max-width: 600px;
  820. margin: 0 auto;
  821. }
  822. .contact-quick-view,
  823. .stage-content {
  824. max-width: 800px;
  825. margin: 0 auto;
  826. }
  827. .footer-toolbar {
  828. .action-buttons {
  829. max-width: 800px;
  830. }
  831. }
  832. }
  833. // 平板和桌面端
  834. @media (min-width: 1024px) {
  835. .stage-navigation {
  836. max-width: 800px;
  837. }
  838. .contact-quick-view,
  839. .stage-content {
  840. max-width: 1000px;
  841. }
  842. .footer-toolbar {
  843. .action-buttons {
  844. max-width: 1000px;
  845. }
  846. }
  847. }
  848. // 移动端优化
  849. @media (max-width: 480px) {
  850. // 移动端内容高度调整
  851. .content {
  852. height: calc(100vh - 60px); // 移动端调整高度
  853. }
  854. .stage-toolbar {
  855. padding: 8px 0;
  856. .stage-navigation {
  857. .stage-item {
  858. min-width: 50px;
  859. .stage-circle {
  860. width: 32px;
  861. height: 32px;
  862. font-size: 12px;
  863. .icon {
  864. width: 16px;
  865. height: 16px;
  866. }
  867. }
  868. .stage-label {
  869. font-size: 10px;
  870. }
  871. }
  872. .stage-connector {
  873. min-width: 15px;
  874. margin: 0 4px;
  875. margin-bottom: 16px;
  876. }
  877. }
  878. }
  879. .contact-quick-view {
  880. padding: 8px 8px 0;
  881. .card {
  882. .card-content {
  883. padding: 10px;
  884. .contact-info {
  885. gap: 10px;
  886. .avatar {
  887. width: 40px;
  888. height: 40px;
  889. .avatar-icon {
  890. width: 40px;
  891. height: 40px;
  892. }
  893. }
  894. .info-text {
  895. h3 {
  896. font-size: 14px;
  897. }
  898. p {
  899. font-size: 12px;
  900. }
  901. .tags {
  902. gap: 4px;
  903. .badge {
  904. font-size: 10px;
  905. padding: 3px 6px;
  906. }
  907. }
  908. }
  909. }
  910. }
  911. }
  912. }
  913. .stage-content {
  914. padding: 8px;
  915. padding-bottom: 100px; // 移动端为底部卡片留空间
  916. }
  917. .footer-toolbar {
  918. padding: 8px 12px;
  919. .action-buttons {
  920. gap: 8px;
  921. .btn {
  922. padding: 10px 16px;
  923. font-size: 13px;
  924. }
  925. }
  926. }
  927. .card {
  928. .card-header {
  929. padding: 12px;
  930. .card-title {
  931. font-size: 15px;
  932. }
  933. }
  934. .card-content {
  935. padding: 12px;
  936. }
  937. }
  938. .form-group {
  939. .form-input,
  940. .form-textarea,
  941. .form-select {
  942. padding: 10px 12px;
  943. font-size: 13px;
  944. }
  945. }
  946. .btn {
  947. padding: 10px 20px;
  948. font-size: 13px;
  949. }
  950. }
  951. // 问卷卡片样式
  952. .survey-card {
  953. background: white;
  954. border-radius: 12px;
  955. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  956. margin: 16px;
  957. overflow: hidden;
  958. transition: all 0.3s ease;
  959. &:hover {
  960. box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  961. }
  962. // 头部
  963. .survey-header {
  964. display: flex;
  965. align-items: center;
  966. justify-content: space-between;
  967. padding: 16px;
  968. border-bottom: 1px solid var(--light-shade);
  969. background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
  970. .survey-title {
  971. display: flex;
  972. align-items: center;
  973. gap: 10px;
  974. .icon {
  975. width: 24px;
  976. height: 24px;
  977. color: var(--primary-color);
  978. }
  979. span {
  980. font-size: 16px;
  981. font-weight: 600;
  982. color: var(--dark-color);
  983. }
  984. }
  985. .survey-badge {
  986. padding: 4px 12px;
  987. border-radius: 12px;
  988. font-size: 12px;
  989. font-weight: 600;
  990. background: rgba(255, 196, 9, 0.15);
  991. color: var(--warning-color);
  992. transition: all 0.3s ease;
  993. &.filled {
  994. background: rgba(45, 211, 111, 0.15);
  995. color: var(--success-color);
  996. }
  997. }
  998. }
  999. // 内容区
  1000. .survey-content {
  1001. padding: 20px 16px;
  1002. .survey-info {
  1003. display: flex;
  1004. align-items: flex-start;
  1005. gap: 12px;
  1006. margin-bottom: 16px;
  1007. .icon {
  1008. width: 40px;
  1009. height: 40px;
  1010. flex-shrink: 0;
  1011. margin-top: 2px;
  1012. &.success-icon {
  1013. color: var(--success-color);
  1014. }
  1015. &.pending-icon {
  1016. color: var(--warning-color);
  1017. }
  1018. }
  1019. .survey-text {
  1020. flex: 1;
  1021. .survey-desc {
  1022. margin: 0 0 6px;
  1023. font-size: 15px;
  1024. font-weight: 500;
  1025. color: var(--dark-color);
  1026. line-height: 1.5;
  1027. }
  1028. .survey-meta {
  1029. margin: 0;
  1030. font-size: 13px;
  1031. color: var(--medium-color);
  1032. line-height: 1.4;
  1033. }
  1034. }
  1035. }
  1036. .button {
  1037. width: 100%;
  1038. display: flex;
  1039. align-items: center;
  1040. justify-content: center;
  1041. gap: 8px;
  1042. padding: 12px 20px;
  1043. border-radius: 8px;
  1044. font-size: 14px;
  1045. font-weight: 600;
  1046. border: none;
  1047. cursor: pointer;
  1048. transition: all 0.3s ease;
  1049. .icon {
  1050. width: 18px;
  1051. height: 18px;
  1052. }
  1053. &.primary {
  1054. background: var(--primary-color);
  1055. color: white;
  1056. box-shadow: 0 2px 8px rgba(56, 128, 255, 0.2);
  1057. &:hover {
  1058. background: #2f6ce5;
  1059. transform: translateY(-2px);
  1060. box-shadow: 0 4px 12px rgba(56, 128, 255, 0.3);
  1061. }
  1062. &:active {
  1063. transform: translateY(0);
  1064. }
  1065. }
  1066. &.secondary {
  1067. background: white;
  1068. color: var(--primary-color);
  1069. border: 2px solid var(--primary-color);
  1070. &:hover {
  1071. background: rgba(56, 128, 255, 0.05);
  1072. }
  1073. &:active {
  1074. transform: scale(0.98);
  1075. }
  1076. }
  1077. }
  1078. .survey-tips {
  1079. display: flex;
  1080. align-items: center;
  1081. justify-content: center;
  1082. gap: 8px;
  1083. padding: 12px 16px;
  1084. background: rgba(255, 196, 9, 0.1);
  1085. border-radius: 8px;
  1086. color: var(--warning-color);
  1087. font-size: 13px;
  1088. font-weight: 500;
  1089. .icon {
  1090. width: 20px;
  1091. height: 20px;
  1092. flex-shrink: 0;
  1093. }
  1094. }
  1095. }
  1096. // 底部说明
  1097. .survey-footer {
  1098. padding: 12px 16px;
  1099. background: #f9fafb;
  1100. border-top: 1px solid var(--light-shade);
  1101. .survey-highlights {
  1102. display: flex;
  1103. justify-content: space-around;
  1104. gap: 8px;
  1105. .highlight-item {
  1106. display: flex;
  1107. flex-direction: column;
  1108. align-items: center;
  1109. gap: 6px;
  1110. flex: 1;
  1111. min-width: 0;
  1112. .icon {
  1113. width: 24px;
  1114. height: 24px;
  1115. color: var(--primary-color);
  1116. opacity: 0.7;
  1117. }
  1118. span {
  1119. font-size: 12px;
  1120. font-weight: 500;
  1121. color: var(--medium-color);
  1122. text-align: center;
  1123. white-space: nowrap;
  1124. }
  1125. }
  1126. }
  1127. }
  1128. }
  1129. // 移动端适配
  1130. @media (max-width: 480px) {
  1131. .survey-card {
  1132. margin: 12px 8px;
  1133. border-radius: 10px;
  1134. .survey-header {
  1135. padding: 12px;
  1136. .survey-title {
  1137. gap: 8px;
  1138. .icon {
  1139. width: 20px;
  1140. height: 20px;
  1141. }
  1142. span {
  1143. font-size: 15px;
  1144. }
  1145. }
  1146. .survey-badge {
  1147. font-size: 11px;
  1148. padding: 3px 10px;
  1149. }
  1150. }
  1151. .survey-content {
  1152. padding: 16px 12px;
  1153. .survey-info {
  1154. gap: 10px;
  1155. .icon {
  1156. width: 36px;
  1157. height: 36px;
  1158. }
  1159. .survey-text {
  1160. .survey-desc {
  1161. font-size: 14px;
  1162. }
  1163. .survey-meta {
  1164. font-size: 12px;
  1165. }
  1166. }
  1167. }
  1168. .button {
  1169. padding: 10px 16px;
  1170. font-size: 13px;
  1171. .icon {
  1172. width: 16px;
  1173. height: 16px;
  1174. }
  1175. }
  1176. .survey-tips {
  1177. padding: 10px 12px;
  1178. font-size: 12px;
  1179. .icon {
  1180. width: 18px;
  1181. height: 18px;
  1182. }
  1183. }
  1184. }
  1185. .survey-footer {
  1186. padding: 10px 12px;
  1187. .survey-highlights {
  1188. gap: 6px;
  1189. .highlight-item {
  1190. gap: 4px;
  1191. .icon {
  1192. width: 20px;
  1193. height: 20px;
  1194. }
  1195. span {
  1196. font-size: 11px;
  1197. }
  1198. }
  1199. }
  1200. }
  1201. }
  1202. }