345 lines
7.5 KiB
HTML
345 lines
7.5 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{% block title %}Universal Agent Demo Framework{% endblock %}</title>
|
|
<style>
|
|
:root {
|
|
--bg: #f4f1ea;
|
|
--surface: #fffdf8;
|
|
--surface-strong: #fff7ea;
|
|
--border: #d7c9b0;
|
|
--text: #2f261d;
|
|
--muted: #73614f;
|
|
--accent: #a54c2b;
|
|
--accent-soft: #f1d2b8;
|
|
--success: #2b6a4d;
|
|
--warning: #9a5a00;
|
|
--danger: #8d2f2f;
|
|
--shadow: 0 18px 40px rgba(91, 63, 36, 0.10);
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
|
|
color: var(--text);
|
|
background:
|
|
radial-gradient(circle at top left, #f7e2c8 0, transparent 30%),
|
|
linear-gradient(180deg, #f6efe2 0%, #f4f1ea 45%, #efe7da 100%);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
a { color: var(--accent); text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
|
|
.shell {
|
|
width: min(1180px, calc(100vw - 32px));
|
|
margin: 0 auto;
|
|
padding: 24px 0 40px;
|
|
}
|
|
|
|
.topbar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
align-items: center;
|
|
margin-bottom: 24px;
|
|
padding: 18px 20px;
|
|
border: 1px solid rgba(215, 201, 176, 0.7);
|
|
background: rgba(255, 253, 248, 0.88);
|
|
backdrop-filter: blur(12px);
|
|
border-radius: 22px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.brand-title {
|
|
margin: 0;
|
|
font-size: 1.35rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.brand-note {
|
|
margin: 6px 0 0;
|
|
color: var(--muted);
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.nav-link,
|
|
.button,
|
|
button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--border);
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
padding: 10px 16px;
|
|
font-size: 0.95rem;
|
|
cursor: pointer;
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
|
|
}
|
|
|
|
.button-primary,
|
|
button {
|
|
border-color: var(--accent);
|
|
background: linear-gradient(135deg, #b9562f, #94452a);
|
|
color: #fffaf4;
|
|
box-shadow: 0 10px 22px rgba(165, 76, 43, 0.20);
|
|
}
|
|
|
|
.nav-link:hover,
|
|
.button:hover,
|
|
button:hover {
|
|
text-decoration: none;
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 12px 24px rgba(91, 63, 36, 0.12);
|
|
}
|
|
|
|
.page-header {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.eyebrow {
|
|
display: inline-block;
|
|
margin-bottom: 10px;
|
|
padding: 6px 12px;
|
|
border-radius: 999px;
|
|
background: rgba(241, 210, 184, 0.8);
|
|
color: var(--accent);
|
|
font-size: 0.85rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.page-title {
|
|
margin: 0 0 10px;
|
|
font-size: clamp(2rem, 3vw, 3rem);
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.page-lead {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
font-size: 1rem;
|
|
max-width: 720px;
|
|
}
|
|
|
|
.card-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
|
gap: 18px;
|
|
}
|
|
|
|
.panel,
|
|
.card {
|
|
background: rgba(255, 253, 248, 0.94);
|
|
border: 1px solid rgba(215, 201, 176, 0.85);
|
|
border-radius: 24px;
|
|
padding: 20px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.card h2,
|
|
.panel h2,
|
|
.panel h3 {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.meta-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
margin: 12px 0 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
color: var(--muted);
|
|
font-size: 0.92rem;
|
|
}
|
|
|
|
.meta-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 12px;
|
|
border-radius: 999px;
|
|
background: var(--surface-strong);
|
|
border: 1px solid rgba(215, 201, 176, 0.75);
|
|
}
|
|
|
|
.layout-two-columns {
|
|
display: grid;
|
|
grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
|
|
gap: 20px;
|
|
align-items: start;
|
|
}
|
|
|
|
.stack {
|
|
display: grid;
|
|
gap: 16px;
|
|
}
|
|
|
|
textarea,
|
|
select,
|
|
input[type="text"],
|
|
input[type="file"] {
|
|
width: 100%;
|
|
border-radius: 16px;
|
|
border: 1px solid var(--border);
|
|
background: #fff;
|
|
padding: 12px 14px;
|
|
font: inherit;
|
|
color: var(--text);
|
|
}
|
|
|
|
textarea { min-height: 150px; resize: vertical; }
|
|
|
|
label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.help-text,
|
|
.muted {
|
|
color: var(--muted);
|
|
font-size: 0.92rem;
|
|
}
|
|
|
|
.checkbox-list {
|
|
display: grid;
|
|
gap: 8px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.checkbox-item {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: flex-start;
|
|
padding: 10px 12px;
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(215, 201, 176, 0.85);
|
|
background: #fff;
|
|
}
|
|
|
|
.status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 6px 12px;
|
|
border-radius: 999px;
|
|
font-size: 0.9rem;
|
|
font-weight: 700;
|
|
background: var(--surface-strong);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.status-success { color: var(--success); }
|
|
.status-failed { color: var(--danger); }
|
|
|
|
.notice {
|
|
padding: 14px 16px;
|
|
border-radius: 18px;
|
|
border: 1px solid rgba(215, 201, 176, 0.85);
|
|
background: rgba(255, 247, 234, 0.92);
|
|
color: var(--text);
|
|
}
|
|
|
|
.notice-error {
|
|
border-color: rgba(141, 47, 47, 0.25);
|
|
background: rgba(255, 238, 238, 0.95);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.kv-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.kv-table th,
|
|
.kv-table td {
|
|
padding: 12px 10px;
|
|
border-bottom: 1px solid rgba(215, 201, 176, 0.6);
|
|
vertical-align: top;
|
|
text-align: left;
|
|
}
|
|
|
|
.kv-table th {
|
|
width: 150px;
|
|
color: var(--muted);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.detail-list {
|
|
display: grid;
|
|
gap: 12px;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.detail-item {
|
|
padding: 14px 16px;
|
|
border-radius: 18px;
|
|
background: #fff;
|
|
border: 1px solid rgba(215, 201, 176, 0.75);
|
|
}
|
|
|
|
.detail-item strong {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.code-block {
|
|
margin: 0;
|
|
padding: 14px;
|
|
border-radius: 18px;
|
|
background: #2f261d;
|
|
color: #fdf8f1;
|
|
overflow: auto;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
font-size: 0.92rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.section-title {
|
|
margin: 0 0 12px;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.layout-two-columns { grid-template-columns: 1fr; }
|
|
.topbar { flex-direction: column; align-items: flex-start; }
|
|
.nav-links { justify-content: flex-start; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="shell">
|
|
<header class="topbar">
|
|
<div>
|
|
<p class="brand-title">Universal Agent Demo Framework</p>
|
|
<p class="brand-note">面向复试演示的可配置 AI Agent 单体系统</p>
|
|
</div>
|
|
<nav class="nav-links">
|
|
<a class="nav-link" href="{% url 'scenarios:index' %}">场景首页</a>
|
|
<a class="nav-link" href="{% url 'documents:list' %}">文档中心</a>
|
|
<a class="nav-link" href="{% url 'audit:list' %}">审计日志</a>
|
|
</nav>
|
|
</header>
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
</body>
|
|
</html>
|