project structure: elm.py, db.py, prompts.py, diagnose.py, web UI (Flask), config
This commit is contained in:
@@ -0,0 +1,174 @@
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
background: #1a1a2e;
|
||||
color: #e0e0e0;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
text-align: center;
|
||||
margin-top: 30px;
|
||||
color: #ff6b35;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
text-align: center;
|
||||
color: #888;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
button {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 18px;
|
||||
font-size: 1.2em;
|
||||
background: #ff6b35;
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
button:hover:not(:disabled) {
|
||||
background: #e85d2a;
|
||||
}
|
||||
|
||||
button:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
#status {
|
||||
text-align: center;
|
||||
padding: 15px;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
.spinner {
|
||||
display: inline-block;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border: 3px solid #333;
|
||||
border-top-color: #ff6b35;
|
||||
border-radius: 50%;
|
||||
animation: spin 0.8s linear infinite;
|
||||
vertical-align: middle;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
.card {
|
||||
background: #16213e;
|
||||
border: 1px solid #0f3460;
|
||||
border-radius: 12px;
|
||||
padding: 20px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.card h2 {
|
||||
font-size: 1.1em;
|
||||
color: #ff6b35;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-size: 1.3em;
|
||||
letter-spacing: 2px;
|
||||
color: #4ecca3;
|
||||
}
|
||||
|
||||
.dtc-badge {
|
||||
display: inline-block;
|
||||
padding: 6px 12px;
|
||||
margin: 4px;
|
||||
border-radius: 8px;
|
||||
font-family: monospace;
|
||||
font-size: 0.95em;
|
||||
}
|
||||
|
||||
.dtc-badge.stored {
|
||||
background: #5c1a1a;
|
||||
color: #ff6b6b;
|
||||
border: 1px solid #8b2a2a;
|
||||
}
|
||||
|
||||
.dtc-badge.pending {
|
||||
background: #5c4a1a;
|
||||
color: #ffd93d;
|
||||
border: 1px solid #8b6a2a;
|
||||
}
|
||||
|
||||
.param-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px solid #0f3460;
|
||||
}
|
||||
|
||||
.param-row:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.param-row span {
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
.param-row strong {
|
||||
color: #4ecca3;
|
||||
}
|
||||
|
||||
.diagnosis-card {
|
||||
background: #0f1a2e;
|
||||
border-color: #1a3a5c;
|
||||
}
|
||||
|
||||
.diagnosis-card h2 {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
#diagnosis-text {
|
||||
line-height: 1.7;
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
||||
#diagnosis-text h2 {
|
||||
font-size: 1.2em;
|
||||
margin-top: 16px;
|
||||
color: #4ecca3;
|
||||
}
|
||||
|
||||
#diagnosis-text h3 {
|
||||
font-size: 1.05em;
|
||||
margin-top: 12px;
|
||||
color: #ff6b35;
|
||||
}
|
||||
|
||||
#diagnosis-text strong {
|
||||
color: #ffd93d;
|
||||
}
|
||||
|
||||
.ok {
|
||||
color: #4ecca3;
|
||||
}
|
||||
|
||||
.error {
|
||||
color: #ff6b6b;
|
||||
}
|
||||
Reference in New Issue
Block a user