requirements-confirm-card-alternative.scss 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. // 备选方案:美观的卡片式布局样式
  2. .materials-section.alternative-layout {
  3. // 文本输入区域 - 独立一行
  4. .text-upload-section {
  5. margin-bottom: 2rem;
  6. .upload-item.text-item {
  7. background: white;
  8. border: 1px solid #e5e5e7;
  9. border-radius: 12px;
  10. padding: 1.5rem;
  11. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  12. h5 {
  13. margin: 0 0 1rem 0;
  14. font-size: 1rem;
  15. font-weight: 600;
  16. color: #1d1d1f;
  17. display: flex;
  18. align-items: center;
  19. gap: 0.5rem;
  20. &::before {
  21. content: "📝";
  22. font-size: 1.2rem;
  23. }
  24. }
  25. textarea {
  26. width: 100%;
  27. padding: 1rem;
  28. border: 1px solid #d2d2d7;
  29. border-radius: 8px;
  30. font-size: 0.9rem;
  31. resize: vertical;
  32. margin-bottom: 1rem;
  33. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  34. line-height: 1.5;
  35. &:focus {
  36. outline: none;
  37. border-color: #007aff;
  38. box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
  39. }
  40. &::placeholder {
  41. color: #86868b;
  42. }
  43. }
  44. .btn-primary {
  45. background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
  46. border: none;
  47. border-radius: 8px;
  48. padding: 0.75rem 1.5rem;
  49. color: white;
  50. font-weight: 500;
  51. font-size: 0.9rem;
  52. cursor: pointer;
  53. transition: all 0.2s ease;
  54. &:hover:not(:disabled) {
  55. transform: translateY(-1px);
  56. box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
  57. }
  58. &:disabled {
  59. opacity: 0.5;
  60. cursor: not-allowed;
  61. }
  62. }
  63. }
  64. }
  65. // 参考图片和CAD图纸 - 美观卡片式并排布局
  66. .file-upload-cards {
  67. display: grid;
  68. grid-template-columns: 1fr 1fr;
  69. gap: 1.5rem;
  70. // 移动端响应式
  71. @media (max-width: 768px) {
  72. grid-template-columns: 1fr;
  73. gap: 1rem;
  74. }
  75. .upload-card {
  76. background: white;
  77. border: 1px solid #e5e5e7;
  78. border-radius: 16px;
  79. overflow: hidden;
  80. box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  81. transition: all 0.3s ease;
  82. &:hover {
  83. transform: translateY(-2px);
  84. box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  85. }
  86. .card-header {
  87. padding: 1.25rem 1.5rem 1rem 1.5rem;
  88. border-bottom: 1px solid #f2f2f7;
  89. display: flex;
  90. align-items: center;
  91. gap: 0.75rem;
  92. .card-icon {
  93. width: 40px;
  94. height: 40px;
  95. border-radius: 10px;
  96. display: flex;
  97. align-items: center;
  98. justify-content: center;
  99. &.image-icon {
  100. background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%);
  101. color: white;
  102. }
  103. &.cad-icon {
  104. background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
  105. color: white;
  106. }
  107. }
  108. h5 {
  109. margin: 0;
  110. font-size: 1.1rem;
  111. font-weight: 600;
  112. color: #1d1d1f;
  113. }
  114. }
  115. .card-body {
  116. padding: 1.5rem;
  117. .file-upload-zone {
  118. border: 2px dashed #d2d2d7;
  119. border-radius: 12px;
  120. padding: 2rem 1rem;
  121. text-align: center;
  122. cursor: pointer;
  123. transition: all 0.3s ease;
  124. background: #fafafa;
  125. min-height: 140px;
  126. display: flex;
  127. align-items: center;
  128. justify-content: center;
  129. &:hover {
  130. border-color: #007aff;
  131. background: rgba(0, 122, 255, 0.02);
  132. transform: scale(1.02);
  133. }
  134. .upload-content {
  135. .upload-icon {
  136. margin-bottom: 1rem;
  137. svg {
  138. color: #86868b;
  139. transition: color 0.2s ease;
  140. }
  141. }
  142. p {
  143. margin: 0 0 0.5rem 0;
  144. font-size: 1rem;
  145. color: #1d1d1f;
  146. font-weight: 500;
  147. }
  148. .hint {
  149. font-size: 0.85rem;
  150. color: #86868b;
  151. line-height: 1.4;
  152. }
  153. }
  154. &:hover .upload-content {
  155. .upload-icon svg {
  156. color: #007aff;
  157. }
  158. }
  159. }
  160. }
  161. // 特定卡片样式
  162. &.image-card {
  163. .file-upload-zone:hover {
  164. border-color: #ff9500;
  165. background: rgba(255, 149, 0, 0.02);
  166. .upload-content .upload-icon svg {
  167. color: #ff9500;
  168. }
  169. }
  170. }
  171. &.cad-card {
  172. .file-upload-zone:hover {
  173. border-color: #007aff;
  174. background: rgba(0, 122, 255, 0.02);
  175. .upload-content .upload-icon svg {
  176. color: #007aff;
  177. }
  178. }
  179. }
  180. }
  181. }
  182. }
  183. // 深色模式支持
  184. @media (prefers-color-scheme: dark) {
  185. .materials-section.alternative-layout {
  186. .text-upload-section .upload-item.text-item,
  187. .file-upload-cards .upload-card {
  188. background: #1c1c1e;
  189. border-color: #38383a;
  190. h5 {
  191. color: #f2f2f7;
  192. }
  193. textarea {
  194. background: #2c2c2e;
  195. border-color: #48484a;
  196. color: #f2f2f7;
  197. &::placeholder {
  198. color: #8e8e93;
  199. }
  200. }
  201. .file-upload-zone {
  202. background: #2c2c2e;
  203. border-color: #48484a;
  204. .upload-content {
  205. p {
  206. color: #f2f2f7;
  207. }
  208. .hint {
  209. color: #8e8e93;
  210. }
  211. .upload-icon svg {
  212. color: #8e8e93;
  213. }
  214. }
  215. }
  216. }
  217. }
  218. }