| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227 |
- /* 全局样式 */
- * {
- box-sizing: border-box;
- margin: 0;
- padding: 0;
- font-family: 'Microsoft YaHei', Arial, sans-serif;
- }
- body {
- background-color: #f5f5f5;
- color: #333;
- line-height: 1.6;
- }
- .container {
- max-width: 1200px;
- margin: 20px auto;
- padding: 20px;
- background-color: #fff;
- border-radius: 8px;
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
- }
- h1 {
- text-align: center;
- margin-bottom: 20px;
- color: #2c3e50;
- }
- /* 标签页样式 */
- .tabs {
- display: flex;
- margin-bottom: 20px;
- border-bottom: 1px solid #ddd;
- }
- .tab-btn {
- padding: 10px 20px;
- background: none;
- border: none;
- cursor: pointer;
- font-size: 16px;
- font-weight: 500;
- color: #666;
- transition: all 0.3s ease;
- }
- .tab-btn:hover {
- color: #3498db;
- }
- .tab-btn.active {
- color: #3498db;
- border-bottom: 3px solid #3498db;
- }
- .tab-pane {
- display: none;
- padding: 15px 0;
- }
- .tab-pane.active {
- display: block;
- }
- /* 输入组样式 */
- .input-group {
- margin-bottom: 15px;
- }
- label {
- display: inline-block;
- margin-right: 10px;
- font-weight: 500;
- }
- input[type="text"],
- input[type="number"],
- select,
- textarea {
- padding: 8px 12px;
- border: 1px solid #ddd;
- border-radius: 4px;
- font-size: 14px;
- width: 200px;
- }
- textarea {
- width: 100%;
- resize: vertical;
- }
- button {
- padding: 8px 16px;
- background-color: #3498db;
- color: white;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- font-size: 14px;
- transition: background-color 0.3s;
- }
- button:hover {
- background-color: #2980b9;
- }
- /* 表格样式 */
- .table-container {
- max-height: 300px;
- overflow-y: auto;
- margin-bottom: 15px;
- border: 1px solid #ddd;
- border-radius: 4px;
- }
- table {
- width: 100%;
- border-collapse: collapse;
- }
- table th,
- table td {
- padding: 10px;
- text-align: center;
- border-bottom: 1px solid #ddd;
- }
- table th {
- background-color: #f2f2f2;
- font-weight: 600;
- }
- table input {
- width: 100%;
- padding: 6px;
- border: 1px solid #ddd;
- border-radius: 4px;
- }
- .remove-row {
- background-color: #e74c3c;
- padding: 5px 10px;
- font-size: 12px;
- }
- .remove-row:hover {
- background-color: #c0392b;
- }
- /* 结果区域样式 */
- .results-container {
- margin-top: 30px;
- display: flex;
- flex-wrap: wrap;
- gap: 20px;
- }
- .plot-container {
- flex: 1;
- min-width: 300px;
- border: 1px solid #ddd;
- border-radius: 4px;
- padding: 10px;
- background-color: #fff;
- }
- #plot-area {
- width: 100%;
- height: 400px;
- }
- .equation-container {
- flex: 1;
- min-width: 300px;
- border: 1px solid #ddd;
- border-radius: 4px;
- padding: 15px;
- background-color: #fff;
- }
- .equation-container h3 {
- margin-bottom: 15px;
- color: #2c3e50;
- }
- #equation-result {
- font-size: 16px;
- margin-bottom: 15px;
- padding: 10px;
- background-color: #f9f9f9;
- border-radius: 4px;
- min-height: 50px;
- }
- #stats-result {
- font-size: 14px;
- line-height: 1.6;
- }
- /* 响应式设计 */
- @media (max-width: 768px) {
- .results-container {
- flex-direction: column;
- }
- .input-group {
- flex-direction: column;
- }
- input[type="text"],
- input[type="number"],
- select {
- width: 100%;
- margin-bottom: 10px;
- }
- .tabs {
- flex-wrap: wrap;
- }
- .tab-btn {
- flex: 1;
- text-align: center;
- padding: 8px;
- }
- }
|