|
|
@@ -1,301 +1,246 @@
|
|
|
-/* 工业科技风格CSS */
|
|
|
-:root {
|
|
|
- --primary-color: #007acc;
|
|
|
- --secondary-color: #2c3e50;
|
|
|
- --accent-color: #e74c3c;
|
|
|
- --success-color: #27ae60;
|
|
|
- --warning-color: #f39c12;
|
|
|
- --light-gray: #ecf0f1;
|
|
|
- --dark-gray: #34495e;
|
|
|
- --border-color: #bdc3c7;
|
|
|
- --card-bg: #ffffff;
|
|
|
- --panel-bg: #f8f9fa;
|
|
|
-}
|
|
|
-
|
|
|
+/* 伺服驱动选型工具 - 样式表 */
|
|
|
* {
|
|
|
- margin: 0;
|
|
|
- padding: 0;
|
|
|
- box-sizing: border-box;
|
|
|
+ margin: 0;
|
|
|
+ padding: 0;
|
|
|
+ box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
body {
|
|
|
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
|
- background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
|
|
|
- color: #ecf0f1;
|
|
|
- min-height: 100vh;
|
|
|
- padding: 20px;
|
|
|
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
|
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
|
+ min-height: 100vh;
|
|
|
+ padding: 20px;
|
|
|
}
|
|
|
|
|
|
.container {
|
|
|
- max-width: 1400px;
|
|
|
- margin: 0 auto;
|
|
|
+ max-width: 1200px;
|
|
|
+ margin: 0 auto;
|
|
|
+ background: white;
|
|
|
+ border-radius: 15px;
|
|
|
+ box-shadow: 0 10px 30px rgba(0,0,0,0.3);
|
|
|
+ overflow: hidden;
|
|
|
}
|
|
|
|
|
|
.header {
|
|
|
- text-align: center;
|
|
|
- margin-bottom: 30px;
|
|
|
- padding: 20px;
|
|
|
- background: rgba(0, 0, 0, 0.3);
|
|
|
- border-radius: 15px;
|
|
|
- border: 1px solid rgba(255, 255, 255, 0.1);
|
|
|
- backdrop-filter: blur(10px);
|
|
|
+ background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
|
|
|
+ color: white;
|
|
|
+ padding: 30px;
|
|
|
+ text-align: center;
|
|
|
}
|
|
|
|
|
|
.header h1 {
|
|
|
- font-size: 2.5rem;
|
|
|
- margin-bottom: 10px;
|
|
|
- background: linear-gradient(45deg, #00c6ff, #0072ff);
|
|
|
- -webkit-background-clip: text;
|
|
|
- -webkit-text-fill-color: transparent;
|
|
|
- text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
|
|
+ font-size: 2.5em;
|
|
|
+ margin-bottom: 10px;
|
|
|
}
|
|
|
|
|
|
-.header p {
|
|
|
- font-size: 1.1rem;
|
|
|
- opacity: 0.8;
|
|
|
+.subtitle {
|
|
|
+ font-size: 1.1em;
|
|
|
+ opacity: 0.9;
|
|
|
}
|
|
|
|
|
|
.main-content {
|
|
|
- display: grid;
|
|
|
- grid-template-columns: 1fr 1fr;
|
|
|
- gap: 25px;
|
|
|
-}
|
|
|
-
|
|
|
-@media (max-width: 1200px) {
|
|
|
- .main-content {
|
|
|
- grid-template-columns: 1fr;
|
|
|
- }
|
|
|
+ display: grid;
|
|
|
+ grid-template-columns: 1fr 1fr;
|
|
|
+ gap: 20px;
|
|
|
+ padding: 30px;
|
|
|
}
|
|
|
|
|
|
.card {
|
|
|
- background: rgba(255, 255, 255, 0.05);
|
|
|
- border: 1px solid rgba(255, 255, 255, 0.1);
|
|
|
- border-radius: 15px;
|
|
|
- padding: 25px;
|
|
|
- backdrop-filter: blur(10px);
|
|
|
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
|
|
|
+ background: #f8f9fa;
|
|
|
+ border-radius: 10px;
|
|
|
+ padding: 20px;
|
|
|
+ box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
|
}
|
|
|
|
|
|
.card h2 {
|
|
|
- font-size: 1.5rem;
|
|
|
- margin-bottom: 20px;
|
|
|
- color: #00c6ff;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- gap: 10px;
|
|
|
-}
|
|
|
-
|
|
|
-.card h2 i {
|
|
|
- font-size: 1.2rem;
|
|
|
+ color: #333;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ font-size: 1.5em;
|
|
|
}
|
|
|
|
|
|
.form-group {
|
|
|
- margin-bottom: 20px;
|
|
|
+ margin-bottom: 15px;
|
|
|
}
|
|
|
|
|
|
.form-group label {
|
|
|
- display: block;
|
|
|
- margin-bottom: 8px;
|
|
|
- font-weight: 600;
|
|
|
- color: #ecf0f1;
|
|
|
-}
|
|
|
-
|
|
|
-.form-group input,
|
|
|
-.form-group select {
|
|
|
- width: 100%;
|
|
|
- padding: 12px 15px;
|
|
|
- border: 1px solid var(--border-color);
|
|
|
- border-radius: 8px;
|
|
|
- background: rgba(255, 255, 255, 0.1);
|
|
|
- color: white;
|
|
|
- font-size: 14px;
|
|
|
- transition: all 0.3s ease;
|
|
|
+ display: block;
|
|
|
+ margin-bottom: 5px;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #555;
|
|
|
}
|
|
|
|
|
|
-.form-group input:focus,
|
|
|
-.form-group select:focus {
|
|
|
- outline: none;
|
|
|
- border-color: var(--primary-color);
|
|
|
- box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.2);
|
|
|
+.form-control {
|
|
|
+ width: 100%;
|
|
|
+ padding: 10px;
|
|
|
+ border: 2px solid #ddd;
|
|
|
+ border-radius: 5px;
|
|
|
+ font-size: 14px;
|
|
|
+ transition: border-color 0.3s;
|
|
|
}
|
|
|
|
|
|
-.form-group input::placeholder {
|
|
|
- color: rgba(255, 255, 255, 0.5);
|
|
|
+.form-control:focus {
|
|
|
+ outline: none;
|
|
|
+ border-color: #4facfe;
|
|
|
}
|
|
|
|
|
|
-.transmission-type {
|
|
|
- display: grid;
|
|
|
- grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
|
|
|
- gap: 15px;
|
|
|
- margin-bottom: 20px;
|
|
|
-}
|
|
|
-
|
|
|
-.transmission-btn {
|
|
|
- padding: 15px;
|
|
|
- border: 2px solid rgba(255, 255, 255, 0.2);
|
|
|
- border-radius: 10px;
|
|
|
- background: rgba(255, 255, 255, 0.05);
|
|
|
- color: white;
|
|
|
- cursor: pointer;
|
|
|
- text-align: center;
|
|
|
- font-weight: 600;
|
|
|
- transition: all 0.3s ease;
|
|
|
-}
|
|
|
-
|
|
|
-.transmission-btn:hover {
|
|
|
- background: rgba(0, 198, 255, 0.2);
|
|
|
- border-color: #00c6ff;
|
|
|
-}
|
|
|
-
|
|
|
-.transmission-btn.active {
|
|
|
- background: rgba(0, 198, 255, 0.3);
|
|
|
- border-color: #00c6ff;
|
|
|
- color: #00c6ff;
|
|
|
-}
|
|
|
-
|
|
|
-.combination-section {
|
|
|
- margin-top: 20px;
|
|
|
- padding-top: 20px;
|
|
|
- border-top: 1px solid rgba(255, 255, 255, 0.1);
|
|
|
+.form-control.error {
|
|
|
+ border-color: #e74c3c;
|
|
|
}
|
|
|
|
|
|
.btn-group {
|
|
|
- display: flex;
|
|
|
- gap: 15px;
|
|
|
- margin-top: 20px;
|
|
|
+ display: flex;
|
|
|
+ gap: 10px;
|
|
|
+ margin-top: 20px;
|
|
|
}
|
|
|
|
|
|
.btn {
|
|
|
- padding: 12px 25px;
|
|
|
- border: none;
|
|
|
- border-radius: 8px;
|
|
|
- font-weight: 600;
|
|
|
- cursor: pointer;
|
|
|
- transition: all 0.3s ease;
|
|
|
- flex: 1;
|
|
|
+ padding: 10px 20px;
|
|
|
+ border: none;
|
|
|
+ border-radius: 5px;
|
|
|
+ cursor: pointer;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 600;
|
|
|
+ transition: all 0.3s;
|
|
|
}
|
|
|
|
|
|
.btn-primary {
|
|
|
- background: linear-gradient(45deg, #007acc, #005fa3);
|
|
|
- color: white;
|
|
|
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
|
+ color: white;
|
|
|
}
|
|
|
|
|
|
.btn-primary:hover {
|
|
|
- background: linear-gradient(45deg, #0066b3, #004d8c);
|
|
|
- transform: translateY(-2px);
|
|
|
+ transform: translateY(-2px);
|
|
|
+ box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
|
|
|
}
|
|
|
|
|
|
.btn-secondary {
|
|
|
- background: rgba(255, 255, 255, 0.1);
|
|
|
- color: white;
|
|
|
- border: 1px solid rgba(255, 255, 255, 0.2);
|
|
|
+ background: #6c757d;
|
|
|
+ color: white;
|
|
|
}
|
|
|
|
|
|
.btn-secondary:hover {
|
|
|
- background: rgba(255, 255, 255, 0.2);
|
|
|
+ background: #5a6268;
|
|
|
+ transform: translateY(-2px);
|
|
|
}
|
|
|
|
|
|
.results-grid {
|
|
|
- display: grid;
|
|
|
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
|
- gap: 20px;
|
|
|
- margin-top: 20px;
|
|
|
+ display: grid;
|
|
|
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
|
+ gap: 15px;
|
|
|
+ margin-top: 15px;
|
|
|
}
|
|
|
|
|
|
.result-card {
|
|
|
- background: rgba(39, 174, 96, 0.1);
|
|
|
- border: 1px solid rgba(39, 174, 96, 0.3);
|
|
|
- border-radius: 10px;
|
|
|
- padding: 20px;
|
|
|
- text-align: center;
|
|
|
+ background: white;
|
|
|
+ padding: 15px;
|
|
|
+ border-radius: 8px;
|
|
|
+ box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
|
+ text-align: center;
|
|
|
}
|
|
|
|
|
|
-.result-card h3 {
|
|
|
- font-size: 1rem;
|
|
|
- margin-bottom: 10px;
|
|
|
- color: #27ae60;
|
|
|
+.result-label {
|
|
|
+ font-size: 12px;
|
|
|
+ color: #666;
|
|
|
+ margin-bottom: 5px;
|
|
|
}
|
|
|
|
|
|
-.result-card .value {
|
|
|
- font-size: 1.8rem;
|
|
|
- font-weight: 700;
|
|
|
- color: white;
|
|
|
+.result-value {
|
|
|
+ font-size: 18px;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #333;
|
|
|
}
|
|
|
|
|
|
-.result-card .unit {
|
|
|
- font-size: 0.9rem;
|
|
|
- opacity: 0.7;
|
|
|
+.placeholder {
|
|
|
+ color: #999;
|
|
|
+ font-style: italic;
|
|
|
+ text-align: center;
|
|
|
+ padding: 20px;
|
|
|
}
|
|
|
|
|
|
.warning {
|
|
|
- background: rgba(243, 156, 18, 0.1);
|
|
|
- border: 1px solid rgba(243, 156, 18, 0.3);
|
|
|
- color: #f39c12;
|
|
|
- padding: 15px;
|
|
|
- border-radius: 8px;
|
|
|
- margin-top: 20px;
|
|
|
- display: none;
|
|
|
+ background: #fff3cd;
|
|
|
+ color: #856404;
|
|
|
+ padding: 10px;
|
|
|
+ border-radius: 5px;
|
|
|
+ margin-top: 10px;
|
|
|
}
|
|
|
|
|
|
.error {
|
|
|
- background: rgba(231, 76, 60, 0.1);
|
|
|
- border: 1px solid rgba(231, 76, 60, 0.3);
|
|
|
- color: #e74c3c;
|
|
|
- padding: 15px;
|
|
|
- border-radius: 8px;
|
|
|
- margin-top: 20px;
|
|
|
- display: none;
|
|
|
-}
|
|
|
-
|
|
|
-.guidance-section {
|
|
|
- margin-top: 20px;
|
|
|
- padding: 15px;
|
|
|
- background: rgba(0, 0, 0, 0.2);
|
|
|
- border-radius: 10px;
|
|
|
- border-left: 4px solid #00c6ff;
|
|
|
+ background: #f8d7da;
|
|
|
+ color: #721c24;
|
|
|
+ padding: 10px;
|
|
|
+ border-radius: 5px;
|
|
|
+ margin-top: 10px;
|
|
|
}
|
|
|
|
|
|
-.guidance-section h4 {
|
|
|
- margin-bottom: 10px;
|
|
|
- color: #00c6ff;
|
|
|
+.hidden {
|
|
|
+ display: none !important;
|
|
|
}
|
|
|
|
|
|
.guidance-section ul {
|
|
|
- padding-left: 20px;
|
|
|
+ list-style-type: none;
|
|
|
+ padding-left: 0;
|
|
|
}
|
|
|
|
|
|
.guidance-section li {
|
|
|
- margin-bottom: 5px;
|
|
|
- line-height: 1.4;
|
|
|
+ margin-bottom: 8px;
|
|
|
+ padding: 8px;
|
|
|
+ background: white;
|
|
|
+ border-radius: 5px;
|
|
|
+ box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
|
}
|
|
|
|
|
|
-.hidden {
|
|
|
- display: none;
|
|
|
+.alert {
|
|
|
+ position: fixed;
|
|
|
+ top: 20px;
|
|
|
+ right: 20px;
|
|
|
+ padding: 15px 20px;
|
|
|
+ border-radius: 5px;
|
|
|
+ color: white;
|
|
|
+ font-weight: bold;
|
|
|
+ z-index: 1000;
|
|
|
+ animation: slideIn 0.3s ease-out;
|
|
|
+}
|
|
|
+
|
|
|
+.alert-info {
|
|
|
+ background: #17a2b8;
|
|
|
+}
|
|
|
+
|
|
|
+.alert-success {
|
|
|
+ background: #28a745;
|
|
|
+}
|
|
|
+
|
|
|
+.alert-warning {
|
|
|
+ background: #ffc107;
|
|
|
+ color: #212529;
|
|
|
+}
|
|
|
+
|
|
|
+.alert-error {
|
|
|
+ background: #dc3545;
|
|
|
+}
|
|
|
+
|
|
|
+@keyframes slideIn {
|
|
|
+ from {
|
|
|
+ transform: translateX(100%);
|
|
|
+ opacity: 0;
|
|
|
+ }
|
|
|
+ to {
|
|
|
+ transform: translateX(0);
|
|
|
+ opacity: 1;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/* 响应式设计 */
|
|
|
@media (max-width: 768px) {
|
|
|
- .main-content {
|
|
|
- gap: 15px;
|
|
|
- }
|
|
|
-
|
|
|
- .card {
|
|
|
- padding: 15px;
|
|
|
- }
|
|
|
-
|
|
|
- .header h1 {
|
|
|
- font-size: 2rem;
|
|
|
- }
|
|
|
-
|
|
|
- .transmission-type {
|
|
|
- grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
|
|
|
- }
|
|
|
-
|
|
|
- .btn-group {
|
|
|
- flex-direction: column;
|
|
|
- }
|
|
|
-
|
|
|
- .btn {
|
|
|
- flex: none;
|
|
|
- }
|
|
|
+ .main-content {
|
|
|
+ grid-template-columns: 1fr;
|
|
|
+ }
|
|
|
+
|
|
|
+ .header h1 {
|
|
|
+ font-size: 2em;
|
|
|
+ }
|
|
|
+
|
|
|
+ .btn-group {
|
|
|
+ flex-direction: column;
|
|
|
+ }
|
|
|
}
|