460 lines
7.8 KiB
CSS
460 lines
7.8 KiB
CSS
/* static/style.css */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
padding: 20px;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
background: white;
|
|
border-radius: 15px;
|
|
box-shadow: 0 20px 40px rgba(0,0,0,0.1);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.header {
|
|
background: linear-gradient(135deg, #2c3e50, #34495e);
|
|
color: white;
|
|
padding: 30px;
|
|
text-align: center;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 2.5em;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.header p {
|
|
opacity: 0.9;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
.upload-section {
|
|
padding: 40px;
|
|
text-align: center;
|
|
}
|
|
|
|
.upload-area {
|
|
border: 3px dashed #3498db;
|
|
border-radius: 10px;
|
|
padding: 60px 40px;
|
|
margin: 20px 0;
|
|
background: #f8f9fa;
|
|
transition: all 0.3s ease;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.upload-area:hover {
|
|
border-color: #2980b9;
|
|
background: #e8f4fc;
|
|
}
|
|
|
|
.upload-area.dragover {
|
|
border-color: #27ae60;
|
|
background: #d5f4e6;
|
|
}
|
|
|
|
.upload-icon {
|
|
font-size: 4em;
|
|
color: #3498db;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.file-input {
|
|
display: none;
|
|
}
|
|
|
|
.upload-btn {
|
|
background: linear-gradient(135deg, #3498db, #2980b9);
|
|
color: white;
|
|
border: none;
|
|
padding: 15px 40px;
|
|
font-size: 1.1em;
|
|
border-radius: 50px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
margin: 10px;
|
|
}
|
|
|
|
.upload-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
|
|
}
|
|
|
|
.upload-btn:disabled {
|
|
background: #bdc3c7;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.results-section {
|
|
padding: 0 40px 40px;
|
|
}
|
|
|
|
.result-card {
|
|
background: #f8f9fa;
|
|
border-radius: 10px;
|
|
padding: 25px;
|
|
margin: 15px 0;
|
|
border-left: 5px solid #3498db;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.result-card h3 {
|
|
color: #2c3e50;
|
|
margin-bottom: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
.task-info {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 15px;
|
|
}
|
|
|
|
.geometry-data {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 15px;
|
|
}
|
|
|
|
.bounding-box-data {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 15px;
|
|
}
|
|
|
|
.topology-data {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 15px;
|
|
}
|
|
|
|
.features-data {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 15px;
|
|
}
|
|
|
|
.recommendations-data {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
|
|
gap: 15px;
|
|
}
|
|
|
|
.metrics-data {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 15px;
|
|
}
|
|
|
|
.analysis-info {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 15px;
|
|
}
|
|
|
|
.data-item {
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.data-item:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
.data-label {
|
|
font-weight: bold;
|
|
color: #2c3e50;
|
|
margin-bottom: 8px;
|
|
font-size: 0.95em;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.data-value {
|
|
color: #34495e;
|
|
font-family: 'Courier New', monospace;
|
|
font-size: 1.1em;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.data-unit {
|
|
color: #7f8c8d;
|
|
font-size: 0.9em;
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.coordinate-item {
|
|
background: linear-gradient(135deg, #e8f4fc, #d1edff);
|
|
padding: 15px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.coordinate-label {
|
|
font-weight: bold;
|
|
color: #2980b9;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.coordinate-value {
|
|
font-family: 'Courier New', monospace;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.status-badge {
|
|
padding: 6px 16px;
|
|
border-radius: 20px;
|
|
font-size: 0.9em;
|
|
font-weight: bold;
|
|
display: inline-block;
|
|
}
|
|
|
|
.status-processing {
|
|
background: #fff3cd;
|
|
color: #856404;
|
|
border: 1px solid #ffeaa7;
|
|
}
|
|
|
|
.status-completed {
|
|
background: #d1edff;
|
|
color: #0c5460;
|
|
border: 1px solid #bee5eb;
|
|
}
|
|
|
|
.status-failed {
|
|
background: #f8d7da;
|
|
color: #721c24;
|
|
border: 1px solid #f5c6cb;
|
|
}
|
|
|
|
.loading {
|
|
display: none;
|
|
text-align: center;
|
|
padding: 30px;
|
|
}
|
|
|
|
.spinner {
|
|
border: 4px solid #f3f3f3;
|
|
border-top: 4px solid #3498db;
|
|
border-radius: 50%;
|
|
width: 50px;
|
|
height: 50px;
|
|
animation: spin 1s linear infinite;
|
|
margin: 0 auto 20px;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
.error-message {
|
|
background: #f8d7da;
|
|
color: #721c24;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
margin: 20px 0;
|
|
display: none;
|
|
border-left: 5px solid #e74c3c;
|
|
}
|
|
|
|
.system-info {
|
|
background: #2c3e50;
|
|
color: white;
|
|
padding: 20px;
|
|
text-align: center;
|
|
margin-top: 20px;
|
|
border-radius: 0 0 15px 15px;
|
|
}
|
|
|
|
/* 特征和建议的特殊样式 */
|
|
.feature-item {
|
|
background: linear-gradient(135deg, #e8f4fc, #d1edff);
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
border-left: 4px solid #3498db;
|
|
}
|
|
|
|
.recommendation-item {
|
|
background: linear-gradient(135deg, #fff3cd, #ffeaa7);
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
border-left: 4px solid #f39c12;
|
|
}
|
|
|
|
.recommendation-high {
|
|
border-left-color: #e74c3c;
|
|
background: linear-gradient(135deg, #f8d7da, #f5c6cb);
|
|
}
|
|
|
|
.recommendation-medium {
|
|
border-left-color: #f39c12;
|
|
background: linear-gradient(135deg, #fff3cd, #ffeaa7);
|
|
}
|
|
|
|
.recommendation-low {
|
|
border-left-color: #27ae60;
|
|
background: linear-gradient(135deg, #d1edff, #bee5eb);
|
|
}
|
|
|
|
.feature-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.feature-type {
|
|
font-weight: bold;
|
|
color: #2c3e50;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
.confidence-badge {
|
|
background: #3498db;
|
|
color: white;
|
|
padding: 4px 12px;
|
|
border-radius: 12px;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.recommendation-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.priority-badge {
|
|
padding: 4px 12px;
|
|
border-radius: 12px;
|
|
font-size: 0.9em;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.priority-high {
|
|
background: #e74c3c;
|
|
color: white;
|
|
}
|
|
|
|
.priority-medium {
|
|
background: #f39c12;
|
|
color: white;
|
|
}
|
|
|
|
.priority-low {
|
|
background: #27ae60;
|
|
color: white;
|
|
}
|
|
|
|
.recommendation-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.recommendation-list li {
|
|
padding: 8px 0;
|
|
border-bottom: 1px solid #eee;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
|
|
.recommendation-list li:before {
|
|
content: "💡";
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
.recommendation-list li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.metric-item {
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
text-align: center;
|
|
}
|
|
|
|
.metric-value {
|
|
font-size: 1.8em;
|
|
font-weight: bold;
|
|
color: #2c3e50;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.metric-label {
|
|
color: #7f8c8d;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.metric-good {
|
|
color: #27ae60;
|
|
}
|
|
|
|
.metric-warning {
|
|
color: #f39c12;
|
|
}
|
|
|
|
.metric-poor {
|
|
color: #e74c3c;
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
margin: 10px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.header {
|
|
padding: 20px;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 2em;
|
|
}
|
|
|
|
.upload-section {
|
|
padding: 20px;
|
|
}
|
|
|
|
.upload-area {
|
|
padding: 30px 20px;
|
|
}
|
|
|
|
.results-section {
|
|
padding: 0 20px 20px;
|
|
}
|
|
|
|
.geometry-data,
|
|
.bounding-box-data,
|
|
.topology-data,
|
|
.features-data,
|
|
.recommendations-data,
|
|
.metrics-data,
|
|
.analysis-info {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
} |