body { font-family: Arial, sans-serif; margin: 0; padding: 20px; background-color: #f5f5f5; } .container { max-width: 1200px; margin: 0 auto; background-color: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } h1 { text-align: center; color: #333; margin-bottom: 30px; } .license-bar { display: flex; margin-bottom: 15px; background-color: white; border-radius: 4px; padding: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .license-info { margin-left: 10px; display: flex; flex-direction: column; margin-right: 10px; } .license-name { margin-top: 20px; font-size: 16px; font-weight: bold; color: #2c3e50; display: flex; align-items: center; } .slot-info { font-size: 14px; color: #666; } .usage-bars { display: flex; flex-direction: column; gap: 6px; flex-grow: 1; margin-right: 5px; overflow: hidden; } .bar-wrapper { display: flex; background-color: #f8f9fa; border-radius: 4px; overflow: visible; } .bar { width: 50%; height: 100%; background-color: #4caf50; display: flex; transition: width 1s ease; white-space: nowrap; align-items: center; justify-content: space-between; border-radius: 4px; } .bar.free { background-color: transparent; border: 2px dashed #4caf50; box-sizing: border-box; } .label-container { display: flex; gap: 8px; height: 100%; transition: all 0.3s ease; pointer-events: none; white-space: nowrap; } /* 一个空白的div */ .blank-div { height: 100%; background-color: transparent; display: inline-block; flex-shrink: 0; min-width: 0; margin: 0px; } .bar-label { color: #212121; font-size: 16px; white-space: nowrap; margin: 6px; display: flex; justify-content: center; align-items: center; } .user-label { margin: 8px; text-align: center; color: rgba(33, 33, 33, 0.7); font-size: 16px; display: flex; align-items: center; } .duration-label { margin: 6px; font-size: 16px; opacity: 0.9; text-align: center; align-items: center; display: flex; } .free .bar-label { color: #4caf50; width: 100%; text-align: center; transform: translateY(100%); transition: transform 1s ease; } .update-time { text-align: center; color: #666; margin-top: 20px; font-size: 14px; } .dashboard-layout { display: flex; gap: 20px; } .chart-section { flex: 3; background-color: #f8f9fa; border-radius: 8px; padding: 15px; } .queue-section { flex: 1; min-width: 250px; } .queue-container { background-color: #f8f9fa; border-radius: 8px; padding: 15px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .queue-title { font-size: 1.2em; color: #2c3e50; margin: 0 0 15px 0; padding-bottom: 10px; border-bottom: 1px solid #e1e4e8; } .queue-empty { color: #666; text-align: center; font-style: italic; margin: 20px 0; } .queue-list { display: flex; flex-direction: column; gap: 10px; } .queue-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background-color: white; border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .queue-user { font-weight: 500; color: #2c3e50; } .queue-time { color: #666; font-size: 0.9em; }