* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
}
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
header h1 { font-size: 28px; color: #64ffda; }
.header-actions { display: flex; gap: 10px; }

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
.btn-primary { background: linear-gradient(135deg, #64ffda, #00bcd4); color: #1a1a2e; }
.btn-secondary { background: rgba(255,255,255,0.1); color: #8892b0; border: 1px solid rgba(255,255,255,0.2); }

.stats-section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(100,255,218,0.2);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.stat-icon { font-size: 36px; }
.stat-value { display: block; font-size: 28px; font-weight: 700; color: #64ffda; }
.stat-label { font-size: 14px; color: #8892b0; }

.section { background: rgba(255,255,255,0.05); border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.section h2 { font-size: 20px; margin-bottom: 20px; color: #64ffda; }

.task-list { display: flex; flex-direction: column; gap: 12px; }
.task-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s;
}
.task-item:hover { background: rgba(100,255,218,0.05); border-color: rgba(100,255,218,0.3); }
.task-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.task-title { font-size: 16px; font-weight: 600; }
.task-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}
.task-status.running { background: rgba(100,255,218,0.2); color: #64ffda; }
.task-status.completed { background: rgba(255,255,255,0.1); color: #8892b0; }
.task-desc { font-size: 14px; color: #8892b0; margin-bottom: 8px; }
.task-time { font-size: 12px; color: #666; }

.loading { text-align: center; padding: 40px; color: #8892b0; }

/* 弹窗 */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
}
.modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(100,255,218,0.3);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    padding: 24px;
}
.modal-content.large { max-width: 700px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h3 { color: #64ffda; }
.close { font-size: 28px; cursor: pointer; color: #8892b0; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; color: #8892b0; margin-bottom: 8px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #64ffda; }

.detail-content { white-space: pre-wrap; font-family: monospace; font-size: 14px; line-height: 1.6; }

@media (max-width: 768px) {
    .stats-section { grid-template-columns: 1fr; }
    header { flex-direction: column; gap: 15px; }
}
