/* 伺服驱动选型工具 - 样式表 */ * { 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; } }