work-status.css 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. body {
  2. background-color: #fff;
  3. }
  4. .container {
  5. display: flex;
  6. flex-direction: column;
  7. align-items: center;
  8. padding-top: 3.125rem;
  9. }
  10. /* 挂牌动画区域 */
  11. .signboard-container {
  12. position: relative;
  13. width: 12.5rem;
  14. height: 9.375rem;
  15. display: flex;
  16. justify-content: center;
  17. margin-bottom: 1.875rem;
  18. }
  19. .rope {
  20. position: absolute;
  21. top: 0;
  22. width: 6.25rem;
  23. height: 3.125rem;
  24. border-top: 0.125rem solid #FFC107; /* Yellow rope */
  25. border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  26. z-index: 1;
  27. }
  28. .nail {
  29. position: absolute;
  30. top: -0.3125rem;
  31. width: 0.75rem;
  32. height: 0.75rem;
  33. background-color: #FFC107;
  34. border-radius: 50%;
  35. z-index: 2;
  36. box-shadow: 0 0.0625rem 0.125rem rgba(0,0,0,0.2);
  37. }
  38. .board {
  39. position: absolute;
  40. top: 2.5rem;
  41. width: 11.25rem;
  42. height: 6.25rem;
  43. background-color: #FF7043; /* Orange for working */
  44. border-radius: 0.625rem;
  45. display: flex;
  46. justify-content: center;
  47. align-items: center;
  48. box-shadow: 0 0.3125rem 0 #E64A19;
  49. transition: all 0.3s;
  50. }
  51. .board.resting {
  52. background-color: #BDBDBD; /* Gray for resting */
  53. box-shadow: 0 0.3125rem 0 #9E9E9E;
  54. }
  55. .board-inner {
  56. width: 8.75rem;
  57. height: 3.75rem;
  58. background-color: #fff;
  59. border-radius: 0.3125rem;
  60. display: flex;
  61. justify-content: center;
  62. align-items: center;
  63. transform: rotate(-2deg); /* Slightly tilted inner paper */
  64. }
  65. .status-text {
  66. font-size: 1.5rem;
  67. font-weight: bold;
  68. color: #FF5722;
  69. }
  70. .board.resting .status-text {
  71. color: #757575;
  72. }
  73. .screw {
  74. position: absolute;
  75. width: 0.5rem;
  76. height: 0.5rem;
  77. background-color: #fff;
  78. border-radius: 50%;
  79. opacity: 0.8;
  80. }
  81. .top-left { top: 0.625rem; left: 0.625rem;
  82. }
  83. .top-right { top: 0.625rem; right: 0.625rem;
  84. }
  85. .bottom-left { bottom: 0.625rem; left: 0.625rem;
  86. }
  87. .bottom-right { bottom: 0.625rem; right: 0.625rem;
  88. }
  89. /* 文本描述 */
  90. .status-desc {
  91. margin-bottom: 3.125rem;
  92. color: #333;
  93. font-size: 0.9375rem;
  94. font-weight: 500;
  95. }
  96. /* 按钮区域 */
  97. .action-area {
  98. width: 80%;
  99. display: flex;
  100. flex-direction: column;
  101. align-items: center;
  102. }
  103. .action-btn {
  104. width: 100%;
  105. height: 2.75rem;
  106. line-height: 2.75rem;
  107. border-radius: 1.375rem;
  108. color: #fff;
  109. font-size: 1rem;
  110. font-weight: bold;
  111. margin-bottom: 0.9375rem;
  112. border: none;
  113. }
  114. .action-btn::after { border: none;
  115. }
  116. .action-btn.stop {
  117. background: linear-gradient(90deg, #FF9800 0%, #FF5722 100%);
  118. box-shadow: 0 0.3125rem 0.625rem rgba(255, 87, 34, 0.3);
  119. }
  120. .action-btn.stopped {
  121. background-color: #E0E0E0;
  122. color: #999;
  123. box-shadow: none;
  124. }
  125. .tips {
  126. font-size: 0.75rem;
  127. color: #999;
  128. text-align: center;
  129. line-height: 1.5;
  130. }