/* 股票财务分析报告系统 - 公共样式 */

/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-bottom: 2rem;
}

/* 登录注册页面样式 */
.card {
    border-radius: 15px;
    border: none;
}

.card-body {
    background: #ffffff;
    border-radius: 15px;
}

.card h2 {
    color: #667eea;
    font-weight: bold;
}

.card h4 {
    color: #333;
    font-weight: 600;
}

/* 按钮样式 */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 表单控件样式 */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 链接样式 */
a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 提示框样式 */
.alert {
    border-radius: 8px;
    border: none;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

/* 卡片样式 */
.card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* 统计卡片样式 */
.bg-primary .card-body,
.bg-success .card-body,
.bg-info .card-body,
.bg-warning .card-body {
    border-radius: 10px;
}

/* 表格样式 */
.table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: #f8f9fa;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #333;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

/* 徽章样式 */
.badge {
    padding: 0.4em 0.8em;
    font-weight: 500;
    border-radius: 6px;
}

/* 模态框样式 */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    border-radius: 15px 15px 0 0;
}

.modal-body {
    padding: 1.5rem;
}

/* 选项卡样式 */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #000000;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    /*border-color: transparent;*/
    color: #ffffff;
}

.nav-tabs .nav-link.active {
    /*background: transparent;*/
    border-color: transparent transparent #667eea;
    color: #667eea;
    font-weight: 600;
}

/* 响应式样式 */
@media (max-width: 768px) {
    body {
        background: #f5f5f5;
    }

    .container {
        padding: 10px;
    }

    .card {
        margin-bottom: 1rem;
    }

    .table-responsive {
        font-size: 0.9rem;
    }

    .btn-sm {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

/* 加载动画 */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2em;
}

/* 空状态样式 */
.text-muted {
    color: #999 !important;
}

/* 报告内容样式 */
pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 阴影效果 */
.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* 自定义滚动条（仅webkit浏览器） */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 成功/错误消息动画 */
@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert {
    animation: slideIn 0.3s ease;
}

/* 统计数字动画 */
.card-text.fs-2 {
    font-weight: bold;
    color: #1b70fa;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 排行榜样式 */
.table tbody tr td:first-child {
    font-size: 1.2rem;
    font-weight: bold;
}

/* 输入框组样式 */
.input-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.input-group .form-control {
    border-right: none;
}

.input-group .btn {
    border-left: none;
}

/* 页脚间距 */
body {
    padding-bottom: 3rem;
}

/* 禁用状态样式 */
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* 焦点可见性 */
*:focus {
    outline: none;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}
