/* AI 智能选股大师 - 简洁清爽浅色调设计 */ /* ========== 全局样式 ========== */ :root { /* 蓝色调配色方案 */ --primary-color: #2563eb; --primary-light: #60a5fa; --primary-lighter: #dbeafe; --secondary-color: #64748b; --success-color: #10b981; --warning-color: #f59e0b; --danger-color: #ef4444; --info-color: #06b6d4; /* 背景色 */ --bg-primary: #fefefe; --bg-secondary: #f8fafc; --bg-tertiary: #f1f5f9; --bg-accent: #ffffff; /* 文字色 */ --text-primary: #1e293b; --text-secondary: #64748b; --text-muted: #94a3b8; /* 边框色 */ --border-color: #e2e8f0; --border-light: #f1f5f9; /* 阴影 */ --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* 圆角 */ --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem; } body { font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif; background-color: var(--bg-secondary); color: var(--text-primary); line-height: 1.6; font-size: 14px; } /* ========== 导航栏 ========== */ .navbar { background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-secondary) 100%); border-bottom: 1px solid var(--border-color); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); padding: 0.75rem 0; } .navbar-brand { font-weight: 600; font-size: 1.125rem; color: var(--primary-color) !important; display: flex; align-items: center; gap: 0.5rem; } .navbar-brand i { color: var(--primary-color); font-size: 1.25rem; } .nav-link { color: var(--text-secondary) !important; font-weight: 500; padding: 0.5rem 1rem !important; border-radius: var(--radius-sm); transition: all 0.2s ease; margin: 0 0.125rem; } .nav-link:hover { color: var(--primary-color) !important; background-color: var(--primary-lighter); } .nav-link.active { color: var(--primary-color) !important; background-color: var(--primary-lighter); font-weight: 600; } .navbar-text { color: var(--text-muted) !important; font-size: 0.875rem; } /* ========== 卡片样式 ========== */ .card { background-color: var(--bg-accent); border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: all 0.3s ease; overflow: hidden; } .card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); } .card-header { background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%); border-bottom: 1px solid var(--border-color); padding: 1rem 1.25rem; font-weight: 600; color: var(--text-primary); } .card-body { padding: 1.25rem; } /* 统计卡片 */ .stats-card { background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-tertiary) 100%); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 0.75rem; transition: all 0.3s ease; position: relative; overflow: hidden; } .stats-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--primary-color), var(--primary-light)); } .stats-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); } .stats-value { font-size: 1.25rem; font-weight: 700; color: var(--primary-color); margin-bottom: 0.125rem; } .stats-label { font-size: 0.75rem; color: var(--text-secondary); font-weight: 500; } .stats-sublabel { font-size: 0.675rem; color: var(--text-muted); margin-top: 0.125rem; } /* ========== 表格样式 ========== */ .table-container { background-color: var(--bg-accent); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); } .table { margin-bottom: 0; font-size: 0.875rem; border-collapse: collapse; } .table thead th { background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%); border: none !important; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); padding: 1rem 0.75rem; } .table tbody tr { border: none !important; transition: all 0.2s ease; } .table tbody td { border: none !important; padding: 0.875rem 0.75rem; vertical-align: middle; color: var(--text-primary); } .table th, .table td { border-top: none !important; border-bottom: none !important; border-left: none !important; border-right: none !important; } .table tbody tr:hover { background-color: var(--bg-secondary); } .table-active { background-color: var(--primary-lighter) !important; } /* ========== 徽章样式 ========== */ .badge { font-size: 0.75rem; font-weight: 500; padding: 0.375rem 0.75rem; border-radius: var(--radius-sm); border: 1px solid transparent; } .bg-primary { background-color: var(--primary-color) !important; color: white; } .bg-secondary { background-color: var(--text-muted) !important; color: white; } .bg-success { background-color: var(--success-color) !important; color: white; } .bg-warning { background-color: var(--warning-color) !important; color: white; } .bg-danger { background-color: var(--danger-color) !important; color: white; } .bg-info { background-color: var(--info-color) !important; color: white; } /* 浅色徽章变体 */ .badge-light-primary { background-color: var(--primary-lighter); color: var(--primary-color); border-color: var(--primary-light); } .badge-light-success { background-color: #dcfce7; color: var(--success-color); border-color: #bbf7d0; } .badge-light-warning { background-color: #fef3c7; color: var(--warning-color); border-color: #fde68a; } .badge-light-danger { background-color: #fecaca; color: var(--danger-color); border-color: #fca5a5; } /* ========== 按钮样式 ========== */ .btn { font-weight: 500; border-radius: var(--radius-sm); padding: 0.5rem 1rem; font-size: 0.875rem; border: 1px solid transparent; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 0.375rem; } .btn-primary { background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%); border-color: var(--primary-color); color: white; } .btn-primary:hover { background: linear-gradient(135deg, #1d4ed8 0%, var(--primary-color) 100%); border-color: #1d4ed8; transform: translateY(-1px); box-shadow: var(--shadow-md); } .btn-outline-primary { background-color: transparent; border-color: var(--primary-color); color: var(--primary-color); } .btn-outline-primary:hover { background-color: var(--primary-color); border-color: var(--primary-color); color: white; } .btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; } /* ========== 警告框样式 ========== */ .alert { border: none; border-radius: var(--radius-md); padding: 1rem 1.25rem; border-left: 4px solid; } .alert-info { background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%); border-left-color: var(--info-color); color: #0e7490; } .alert-warning { background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%); border-left-color: var(--warning-color); color: #92400e; } .alert-danger { background: linear-gradient(135deg, #fecaca 0%, #fef2f2 100%); border-left-color: var(--danger-color); color: #991b1b; } .alert-success { background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%); border-left-color: var(--success-color); color: #15803d; } /* ========== 分页样式 ========== */ .pagination { gap: 0.25rem; } .pagination .page-link { color: var(--text-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 0.5rem 0.75rem; font-size: 0.875rem; background-color: var(--bg-accent); transition: all 0.2s ease; } .pagination .page-link:hover { background-color: var(--primary-lighter); border-color: var(--primary-light); color: var(--primary-color); } .pagination .page-item.active .page-link { background-color: var(--primary-color); border-color: var(--primary-color); color: white; } /* ========== 表单控件 ========== */ .form-select, .form-control { border: 1px solid var(--border-color); border-radius: var(--radius-sm); background-color: var(--bg-accent); color: var(--text-primary); font-size: 0.875rem; transition: all 0.2s ease; } .form-select:focus, .form-control:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px var(--primary-lighter); outline: none; } /* ========== 页脚 ========== */ footer { background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-secondary) 100%); border-top: 1px solid var(--border-color); margin-top: 3rem; } footer .text-muted { color: var(--text-muted) !important; font-size: 0.875rem; } /* ========== 工具类 ========== */ .text-primary { color: var(--primary-color) !important; } .text-success { color: var(--success-color) !important; } .text-warning { color: var(--warning-color) !important; } .text-danger { color: var(--danger-color) !important; } .text-muted { color: var(--text-muted) !important; } .fw-bold { font-weight: 600 !important; } /* ========== 空状态 ========== */ .empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); } .empty-state i { font-size: 3rem; color: var(--text-muted); margin-bottom: 1rem; opacity: 0.6; } .empty-state h4 { color: var(--text-secondary); font-weight: 500; margin-bottom: 0.5rem; } /* ========== 加载动画 ========== */ .loading { width: 1.25rem; height: 1.25rem; border: 2px solid var(--border-light); border-top: 2px solid var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* ========== 响应式设计 ========== */ @media (max-width: 768px) { .container { padding-left: 1rem; padding-right: 1rem; } .card-body { padding: 1rem; } .table-responsive { font-size: 0.75rem; } .stats-card { padding: 1rem; } .stats-value { font-size: 1.5rem; } .badge { font-size: 0.625rem; padding: 0.25rem 0.5rem; } } /* ========== 特殊效果 ========== */ .fade-in { animation: fadeIn 0.5s ease-in; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .hover-lift { transition: transform 0.2s ease; } .hover-lift:hover { transform: translateY(-2px); } /* ========== 股票信息样式 ========== */ .stock-code-link { text-decoration: none; transition: all 0.2s ease; } .stock-code-link:hover { transform: translateY(-1px); filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.2)); } .stock-code-badge { font-size: 0.75rem; font-weight: 600; color: var(--primary-color); background: linear-gradient(135deg, var(--primary-lighter) 0%, rgba(37, 99, 235, 0.1) 100%); padding: 0.25rem 0.5rem; border-radius: var(--radius-sm); border: 1px solid rgba(37, 99, 235, 0.2); display: inline-block; letter-spacing: 0.02em; font-family: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace; cursor: pointer; transition: all 0.2s ease; } .stock-code-link:hover .stock-code-badge { background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%); color: white; border-color: var(--primary-color); } .stock-name { font-size: 0.8rem; font-weight: 400; line-height: 1.2; max-width: 100px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* ========== 滚动条美化 ========== */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: var(--bg-secondary); } ::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); } /* ========== 创新高回踩确认样式 ========== */ /* 时间线样式 */ .timeline-compact { display: flex; flex-direction: column; gap: 0.25rem; } .timeline-item { display: flex; justify-content: space-between; align-items: center; padding: 0.125rem 0; } .timeline-item small { font-size: 0.7rem; min-width: 45px; text-align: left; } /* 增强时间线显示 */ .timeline-enhanced { display: flex; flex-direction: column; gap: 8px; position: relative; padding-left: 16px; } .timeline-enhanced::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom, #007bff, #28a745, #ffc107); border-radius: 1px; } .timeline-step { display: flex; align-items: flex-start; gap: 8px; position: relative; } .timeline-marker { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px; flex-shrink: 0; margin-left: -10px; background: #fff; z-index: 1; } .timeline-marker.pattern { box-shadow: 0 0 0 2px #007bff; background: #007bff; } .timeline-marker.new-high { box-shadow: 0 0 0 2px #28a745; background: #28a745; animation: pulse-success 2s infinite; } .timeline-marker.confirmation { box-shadow: 0 0 0 2px #ffc107; background: #ffc107; animation: pulse-warning 2s infinite; } @keyframes pulse-success { 0% { box-shadow: 0 0 0 2px #28a745; } 50% { box-shadow: 0 0 0 2px #28a745, 0 0 0 6px rgba(40, 167, 69, 0.3); } 100% { box-shadow: 0 0 0 2px #28a745; } } @keyframes pulse-warning { 0% { box-shadow: 0 0 0 2px #ffc107; } 50% { box-shadow: 0 0 0 2px #ffc107, 0 0 0 6px rgba(255, 193, 7, 0.3); } 100% { box-shadow: 0 0 0 2px #ffc107; } } .timeline-content { flex: 1; min-width: 0; } .timeline-date { font-size: 11px; color: #6c757d; font-weight: 500; margin-bottom: 2px; } .timeline-date.highlight-date { color: #495057; font-weight: 600; background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(255, 193, 7, 0.1)); padding: 2px 6px; border-radius: 4px; border-left: 3px solid; border-image: linear-gradient(135deg, #28a745, #ffc107) 1; } .timeline-price { font-size: 10px; color: #28a745; font-weight: 600; background: rgba(40, 167, 69, 0.1); padding: 1px 4px; border-radius: 3px; display: inline-block; } /* 新的轻量时间线样式 */ .timeline-enhanced-wide { background: #fafbfc; border-radius: 8px; padding: 12px; border: 1px solid #e1e5e9; } .timeline-flow { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; } .timeline-step-wide { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 80px; } .timeline-marker-wide { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 12px; margin-bottom: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.12); position: relative; } .pattern-marker { background: #6c757d; } .new-high-marker { background: #28a745; } .confirmation-marker { background: #ffc107; } .timeline-content-wide { text-align: center; min-height: 50px; } .timeline-title { font-size: 11px; font-weight: 500; margin-bottom: 3px; color: #6c757d; line-height: 1.2; } .timeline-date-wide { font-size: 13px; font-weight: 600; color: #495057; margin-bottom: 2px; padding: 1px 4px; border-radius: 3px; display: inline-block; } .timeline-date-wide.highlight { color: #28a745; font-weight: 600; } .timeline-info { font-size: 10px; color: #868e96; font-weight: 400; } .timeline-arrow { color: #dee2e6; font-size: 14px; opacity: 0.6; } .timeline-summary { border-top: 1px solid #e9ecef; padding-top: 8px; text-align: center; } .timeline-simple { padding: 12px; background: #f8f9fa; border-radius: 8px; text-align: center; border: 1px solid #e9ecef; } .tech-indicators-compact { font-size: 12px; line-height: 1.5; } /* 小徽章样式 */ .badge-sm { font-size: 0.7rem; padding: 0.25em 0.5em; font-weight: 500; } /* 表格样式优化 */ .table { border-collapse: separate; border-spacing: 0; } .table thead th { border-bottom: 1px solid #e9ecef !important; background-color: #f8f9fa !important; color: #495057 !important; font-weight: 500 !important; font-size: 12px !important; padding: 10px 12px !important; border-top: none !important; } .table tbody td { border-top: 1px solid #f1f3f4 !important; padding: 12px !important; vertical-align: middle !important; } .table-hover tbody tr:hover { background-color: rgba(0, 123, 255, 0.03) !important; } .table-container { border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 20px; } /* 扫描日期分组标题优化 */ .scan-date-header { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important; border-left: 4px solid #007bff; margin-bottom: 0; border-radius: 0; } .scan-date-header h6 { font-size: 13px; color: #495057 !important; } .scan-date-header .badge { font-size: 0.7rem; font-weight: 500; } /* 时间线摘要优化 */ .timeline-summary .badge { margin-bottom: 3px; line-height: 1.3; } .timeline-summary .badge-sm { font-size: 0.65rem; padding: 0.2em 0.4em; } /* 简化动画效果 */ @keyframes timeline-flow { 0%, 100% { transform: translateX(0); opacity: 0.6; } 50% { transform: translateX(2px); opacity: 0.8; } } .timeline-duration { font-size: 10px; color: #17a2b8; font-weight: 500; background: rgba(23, 162, 184, 0.1); padding: 1px 4px; border-radius: 3px; display: inline-block; } /* 价格信息样式 */ .price-info { display: flex; flex-direction: column; gap: 0.25rem; } .price-info .d-flex { align-items: center; } .price-info small { font-size: 0.7rem; min-width: 50px; } .price-compact { display: flex; flex-direction: column; gap: 0.2rem; } .price-compact .d-flex { align-items: center; } .price-compact small { font-size: 0.7rem; min-width: 35px; } /* 确认详情样式 */ .confirmation-details { display: flex; flex-direction: column; gap: 0.25rem; } .confirmation-details .d-flex { align-items: center; } .confirmation-details small { font-size: 0.7rem; min-width: 60px; } .confirmation-compact { display: flex; flex-direction: column; gap: 0.2rem; } .confirmation-compact .d-flex { align-items: center; } .confirmation-compact small { font-size: 0.7rem; min-width: 35px; } /* 技术指标样式 */ .tech-indicators { display: flex; flex-direction: column; gap: 0.25rem; } .tech-indicators .d-flex { align-items: center; } .tech-indicators small { font-size: 0.7rem; min-width: 50px; } .tech-compact { display: flex; flex-direction: column; gap: 0.2rem; } .tech-compact .d-flex { align-items: center; } .tech-compact small { font-size: 0.7rem; min-width: 35px; } /* 扫描时间分组标题样式 */ .scan-date-header { border-left: 4px solid var(--primary-color); background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%); margin-bottom: 0; } .scan-date-header h6 { margin-bottom: 0; display: flex; align-items: center; justify-content: space-between; } .scan-date-header .badge { font-size: 0.7rem; padding: 0.25rem 0.5rem; } /* 新高确认标识 */ .badge.bg-success { background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%) !important; box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2); } .badge.bg-info { background: linear-gradient(135deg, var(--info-color) 0%, #0891b2 100%) !important; box-shadow: 0 2px 4px rgba(6, 182, 212, 0.2); } /* 状态指示颜色 */ .text-primary.fw-bold { color: var(--primary-color) !important; font-weight: 600 !important; } .text-success.fw-bold { color: var(--success-color) !important; font-weight: 600 !important; } .text-warning.fw-bold { color: var(--warning-color) !important; font-weight: 600 !important; } /* 回踩距离颜色编码 */ .badge.bg-success.small { background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%) !important; } .badge.bg-warning.small { background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%) !important; } .badge.bg-danger.small { background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%) !important; } /* 表格行高优化 */ .table tbody tr { min-height: 80px; } .table tbody td { padding: 0.75rem 0.5rem; vertical-align: top; } /* 响应式优化 */ @media (max-width: 992px) { .timeline-compact { gap: 0.2rem; } .timeline-item small { font-size: 0.65rem; min-width: 40px; } .price-info small, .confirmation-details small, .tech-indicators small { font-size: 0.65rem; min-width: 45px; } .badge.small { font-size: 0.65rem; padding: 0.2rem 0.4rem; } } @media (max-width: 768px) { .table tbody td { padding: 0.5rem 0.25rem; font-size: 0.75rem; } .timeline-item, .price-info .d-flex, .confirmation-details .d-flex, .tech-indicators .d-flex { gap: 0.25rem; } .badge { font-size: 0.65rem; padding: 0.2rem 0.4rem; } }