MainInterface.css•2.55 kB
.main-interface {
display: flex;
flex-direction: column;
height: 100vh;
background: #f5f5f5;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.interface-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 20px;
background: #ffffff;
border-bottom: 1px solid #e0e0e0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.interface-header h2 {
margin: 0;
font-size: 20px;
font-weight: 600;
color: #333;
}
.stats-bar {
display: flex;
gap: 20px;
}
.stat-item {
font-size: 14px;
color: #666;
}
.stat-item strong {
color: #333;
font-weight: 600;
}
.interface-content {
display: flex;
flex: 1;
gap: 16px;
padding: 16px;
overflow: hidden;
}
.left-panel {
flex: 2;
display: flex;
flex-direction: column;
background: #ffffff;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.right-panel {
flex: 1;
min-width: 300px;
}
.tab-navigation {
display: flex;
border-bottom: 1px solid #e0e0e0;
background: #f8f9fa;
}
.tab-navigation button {
flex: 1;
padding: 12px 16px;
border: none;
background: transparent;
color: #666;
font-size: 14px;
cursor: pointer;
transition: all 0.2s;
border-bottom: 3px solid transparent;
}
.tab-navigation button:hover {
background: #e9ecef;
color: #333;
}
.tab-navigation button.active {
color: #2196f3;
border-bottom-color: #2196f3;
background: #ffffff;
}
.tab-content {
flex: 1;
overflow: hidden;
}
.loading-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.loading-spinner {
background: white;
padding: 32px;
border-radius: 8px;
text-align: center;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.spinner {
width: 40px;
height: 40px;
border: 4px solid #f3f3f3;
border-top: 4px solid #2196f3;
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto 16px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.loading-spinner p {
margin: 0;
color: #666;
font-size: 14px;
}
/* 响应式设计 */
@media (max-width: 768px) {
.interface-content {
flex-direction: column;
gap: 12px;
}
.right-panel {
min-width: unset;
}
.stats-bar {
flex-direction: column;
gap: 8px;
}
.interface-header {
flex-direction: column;
gap: 12px;
align-items: stretch;
}
}