styles.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. /* 全局样式 */
  2. * {
  3. box-sizing: border-box;
  4. margin: 0;
  5. padding: 0;
  6. font-family: 'Microsoft YaHei', Arial, sans-serif;
  7. }
  8. body {
  9. background-color: #f5f5f5;
  10. color: #333;
  11. line-height: 1.6;
  12. }
  13. .container {
  14. max-width: 1200px;
  15. margin: 20px auto;
  16. padding: 20px;
  17. background-color: #fff;
  18. border-radius: 8px;
  19. box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  20. }
  21. h1 {
  22. text-align: center;
  23. margin-bottom: 20px;
  24. color: #2c3e50;
  25. }
  26. /* 标签页样式 */
  27. .tabs {
  28. display: flex;
  29. margin-bottom: 20px;
  30. border-bottom: 1px solid #ddd;
  31. }
  32. .tab-btn {
  33. padding: 10px 20px;
  34. background: none;
  35. border: none;
  36. cursor: pointer;
  37. font-size: 16px;
  38. font-weight: 500;
  39. color: #666;
  40. transition: all 0.3s ease;
  41. }
  42. .tab-btn:hover {
  43. color: #3498db;
  44. }
  45. .tab-btn.active {
  46. color: #3498db;
  47. border-bottom: 3px solid #3498db;
  48. }
  49. .tab-pane {
  50. display: none;
  51. padding: 15px 0;
  52. }
  53. .tab-pane.active {
  54. display: block;
  55. }
  56. /* 输入组样式 */
  57. .input-group {
  58. margin-bottom: 15px;
  59. }
  60. label {
  61. display: inline-block;
  62. margin-right: 10px;
  63. font-weight: 500;
  64. }
  65. input[type="text"],
  66. input[type="number"],
  67. select,
  68. textarea {
  69. padding: 8px 12px;
  70. border: 1px solid #ddd;
  71. border-radius: 4px;
  72. font-size: 14px;
  73. width: 200px;
  74. }
  75. textarea {
  76. width: 100%;
  77. resize: vertical;
  78. }
  79. button {
  80. padding: 8px 16px;
  81. background-color: #3498db;
  82. color: white;
  83. border: none;
  84. border-radius: 4px;
  85. cursor: pointer;
  86. font-size: 14px;
  87. transition: background-color 0.3s;
  88. }
  89. button:hover {
  90. background-color: #2980b9;
  91. }
  92. /* 表格样式 */
  93. .table-container {
  94. max-height: 300px;
  95. overflow-y: auto;
  96. margin-bottom: 15px;
  97. border: 1px solid #ddd;
  98. border-radius: 4px;
  99. }
  100. table {
  101. width: 100%;
  102. border-collapse: collapse;
  103. }
  104. table th,
  105. table td {
  106. padding: 10px;
  107. text-align: center;
  108. border-bottom: 1px solid #ddd;
  109. }
  110. table th {
  111. background-color: #f2f2f2;
  112. font-weight: 600;
  113. }
  114. table input {
  115. width: 100%;
  116. padding: 6px;
  117. border: 1px solid #ddd;
  118. border-radius: 4px;
  119. }
  120. .remove-row {
  121. background-color: #e74c3c;
  122. padding: 5px 10px;
  123. font-size: 12px;
  124. }
  125. .remove-row:hover {
  126. background-color: #c0392b;
  127. }
  128. /* 结果区域样式 */
  129. .results-container {
  130. margin-top: 30px;
  131. display: flex;
  132. flex-wrap: wrap;
  133. gap: 20px;
  134. }
  135. .plot-container {
  136. flex: 1;
  137. min-width: 300px;
  138. border: 1px solid #ddd;
  139. border-radius: 4px;
  140. padding: 10px;
  141. background-color: #fff;
  142. }
  143. #plot-area {
  144. width: 100%;
  145. height: 400px;
  146. }
  147. .equation-container {
  148. flex: 1;
  149. min-width: 300px;
  150. border: 1px solid #ddd;
  151. border-radius: 4px;
  152. padding: 15px;
  153. background-color: #fff;
  154. }
  155. .equation-container h3 {
  156. margin-bottom: 15px;
  157. color: #2c3e50;
  158. }
  159. #equation-result {
  160. font-size: 16px;
  161. margin-bottom: 15px;
  162. padding: 10px;
  163. background-color: #f9f9f9;
  164. border-radius: 4px;
  165. min-height: 50px;
  166. }
  167. #stats-result {
  168. font-size: 14px;
  169. line-height: 1.6;
  170. }
  171. /* 响应式设计 */
  172. @media (max-width: 768px) {
  173. .results-container {
  174. flex-direction: column;
  175. }
  176. .input-group {
  177. flex-direction: column;
  178. }
  179. input[type="text"],
  180. input[type="number"],
  181. select {
  182. width: 100%;
  183. margin-bottom: 10px;
  184. }
  185. .tabs {
  186. flex-wrap: wrap;
  187. }
  188. .tab-btn {
  189. flex: 1;
  190. text-align: center;
  191. padding: 8px;
  192. }
  193. }