* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%); color: #e6edf3; min-height: 100vh; }
a { color: #58a6ff; text-decoration: none; }
a:hover { color: #79c0ff; }

/* 导航 */
.navbar { background: #0a0a0a; border-bottom: 1px solid #30363d; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; }
.navbar-brand { font-size: 20px; font-weight: bold; color: #58a6ff; display: flex; align-items: center; gap: 8px; }
.navbar-nav { display: flex; gap: 24px; }
.navbar-nav a { color: #8b949e; font-size: 14px; transition: color 0.2s; }
.navbar-nav a:hover, .navbar-nav a.active { color: #e6edf3; }

/* 布局 */
.container { max-width: 1400px; margin: 0 auto; padding: 24px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 卡片 */
.card { background: rgba(22, 27, 34, 0.95); border: 1px solid #30363d; border-radius: 12px; padding: 24px; backdrop-filter: blur(10px); }
.card:hover { box-shadow: 0 0 20px rgba(88, 166, 255, 0.1); }
.card-title { font-size: 14px; color: #8b949e; text-transform: uppercase; border-bottom: 1px solid #30363d; padding-bottom: 12px; margin-bottom: 16px; }

/* 指标 */
.metric { text-align: center; padding: 20px; background: #21262d; border-radius: 8px; }
.metric-value { font-size: 32px; font-weight: bold; color: #3fb950; }
.metric-label { font-size: 12px; color: #8b949e; margin-top: 8px; }

/* 表格 */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #30363d; }
th { color: #8b949e; font-weight: 600; }
tr:hover { background: rgba(88, 166, 255, 0.05); }

/* 按钮 */
.btn { display: inline-block; padding: 8px 16px; background: #238636; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; }
.btn:hover { background: #2ea043; }
.btn-secondary { background: #21262d; border: 1px solid #30363d; }
.btn-secondary:hover { background: #30363d; }

/* 状态 */
.positive { color: #3fb950; }
.negative { color: #f85149; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; background: #238636; }
.badge.pending { background: #d29922; }

/* 图表容器 */
.chart { height: 300px; background: #161b22; border-radius: 8px; display: flex; align-items: center; justify-content: center; }

/* 表单 */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; color: #8b949e; font-size: 14px; margin-bottom: 8px; }
.form-control { width: 100%; padding: 10px; background: #0d1117; border: 1px solid #30363d; border-radius: 6px; color: #e6edf3; }
select.form-control { cursor: pointer; }
input[type="number"] { -moz-appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* 终端样式 */
.terminal { background: #000; border: 1px solid #30363d; border-radius: 8px; padding: 16px; font-family: monospace; font-size: 12px; max-height: 200px; overflow-y: auto; }
.terminal-line { margin: 4px 0; }

/* 状态指示器 */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-online { background: #3fb950; box-shadow: 0 0 6px #3fb950; animation: pulse 2s infinite; }
.status-offline { background: #f85149; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* 响应式 */
@media (max-width: 768px) {
    .grid-2, .grid-4 { grid-template-columns: 1fr; }
    .navbar { flex-direction: column; gap: 16px; }
}
