body { font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; background: #121212; color: #ddd; margin: 0; padding: 20px; min-height: 100vh; } h1 { margin-bottom: 20px; color: #0bc; font-weight: 600; font-size: 1.8rem; } .container { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; } .card-row { display: flex; gap: 16px; flex-wrap: wrap; } .card { background: #1e1e1e; border: 1px solid #0bc; border-radius: 8px; padding: 20px; flex: 1; min-width: 280px; display: flex; flex-direction: column; box-sizing: border-box; transition: border-color 0.3s ease; } .card:hover { border-color: #33d6ff; } .card h2 { margin: 0 0 12px 0; color: #0bc; font-weight: 600; font-size: 1.25rem; } .value { font-size: 2rem; font-weight: 700; margin-bottom: 12px; color: #e91e63; } .progress-bar { width: 100%; height: 18px; background: #2a2a2a; border-radius: 8px; overflow: hidden; margin-bottom: 10px; } .progress { height: 100%; background: #0bc; width: 0; transition: width 0.6s ease; } .small-text { font-size: 0.85rem; color: #888; margin-top: auto; } .cpu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 10px; } .cpu-core { background: #2a2a2a; border-radius: 6px; padding: 12px 8px; text-align: center; font-weight: 600; color: #0cf; font-size: 0.9rem; } .cpu-cores-card { min-height: 180px; } .no-server { text-align: center; padding: 3rem; color: #888; background: #1e1e1e; border-radius: 8px; border: 1px dashed #444; margin-top: 2rem; } .no-server h2 { margin-bottom: 1rem; color: #666; } .floating-btn { position: fixed; bottom: 30px; right: 30px; width: 56px; height: 56px; background-color: transparent; cursor: pointer; z-index: 1000; transition: transform 0.2s ease; } .floating-btn:hover { transform: scale(1.1); } .modal { display: none; position: fixed; z-index: 999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); justify-content: center; align-items: center; } .modal-content { background-color: #1e1e1e; padding: 25px 30px; border-radius: 10px; width: 350px; max-width: 90%; box-shadow: 0 0 15px #00bcd4aa; display: flex; flex-direction: column; gap: 15px; position: relative; } .modal-content h2 { margin: 0 0 10px 0; color: #00bcd4; text-align: center; } .modal-content input { padding: 12px; border: 1px solid #444; background: #2a2a2a; color: #fff; border-radius: 5px; font-size: 1rem; width: 100%; box-sizing: border-box; } .submit-btn { background-color: #00bcd4; color: white; border: none; padding: 12px; border-radius: 6px; font-weight: bold; cursor: pointer; transition: background-color 0.2s; margin-top: 10px; } .submit-btn:hover { background-color: #00acc1; } .close-modal { position: absolute; top: 15px; right: 20px; color: #aaa; font-size: 24px; font-weight: bold; cursor: pointer; } .close-modal:hover { color: #fff; } .header-bar { display: flex; justify-content: space-between; align-items: center; max-width: 900px; margin: 0 auto 20px; padding: 0 10px; flex-wrap: wrap; gap: 15px; } .dropdown { position: relative; } .dropdown-toggle { background-color: #1e1e1e; color: #00bcd4; border: 1px solid #00bcd4; padding: 10px 15px; font-size: 1rem; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 8px; min-width: 180px; justify-content: space-between; } .dropdown-toggle:hover { background-color: #00bcd410; } .dropdown-menu { display: none; position: absolute; right: 0; top: 110%; background: #1e1e1e; border: 1px solid #00bcd4; border-radius: 6px; padding: 8px 0; z-index: 100; min-width: 200px; box-shadow: 0 0 10px #00bcd4aa; max-height: 300px; overflow-y: auto; } .dropdown-item { padding: 10px 15px; color: #e0e0e0; cursor: pointer; transition: background-color 0.2s; } .dropdown-item:hover { background-color: #00bcd420; } .dropdown.open .dropdown-menu { display: block; } /* 响应式调整 */ @media (max-width: 768px) { .header-bar { flex-direction: column; align-items: flex-start; } .dropdown { width: 100%; } .dropdown-toggle { width: 100%; } .dropdown-menu { width: 100%; } .card { min-width: 100%; } } .card { margin: 8px; }