Files
sci-gui-agent-benchmark/monitor/static/task_detail.css
2025-06-01 10:31:27 +08:00

159 lines
5.3 KiB
CSS

body { font-family: 'Segoe UI', Arial, sans-serif; margin: 0; padding: 0; background: linear-gradient(135deg, #f4f6fa 0%, #e9f0f9 100%); }
.container { max-width: 950px; margin: 40px auto; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); padding: 36px 44px; }
h1 { font-size: 2.4em; margin-bottom: 14px; color: #1a237e; position: relative; }
h1:after { content: ''; display: block; width: 70px; height: 4px; background: linear-gradient(90deg, #007bff, #00c6ff); margin: 12px 0 0; border-radius: 2px; }
h2 { color: #0056b3; margin-top: 36px; font-size: 1.6em; font-weight: 600; }
.back-link {
margin-bottom: 28px;
display: inline-block;
color: #fff;
background: linear-gradient(135deg, #007bff, #0056b3);
padding: 10px 24px;
border-radius: 30px;
font-weight: 600;
font-size: 1.1em;
text-decoration: none;
box-shadow: 0 4px 12px rgba(0,123,255,0.18);
transition: all 0.3s;
position: relative;
overflow: hidden;
}
.back-link:before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
transition: all 0.5s;
}
.back-link:hover {
background: linear-gradient(135deg, #0056b3, #0078d7);
color: #fff;
box-shadow: 0 6px 18px rgba(0,123,255,0.28);
transform: translateY(-2px);
}
.back-link:hover:before {
left: 100%;
}
.btn { padding: 10px 22px; background: linear-gradient(135deg, #007bff, #0056b3); color: #fff; border: none; border-radius: 6px; cursor: pointer; font-weight: 500; transition: all 0.3s; box-shadow: 0 3px 10px rgba(0,123,255,0.2); }
.btn:hover { background: linear-gradient(135deg, #0056b3, #0078d7); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,123,255,0.4); }
.refresh-btn { float: right; margin-top: 10px; }
.task-info { margin-bottom: 42px; }
.task-info dl { display: grid; grid-template-columns: 180px 1fr; grid-gap: 16px; background: linear-gradient(135deg, #f8f9fb, #f1f5fa); border-radius: 10px; padding: 22px 28px; box-shadow: 0 3px 15px rgba(0,0,0,0.04); }
.task-info dt { font-weight: 600; color: #1a237e; position: relative; }
.task-info dt:after { content: ':'; position: absolute; right: 10px; color: #bbb; }
.task-info dd { color: #333; font-size: 1.05em; }
.task-steps { margin-top: 42px; }
.step-card {
border: none;
background: #fafdff;
padding: 22px 26px;
margin-bottom: 24px;
border-radius: 10px;
box-shadow: 0 6px 18px rgba(0,0,0,0.06);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.step-card:hover {
box-shadow: 0 10px 30px rgba(0,123,255,0.1);
transform: translateY(-3px);
}
.step-card:before {
content: '';
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 4px;
background: linear-gradient(to bottom, #007bff, #00c6ff);
}
.step-header { display: flex; justify-content: space-between; margin-bottom: 12px; align-items: center; }
.step-title { font-weight: 600; color: #1a237e; font-size: 1.1em; }
.step-time { color: #6c757d; font-size: 0.92em; }
pre {
background: linear-gradient(135deg, #f3f6fa, #edf1f7);
padding: 16px;
border-radius: 8px;
overflow-x: auto;
font-size: 1em;
box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
border-left: 3px solid rgba(0,123,255,0.3);
}
.step-image {
margin-top: 18px;
max-width: 100%;
border: none;
border-radius: 8px;
box-shadow: 0 5px 15px rgba(0,0,0,0.08);
transition: all 0.3s;
}
.step-image:hover {
transform: scale(1.01);
box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.no-steps {
color: #8492a6;
font-style: italic;
text-align: center;
margin: 36px 0;
font-size: 1.15em;
padding: 30px;
background: #f8fafc;
border-radius: 10px;
border: 1px dashed #c0cfdf;
}
.fab {
position: fixed;
z-index: 1000;
right: 36px;
width: 60px;
height: 60px;
border-radius: 50%;
box-shadow: 0 6px 24px rgba(0,0,0,0.18);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.6em;
font-weight: bold;
background: linear-gradient(135deg, #007bff, #0056b3);
color: #fff;
border: none;
cursor: pointer;
transition: all 0.3s;
}
.fab:hover {
background: linear-gradient(135deg, #0056b3, #007bff);
box-shadow: 0 8px 32px rgba(0,123,255,0.28);
transform: translateY(-3px) rotate(360deg);
}
.task-id {
font-size: 0.5em;
background: linear-gradient(135deg, #e3f2fd, #bbdefb);
color: #0d47a1;
padding: 5px 12px;
border-radius: 20px;
font-weight: normal;
vertical-align: middle;
margin-left: 10px;
}
.status {
display: inline-block;
padding: 6px 14px;
border-radius: 20px;
font-weight: 600;
letter-spacing: 0.5px;
box-shadow: 0 2px 6px rgba(0,0,0,0.08);
width: fit-content;
white-space: nowrap;
}
.status-not-started { background: linear-gradient(135deg, #f0f0f0, #e6e6e6); color: #555; }
.status-preparing, .status-initializing { background: linear-gradient(135deg, #fff7e0, #ffe8a3); color: #8a6d00; }
.status-running { background: linear-gradient(135deg, #e3f2fd, #bbdefb); color: #0d47a1; }
.status-done { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); color: #1b5e20; }
.status-error { background: linear-gradient(135deg, #ffebee, #ffcdd2); color: #b71c1c; }