| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633 |
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- }
- body {
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- min-height: 100vh;
- padding: 20px;
- }
- .container {
- max-width: 1200px;
- margin: 0 auto;
- }
- .header {
- background: white;
- padding: 30px;
- border-radius: 10px;
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
- margin-bottom: 20px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .header h1 {
- color: #333;
- font-size: 28px;
- }
- .btn {
- padding: 10px 20px;
- border: none;
- border-radius: 5px;
- cursor: pointer;
- font-size: 14px;
- transition: all 0.3s;
- font-weight: 500;
- }
- .btn-primary {
- background: #667eea;
- color: white;
- }
- .btn-primary:hover {
- background: #5568d3;
- transform: translateY(-2px);
- box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
- }
- .btn-danger {
- background: #ef4444;
- color: white;
- }
- .btn-danger:hover {
- background: #dc2626;
- }
- .btn-secondary {
- background: #6b7280;
- color: white;
- }
- .btn-secondary:hover {
- background: #4b5563;
- }
- .card {
- background: white;
- border-radius: 10px;
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
- padding: 30px;
- margin-bottom: 20px;
- }
- .table-container {
- overflow-x: auto;
- }
- table {
- width: 100%;
- border-collapse: collapse;
- }
- th, td {
- padding: 12px;
- text-align: left;
- border-bottom: 1px solid #e5e7eb;
- }
- th {
- background: #f9fafb;
- font-weight: 600;
- color: #374151;
- }
- tr:hover {
- background: #f9fafb;
- }
- .badge {
- display: inline-block;
- padding: 4px 12px;
- border-radius: 12px;
- font-size: 12px;
- font-weight: 500;
- }
- .badge-success {
- background: #d1fae5;
- color: #065f46;
- }
- .badge-warning {
- background: #fef3c7;
- color: #92400e;
- }
- .modal {
- display: none;
- position: fixed;
- z-index: 1000;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- background: rgba(0, 0, 0, 0.5);
- animation: fadeIn 0.3s;
- }
- .modal.show {
- display: flex;
- align-items: center;
- justify-content: center;
- }
- @keyframes fadeIn {
- from { opacity: 0; }
- to { opacity: 1; }
- }
- .modal-content {
- background: white;
- border-radius: 10px;
- padding: 30px;
- width: 90%;
- max-width: 500px;
- animation: slideDown 0.3s;
- }
- @keyframes slideDown {
- from {
- transform: translateY(-50px);
- opacity: 0;
- }
- to {
- transform: translateY(0);
- opacity: 1;
- }
- }
- .modal-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 20px;
- }
- .modal-header h2 {
- color: #333;
- font-size: 24px;
- }
- .close {
- font-size: 28px;
- font-weight: bold;
- color: #999;
- cursor: pointer;
- border: none;
- background: none;
- }
- .close:hover {
- color: #333;
- }
- .form-group {
- margin-bottom: 20px;
- }
- .form-group label {
- display: block;
- margin-bottom: 8px;
- color: #374151;
- font-weight: 500;
- }
- .form-group input {
- width: 100%;
- padding: 10px;
- border: 1px solid #d1d5db;
- border-radius: 5px;
- font-size: 14px;
- }
- .form-group input:focus {
- outline: none;
- border-color: #667eea;
- box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
- }
- .form-actions {
- display: flex;
- gap: 10px;
- justify-content: flex-end;
- margin-top: 20px;
- }
- .pagination {
- display: flex;
- justify-content: center;
- align-items: center;
- gap: 10px;
- margin-top: 20px;
- }
- .pagination button {
- padding: 8px 16px;
- border: 1px solid #d1d5db;
- background: white;
- border-radius: 5px;
- cursor: pointer;
- }
- .pagination button:hover:not(:disabled) {
- background: #f9fafb;
- }
- .pagination button:disabled {
- opacity: 0.5;
- cursor: not-allowed;
- }
- .pagination .page-info {
- color: #6b7280;
- }
- .loading {
- text-align: center;
- padding: 40px;
- color: #6b7280;
- }
- .empty-state {
- text-align: center;
- padding: 60px 20px;
- color: #6b7280;
- }
- .empty-state svg {
- width: 100px;
- height: 100px;
- margin-bottom: 20px;
- opacity: 0.5;
- }
- .device-list {
- font-size: 12px;
- color: #6b7280;
- max-width: 200px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .device-detail-cell {
- cursor: pointer;
- color: #667eea;
- font-size: 14px;
- padding: 8px 12px;
- border-radius: 5px;
- transition: all 0.2s;
- max-width: 300px;
- }
- .device-detail-cell:hover {
- background: #f3f4f6;
- color: #5568d3;
- }
- .device-detail-cell .device-count {
- font-weight: 600;
- color: #667eea;
- }
- .device-detail-cell .device-preview {
- font-size: 12px;
- color: #6b7280;
- margin-top: 4px;
- }
- /* 设备列表弹框样式 */
- .device-list-modal .modal-content {
- max-width: 700px;
- }
- .device-list-table {
- width: 100%;
- border-collapse: collapse;
- margin-top: 20px;
- }
- .device-list-table th,
- .device-list-table td {
- padding: 12px;
- text-align: left;
- border-bottom: 1px solid #e5e7eb;
- }
- .device-list-table th {
- background: #f9fafb;
- font-weight: 600;
- color: #374151;
- }
- .device-list-table tr:hover {
- background: #f9fafb;
- }
- .device-list-empty {
- text-align: center;
- padding: 40px;
- color: #6b7280;
- }
- .actions {
- display: flex;
- gap: 8px;
- }
- .btn-sm {
- padding: 6px 12px;
- font-size: 12px;
- }
- .license-key-cell {
- display: flex;
- align-items: center;
- gap: 8px;
- max-width: 200px;
- }
- .license-key-text {
- flex: 1;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- font-weight: 600;
- }
- .copy-btn {
- padding: 6px 12px;
- font-size: 12px;
- background: #667eea;
- color: white;
- border: none;
- border-radius: 5px;
- cursor: pointer;
- transition: all 0.2s;
- flex-shrink: 0;
- font-weight: 500;
- display: flex;
- align-items: center;
- gap: 4px;
- }
- .copy-btn:hover {
- background: #5568d3;
- transform: translateY(-1px);
- box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
- }
- .copy-btn:active {
- transform: translateY(0);
- }
- /* Toast 通知样式 */
- .toast-container {
- position: fixed;
- top: 20px;
- right: 20px;
- z-index: 10000;
- display: flex;
- flex-direction: column;
- gap: 10px;
- }
- .toast {
- background: white;
- padding: 16px 20px;
- border-radius: 8px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
- display: flex;
- align-items: center;
- gap: 12px;
- min-width: 300px;
- max-width: 400px;
- animation: slideInRight 0.3s ease-out;
- position: relative;
- }
- @keyframes slideInRight {
- from {
- transform: translateX(100%);
- opacity: 0;
- }
- to {
- transform: translateX(0);
- opacity: 1;
- }
- }
- .toast.success {
- border-left: 4px solid #10b981;
- }
- .toast.error {
- border-left: 4px solid #ef4444;
- }
- .toast.warning {
- border-left: 4px solid #f59e0b;
- }
- .toast.info {
- border-left: 4px solid #3b82f6;
- }
- .toast-icon {
- font-size: 20px;
- flex-shrink: 0;
- }
- .toast.success .toast-icon {
- color: #10b981;
- }
- .toast.error .toast-icon {
- color: #ef4444;
- }
- .toast.warning .toast-icon {
- color: #f59e0b;
- }
- .toast.info .toast-icon {
- color: #3b82f6;
- }
- .toast-message {
- flex: 1;
- color: #374151;
- font-size: 14px;
- line-height: 1.5;
- }
- .toast-close {
- background: none;
- border: none;
- font-size: 18px;
- color: #9ca3af;
- cursor: pointer;
- padding: 0;
- width: 20px;
- height: 20px;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-shrink: 0;
- }
- .toast-close:hover {
- color: #374151;
- }
- /* 确认对话框样式 */
- .confirm-dialog {
- display: none;
- position: fixed;
- z-index: 10001;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- background: rgba(0, 0, 0, 0.5);
- align-items: center;
- justify-content: center;
- animation: fadeIn 0.3s;
- }
- .confirm-dialog.show {
- display: flex;
- }
- .confirm-content {
- background: white;
- border-radius: 10px;
- padding: 30px;
- width: 90%;
- max-width: 400px;
- box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
- animation: slideDown 0.3s;
- }
- .confirm-icon {
- font-size: 48px;
- text-align: center;
- margin-bottom: 20px;
- }
- .confirm-title {
- font-size: 20px;
- font-weight: 600;
- color: #374151;
- text-align: center;
- margin-bottom: 15px;
- }
- .confirm-message {
- color: #6b7280;
- text-align: center;
- margin-bottom: 25px;
- line-height: 1.6;
- }
- .confirm-actions {
- display: flex;
- gap: 10px;
- justify-content: center;
- }
- .confirm-actions .btn {
- min-width: 100px;
- }
- /* 统计信息卡片样式 */
- .stats-container {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
- gap: 20px;
- margin-bottom: 20px;
- }
- .stat-card {
- background: white;
- border-radius: 10px;
- padding: 20px;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- display: flex;
- flex-direction: column;
- }
- .stat-label {
- color: #6b7280;
- font-size: 14px;
- margin-bottom: 8px;
- }
- .stat-value {
- color: #111827;
- font-size: 28px;
- font-weight: 600;
- }
- .stat-card.primary .stat-value {
- color: #667eea;
- }
- .stat-card.success .stat-value {
- color: #10b981;
- }
- .stat-card.warning .stat-value {
- color: #f59e0b;
- }
- .stat-card.danger .stat-value {
- color: #ef4444;
- }
- /* 筛选和操作栏样式 */
- .filter-bar {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 20px;
- flex-wrap: wrap;
- gap: 15px;
- }
- .filter-group {
- display: flex;
- align-items: center;
- gap: 10px;
- }
- .filter-group label {
- color: #374151;
- font-weight: 500;
- font-size: 14px;
- }
- .filter-select {
- padding: 8px 12px;
- border: 1px solid #d1d5db;
- border-radius: 5px;
- font-size: 14px;
- background: white;
- cursor: pointer;
- min-width: 120px;
- }
- .filter-select:focus {
- outline: none;
- border-color: #667eea;
- box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
- }
|