File size: 8,006 Bytes
488ed84 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | /* βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
x86 PCB Design Simulator β Styles
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
:root {
--bg: #f5f9ff;
--bg2: #e8f2ff;
--bg3: #dceeff;
--surface: #ffffff;
--surface2: #f0f6ff;
--border: #b8d4f0;
--text: #1a2a3a;
--text2: #5a7a9a;
--accent: #0891b2;
--accent2: #0284c7;
--green: #16a34a;
--red: #dc2626;
--orange: #ea580c;
--yellow: #ca8a04;
--cyan: #0891b2;
--pink: #db2777;
--teal: #0d9488;
--radius: 10px;
--shadow: 0 4px 24px rgba(0,80,160,0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.6;
min-height: 100vh;
}
header {
text-align: center;
padding: 2rem 1rem 1rem;
background: linear-gradient(135deg, #e0f2fe, #bae6fd, #e0f7fa);
border-bottom: 1px solid var(--border);
}
header h1 {
font-size: 2rem;
background: linear-gradient(90deg, #0369a1, #0891b2, #0d9488);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.subtitle { color: var(--text2); font-size: 0.95rem; margin-top: 0.3rem; }
/* Tabs */
#tab-nav {
display: flex; justify-content: center; gap: 4px;
padding: 0.8rem 1rem; background: #e0f2fe;
border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.tab {
padding: 0.55rem 1.2rem; background: transparent; color: var(--text2);
border: 1px solid transparent; border-radius: var(--radius);
cursor: pointer; font-size: 0.85rem; font-weight: 500; transition: all 0.2s;
}
.tab:hover { background: var(--surface); color: var(--text); }
.tab.active { background: var(--surface); color: var(--accent); border-color: var(--accent); }
/* Panels */
.tab-panel { display: none; padding: 1.5rem; max-width: 1200px; margin: 0 auto; }
.tab-panel.active { display: block; }
.panel-header { margin-bottom: 1.5rem; }
.panel-header h2 { font-size: 1.4rem; color: var(--accent); margin-bottom: 0.3rem; }
.panel-header p { color: var(--text2); font-size: 0.9rem; }
/* Controls */
.controls {
display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap;
background: var(--surface); padding: 1.2rem;
border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 1.5rem;
}
.control-group { display: flex; flex-direction: column; gap: 0.3rem; min-width: 130px; }
.control-group label {
font-size: 0.75rem; font-weight: 600; color: var(--text2);
text-transform: uppercase; letter-spacing: 0.05em;
}
input[type="number"], select {
padding: 0.45rem 0.6rem; background: #ffffff; border: 1px solid var(--border);
border-radius: 6px; color: var(--text); font-size: 0.9rem; outline: none; width: 100%;
}
input[type="number"]:focus, select:focus { border-color: var(--accent); }
input[type="range"] {
-webkit-appearance: none; height: 6px; background: #bae6fd;
border-radius: 3px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none; width: 16px; height: 16px;
border-radius: 50%; background: var(--accent); cursor: pointer;
}
.btn-primary {
padding: 0.55rem 1.6rem;
background: linear-gradient(135deg, #0891b2, #0284c7);
border: none; border-radius: 8px; color: #fff;
font-weight: 600; font-size: 0.9rem; cursor: pointer;
transition: transform 0.15s, box-shadow 0.15s; white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(8,145,178,0.3); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
/* Stats */
.stat-cards {
display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
gap: 0.8rem; margin-bottom: 1.5rem;
}
.stat-card {
background: #ffffff; border: 1px solid var(--border);
border-radius: var(--radius); padding: 0.9rem; text-align: center;
box-shadow: 0 2px 8px rgba(0,80,160,0.06);
}
.stat-card .label {
font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
color: var(--text2); margin-bottom: 0.25rem;
}
.stat-card .value { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.stat-card .value.accent { color: var(--accent); }
.stat-card .value.green { color: var(--green); }
.stat-card .value.red { color: var(--red); }
.stat-card .value.orange { color: var(--orange); }
.stat-card .value.cyan { color: var(--cyan); }
.stat-card .value.teal { color: var(--teal); }
.stat-card .value.pink { color: var(--pink); }
/* Charts */
.chart-container {
background: var(--surface); border: 1px solid var(--border);
border-radius: var(--radius); padding: 1rem; margin-bottom: 1.5rem; overflow-x: auto;
}
canvas { display: block; max-width: 100%; }
/* Two column layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
/* Tables */
.detail-table { overflow-x: auto; }
.detail-table table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.detail-table th, .detail-table td { padding: 0.55rem 0.7rem; text-align: left; border-bottom: 1px solid var(--border); }
.detail-table th {
background: #e0f2fe; color: var(--text2); font-weight: 600;
text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.05em; position: sticky; top: 0;
}
.detail-table td { color: var(--text); }
.detail-table tr:hover td { background: var(--surface2); }
/* Steps */
.steps-timeline { display: flex; flex-direction: column; gap: 0.7rem; }
.step-card {
background: var(--surface); border: 1px solid var(--border);
border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
padding: 0.9rem 1rem;
}
.step-card.pass { border-left-color: var(--green); }
.step-card.fail { border-left-color: var(--red); }
.step-card.warn { border-left-color: var(--orange); }
.step-card .step-header { font-weight: 600; margin-bottom: 0.3rem; font-size: 0.9rem; }
.step-card.pass .step-header { color: var(--green); }
.step-card.fail .step-header { color: var(--red); }
.step-card.warn .step-header { color: var(--orange); }
.step-card .step-detail { font-size: 0.82rem; color: var(--text2); }
.step-card .step-detail span { color: var(--text); font-weight: 500; }
.badge {
display: inline-block; padding: 0.15rem 0.5rem;
border-radius: 4px; font-size: 0.72rem; font-weight: 600;
}
.badge.pass { background: rgba(22,163,74,0.1); color: var(--green); }
.badge.fail { background: rgba(220,38,38,0.1); color: var(--red); }
.badge.warn { background: rgba(234,88,12,0.1); color: var(--orange); }
.loading { text-align: center; padding: 2rem; color: var(--text2); }
.spinner {
display: inline-block; width: 22px; height: 22px;
border: 3px solid var(--border); border-top-color: var(--accent);
border-radius: 50%; animation: spin 0.7s linear infinite;
margin-right: 0.5rem; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
footer {
text-align: center; padding: 1.5rem; color: var(--text2);
font-size: 0.8rem; border-top: 1px solid var(--border); margin-top: 2rem;
}
@media (max-width: 700px) {
.controls { flex-direction: column; }
header h1 { font-size: 1.3rem; }
.stat-cards { grid-template-columns: 1fr 1fr; }
}
|