/* 智能选股系统样式表 */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.btn {
    border-radius: 0.375rem;
}

.alert {
    border-radius: 0.375rem;
}

/* 股票涨跌颜色 */
.text-rise {
    color: #dc3545 !important; /* 红色，上涨 */
}

.text-fall {
    color: #198754 !important; /* 绿色，下跌 */
}

.text-flat {
    color: #6c757d !important; /* 灰色，平盘 */
}

/* 首页样式 */
.display-4 {
    color: #2c3e50;
    font-weight: 300;
}

.lead {
    color: #7f8c8d;
    font-size: 1.25rem;
}

/* 控制台卡片样式 */
.card .card-body.text-center h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* 表格响应式 */
.table-responsive {
    border-radius: 0.375rem;
}

/* 按钮组样式 */
.d-grid.gap-2 .btn {
    margin-bottom: 0.5rem;
}

/* 筛选结果评分样式 */
.badge {
    font-size: 0.875rem;
    padding: 0.35em 0.65em;
}

/* 预测卡片样式 */
.card.text-white .card-body {
    padding: 2rem 1rem;
}

.card.text-white .card-body h2 {
    font-size: 3rem;
    margin: 1rem 0;
}

/* 复盘总结样式 */
.list-group-item {
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 0.5rem;
    border-radius: 0.375rem;
}

.list-group-item h6 {
    color: #2c3e50;
    font-weight: 600;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card .card-body.text-center h3 {
        font-size: 2rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-text {
        display: none;
    }
}

/* 图表容器样式 */
canvas {
    max-width: 100%;
    height: auto;
}

/* 登录注册页面样式 */
.bg-light {
    background-color: #f8f9fa !important;
}

.card .card-header h4 {
    color: #2c3e50;
    margin-bottom: 0;
}

/* 自选股表格样式 */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* 导航栏激活状态 */
.navbar-nav .nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
}

/* 按钮悬停效果 */
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

/* 卡片悬停效果 */
.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-in-out;
}

/* 表单样式优化 */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* 响应式图片 */
img {
    max-width: 100%;
    height: auto;
}

/* 打印样式 */
@media print {
    .navbar, .btn, .card-header {
        display: none;
    }
    
    .card {
        border: none;
        box-shadow: none;
    }
}