style.css 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. /* 工业科技风格CSS */
  2. :root {
  3. --primary-color: #007acc;
  4. --secondary-color: #2c3e50;
  5. --accent-color: #e74c3c;
  6. --success-color: #27ae60;
  7. --warning-color: #f39c12;
  8. --light-gray: #ecf0f1;
  9. --dark-gray: #34495e;
  10. --border-color: #bdc3c7;
  11. --card-bg: #ffffff;
  12. --panel-bg: #f8f9fa;
  13. }
  14. * {
  15. margin: 0;
  16. padding: 0;
  17. box-sizing: border-box;
  18. }
  19. body {
  20. font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  21. background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
  22. color: #ecf0f1;
  23. min-height: 100vh;
  24. padding: 20px;
  25. }
  26. .container {
  27. max-width: 1400px;
  28. margin: 0 auto;
  29. }
  30. .header {
  31. text-align: center;
  32. margin-bottom: 30px;
  33. padding: 20px;
  34. background: rgba(0, 0, 0, 0.3);
  35. border-radius: 15px;
  36. border: 1px solid rgba(255, 255, 255, 0.1);
  37. backdrop-filter: blur(10px);
  38. }
  39. .header h1 {
  40. font-size: 2.5rem;
  41. margin-bottom: 10px;
  42. background: linear-gradient(45deg, #00c6ff, #0072ff);
  43. -webkit-background-clip: text;
  44. -webkit-text-fill-color: transparent;
  45. text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  46. }
  47. .header p {
  48. font-size: 1.1rem;
  49. opacity: 0.8;
  50. }
  51. .main-content {
  52. display: grid;
  53. grid-template-columns: 1fr 1fr;
  54. gap: 25px;
  55. }
  56. @media (max-width: 1200px) {
  57. .main-content {
  58. grid-template-columns: 1fr;
  59. }
  60. }
  61. .card {
  62. background: rgba(255, 255, 255, 0.05);
  63. border: 1px solid rgba(255, 255, 255, 0.1);
  64. border-radius: 15px;
  65. padding: 25px;
  66. backdrop-filter: blur(10px);
  67. box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  68. }
  69. .card h2 {
  70. font-size: 1.5rem;
  71. margin-bottom: 20px;
  72. color: #00c6ff;
  73. display: flex;
  74. align-items: center;
  75. gap: 10px;
  76. }
  77. .card h2 i {
  78. font-size: 1.2rem;
  79. }
  80. .form-group {
  81. margin-bottom: 20px;
  82. }
  83. .form-group label {
  84. display: block;
  85. margin-bottom: 8px;
  86. font-weight: 600;
  87. color: #ecf0f1;
  88. }
  89. .form-group input,
  90. .form-group select {
  91. width: 100%;
  92. padding: 12px 15px;
  93. border: 1px solid var(--border-color);
  94. border-radius: 8px;
  95. background: rgba(255, 255, 255, 0.1);
  96. color: white;
  97. font-size: 14px;
  98. transition: all 0.3s ease;
  99. }
  100. .form-group input:focus,
  101. .form-group select:focus {
  102. outline: none;
  103. border-color: var(--primary-color);
  104. box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.2);
  105. }
  106. .form-group input::placeholder {
  107. color: rgba(255, 255, 255, 0.5);
  108. }
  109. .transmission-type {
  110. display: grid;
  111. grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  112. gap: 15px;
  113. margin-bottom: 20px;
  114. }
  115. .transmission-btn {
  116. padding: 15px;
  117. border: 2px solid rgba(255, 255, 255, 0.2);
  118. border-radius: 10px;
  119. background: rgba(255, 255, 255, 0.05);
  120. color: white;
  121. cursor: pointer;
  122. text-align: center;
  123. font-weight: 600;
  124. transition: all 0.3s ease;
  125. }
  126. .transmission-btn:hover {
  127. background: rgba(0, 198, 255, 0.2);
  128. border-color: #00c6ff;
  129. }
  130. .transmission-btn.active {
  131. background: rgba(0, 198, 255, 0.3);
  132. border-color: #00c6ff;
  133. color: #00c6ff;
  134. }
  135. .combination-section {
  136. margin-top: 20px;
  137. padding-top: 20px;
  138. border-top: 1px solid rgba(255, 255, 255, 0.1);
  139. }
  140. .btn-group {
  141. display: flex;
  142. gap: 15px;
  143. margin-top: 20px;
  144. }
  145. .btn {
  146. padding: 12px 25px;
  147. border: none;
  148. border-radius: 8px;
  149. font-weight: 600;
  150. cursor: pointer;
  151. transition: all 0.3s ease;
  152. flex: 1;
  153. }
  154. .btn-primary {
  155. background: linear-gradient(45deg, #007acc, #005fa3);
  156. color: white;
  157. }
  158. .btn-primary:hover {
  159. background: linear-gradient(45deg, #0066b3, #004d8c);
  160. transform: translateY(-2px);
  161. }
  162. .btn-secondary {
  163. background: rgba(255, 255, 255, 0.1);
  164. color: white;
  165. border: 1px solid rgba(255, 255, 255, 0.2);
  166. }
  167. .btn-secondary:hover {
  168. background: rgba(255, 255, 255, 0.2);
  169. }
  170. .results-grid {
  171. display: grid;
  172. grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  173. gap: 20px;
  174. margin-top: 20px;
  175. }
  176. .result-card {
  177. background: rgba(39, 174, 96, 0.1);
  178. border: 1px solid rgba(39, 174, 96, 0.3);
  179. border-radius: 10px;
  180. padding: 20px;
  181. text-align: center;
  182. }
  183. .result-card h3 {
  184. font-size: 1rem;
  185. margin-bottom: 10px;
  186. color: #27ae60;
  187. }
  188. .result-card .value {
  189. font-size: 1.8rem;
  190. font-weight: 700;
  191. color: white;
  192. }
  193. .result-card .unit {
  194. font-size: 0.9rem;
  195. opacity: 0.7;
  196. }
  197. .warning {
  198. background: rgba(243, 156, 18, 0.1);
  199. border: 1px solid rgba(243, 156, 18, 0.3);
  200. color: #f39c12;
  201. padding: 15px;
  202. border-radius: 8px;
  203. margin-top: 20px;
  204. display: none;
  205. }
  206. .error {
  207. background: rgba(231, 76, 60, 0.1);
  208. border: 1px solid rgba(231, 76, 60, 0.3);
  209. color: #e74c3c;
  210. padding: 15px;
  211. border-radius: 8px;
  212. margin-top: 20px;
  213. display: none;
  214. }
  215. .guidance-section {
  216. margin-top: 20px;
  217. padding: 15px;
  218. background: rgba(0, 0, 0, 0.2);
  219. border-radius: 10px;
  220. border-left: 4px solid #00c6ff;
  221. }
  222. .guidance-section h4 {
  223. margin-bottom: 10px;
  224. color: #00c6ff;
  225. }
  226. .guidance-section ul {
  227. padding-left: 20px;
  228. }
  229. .guidance-section li {
  230. margin-bottom: 5px;
  231. line-height: 1.4;
  232. }
  233. .hidden {
  234. display: none;
  235. }
  236. /* 响应式设计 */
  237. @media (max-width: 768px) {
  238. .main-content {
  239. gap: 15px;
  240. }
  241. .card {
  242. padding: 15px;
  243. }
  244. .header h1 {
  245. font-size: 2rem;
  246. }
  247. .transmission-type {
  248. grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  249. }
  250. .btn-group {
  251. flex-direction: column;
  252. }
  253. .btn {
  254. flex: none;
  255. }
  256. }