consultation-order.scss 24 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334
  1. @use 'sass:math';
  2. // iOS风格变量定义
  3. $primary-color: #007AFF;
  4. $primary-dark: #0062CC;
  5. $secondary-color: #34C759;
  6. $success-color: #34C759;
  7. $warning-color: #FF9500;
  8. $danger-color: #FF3B30;
  9. $text-primary: #000000;
  10. $text-secondary: #3C3C43;
  11. $text-tertiary: #8E8E93;
  12. $border-color: #D1D1D6;
  13. $background-primary: #FFFFFF;
  14. $background-secondary: #F2F2F7;
  15. $background-tertiary: #E5E5EA;
  16. $shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  17. $shadow-md: 0 4px 10px rgba(0,0,0,0.1);
  18. $shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  19. $border-radius: 10px;
  20. $transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  21. $main-font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  22. $heading-font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  23. $grid-gap: 16px;
  24. $card-padding: 16px;
  25. // 主容器样式
  26. .consultation-order-container {
  27. background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  28. min-height: 100vh;
  29. padding: 0;
  30. animation: fadeIn 0.5s ease-in-out;
  31. }
  32. .main-content {
  33. max-width: 1200px;
  34. margin: 0 auto;
  35. padding: 24px;
  36. display: grid;
  37. grid-template-columns: 1fr;
  38. gap: 32px;
  39. @media (max-width: 768px) {
  40. padding: 16px;
  41. gap: 20px;
  42. }
  43. }
  44. // 页面标题样式
  45. .page-header {
  46. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  47. color: white;
  48. padding: 40px 0;
  49. margin: -24px -24px 0 -24px;
  50. border-radius: 0 0 24px 24px;
  51. box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
  52. @media (max-width: 768px) {
  53. margin: -16px -16px 0 -16px;
  54. padding: 32px 0;
  55. }
  56. .header-content {
  57. max-width: 1200px;
  58. margin: 0 auto;
  59. padding: 0 24px;
  60. text-align: center;
  61. @media (max-width: 768px) {
  62. padding: 0 16px;
  63. }
  64. }
  65. h1 {
  66. font-size: 2.5rem;
  67. font-weight: 700;
  68. margin: 0;
  69. text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  70. @media (max-width: 768px) {
  71. font-size: 2rem;
  72. }
  73. }
  74. .subtitle {
  75. font-size: 1.1rem;
  76. margin-top: 8px;
  77. font-weight: 400;
  78. opacity: 0.9;
  79. }
  80. }
  81. // 成功提示样式
  82. .success-toast {
  83. position: fixed;
  84. top: 20px;
  85. left: 50%;
  86. transform: translateX(-50%);
  87. background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  88. color: white;
  89. padding: 12px 24px;
  90. border-radius: 50px;
  91. box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
  92. text-align: center;
  93. font-weight: 500;
  94. animation: slideIn 0.5s ease-out;
  95. border: 1px solid rgba(255, 255, 255, 0.2);
  96. z-index: 1000;
  97. .toast-content {
  98. display: flex;
  99. align-items: center;
  100. gap: 8px;
  101. }
  102. svg {
  103. flex-shrink: 0;
  104. }
  105. }
  106. @keyframes fadeIn {
  107. from {
  108. opacity: 0;
  109. }
  110. to {
  111. opacity: 1;
  112. }
  113. }
  114. @keyframes slideIn {
  115. from {
  116. opacity: 0;
  117. transform: translateY(-10px);
  118. }
  119. to {
  120. opacity: 1;
  121. transform: translateY(0);
  122. }
  123. }
  124. @keyframes slideInUp {
  125. from {
  126. opacity: 0;
  127. transform: translateY(20px);
  128. }
  129. to {
  130. opacity: 1;
  131. transform: translateY(0);
  132. }
  133. }
  134. // 现代化信息卡片样式
  135. .info-card {
  136. background: white;
  137. border-radius: 20px;
  138. box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  139. border: 1px solid rgba(0, 0, 0, 0.05);
  140. overflow: hidden;
  141. transition: all 0.3s ease;
  142. animation: slideInUp 0.5s ease-out;
  143. animation-fill-mode: both;
  144. &:hover {
  145. transform: translateY(-2px);
  146. box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
  147. }
  148. &:nth-child(1) {
  149. animation-delay: 0.1s;
  150. }
  151. &:nth-child(2) {
  152. animation-delay: 0.2s;
  153. }
  154. &:nth-child(3) {
  155. animation-delay: 0.3s;
  156. }
  157. }
  158. // 卡片头部样式
  159. .card-header {
  160. padding: 24px 32px 20px;
  161. border-bottom: 1px solid #f1f5f9;
  162. background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  163. @media (max-width: 768px) {
  164. padding: 20px 24px 16px;
  165. }
  166. .header-left {
  167. display: flex;
  168. align-items: center;
  169. gap: 16px;
  170. }
  171. .icon-wrapper {
  172. width: 48px;
  173. height: 48px;
  174. border-radius: 12px;
  175. display: flex;
  176. align-items: center;
  177. justify-content: center;
  178. flex-shrink: 0;
  179. &.customer-icon {
  180. background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  181. color: white;
  182. }
  183. &.requirement-icon {
  184. background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  185. color: white;
  186. }
  187. &.price-icon {
  188. background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  189. color: white;
  190. }
  191. }
  192. .header-text {
  193. h2 {
  194. font-size: 1.5rem;
  195. font-weight: 700;
  196. color: #1e293b;
  197. margin: 0;
  198. line-height: 1.2;
  199. }
  200. p {
  201. font-size: 0.875rem;
  202. color: #64748b;
  203. margin: 4px 0 0;
  204. line-height: 1.4;
  205. }
  206. }
  207. }
  208. // 卡片内容样式
  209. .card-content {
  210. padding: 32px;
  211. @media (max-width: 768px) {
  212. padding: 24px;
  213. }
  214. }
  215. // 表单分组样式
  216. .form-section {
  217. margin-bottom: 32px;
  218. &:last-child {
  219. margin-bottom: 0;
  220. }
  221. .section-title {
  222. font-size: 1.125rem;
  223. font-weight: 600;
  224. color: #1e293b;
  225. margin: 0 0 20px;
  226. padding-bottom: 8px;
  227. border-bottom: 2px solid #e2e8f0;
  228. position: relative;
  229. &::after {
  230. content: '';
  231. position: absolute;
  232. bottom: -2px;
  233. left: 0;
  234. width: 40px;
  235. height: 2px;
  236. background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  237. border-radius: 1px;
  238. }
  239. }
  240. }
  241. // 表单网格布局
  242. .form-grid {
  243. display: grid;
  244. grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  245. gap: 24px;
  246. @media (max-width: 768px) {
  247. grid-template-columns: 1fr;
  248. gap: 20px;
  249. }
  250. }
  251. // 表单字段样式
  252. .form-field {
  253. display: flex;
  254. flex-direction: column;
  255. transition: all 0.3s ease;
  256. &.full-width {
  257. grid-column: 1 / -1;
  258. }
  259. .field-label {
  260. font-size: 0.875rem;
  261. font-weight: 600;
  262. color: #374151;
  263. margin-bottom: 8px;
  264. transition: color 0.2s ease;
  265. .required {
  266. color: #ef4444;
  267. margin-left: 2px;
  268. }
  269. }
  270. .field-input,
  271. .field-select,
  272. .field-textarea {
  273. padding: 12px 16px;
  274. border: 2px solid #e5e7eb;
  275. border-radius: 12px;
  276. font-size: 0.875rem;
  277. transition: all 0.3s ease;
  278. background: white;
  279. &:hover {
  280. border-color: #d1d5db;
  281. }
  282. &:focus {
  283. outline: none;
  284. border-color: #3b82f6;
  285. box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  286. }
  287. &::placeholder {
  288. color: #9ca3af;
  289. transition: opacity 0.2s ease;
  290. }
  291. &:focus::placeholder {
  292. opacity: 0.7;
  293. }
  294. }
  295. .field-textarea {
  296. resize: vertical;
  297. min-height: 100px;
  298. font-family: inherit;
  299. }
  300. }
  301. // 带单位的输入框
  302. .input-with-unit {
  303. position: relative;
  304. display: flex;
  305. align-items: center;
  306. .field-input {
  307. flex: 1;
  308. padding-right: 50px;
  309. }
  310. .input-unit {
  311. position: absolute;
  312. right: 16px;
  313. font-size: 0.875rem;
  314. color: #6b7280;
  315. font-weight: 500;
  316. }
  317. }
  318. // iOS风格卡片
  319. .card {
  320. background-color: $background-primary;
  321. border-radius: $border-radius;
  322. padding: $card-padding;
  323. margin-bottom: $grid-gap;
  324. transition: $transition;
  325. border: 0.5px solid rgba(0,0,0,0.1);
  326. &:hover {
  327. box-shadow: $shadow-sm;
  328. }
  329. &.highlight {
  330. border-left: 4px solid $primary-color;
  331. }
  332. + .card {
  333. margin-top: math.div(-$grid-gap, 2);
  334. border-top: 0.5px solid $border-color;
  335. border-radius: 0 0 $border-radius $border-radius;
  336. }
  337. }
  338. // 客户信息区域
  339. .customer-info-section {
  340. @extend .card;
  341. @extend .highlight;
  342. }
  343. // 客户搜索区域样式
  344. .search-section {
  345. margin-bottom: 24px;
  346. .search-input-group {
  347. display: flex;
  348. gap: 12px;
  349. align-items: flex-end;
  350. @media (max-width: 768px) {
  351. flex-direction: column;
  352. align-items: stretch;
  353. }
  354. .search-field {
  355. flex: 1;
  356. }
  357. .search-btn {
  358. padding: 12px 24px;
  359. background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  360. color: white;
  361. border: none;
  362. border-radius: 12px;
  363. font-weight: 600;
  364. cursor: pointer;
  365. transition: all 0.2s ease;
  366. display: flex;
  367. align-items: center;
  368. gap: 8px;
  369. white-space: nowrap;
  370. &:hover {
  371. transform: translateY(-1px);
  372. box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
  373. }
  374. &:disabled {
  375. opacity: 0.6;
  376. cursor: not-allowed;
  377. transform: none;
  378. }
  379. }
  380. }
  381. }
  382. // 搜索结果样式
  383. .search-results {
  384. margin-top: 20px;
  385. .results-list {
  386. display: grid;
  387. gap: 12px;
  388. }
  389. .result-item {
  390. background: #f8fafc;
  391. border: 2px solid #e2e8f0;
  392. border-radius: 12px;
  393. padding: 16px;
  394. cursor: pointer;
  395. transition: all 0.2s ease;
  396. &:hover {
  397. border-color: #3b82f6;
  398. background: #eff6ff;
  399. }
  400. .result-header {
  401. display: flex;
  402. align-items: center;
  403. gap: 12px;
  404. margin-bottom: 8px;
  405. .customer-avatar {
  406. width: 40px;
  407. height: 40px;
  408. border-radius: 10px;
  409. background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  410. display: flex;
  411. align-items: center;
  412. justify-content: center;
  413. color: white;
  414. font-weight: 600;
  415. font-size: 0.875rem;
  416. }
  417. .customer-name {
  418. font-weight: 600;
  419. color: #1e293b;
  420. font-size: 1rem;
  421. }
  422. }
  423. .result-details {
  424. display: flex;
  425. flex-wrap: wrap;
  426. gap: 16px;
  427. font-size: 0.875rem;
  428. color: #64748b;
  429. .detail-item {
  430. display: flex;
  431. align-items: center;
  432. gap: 4px;
  433. }
  434. }
  435. .result-tags {
  436. margin-top: 12px;
  437. display: flex;
  438. flex-wrap: wrap;
  439. gap: 6px;
  440. .tag {
  441. background: #dbeafe;
  442. color: #1d4ed8;
  443. padding: 4px 8px;
  444. border-radius: 6px;
  445. font-size: 0.75rem;
  446. font-weight: 500;
  447. }
  448. }
  449. }
  450. }
  451. .search-input-group {
  452. display: flex;
  453. align-items: center;
  454. position: relative;
  455. max-width: 400px;
  456. }
  457. .search-input {
  458. flex: 1;
  459. padding: 10px 12px;
  460. border: 1px solid $border-color;
  461. border-radius: $border-radius 0 0 $border-radius;
  462. font-size: 14px;
  463. transition: $transition;
  464. &:focus {
  465. outline: none;
  466. border-color: $primary-color;
  467. box-shadow: 0 0 0 3px color-mix(in srgb, $primary-color 10%, transparent);
  468. }
  469. }
  470. .search-btn {
  471. padding: 10px 16px;
  472. background-color: $primary-color;
  473. color: white;
  474. border: none;
  475. border-radius: 0 $border-radius $border-radius 0;
  476. cursor: pointer;
  477. transition: $transition;
  478. &:hover {
  479. background-color: $primary-dark;
  480. transform: translateY(-1px);
  481. box-shadow: $shadow-md;
  482. }
  483. &:active {
  484. transform: translateY(0);
  485. }
  486. }
  487. // 搜索结果
  488. .search-results {
  489. position: absolute;
  490. top: 100%;
  491. left: 0;
  492. right: 0;
  493. margin-top: 4px;
  494. background-color: $background-primary;
  495. border: 1px solid $border-color;
  496. border-radius: $border-radius;
  497. box-shadow: $shadow-lg;
  498. z-index: 1000;
  499. max-height: 300px;
  500. overflow-y: auto;
  501. }
  502. .customer-item {
  503. display: flex;
  504. align-items: center;
  505. gap: 12px;
  506. padding: 12px 16px;
  507. cursor: pointer;
  508. transition: $transition;
  509. &:hover {
  510. background-color: $background-secondary;
  511. }
  512. }
  513. .customer-avatar {
  514. width: 36px;
  515. height: 36px;
  516. border-radius: 50%;
  517. object-fit: cover;
  518. }
  519. .customer-details {
  520. flex: 1;
  521. }
  522. .customer-name {
  523. font-weight: 500;
  524. color: $text-primary;
  525. margin-bottom: 2px;
  526. }
  527. .customer-phone {
  528. font-size: 12px;
  529. color: $text-secondary;
  530. margin-bottom: 4px;
  531. }
  532. .customer-tags {
  533. display: flex;
  534. gap: 6px;
  535. }
  536. .tag {
  537. font-size: 11px;
  538. padding: 2px 8px;
  539. background-color: color-mix(in srgb, $primary-color 10%, transparent);
  540. color: $primary-color;
  541. border-radius: 12px;
  542. }
  543. .tag.source {
  544. background-color: color-mix(in srgb, $secondary-color 10%, transparent);
  545. color: $secondary-color;
  546. }
  547. // 偏好标签样式
  548. .preference-tags {
  549. .tags-grid {
  550. display: grid;
  551. grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  552. gap: 12px;
  553. margin-bottom: 20px;
  554. @media (max-width: 768px) {
  555. grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  556. gap: 8px;
  557. }
  558. }
  559. .tag-chip {
  560. background: #f1f5f9;
  561. border: 2px solid #e2e8f0;
  562. border-radius: 20px;
  563. padding: 8px 16px;
  564. text-align: center;
  565. cursor: pointer;
  566. transition: all 0.2s ease;
  567. font-size: 0.875rem;
  568. font-weight: 500;
  569. color: #475569;
  570. &:hover {
  571. border-color: #3b82f6;
  572. background: #eff6ff;
  573. color: #1d4ed8;
  574. }
  575. &.selected {
  576. background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  577. border-color: #1d4ed8;
  578. color: white;
  579. }
  580. }
  581. .preset-tags {
  582. display: flex;
  583. flex-wrap: wrap;
  584. gap: 8px;
  585. .preset-tag-btn {
  586. background: #f8fafc;
  587. border: 1px solid #e2e8f0;
  588. border-radius: 16px;
  589. padding: 6px 12px;
  590. font-size: 0.75rem;
  591. color: #64748b;
  592. cursor: pointer;
  593. transition: all 0.2s ease;
  594. &:hover {
  595. background: #e2e8f0;
  596. color: #374151;
  597. }
  598. }
  599. }
  600. }
  601. // 表单样式
  602. .customer-form,
  603. .requirement-form {
  604. .form-row {
  605. display: flex;
  606. gap: 24px; // 增加行内表单元素间距防止重合
  607. margin-bottom: 24px;
  608. flex-wrap: wrap;
  609. }
  610. .form-group {
  611. flex: 1;
  612. min-width: 200px;
  613. label {
  614. display: block;
  615. font-size: 18px; // 放大表单标签
  616. font-weight: 500;
  617. color: $text-primary;
  618. margin-bottom: 8px;
  619. }
  620. input,
  621. select,
  622. textarea {
  623. width: 100%;
  624. padding: 12px 16px; // 增加内边距
  625. border: 1px solid $border-color;
  626. border-radius: $border-radius;
  627. font-size: 16px; // 放大输入元素字体
  628. transition: $transition;
  629. &:focus {
  630. outline: none;
  631. border-color: $primary-color;
  632. box-shadow: 0 0 0 3px color-mix(in srgb, $primary-color 10%, transparent);
  633. }
  634. }
  635. textarea {
  636. resize: vertical;
  637. min-height: 80px;
  638. line-height: 1.6;
  639. }
  640. }
  641. .form-group.full-width {
  642. min-width: 100%;
  643. }
  644. }
  645. .required {
  646. color: $danger-color;
  647. }
  648. // 清除客户按钮
  649. .clear-customer-btn {
  650. padding: 6px 12px;
  651. background-color: transparent;
  652. color: $text-secondary;
  653. border: 1px solid $border-color;
  654. border-radius: $border-radius;
  655. font-size: 14px;
  656. cursor: pointer;
  657. transition: $transition;
  658. &:hover {
  659. background-color: $background-secondary;
  660. border-color: $danger-color;
  661. color: $danger-color;
  662. }
  663. }
  664. // 需求信息区域
  665. .requirement-section {
  666. @extend .card;
  667. }
  668. // 报价区域样式
  669. .price-section {
  670. margin-bottom: 32px;
  671. .price-card {
  672. background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  673. border: 2px solid #0ea5e9;
  674. border-radius: 16px;
  675. padding: 24px;
  676. text-align: center;
  677. .price-header {
  678. display: flex;
  679. align-items: center;
  680. justify-content: center;
  681. gap: 8px;
  682. margin-bottom: 12px;
  683. color: #0369a1;
  684. font-weight: 600;
  685. font-size: 0.875rem;
  686. }
  687. .price-value {
  688. font-size: 1.5rem;
  689. font-weight: 700;
  690. color: #0c4a6e;
  691. line-height: 1.2;
  692. }
  693. }
  694. }
  695. // 案例区域样式
  696. .cases-section {
  697. margin-bottom: 32px;
  698. .section-header {
  699. display: flex;
  700. justify-content: space-between;
  701. align-items: center;
  702. margin-bottom: 20px;
  703. h3 {
  704. font-size: 1.125rem;
  705. font-weight: 600;
  706. color: #1e293b;
  707. margin: 0;
  708. }
  709. .section-subtitle {
  710. font-size: 0.875rem;
  711. color: #64748b;
  712. }
  713. }
  714. }
  715. // 报价与案例匹配区域
  716. .price-match-section {
  717. @extend .card;
  718. }
  719. // 价格信息
  720. .price-info {
  721. display: flex;
  722. justify-content: space-between;
  723. align-items: center;
  724. padding: 20px 24px;
  725. background-color: color-mix(in srgb, $primary-color 5%, transparent);
  726. border-radius: $border-radius;
  727. margin-bottom: 24px;
  728. box-shadow: $shadow-sm;
  729. }
  730. .price-label {
  731. font-size: 18px; // 放大价格标签
  732. color: $text-secondary;
  733. font-weight: 500;
  734. }
  735. .price-value {
  736. font-size: 24px; // 放大价格值
  737. font-weight: 700;
  738. color: $primary-color;
  739. letter-spacing: 0.5px;
  740. }
  741. // 匹配案例
  742. .matched-cases {
  743. h3 {
  744. font-size: 18px;
  745. font-weight: 600;
  746. color: $text-primary;
  747. margin-bottom: 16px;
  748. }
  749. }
  750. // 案例网格样式
  751. .cases-grid {
  752. display: grid;
  753. grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  754. gap: 20px;
  755. @media (max-width: 768px) {
  756. grid-template-columns: 1fr;
  757. gap: 16px;
  758. }
  759. }
  760. // 案例卡片样式
  761. .case-card {
  762. background: white;
  763. border: 2px solid #e2e8f0;
  764. border-radius: 16px;
  765. overflow: hidden;
  766. cursor: pointer;
  767. transition: all 0.3s ease;
  768. &:hover {
  769. transform: translateY(-4px);
  770. border-color: #3b82f6;
  771. box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
  772. }
  773. .case-image-wrapper {
  774. position: relative;
  775. .case-image {
  776. width: 100%;
  777. height: 200px;
  778. object-fit: cover;
  779. }
  780. .similarity-badge {
  781. position: absolute;
  782. top: 12px;
  783. right: 12px;
  784. background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  785. color: white;
  786. padding: 6px 12px;
  787. border-radius: 20px;
  788. font-size: 0.75rem;
  789. font-weight: 600;
  790. box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  791. }
  792. }
  793. .case-content {
  794. padding: 20px;
  795. .case-name {
  796. font-size: 1.125rem;
  797. font-weight: 600;
  798. color: #1e293b;
  799. margin: 0 0 12px 0;
  800. line-height: 1.3;
  801. }
  802. .case-meta {
  803. display: flex;
  804. gap: 16px;
  805. font-size: 0.875rem;
  806. color: #64748b;
  807. .case-designer,
  808. .case-area {
  809. display: flex;
  810. align-items: center;
  811. gap: 6px;
  812. }
  813. }
  814. }
  815. }
  816. .case-image {
  817. width: 100%;
  818. height: 180px;
  819. object-fit: cover;
  820. }
  821. .case-info {
  822. padding: 16px;
  823. }
  824. .case-name {
  825. font-size: 16px;
  826. font-weight: 500;
  827. color: $text-primary;
  828. margin-bottom: 8px;
  829. }
  830. .case-details {
  831. display: flex;
  832. justify-content: space-between;
  833. align-items: center;
  834. margin-bottom: 8px;
  835. .case-designer,
  836. .case-area {
  837. font-size: 13px;
  838. color: $text-secondary;
  839. }
  840. }
  841. .similarity-badge {
  842. display: inline-block;
  843. padding: 4px 12px;
  844. background-color: color-mix(in srgb, $success-color 10%, transparent);
  845. color: $success-color;
  846. border-radius: 12px;
  847. font-size: 12px;
  848. font-weight: 500;
  849. }
  850. // 已选案例区域样式
  851. .selected-cases-section {
  852. .section-header {
  853. display: flex;
  854. justify-content: space-between;
  855. align-items: center;
  856. margin-bottom: 16px;
  857. h3 {
  858. font-size: 1.125rem;
  859. font-weight: 600;
  860. color: #1e293b;
  861. margin: 0;
  862. }
  863. .section-subtitle {
  864. font-size: 0.875rem;
  865. color: #64748b;
  866. background: #f1f5f9;
  867. padding: 4px 12px;
  868. border-radius: 12px;
  869. }
  870. }
  871. .selected-cases-list {
  872. display: grid;
  873. gap: 12px;
  874. }
  875. .selected-case-item {
  876. background: #f8fafc;
  877. border: 2px solid #e2e8f0;
  878. border-radius: 12px;
  879. padding: 16px;
  880. display: flex;
  881. justify-content: space-between;
  882. align-items: center;
  883. transition: all 0.2s ease;
  884. &:hover {
  885. border-color: #10b981;
  886. background: #f0fdf4;
  887. }
  888. .case-info {
  889. display: flex;
  890. align-items: center;
  891. gap: 8px;
  892. color: #059669;
  893. font-weight: 500;
  894. font-size: 0.875rem;
  895. }
  896. .remove-case-btn {
  897. background: none;
  898. border: none;
  899. color: #ef4444;
  900. cursor: pointer;
  901. padding: 8px;
  902. border-radius: 8px;
  903. transition: all 0.2s ease;
  904. display: flex;
  905. align-items: center;
  906. justify-content: center;
  907. &:hover {
  908. background: #fef2f2;
  909. color: #dc2626;
  910. }
  911. }
  912. }
  913. }
  914. // 已选参考案例
  915. .selected-cases {
  916. margin-top: 24px;
  917. h3 {
  918. font-size: 16px;
  919. font-weight: 600;
  920. color: $text-primary;
  921. margin-bottom: 12px;
  922. }
  923. }
  924. .selected-cases-list {
  925. display: flex;
  926. flex-wrap: wrap;
  927. gap: 8px;
  928. }
  929. .selected-case-item {
  930. display: flex;
  931. align-items: center;
  932. gap: 6px;
  933. padding: 6px 12px;
  934. background-color: color-mix(in srgb, $primary-color 10%, transparent);
  935. color: $primary-color;
  936. border-radius: 16px;
  937. font-size: 13px;
  938. }
  939. .remove-case-btn {
  940. background: none;
  941. border: none;
  942. color: $text-tertiary;
  943. cursor: pointer;
  944. padding: 2px;
  945. transition: $transition;
  946. &:hover {
  947. color: $danger-color;
  948. }
  949. }
  950. // 操作按钮区域
  951. .action-section {
  952. margin-top: 40px;
  953. .action-buttons {
  954. display: flex;
  955. gap: 16px;
  956. justify-content: center;
  957. button {
  958. transition: all 0.3s ease;
  959. &:hover:not([disabled]) {
  960. transform: translateY(-2px);
  961. box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  962. }
  963. &:active:not([disabled]) {
  964. transform: translateY(0);
  965. }
  966. }
  967. .btn-primary {
  968. background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  969. }
  970. .btn-secondary {
  971. background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  972. }
  973. }
  974. padding-top: 32px;
  975. border-top: 1px solid #e2e8f0;
  976. .action-buttons {
  977. display: flex;
  978. gap: 16px;
  979. justify-content: center;
  980. @media (max-width: 768px) {
  981. flex-direction: column;
  982. gap: 12px;
  983. }
  984. }
  985. .btn-primary,
  986. .btn-secondary {
  987. padding: 16px 32px;
  988. border: none;
  989. border-radius: 16px;
  990. font-size: 1rem;
  991. font-weight: 600;
  992. cursor: pointer;
  993. transition: all 0.3s ease;
  994. display: flex;
  995. align-items: center;
  996. justify-content: center;
  997. gap: 12px;
  998. min-width: 180px;
  999. &.btn-lg {
  1000. padding: 18px 36px;
  1001. font-size: 1.125rem;
  1002. }
  1003. &:disabled {
  1004. opacity: 0.6;
  1005. cursor: not-allowed;
  1006. transform: none;
  1007. }
  1008. .animate-spin {
  1009. animation: spin 1s linear infinite;
  1010. }
  1011. }
  1012. .btn-primary {
  1013. background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  1014. color: white;
  1015. box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
  1016. &:hover:not(:disabled) {
  1017. transform: translateY(-2px);
  1018. box-shadow: 0 12px 48px rgba(59, 130, 246, 0.4);
  1019. }
  1020. }
  1021. .btn-secondary {
  1022. background: white;
  1023. color: #3b82f6;
  1024. border: 2px solid #3b82f6;
  1025. box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
  1026. &:hover:not(:disabled) {
  1027. background: #3b82f6;
  1028. color: white;
  1029. transform: translateY(-2px);
  1030. box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
  1031. }
  1032. }
  1033. }
  1034. // 旋转动画
  1035. @keyframes spin {
  1036. from {
  1037. transform: rotate(0deg);
  1038. }
  1039. to {
  1040. transform: rotate(360deg);
  1041. }
  1042. }
  1043. // iOS风格操作按钮区域
  1044. .action-section {
  1045. background-color: $background-tertiary;
  1046. padding: 16px;
  1047. position: fixed;
  1048. bottom: 0;
  1049. left: 0;
  1050. right: 0;
  1051. z-index: 100;
  1052. display: flex;
  1053. gap: 16px;
  1054. justify-content: space-between;
  1055. border-top: 0.5px solid $border-color;
  1056. @media (min-width: 768px) {
  1057. position: sticky;
  1058. bottom: 20px;
  1059. left: auto;
  1060. right: auto;
  1061. width: calc(100% - 40px);
  1062. max-width: 1200px;
  1063. margin: $grid-gap auto 0;
  1064. border-radius: $border-radius;
  1065. border: 0.5px solid rgba(0,0,0,0.1);
  1066. box-shadow: $shadow-sm;
  1067. }
  1068. .primary-btn, .secondary-btn {
  1069. flex: 1;
  1070. text-align: center;
  1071. }
  1072. }
  1073. .primary-btn,
  1074. .secondary-btn {
  1075. padding: 16px 32px; // 增大按钮尺寸
  1076. border-radius: $border-radius;
  1077. font-size: 18px; // 放大按钮字体
  1078. font-weight: 600;
  1079. cursor: pointer;
  1080. transition: $transition;
  1081. border: none;
  1082. display: inline-flex;
  1083. align-items: center;
  1084. justify-content: center;
  1085. gap: 8px;
  1086. min-width: 160px;
  1087. text-transform: none;
  1088. letter-spacing: 0.5px;
  1089. }
  1090. .primary-btn {
  1091. background-color: $primary-color;
  1092. color: white;
  1093. &:hover:not(:disabled) {
  1094. background-color: $primary-dark;
  1095. transform: translateY(-2px);
  1096. box-shadow: $shadow-md;
  1097. }
  1098. &:active:not(:disabled) {
  1099. transform: translateY(0);
  1100. }
  1101. &:disabled {
  1102. background-color: $text-tertiary;
  1103. cursor: not-allowed;
  1104. }
  1105. }
  1106. .secondary-btn {
  1107. background-color: $background-tertiary;
  1108. color: $text-primary;
  1109. border: 2px solid $border-color;
  1110. &:hover:not(:disabled) {
  1111. background-color: $background-secondary;
  1112. border-color: $primary-color;
  1113. color: $primary-color;
  1114. transform: translateY(-2px);
  1115. box-shadow: $shadow-md;
  1116. }
  1117. &:active:not(:disabled) {
  1118. transform: translateY(0);
  1119. }
  1120. &:disabled {
  1121. background-color: $background-tertiary;
  1122. color: $text-tertiary;
  1123. border-color: $border-color;
  1124. cursor: not-allowed;
  1125. }
  1126. }
  1127. // 响应式设计
  1128. @media (max-width: 768px) {
  1129. .consultation-order-container {
  1130. padding: 16px;
  1131. }
  1132. .page-header {
  1133. h1 {
  1134. font-size: 24px;
  1135. }
  1136. }
  1137. .form-row {
  1138. flex-direction: column;
  1139. gap: 12px;
  1140. }
  1141. .form-group {
  1142. min-width: 100%;
  1143. }
  1144. .cases-grid {
  1145. grid-template-columns: 1fr;
  1146. }
  1147. .action-section {
  1148. flex-direction: column;
  1149. }
  1150. .primary-btn,
  1151. .secondary-btn {
  1152. width: 100%;
  1153. }
  1154. .section-header {
  1155. flex-direction: column;
  1156. align-items: flex-start;
  1157. gap: 8px;
  1158. }
  1159. }