style.css
/* 超短线量化选股程序 - 网页样式 */
/* 全局样式 */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f8f9fa;
}
/* 导航栏 */
.navbar {
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* 模块样式 */
section {
background-color: white;
border-radius: 8px;
padding: 2rem;
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
/* 加载动画 */
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
/* 表格样式 */
.table {
margin-top: 1rem;
}
.table thead th {
background-color: #e9ecef;
font-weight: 600;
}
.table-striped tbody tr:nth-of-type(odd) {
background-color: rgba(0, 0, 0, 0.02);
}
/* 按钮样式 */
.btn-primary {
background-color: #007bff;
border-color: #007bff;
}
.btn-primary:hover {
background-color: #0069d9;
border-color: #0062cc;
}
.btn-secondary {
background-color: #6c757d;
border-color: #6c757d;
}
.btn-secondary:hover {
background-color: #5a6268;
border-color: #545b62;
}
/* 卡片样式 */
.card {
border: 1px solid #dee2e6;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.card-header {
background-color: #f8f9fa;
border-bottom: 1px solid #dee2e6;
padding: 0.75rem 1.25rem;
font-weight: 600;
}
.card-body {
padding: 1.25rem;
}
/* 图表样式 */
.chart-container {
position: relative;
height: 300px;
width: 100%;
}
/* 响应式设计 */
@media (max-width: 768px) {
section {
padding: 1rem;
}
.container {
padding: 0 1rem;
}
}