survey/public/report.html
朱潮 99796408cf Initial commit: Add survey system with enhanced features
- Complete survey management system with web interface
- Question generation tools and prompts
- Report generation and analysis capabilities
- Docker configuration for deployment
- Database initialization scripts

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-28 20:28:57 +08:00

710 lines
18 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title id="page-title">加载中...</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Microsoft YaHei', sans-serif;
}
body {
background-color: #f5f7fa;
color: #333;
padding: 20px;
line-height: 1.6;
}
.container {
max-width: 1200px;
margin: 0 auto;
background: white;
border-radius: 12px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.header {
background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 50%, #ff7e5f 100%);
color: white;
padding: 30px;
position: relative;
overflow: hidden;
box-shadow: 0 4px 20px rgba(255, 126, 95, 0.3);
}
.header h1 {
font-size: 32px;
margin-bottom: 10px;
position: relative;
z-index: 2;
text-align: center;
}
.header::after {
content: "";
position: absolute;
bottom: -30px;
right: -30px;
width: 120px;
height: 120px;
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><linearGradient id="warm" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23ff7e5f;stop-opacity:0.3"/><stop offset="100%" style="stop-color:%23feb47b;stop-opacity:0.2"/></linearGradient></defs><circle cx="50" cy="50" r="40" fill="url(%23warm)"/><path d="M50 20 L60 40 L80 40 L65 55 L70 75 L50 60 L30 75 L35 55 L20 40 L40 40 Z" fill="rgba(255,126,95,0.4)"/></svg>') no-repeat;
background-size: contain;
z-index: 1;
}
.header::before {
content: "";
position: absolute;
top: -20px;
left: -20px;
width: 80px;
height: 80px;
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><linearGradient id="warm2" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23ff7e5f;stop-opacity:0.2"/><stop offset="100%" style="stop-color:%23feb47b;stop-opacity:0.1"/></linearGradient></defs><polygon points="50,10 70,40 95,45 75,70 80,95 50,80 20,95 25,70 5,45 30,40" fill="url(%23warm2)"/></svg>') no-repeat;
background-size: contain;
z-index: 1;
}
.overview-section {
padding: 30px;
background: linear-gradient(135deg, #fef6f0, #ffffff);
border-bottom: 1px solid #ffe4d6;
}
.overview-grid {
display: grid;
grid-template-columns: 1fr 2.2fr;
gap: 30px;
align-items: start;
}
.student-info {
background: white;
border-radius: 10px;
padding: 25px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
.student-info h3 {
color: #2d5a3d;
margin-bottom: 20px;
font-size: 18px;
border-bottom: 2px solid #ffe4d6;
padding-bottom: 10px;
font-weight: 600;
}
.info-grid {
display: grid;
grid-template-columns: 1fr;
gap: 15px;
}
.info-item {
display: flex;
flex-direction: column;
}
.info-label {
font-weight: bold;
color: #ff7e5f;
margin-bottom: 5px;
font-size: 16px;
}
.info-value {
font-size: 18px;
color: #333;
}
.core-dashboard {
background: white;
border-radius: 10px;
padding: 25px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
.dashboard h3 {
color: #2d5a3d;
margin-bottom: 20px;
font-size: 18px;
border-bottom: 2px solid #ffe4d6;
padding-bottom: 10px;
font-weight: 600;
}
.data-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px;
margin-bottom: 25px;
}
.data-card {
color: #333;
padding: 20px;
border-radius: 8px;
text-align: center;
transition: transform 0.3s;
position: relative;
overflow: hidden;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}
.data-card:nth-child(1) {
background: linear-gradient(135deg, #e8f5e8, #fff);
border: 1px solid #c3e6c3;
border-top: 3px solid #2ecc71;
}
.data-card:nth-child(1):hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(46, 204, 113, 0.2);
}
.data-card:nth-child(2) {
background: linear-gradient(135deg, #fff8e1, #fff);
border: 1px solid #ffe0b2;
border-top: 3px solid #ff7e5f;
}
.data-card:nth-child(2):hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(255, 126, 95, 0.2);
}
.data-card:nth-child(3) {
background: linear-gradient(135deg, #e3f2fd, #fff);
border: 1px solid #bbdefb;
border-top: 3px solid #4a90e2;
}
.data-card:nth-child(3):hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(74, 144, 226, 0.2);
}
.data-card h4 {
font-size: 14px;
margin-bottom: 8px;
font-weight: 600;
}
.data-card .value {
font-size: 28px;
font-weight: bold;
margin-bottom: 5px;
}
.data-card:nth-child(1) .value {
color: #2ecc71;
}
.data-card:nth-child(1) h4 {
color: #27ae60;
}
.data-card:nth-child(2) .value {
color: #ff7e5f;
}
.data-card:nth-child(2) h4 {
color: #e67e22;
}
.data-card:nth-child(3) .value {
color: #4a90e2;
}
.data-card:nth-child(3) h4 {
color: #3498db;
}
.data-card .subtitle {
font-size: 14px;
color: #666;
margin-top: 3px;
}
.ai-summary {
background: linear-gradient(135deg, #fff8f3, #fff);
border-left: 4px solid #ff7e5f;
padding: 20px;
border-radius: 8px;
margin-top: 20px;
box-shadow: 0 2px 8px rgba(255, 126, 95, 0.1);
border-top: 1px solid rgba(255, 126, 95, 0.2);
}
.ai-summary h4 {
color: #2d5a3d;
margin-bottom: 10px;
font-size: 16px;
display: flex;
align-items: center;
font-weight: 600;
}
.ai-summary h4::before {
content: "🤖";
margin-right: 8px;
}
.ai-summary p {
color: #555;
line-height: 1.6;
}
.radar-chart-container {
margin-top: 25px;
text-align: center;
padding: 20px;
overflow: visible;
}
.radar-chart-container h4 {
color: #2d5a3d;
margin-bottom: 15px;
font-size: 16px;
font-weight: 600;
}
.radar-chart {
width: 500px;
height: 500px;
margin: 0 auto;
position: relative;
filter: drop-shadow(0 2px 8px rgba(255, 126, 95, 0.15));
overflow: visible;
}
.section {
padding: 25px;
border-bottom: 1px solid #eee;
}
.section-title {
color: #2d5a3d;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid #ffe4d6;
font-size: 20px;
display: flex;
align-items: center;
font-weight: 600;
}
.section-title::before {
content: "◆";
margin-right: 10px;
color: #ff7e5f;
font-size: 18px;
}
.error-section {
padding: 30px;
background: #fff;
border-bottom: 1px solid #eee;
}
.error-list {
margin-top: 20px;
}
.error-item {
background: #fff9f7;
border-radius: 8px;
padding: 20px;
margin-bottom: 15px;
border-left: 4px solid #ff7e5f;
}
.error-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
.error-title {
font-size: 16px;
font-weight: bold;
color: #333;
}
.error-type {
background: #ff7e5f;
color: white;
padding: 4px 8px;
border-radius: 4px;
font-size: 12px;
}
.error-analysis {
color: #666;
line-height: 1.6;
}
.error-analysis strong {
color: #ff7e5f;
}
.tag-library {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 15px;
margin-top: 25px;
}
.tag-item {
background: #fff8f3;
padding: 15px;
border-radius: 8px;
border-left: 3px solid #ff7e5f;
border-top: 1px solid rgba(255, 126, 95, 0.2);
}
.tag-item h4 {
color: #2d5a3d;
margin-bottom: 8px;
font-size: 14px;
font-weight: 600;
}
.tag-item p {
color: #666;
font-size: 13px;
line-height: 1.5;
}
.knowledge-section {
padding: 30px;
background: #fff;
border-bottom: 1px solid #eee;
}
.chapter-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-top: 20px;
}
.chapter-card {
border-radius: 8px;
padding: 20px;
text-align: center;
}
.chapter-card.excellent {
background: linear-gradient(135deg, #e8f5e8, #fff);
border: 1px solid #c3e6c3;
}
.chapter-card.good {
background: linear-gradient(135deg, #fff8e1, #fff);
border: 1px solid #ffe0b2;
}
.chapter-card.needs-work {
background: linear-gradient(135deg, #ffebee, #fff);
border: 1px solid #ffcdd2;
}
.chapter-card h4 {
margin-bottom: 10px;
font-size: 16px;
}
.chapter-card.excellent h4 {
color: #2ecc71;
}
.chapter-card.good h4 {
color: #f39c12;
}
.chapter-card.needs-work h4 {
color: #e74c3c;
}
.chapter-score {
font-size: 24px;
font-weight: bold;
margin-bottom: 5px;
}
.chapter-description {
font-size: 16px;
color: #666;
}
.cognitive-section {
padding: 30px;
background: #fff;
border-bottom: 1px solid #eee;
}
.cognitive-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
margin-top: 20px;
}
.cognitive-item {
background: #fff8f3;
padding: 15px;
border-radius: 8px;
text-align: center;
border: 1px solid #ffe4d6;
}
.cognitive-item h4 {
color: #2d5a3d;
margin-bottom: 10px;
font-size: 14px;
font-weight: 600;
}
.cognitive-score {
font-size: 20px;
font-weight: bold;
color: #ff7e5f;
margin-bottom: 5px;
}
.cognitive-description {
font-size: 14px;
color: #666;
}
.learning-section {
padding: 30px;
background: #fff;
border-bottom: 1px solid #eee;
}
.plan-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-top: 20px;
}
.plan-card {
border-radius: 10px;
padding: 25px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
.plan-card.short-term {
background: linear-gradient(135deg, #ffebee, #fff);
border-top: 4px solid #e74c3c;
}
.plan-card.mid-term {
background: linear-gradient(135deg, #fff8e1, #fff);
border-top: 4px solid #f39c12;
}
.plan-card.long-term {
background: linear-gradient(135deg, #e8f5e8, #fff);
border-top: 4px solid #2ecc71;
}
.plan-card h3 {
margin-bottom: 15px;
font-size: 18px;
}
.plan-card.short-term h3 {
color: #e74c3c;
}
.plan-card.mid-term h3 {
color: #f39c12;
}
.plan-card.long-term h3 {
color: #2ecc71;
}
.plan-card h4 {
margin-top: 15px;
margin-bottom: 8px;
font-size: 14px;
color: #333;
}
.plan-card ul {
margin-left: 20px;
}
.plan-card li {
margin-bottom: 5px;
font-size: 16px;
color: #666;
}
.parent-advice {
background: linear-gradient(135deg, #fff8f3, #fff);
border-radius: 10px;
padding: 20px;
margin-top: 20px;
border-left: 4px solid #ff7e5f;
border-top: 1px solid rgba(255, 126, 95, 0.2);
}
.parent-advice h3 {
color: #2d5a3d;
margin-bottom: 15px;
font-size: 16px;
display: flex;
align-items: center;
font-weight: 600;
}
.parent-advice h3::before {
content: "👨‍👩‍👧";
margin-right: 8px;
}
.parent-advice ul {
margin-left: 20px;
}
.parent-advice li {
margin-bottom: 8px;
color: #555;
line-height: 1.5;
font-size: 15px;
}
.technical-section {
padding: 30px;
background: #fef6f0;
border-radius: 0 0 12px 12px;
}
.technical-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-top: 20px;
}
.technical-item {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.technical-item h4 {
color: #2d5a3d;
margin-bottom: 10px;
font-size: 15px;
font-weight: 600;
}
.technical-item ul {
margin-left: 20px;
}
.technical-item li {
margin-bottom: 5px;
font-size: 15px;
color: #666;
}
.footer {
padding: 20px;
text-align: center;
color: #8b5a2b;
font-size: 14px;
background: #fef6f0;
border-top: 1px solid #ffe4d6;
}
@media (max-width: 768px) {
body {
padding: 0;
}
.overview-section {
padding: 15px;
}
.student-info, .core-dashboard {
padding: 15px;
}
.overview-grid {
grid-template-columns: 1fr;
gap: 15px;
}
.data-cards {
grid-template-columns: 1fr;
gap: 10px;
}
.data-card {
padding: 15px;
}
.radar-chart {
width: 100%;
max-width: 350px;
height: auto;
aspect-ratio: 1;
}
.header h1 {
font-size: 24px;
}
.plan-cards {
grid-template-columns: 1fr;
}
.section {
padding: 15px;
}
.error-header {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.error-item {
padding: 15px;
}
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1 id="report-title">加载中...</h1>
<p>学员学科能力测评分析报告</p>
<div class="decoration decoration-1"></div>
<div class="decoration decoration-2"></div>
</div>
<div id="content"></div>
<div class="footer">
<p id="footer-text">加载中...</p>
</div>
<script src="/public/survey-renderer.js"></script>
</div>
</body>
</html>