| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- /* 伺服驱动选型工具 - 样式表 */
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- }
- body {
- 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: 1200px;
- margin: 0 auto;
- background: white;
- border-radius: 15px;
- box-shadow: 0 10px 30px rgba(0,0,0,0.3);
- overflow: hidden;
- }
- .header {
- background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
- color: white;
- padding: 30px;
- text-align: center;
- }
- .header h1 {
- font-size: 2.5em;
- margin-bottom: 10px;
- }
- .subtitle {
- font-size: 1.1em;
- opacity: 0.9;
- }
- .main-content {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 20px;
- padding: 30px;
- }
- .card {
- background: #f8f9fa;
- border-radius: 10px;
- padding: 20px;
- box-shadow: 0 2px 10px rgba(0,0,0,0.1);
- }
- .card h2 {
- color: #333;
- margin-bottom: 20px;
- font-size: 1.5em;
- }
- .form-group {
- margin-bottom: 15px;
- }
- .form-group label {
- display: block;
- margin-bottom: 5px;
- font-weight: 600;
- color: #555;
- }
- .form-control {
- width: 100%;
- padding: 10px;
- border: 2px solid #ddd;
- border-radius: 5px;
- font-size: 14px;
- transition: border-color 0.3s;
- }
- .form-control:focus {
- outline: none;
- border-color: #4facfe;
- }
- .form-control.error {
- border-color: #e74c3c;
- }
- .btn-group {
- display: flex;
- gap: 10px;
- margin-top: 20px;
- }
- .btn {
- 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(135deg, #667eea 0%, #764ba2 100%);
- color: white;
- }
- .btn-primary:hover {
- transform: translateY(-2px);
- box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
- }
- .btn-secondary {
- background: #6c757d;
- color: white;
- }
- .btn-secondary:hover {
- background: #5a6268;
- transform: translateY(-2px);
- }
- .results-grid {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
- gap: 15px;
- margin-top: 15px;
- }
- .result-card {
- background: white;
- padding: 15px;
- border-radius: 8px;
- box-shadow: 0 2px 8px rgba(0,0,0,0.1);
- text-align: center;
- }
- .result-label {
- font-size: 12px;
- color: #666;
- margin-bottom: 5px;
- }
- .result-value {
- font-size: 18px;
- font-weight: bold;
- color: #333;
- }
- .placeholder {
- color: #999;
- font-style: italic;
- text-align: center;
- padding: 20px;
- }
- .warning {
- background: #fff3cd;
- color: #856404;
- padding: 10px;
- border-radius: 5px;
- margin-top: 10px;
- }
- .error {
- background: #f8d7da;
- color: #721c24;
- padding: 10px;
- border-radius: 5px;
- margin-top: 10px;
- }
- .hidden {
- display: none !important;
- }
- .guidance-section ul {
- list-style-type: none;
- padding-left: 0;
- }
- .guidance-section li {
- margin-bottom: 8px;
- padding: 8px;
- background: white;
- border-radius: 5px;
- box-shadow: 0 1px 3px rgba(0,0,0,0.1);
- }
- .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 {
- grid-template-columns: 1fr;
- }
-
- .header h1 {
- font-size: 2em;
- }
-
- .btn-group {
- flex-direction: column;
- }
- }
|