project-detail.scss 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230
  1. @use '../../../shared/styles/_ios-theme.scss' as *;
  2. @import './components/vertical-nav/vertical-nav-styles';
  3. /* 项目详情容器 */
  4. .project-detail-container {
  5. padding: $ios-spacing-lg; // 使用统一的间距变量
  6. background-color: #f5f7fa;
  7. color: #333;
  8. min-height: 100vh;
  9. box-sizing: border-box; // 确保内边距计算正确
  10. overflow-x: auto; // 允许水平滚动以防内容过宽
  11. }
  12. // 图片预览模态框样式
  13. .image-preview-modal {
  14. position: fixed;
  15. top: 0;
  16. left: 0;
  17. right: 0;
  18. bottom: 0;
  19. z-index: 1000;
  20. display: flex;
  21. align-items: center;
  22. justify-content: center;
  23. .modal-backdrop {
  24. position: absolute;
  25. top: 0;
  26. left: 0;
  27. right: 0;
  28. bottom: 0;
  29. background: rgba(0, 0, 0, 0.8);
  30. backdrop-filter: blur(4px);
  31. }
  32. .modal-content {
  33. position: relative;
  34. background: white;
  35. border-radius: 12px;
  36. max-width: 90vw;
  37. max-height: 90vh;
  38. overflow: hidden;
  39. box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  40. animation: modalFadeIn 0.3s ease-out;
  41. .modal-header {
  42. display: flex;
  43. justify-content: space-between;
  44. align-items: center;
  45. padding: 16px 20px;
  46. border-bottom: 1px solid #e9ecef;
  47. h3 {
  48. margin: 0;
  49. font-size: 18px;
  50. font-weight: 600;
  51. color: #333;
  52. overflow: hidden;
  53. text-overflow: ellipsis;
  54. white-space: nowrap;
  55. max-width: 400px;
  56. }
  57. .close-btn {
  58. width: 40px;
  59. height: 40px;
  60. border: none;
  61. background: #f8f9fa;
  62. border-radius: 8px;
  63. cursor: pointer;
  64. display: flex;
  65. align-items: center;
  66. justify-content: center;
  67. transition: all 0.2s ease;
  68. &:hover {
  69. background: #e9ecef;
  70. color: #dc3545;
  71. }
  72. }
  73. }
  74. .modal-body {
  75. padding: 20px;
  76. display: flex;
  77. align-items: center;
  78. justify-content: center;
  79. max-height: 60vh;
  80. img {
  81. max-width: 100%;
  82. max-height: 100%;
  83. object-fit: contain;
  84. border-radius: 8px;
  85. }
  86. }
  87. .modal-footer {
  88. display: flex;
  89. justify-content: space-between;
  90. align-items: center;
  91. padding: 16px 20px;
  92. border-top: 1px solid #e9ecef;
  93. background: #f8f9fa;
  94. .image-info {
  95. display: flex;
  96. gap: 12px;
  97. align-items: center;
  98. font-size: 14px;
  99. color: #666;
  100. .status-badge {
  101. padding: 4px 8px;
  102. border-radius: 4px;
  103. font-size: 12px;
  104. font-weight: 500;
  105. background: #e9ecef;
  106. color: #495057;
  107. }
  108. }
  109. .modal-actions {
  110. display: flex;
  111. gap: 12px;
  112. button {
  113. padding: 8px 16px;
  114. border: none;
  115. border-radius: 6px;
  116. font-size: 14px;
  117. font-weight: 500;
  118. cursor: pointer;
  119. transition: all 0.2s ease;
  120. &.secondary-btn {
  121. background: #6c757d;
  122. color: white;
  123. &:hover {
  124. background: #5a6268;
  125. }
  126. }
  127. &.danger-btn {
  128. background: #dc3545;
  129. color: white;
  130. &:hover {
  131. background: #c82333;
  132. }
  133. }
  134. }
  135. }
  136. }
  137. }
  138. }
  139. @keyframes modalFadeIn {
  140. from {
  141. opacity: 0;
  142. transform: scale(0.9);
  143. }
  144. to {
  145. opacity: 1;
  146. transform: scale(1);
  147. }
  148. }
  149. // 下拉菜单动画
  150. @keyframes dropdown-fade-in {
  151. from {
  152. opacity: 0;
  153. transform: translateY(-8px);
  154. }
  155. to {
  156. opacity: 1;
  157. transform: translateY(0);
  158. }
  159. }
  160. /* 项目标题栏 */
  161. .project-header {
  162. display: flex;
  163. justify-content: space-between;
  164. align-items: center;
  165. margin-bottom: $ios-spacing-xl; // 增加底部间距
  166. background-color: white;
  167. padding: $ios-spacing-lg;
  168. border-radius: $ios-radius-lg;
  169. width: 100%;
  170. box-sizing: border-box;
  171. position: relative; // 确保下拉菜单正确定位
  172. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  173. .header-left {
  174. flex: 1;
  175. .header-content {
  176. h1 {
  177. margin: 0 0 8px 0;
  178. font-size: $ios-font-size-xl;
  179. font-weight: $ios-font-weight-semibold;
  180. color: $ios-text-primary;
  181. }
  182. .project-meta {
  183. display: flex;
  184. align-items: center;
  185. gap: $ios-spacing-md;
  186. .project-id {
  187. font-size: $ios-font-size-sm;
  188. color: $ios-text-secondary;
  189. }
  190. .project-status {
  191. padding: $ios-spacing-xs $ios-spacing-sm;
  192. border-radius: $ios-radius-full;
  193. font-size: $ios-font-size-xs;
  194. font-weight: $ios-font-weight-medium;
  195. background-color: $ios-primary;
  196. color: white;
  197. }
  198. }
  199. }
  200. }
  201. .header-right {
  202. .header-actions {
  203. display: flex;
  204. align-items: center;
  205. gap: $ios-spacing-sm;
  206. .action-btn {
  207. padding: 10px 16px;
  208. border: none;
  209. border-radius: 8px;
  210. font-size: 14px;
  211. font-weight: 500;
  212. cursor: pointer;
  213. transition: all 0.2s ease-in-out;
  214. display: inline-flex;
  215. align-items: center;
  216. justify-content: center;
  217. gap: 6px;
  218. min-height: 40px;
  219. white-space: nowrap;
  220. text-decoration: none;
  221. svg {
  222. flex-shrink: 0;
  223. }
  224. &:focus {
  225. outline: 2px solid $ios-primary;
  226. outline-offset: 2px;
  227. }
  228. &:hover {
  229. transform: translateY(-1px);
  230. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  231. }
  232. &:active {
  233. transform: translateY(0);
  234. box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  235. }
  236. // 主要按钮样式(返回工作台)
  237. &.primary {
  238. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  239. color: white;
  240. font-weight: 600;
  241. &:hover {
  242. background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  243. }
  244. }
  245. // 次要按钮样式
  246. &.secondary-btn {
  247. background-color: #f8f9fa;
  248. color: #495057;
  249. border: 1px solid #e9ecef;
  250. &:hover {
  251. background-color: #e9ecef;
  252. border-color: #dee2e6;
  253. }
  254. }
  255. // 停滞按钮样式
  256. &.stagnation-btn {
  257. background-color: #fff3cd;
  258. color: #856404;
  259. border: 1px solid #ffeaa7;
  260. &:hover {
  261. background-color: #ffeaa7;
  262. border-color: #ffdd57;
  263. }
  264. }
  265. // 切换项目按钮样式
  266. &.switch-btn {
  267. background-color: #e3f2fd;
  268. color: #1565c0;
  269. border: 1px solid #bbdefb;
  270. .dropdown-icon {
  271. transition: transform 0.2s ease-in-out;
  272. }
  273. &:hover {
  274. background-color: #bbdefb;
  275. border-color: #90caf9;
  276. }
  277. }
  278. }
  279. // 项目切换器
  280. .project-switcher {
  281. position: relative;
  282. .switch-dropdown {
  283. position: absolute;
  284. top: calc(100% + 8px);
  285. right: 0;
  286. background: white;
  287. border: 1px solid #e9ecef;
  288. border-radius: 8px;
  289. box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  290. z-index: 1000;
  291. min-width: 280px;
  292. max-height: 300px;
  293. overflow-y: auto;
  294. animation: dropdown-fade-in 0.2s ease-out;
  295. .project-item {
  296. padding: 12px 16px;
  297. cursor: pointer;
  298. border-bottom: 1px solid #f8f9fa;
  299. transition: background-color 0.2s ease-in-out;
  300. &:last-child {
  301. border-bottom: none;
  302. }
  303. &:hover {
  304. background-color: #f8f9fa;
  305. }
  306. &.active {
  307. background-color: #e3f2fd;
  308. .project-name {
  309. color: #1565c0;
  310. font-weight: 600;
  311. }
  312. }
  313. .project-name {
  314. display: block;
  315. font-weight: 500;
  316. margin-bottom: 4px;
  317. }
  318. .project-status-badge {
  319. font-size: 12px;
  320. padding: 2px 8px;
  321. border-radius: 12px;
  322. &.ongoing {
  323. background-color: #e8f5e8;
  324. color: #2e7d32;
  325. }
  326. &.completed {
  327. background-color: #e3f2fd;
  328. color: #1565c0;
  329. }
  330. &.pending {
  331. background-color: #fff3e0;
  332. color: #ef6c00;
  333. }
  334. }
  335. }
  336. }
  337. }
  338. }
  339. }
  340. }
  341. // 下拉菜单动画
  342. @keyframes dropdown-fade-in {
  343. from {
  344. opacity: 0;
  345. transform: translateY(-8px);
  346. }
  347. to {
  348. opacity: 1;
  349. transform: translateY(0);
  350. }
  351. }
  352. // 响应式设计
  353. @media (max-width: 768px) {
  354. .project-header {
  355. flex-direction: column;
  356. align-items: stretch;
  357. gap: 16px;
  358. .header-right {
  359. .header-actions {
  360. flex-wrap: wrap;
  361. justify-content: flex-end;
  362. gap: 8px;
  363. .action-btn {
  364. font-size: 13px;
  365. padding: 8px 12px;
  366. min-height: 36px;
  367. }
  368. }
  369. }
  370. }
  371. }
  372. /* 项目内容区域 */
  373. .project-content {
  374. .action-btn {
  375. padding: $ios-spacing-sm $ios-spacing-md;
  376. border: 1px solid $ios-border;
  377. border-radius: $ios-radius-md;
  378. font-size: $ios-font-size-sm;
  379. font-weight: $ios-font-weight-medium;
  380. cursor: pointer;
  381. transition: all 0.2s ease;
  382. display: inline-flex;
  383. align-items: center;
  384. gap: $ios-spacing-xs;
  385. svg {
  386. width: 16px;
  387. height: 16px;
  388. fill: currentColor;
  389. }
  390. &:hover {
  391. background-color: $ios-background-tertiary;
  392. transform: translateY(-1px);
  393. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  394. border-color: color-mix(in srgb, $ios-border 70%, $ios-primary);
  395. }
  396. &:active {
  397. transform: translateY(0);
  398. background-color: $ios-background-secondary;
  399. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  400. }
  401. }
  402. .switch-btn {
  403. background-color: $ios-primary;
  404. color: white;
  405. position: relative;
  406. &:hover {
  407. background-color: color-mix(in srgb, $ios-primary 85%, black);
  408. transform: translateY(-1px);
  409. box-shadow: 0 4px 12px rgba(22, 93, 255, 0.25);
  410. }
  411. &:active {
  412. transform: translateY(0);
  413. box-shadow: 0 2px 6px rgba(22, 93, 255, 0.2);
  414. }
  415. }
  416. .secondary-btn {
  417. background-color: $ios-background-secondary;
  418. color: $ios-text-primary;
  419. border: 1px solid $ios-border;
  420. &:hover {
  421. background-color: $ios-background-tertiary;
  422. transform: translateY(-1px);
  423. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  424. border-color: color-mix(in srgb, $ios-border 70%, $ios-primary);
  425. }
  426. &:active {
  427. transform: translateY(0);
  428. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  429. }
  430. }
  431. .stagnation-btn {
  432. background-color: $ios-warning;
  433. color: white;
  434. &:hover {
  435. background-color: color-mix(in srgb, $ios-warning 85%, black);
  436. transform: translateY(-1px);
  437. box-shadow: 0 4px 12px rgba(255, 125, 0, 0.25);
  438. }
  439. &:active {
  440. transform: translateY(0);
  441. box-shadow: 0 2px 6px rgba(255, 125, 0, 0.2);
  442. }
  443. }
  444. .project-switcher {
  445. position: relative;
  446. .switch-dropdown {
  447. position: absolute;
  448. top: 100%;
  449. right: 0;
  450. margin-top: $ios-spacing-xs;
  451. background-color: white;
  452. border: 1px solid $ios-border;
  453. border-radius: $ios-radius-md;
  454. box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  455. min-width: 280px;
  456. max-height: 300px;
  457. overflow-y: auto;
  458. z-index: 1000;
  459. // 添加动画效果
  460. animation: dropdown-fade-in 0.2s ease-out;
  461. .project-item {
  462. display: flex;
  463. align-items: center;
  464. justify-content: space-between;
  465. padding: $ios-spacing-md;
  466. cursor: pointer;
  467. transition: all 0.15s ease-in-out;
  468. border-bottom: 1px solid $ios-border;
  469. &:last-child {
  470. border-bottom: none;
  471. }
  472. &:hover {
  473. background-color: $ios-background-secondary;
  474. transform: translateX(2px);
  475. }
  476. &.active {
  477. background-color: color-mix(in srgb, $ios-primary 10%, white);
  478. color: $ios-primary;
  479. border-left: 3px solid $ios-primary;
  480. padding-left: calc(#{$ios-spacing-md} - 3px);
  481. }
  482. .project-name {
  483. font-size: $ios-font-size-sm;
  484. font-weight: $ios-font-weight-medium;
  485. color: $ios-text-primary;
  486. }
  487. .project-status-badge {
  488. padding: $ios-spacing-xs $ios-spacing-sm;
  489. border-radius: $ios-radius-full;
  490. font-size: $ios-font-size-xs;
  491. font-weight: $ios-font-weight-medium;
  492. &.ongoing {
  493. background-color: color-mix(in srgb, $ios-success 15%, white);
  494. color: $ios-success;
  495. border: 1px solid color-mix(in srgb, $ios-success 30%, white);
  496. }
  497. &.completed {
  498. background-color: color-mix(in srgb, $ios-primary 15%, white);
  499. color: $ios-primary;
  500. border: 1px solid color-mix(in srgb, $ios-primary 30%, white);
  501. }
  502. &.pending {
  503. background-color: color-mix(in srgb, $ios-warning 15%, white);
  504. color: $ios-warning;
  505. border: 1px solid color-mix(in srgb, $ios-warning 30%, white);
  506. }
  507. }
  508. }
  509. }
  510. }
  511. }
  512. /* 主内容布局 */
  513. .main-content-layout {
  514. display: grid;
  515. grid-template-columns: 1fr 350px; // 调整为两列:主内容区和右侧栏
  516. gap: $ios-spacing-lg;
  517. max-width: calc(100vw - 40px);
  518. margin: 0 auto;
  519. overflow: visible;
  520. align-items: start;
  521. // 移除导航栏列相关样式
  522. .nav-column {
  523. display: none; // 隐藏导航栏列
  524. }
  525. .left-column {
  526. padding: 0;
  527. min-width: 0;
  528. flex: 1;
  529. }
  530. .right-column {
  531. padding: 0;
  532. min-width: 300px;
  533. max-width: 400px;
  534. }
  535. }
  536. // 响应式设计优化
  537. @media (max-width: 1400px) {
  538. .project-detail-container {
  539. padding: $ios-spacing-md;
  540. }
  541. .main-content-layout {
  542. grid-template-columns: 1fr 300px; // 中等屏幕调整
  543. gap: $ios-spacing-md;
  544. }
  545. .horizontal-nav-container {
  546. margin-bottom: $ios-spacing-md;
  547. padding: $ios-spacing-sm;
  548. }
  549. }
  550. @media (max-width: 1200px) {
  551. .project-detail-container {
  552. padding: $ios-spacing-sm;
  553. }
  554. .main-content-layout {
  555. grid-template-columns: 1fr 280px; // 进一步减小右侧栏宽度
  556. gap: $ios-spacing-sm;
  557. .right-column {
  558. min-width: 260px;
  559. max-width: 320px;
  560. }
  561. }
  562. .horizontal-nav {
  563. .nav-item {
  564. padding: $ios-spacing-sm $ios-spacing-md;
  565. font-size: $ios-font-size-sm;
  566. }
  567. }
  568. }
  569. @media (max-width: 768px) {
  570. .project-detail-container {
  571. padding: $ios-spacing-sm;
  572. }
  573. .main-content-layout {
  574. grid-template-columns: 1fr;
  575. gap: $ios-spacing-md;
  576. .left-column,
  577. .right-column {
  578. width: 100%;
  579. min-width: unset;
  580. max-width: unset;
  581. margin-bottom: $ios-spacing-md;
  582. }
  583. }
  584. .horizontal-nav-container {
  585. margin-bottom: $ios-spacing-md;
  586. padding: $ios-spacing-xs;
  587. }
  588. .horizontal-nav {
  589. .nav-item {
  590. padding: $ios-spacing-sm;
  591. font-size: $ios-font-size-sm;
  592. .nav-text {
  593. font-size: $ios-font-size-sm;
  594. }
  595. }
  596. }
  597. .project-header {
  598. flex-direction: column;
  599. align-items: flex-start;
  600. gap: $ios-spacing-md;
  601. .header-actions {
  602. width: 100%;
  603. justify-content: flex-start;
  604. flex-wrap: wrap;
  605. gap: $ios-spacing-sm;
  606. }
  607. }
  608. }
  609. @media (max-width: 480px) {
  610. .project-detail-container {
  611. padding: $ios-spacing-xs;
  612. }
  613. .horizontal-nav {
  614. .nav-item {
  615. padding: $ios-spacing-xs $ios-spacing-sm;
  616. font-size: $ios-font-size-xs;
  617. .nav-text {
  618. font-size: $ios-font-size-xs;
  619. }
  620. }
  621. }
  622. .project-header {
  623. padding: $ios-spacing-md;
  624. .header-actions {
  625. flex-direction: column;
  626. align-items: stretch;
  627. .action-btn {
  628. width: 100%;
  629. margin-bottom: $ios-spacing-xs;
  630. }
  631. }
  632. }
  633. }
  634. /* 阶段详情网格 */
  635. .stage-details-grid {
  636. display: flex;
  637. gap: $ios-spacing-md;
  638. overflow-x: auto;
  639. padding-bottom: $ios-spacing-sm;
  640. }
  641. .stage-details-cell {
  642. flex: 1 1 auto;
  643. min-width: 200px;
  644. background-color: $ios-background-secondary;
  645. border-radius: $ios-radius-md;
  646. padding: $ios-spacing-md;
  647. }
  648. @media (max-width: 1200px) {
  649. .project-detail-container {
  650. padding: $ios-spacing-sm; // 减小容器内边距
  651. }
  652. .main-content-layout {
  653. grid-template-columns: 160px 1fr 260px; // 进一步减小列宽
  654. gap: $ios-spacing-sm; // 减小间距
  655. }
  656. }
  657. @media (max-width: 768px) {
  658. .project-detail-container {
  659. padding: $ios-spacing-xs; // 移动端进一步减小内边距
  660. }
  661. .main-content-layout {
  662. grid-template-columns: 1fr;
  663. gap: $ios-spacing-sm;
  664. .left-column,
  665. .right-column {
  666. min-width: unset;
  667. max-width: unset;
  668. }
  669. }
  670. }
  671. /* 水平导航栏容器 */
  672. .horizontal-nav-container {
  673. margin-bottom: $ios-spacing-lg;
  674. background-color: white;
  675. border-radius: $ios-radius-lg;
  676. padding: $ios-spacing-md;
  677. box-shadow: $ios-shadow-sm;
  678. }
  679. /* 水平导航栏样式 */
  680. .horizontal-nav {
  681. .vertical-nav {
  682. display: flex;
  683. flex-direction: row; // 改为横向排列
  684. gap: 0; // 移除间距,让按钮紧密排列
  685. padding: 0;
  686. background: transparent;
  687. border: none;
  688. box-shadow: none;
  689. min-width: unset;
  690. max-width: unset;
  691. width: 100%;
  692. }
  693. .nav-item {
  694. flex: 1; // 每个按钮均分宽度
  695. display: flex;
  696. align-items: center;
  697. justify-content: center;
  698. padding: $ios-spacing-md $ios-spacing-lg;
  699. border-radius: 0; // 移除圆角
  700. cursor: pointer;
  701. transition: all 0.2s ease;
  702. color: $ios-text-primary;
  703. text-decoration: none;
  704. font-size: $ios-font-size-md;
  705. font-weight: $ios-font-weight-medium;
  706. line-height: 1.4;
  707. background: transparent;
  708. border: none;
  709. border-bottom: 3px solid transparent; // 添加底部边框用于激活状态
  710. &:first-child {
  711. border-top-left-radius: $ios-radius-md;
  712. border-bottom-left-radius: $ios-radius-md;
  713. }
  714. &:last-child {
  715. border-top-right-radius: $ios-radius-md;
  716. border-bottom-right-radius: $ios-radius-md;
  717. }
  718. &:hover {
  719. background-color: $ios-background-secondary;
  720. }
  721. &.active {
  722. background-color: rgba(0, 122, 255, 0.1); // 使用透明度替代不存在的变量
  723. color: $ios-primary;
  724. font-weight: $ios-font-weight-semibold;
  725. border-bottom-color: $ios-primary; // 激活状态的底部边框
  726. }
  727. .nav-text {
  728. white-space: nowrap;
  729. overflow: hidden;
  730. text-overflow: ellipsis;
  731. flex: 1;
  732. text-align: center;
  733. }
  734. // 移除图标相关样式,因为当前导航项没有图标
  735. .nav-icon {
  736. display: none;
  737. }
  738. }
  739. }
  740. // 优化交付执行模块中的"选择图片"按钮样式 - 提高选择器特异性
  741. .project-detail-container.designer-page {
  742. .upload-section {
  743. margin: 20px 0;
  744. .upload-header {
  745. margin-bottom: 16px;
  746. h4 {
  747. margin: 0 0 8px 0;
  748. font-size: 16px;
  749. font-weight: 600;
  750. color: #333;
  751. }
  752. .hint {
  753. font-size: 14px;
  754. color: #666;
  755. }
  756. }
  757. // 新的大型上传框样式
  758. .upload-dropzone {
  759. width: 100%;
  760. min-height: 200px;
  761. border: 2px dashed #d0d7de;
  762. border-radius: 12px;
  763. background: #f8f9fa;
  764. display: flex;
  765. flex-direction: column;
  766. align-items: center;
  767. justify-content: center;
  768. cursor: pointer;
  769. transition: all 0.3s ease;
  770. position: relative;
  771. margin-bottom: 16px;
  772. &:hover {
  773. border-color: #4A90E2;
  774. background: #f0f6ff;
  775. .upload-icon {
  776. color: #4A90E2;
  777. transform: scale(1.1);
  778. }
  779. .upload-text {
  780. color: #4A90E2;
  781. }
  782. }
  783. &.drag-over {
  784. border-color: #4A90E2;
  785. background: #e6f3ff;
  786. .upload-icon {
  787. color: #4A90E2;
  788. animation: bounce 0.6s ease-in-out infinite alternate;
  789. }
  790. }
  791. // 有图片时的样式
  792. &.has-images {
  793. min-height: 250px;
  794. padding: 16px;
  795. cursor: default;
  796. &:hover {
  797. border-color: #d0d7de;
  798. background: #f8f9fa;
  799. }
  800. }
  801. .upload-icon {
  802. width: 48px;
  803. height: 48px;
  804. margin-bottom: 12px;
  805. color: #8b949e;
  806. transition: all 0.3s ease;
  807. // 加号图标样式
  808. &::before {
  809. content: '+';
  810. font-size: 48px;
  811. font-weight: 300;
  812. line-height: 1;
  813. display: block;
  814. }
  815. }
  816. .upload-text {
  817. font-size: 16px;
  818. font-weight: 500;
  819. color: #656d76;
  820. margin-bottom: 8px;
  821. text-align: center;
  822. transition: color 0.3s ease;
  823. }
  824. .upload-hint {
  825. font-size: 14px;
  826. color: #8b949e;
  827. text-align: center;
  828. line-height: 1.4;
  829. }
  830. // 上传后的图片网格
  831. .uploaded-images-grid {
  832. display: grid;
  833. grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  834. gap: 12px;
  835. width: 100%;
  836. .uploaded-image-item {
  837. position: relative;
  838. aspect-ratio: 1;
  839. border-radius: 8px;
  840. overflow: hidden;
  841. cursor: pointer;
  842. transition: all 0.3s ease;
  843. &:hover {
  844. transform: scale(1.05);
  845. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  846. .image-overlay {
  847. opacity: 1;
  848. }
  849. }
  850. img {
  851. width: 100%;
  852. height: 100%;
  853. object-fit: cover;
  854. border-radius: 8px;
  855. }
  856. .image-overlay {
  857. position: absolute;
  858. top: 0;
  859. left: 0;
  860. right: 0;
  861. bottom: 0;
  862. background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.7) 100%);
  863. opacity: 0;
  864. transition: opacity 0.3s ease;
  865. display: flex;
  866. flex-direction: column;
  867. justify-content: space-between;
  868. padding: 8px;
  869. .image-name {
  870. color: white;
  871. font-size: 12px;
  872. font-weight: 500;
  873. text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  874. overflow: hidden;
  875. text-overflow: ellipsis;
  876. white-space: nowrap;
  877. }
  878. .image-actions {
  879. display: flex;
  880. gap: 8px;
  881. justify-content: center;
  882. button {
  883. width: 32px;
  884. height: 32px;
  885. border: none;
  886. border-radius: 6px;
  887. background: rgba(255, 255, 255, 0.9);
  888. color: #333;
  889. cursor: pointer;
  890. display: flex;
  891. align-items: center;
  892. justify-content: center;
  893. transition: all 0.2s ease;
  894. &:hover {
  895. background: white;
  896. transform: scale(1.1);
  897. }
  898. &.preview-btn:hover {
  899. color: #4A90E2;
  900. }
  901. &.remove-btn:hover {
  902. color: #dc3545;
  903. }
  904. }
  905. }
  906. }
  907. }
  908. .add-more-btn {
  909. aspect-ratio: 1;
  910. border: 2px dashed #d0d7de;
  911. border-radius: 8px;
  912. background: #f8f9fa;
  913. display: flex;
  914. flex-direction: column;
  915. align-items: center;
  916. justify-content: center;
  917. cursor: pointer;
  918. transition: all 0.3s ease;
  919. &:hover {
  920. border-color: #4A90E2;
  921. background: #f0f6ff;
  922. .add-icon {
  923. color: #4A90E2;
  924. transform: scale(1.1);
  925. }
  926. .add-text {
  927. color: #4A90E2;
  928. }
  929. }
  930. .add-icon {
  931. font-size: 24px;
  932. color: #8b949e;
  933. margin-bottom: 4px;
  934. transition: all 0.3s ease;
  935. }
  936. .add-text {
  937. font-size: 12px;
  938. color: #8b949e;
  939. transition: color 0.3s ease;
  940. }
  941. }
  942. }
  943. // 隐藏的文件输入框
  944. input[type="file"] {
  945. position: absolute;
  946. top: 0;
  947. left: 0;
  948. width: 100%;
  949. height: 100%;
  950. opacity: 0;
  951. cursor: pointer;
  952. }
  953. }
  954. // 弹跳动画
  955. @keyframes bounce {
  956. 0% { transform: translateY(0); }
  957. 100% { transform: translateY(-8px); }
  958. }
  959. }
  960. .upload-actions {
  961. display: flex;
  962. gap: 12px;
  963. align-items: center;
  964. margin-top: 16px;
  965. .secondary-btn {
  966. // 保持原有的按钮样式,但调整为辅助按钮
  967. padding: 8px 16px !important;
  968. min-height: 36px;
  969. font-size: 14px !important;
  970. font-weight: 500 !important;
  971. background: #f6f8fa !important;
  972. color: #24292f !important;
  973. border: 1px solid #d0d7de !important;
  974. border-radius: 8px !important;
  975. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  976. transition: all 0.2s ease !important;
  977. &:hover {
  978. background: #f3f4f6 !important;
  979. border-color: #c7c7c7 !important;
  980. box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  981. }
  982. &:active {
  983. transform: translateY(1px) !important;
  984. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  985. }
  986. }
  987. .primary-btn {
  988. padding: 8px 16px;
  989. min-height: 36px;
  990. font-size: 14px;
  991. font-weight: 500;
  992. background: #4A90E2;
  993. color: white;
  994. border: 1px solid #4A90E2;
  995. border-radius: 8px;
  996. box-shadow: 0 1px 3px rgba(74, 144, 226, 0.3);
  997. transition: all 0.2s ease;
  998. cursor: pointer;
  999. &:hover:not(:disabled) {
  1000. background: #357ABD;
  1001. border-color: #357ABD;
  1002. box-shadow: 0 2px 6px rgba(74, 144, 226, 0.4);
  1003. }
  1004. &:disabled {
  1005. background: #e9ecef;
  1006. color: #6c757d;
  1007. border-color: #dee2e6;
  1008. cursor: not-allowed;
  1009. box-shadow: none;
  1010. }
  1011. }
  1012. }
  1013. }
  1014. // 响应式设计优化
  1015. @media (max-width: 768px) {
  1016. .project-detail-container.designer-page {
  1017. .upload-actions {
  1018. flex-direction: column;
  1019. gap: 12px;
  1020. .secondary-btn {
  1021. width: 100% !important;
  1022. padding: 16px 20px !important;
  1023. font-size: 16px !important;
  1024. min-height: 48px;
  1025. &::after {
  1026. font-size: 18px;
  1027. }
  1028. }
  1029. .primary-btn {
  1030. width: 100%;
  1031. padding: 16px 20px;
  1032. font-size: 16px;
  1033. min-height: 48px;
  1034. }
  1035. }
  1036. }
  1037. }
  1038. @media (max-width: 480px) {
  1039. .project-detail-container.designer-page {
  1040. .upload-actions {
  1041. .secondary-btn {
  1042. padding: 18px 24px !important;
  1043. font-size: 17px !important;
  1044. min-height: 52px;
  1045. &::after {
  1046. font-size: 20px;
  1047. }
  1048. }
  1049. }
  1050. }
  1051. }