239 lines
12 KiB
CSS
239 lines
12 KiB
CSS
:root {
|
|
--bg: #0d1117;
|
|
--bg2: #161b22;
|
|
--bg3: #1c2230;
|
|
--card: #161b22;
|
|
--border: #262d3a;
|
|
--text: #e6edf3;
|
|
--text2: #9da7b3;
|
|
--muted: #6e7681;
|
|
--accent: #3b82f6;
|
|
--up: #ef4444; /* A股红涨 */
|
|
--down: #22c55e; /* A股绿跌 */
|
|
--gold: #f59e0b;
|
|
--cyan: #22d3ee;
|
|
}
|
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
body {
|
|
font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-size: 14px;
|
|
}
|
|
a { color: var(--accent); text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
|
|
/* ===== 布局 ===== */
|
|
.layout { display: flex; min-height: 100vh; }
|
|
.sidebar {
|
|
width: 218px; background: var(--bg2); border-right: 1px solid var(--border);
|
|
display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
|
|
}
|
|
.logo { display: flex; gap: 10px; align-items: center; padding: 18px 16px; border-bottom: 1px solid var(--border); }
|
|
.logo-badge {
|
|
width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #3b82f6, #8b5cf6);
|
|
display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #fff;
|
|
}
|
|
.logo-title { font-weight: 700; font-size: 15px; }
|
|
.logo-sub { font-size: 11px; color: var(--muted); }
|
|
.nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; }
|
|
.nav-item {
|
|
display: block; padding: 10px 14px; border-radius: 8px; color: var(--text2);
|
|
font-weight: 500; transition: .15s;
|
|
}
|
|
.nav-item:hover { background: var(--bg3); color: var(--text); text-decoration: none; }
|
|
.nav-item.active { background: rgba(59,130,246,.15); color: var(--accent); }
|
|
.sidebar-foot { padding: 14px; border-top: 1px solid var(--border); font-size: 12px; }
|
|
.mock-tag { color: var(--gold); margin-bottom: 6px; }
|
|
.side-time { color: var(--muted); }
|
|
.main { flex: 1; min-width: 0; }
|
|
.topbar {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: 16px 24px; background: var(--bg2); border-bottom: 1px solid var(--border);
|
|
position: sticky; top: 0; z-index: 10;
|
|
}
|
|
.page-title { font-size: 18px; font-weight: 700; }
|
|
.sys-status { color: var(--text2); font-size: 13px; }
|
|
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--down); margin-right: 6px; }
|
|
.content { padding: 20px 24px 40px; }
|
|
|
|
/* ===== 卡片 ===== */
|
|
.card {
|
|
background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px;
|
|
}
|
|
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
|
|
.card-title .bar { width: 4px; height: 16px; border-radius: 2px; background: var(--accent); display: inline-block; }
|
|
.grid { display: grid; gap: 16px; }
|
|
.grid-2 { grid-template-columns: 1fr 1fr; }
|
|
.grid-3 { grid-template-columns: repeat(3, 1fr); }
|
|
.grid-4 { grid-template-columns: repeat(4, 1fr); }
|
|
.grid-1-2 { grid-template-columns: 1.2fr 1fr; }
|
|
.grid-2-1 { grid-template-columns: 1fr 1.2fr; }
|
|
@media (max-width: 1100px) {
|
|
.grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
|
|
.grid-1-2, .grid-2-1 { grid-template-columns: 1fr; }
|
|
}
|
|
.mt16 { margin-top: 16px; }
|
|
.mt8 { margin-top: 8px; }
|
|
.mb8 { margin-bottom: 8px; }
|
|
|
|
/* ===== 表格 ===== */
|
|
table { width: 100%; border-collapse: collapse; }
|
|
th {
|
|
text-align: left; padding: 10px 10px; color: var(--muted); font-weight: 600; font-size: 12px;
|
|
border-bottom: 1px solid var(--border); white-space: nowrap;
|
|
}
|
|
td { padding: 10px; border-bottom: 1px solid #1f2630; white-space: nowrap; }
|
|
tr:hover td { background: rgba(59,130,246,.05); }
|
|
.row-link { cursor: pointer; }
|
|
|
|
/* ===== 徽标/标签 ===== */
|
|
.tag { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 600; }
|
|
.tag-强烈推荐 { background: rgba(239,68,68,.15); color: var(--up); }
|
|
.tag-推荐 { background: rgba(245,158,11,.15); color: var(--gold); }
|
|
.tag-关注 { background: rgba(59,130,246,.15); color: var(--accent); }
|
|
.tag-观望 { background: rgba(110,118,129,.15); color: var(--muted); }
|
|
.tag-买入 { background: rgba(239,68,68,.15); color: var(--up); }
|
|
.tag-增持 { background: rgba(245,158,11,.15); color: var(--gold); }
|
|
.tag-中性 { background: rgba(110,118,129,.15); color: var(--muted); }
|
|
.tag-减持 { background: rgba(34,197,94,.15); color: var(--down); }
|
|
.tag-正 { background: rgba(239,68,68,.12); color: var(--up); }
|
|
.tag-负 { background: rgba(34,197,94,.12); color: var(--down); }
|
|
.tag-平 { background: rgba(110,118,129,.15); color: var(--muted); }
|
|
.cat-tag { padding: 2px 8px; border-radius: 6px; font-size: 12px; background: var(--bg3); color: var(--text2); }
|
|
.cat-tag.业绩 { color: #f472b6; }
|
|
.cat-tag.行业 { color: #38bdf8; }
|
|
.cat-tag.公司 { color: #a78bfa; }
|
|
.cat-tag.机构观点 { color: #fbbf24; }
|
|
.cat-tag.市场 { color: #4ade80; }
|
|
|
|
.up { color: var(--up); }
|
|
.down { color: var(--down); }
|
|
.flat { color: var(--text2); }
|
|
.num { font-variant-numeric: tabular-nums; }
|
|
|
|
/* ===== 评分环 ===== */
|
|
.score-wrap { display: flex; align-items: center; gap: 10px; }
|
|
.score-ring { position: relative; width: 46px; height: 46px; }
|
|
.score-ring svg { transform: rotate(-90deg); }
|
|
.score-ring .ring-val {
|
|
position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
|
|
font-size: 14px; font-weight: 700;
|
|
}
|
|
|
|
/* ===== 按钮/输入 ===== */
|
|
.btn {
|
|
display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px;
|
|
border: 1px solid var(--border); background: var(--bg3); color: var(--text); cursor: pointer;
|
|
font-size: 13px; font-weight: 500; transition: .15s;
|
|
}
|
|
.btn:hover { border-color: var(--accent); color: var(--accent); }
|
|
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
|
|
.btn-primary:hover { background: #2f6fd6; color: #fff; }
|
|
.btn-danger { color: var(--up); }
|
|
.btn:disabled { opacity: .5; cursor: not-allowed; }
|
|
.input, select.input {
|
|
padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border);
|
|
background: var(--bg2); color: var(--text); font-size: 13px; outline: none;
|
|
}
|
|
.input:focus { border-color: var(--accent); }
|
|
.input-group { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
|
|
|
|
/* ===== 指标小卡 ===== */
|
|
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
|
|
.kpi { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
|
|
.kpi .kpi-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
|
|
.kpi .kpi-value { font-size: 18px; font-weight: 700; }
|
|
.kpi .kpi-sub { font-size: 12px; color: var(--text2); margin-top: 4px; }
|
|
|
|
/* ===== 新闻 ===== */
|
|
.news-item {
|
|
padding: 14px 4px; border-bottom: 1px solid #1f2630; cursor: pointer; transition: .15s;
|
|
}
|
|
.news-item:hover { background: rgba(59,130,246,.05); }
|
|
.news-item .news-title { font-weight: 600; margin-bottom: 6px; font-size: 14px; }
|
|
.news-item .news-meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
|
|
.news-item .news-summary { font-size: 13px; color: var(--text2); margin-top: 6px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
|
|
|
|
/* ===== 弹窗 ===== */
|
|
.modal-mask {
|
|
position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 100;
|
|
display: none; align-items: center; justify-content: center; padding: 20px;
|
|
}
|
|
.modal-mask.show { display: flex; }
|
|
.modal {
|
|
background: var(--bg2); border: 1px solid var(--border); border-radius: 14px;
|
|
max-width: 760px; width: 100%; max-height: 86vh; overflow: auto; padding: 22px;
|
|
}
|
|
.modal h3 { margin-bottom: 12px; }
|
|
.modal-close { float: right; cursor: pointer; color: var(--muted); font-size: 18px; }
|
|
|
|
/* ===== Markdown 研报 ===== */
|
|
.markdown-body { line-height: 1.75; }
|
|
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
|
|
margin: 16px 0 8px; border-bottom: 1px solid var(--border); padding-bottom: 6px;
|
|
}
|
|
.markdown-body h2 { font-size: 17px; }
|
|
.markdown-body h3 { font-size: 15px; }
|
|
.markdown-body p { margin: 8px 0; color: var(--text); }
|
|
.markdown-body ul, .markdown-body ol { padding-left: 22px; margin: 8px 0; }
|
|
.markdown-body li { margin: 4px 0; }
|
|
.markdown-body strong { color: var(--gold); }
|
|
.markdown-body blockquote { border-left: 3px solid var(--accent); padding: 6px 12px; color: var(--text2); background: var(--bg3); border-radius: 4px; margin: 8px 0; }
|
|
.markdown-body table { border-collapse: collapse; margin: 10px 0; }
|
|
.markdown-body th, .markdown-body td { border: 1px solid var(--border); padding: 6px 10px; }
|
|
|
|
/* ===== 其他 ===== */
|
|
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
|
|
.loading { text-align: center; color: var(--muted); padding: 30px 0; }
|
|
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
.pagination { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 16px; }
|
|
.pagination button { min-width: 60px; }
|
|
.pagination .page-info { color: var(--muted); font-size: 13px; }
|
|
.pill-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
|
|
.pill { padding: 5px 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--bg2); color: var(--text2); cursor: pointer; font-size: 13px; }
|
|
.pill.active { background: rgba(59,130,246,.15); border-color: var(--accent); color: var(--accent); }
|
|
.mini-stats { display: flex; gap: 24px; flex-wrap: wrap; }
|
|
.mini-stat .ms-label { color: var(--muted); font-size: 12px; }
|
|
.mini-stat .ms-value { font-size: 15px; font-weight: 700; margin-top: 2px; }
|
|
.flex { display: flex; gap: 10px; align-items: center; }
|
|
.between { justify-content: space-between; }
|
|
.wrap { flex-wrap: wrap; }
|
|
|
|
/* ===== 设置页 ===== */
|
|
.settings-form .sf-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
|
|
.settings-form .sf-row label { width: 110px; color: var(--text2); font-size: 13px; flex-shrink: 0; }
|
|
.settings-form .input { flex: 1; }
|
|
.chk-group { display: flex; gap: 14px; flex-wrap: wrap; padding: 6px 0; }
|
|
.chk-group label { display: flex; align-items: center; gap: 5px; color: var(--text); font-size: 13px; cursor: pointer; }
|
|
.chk-group input { accent-color: var(--accent); }
|
|
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
|
|
.switch input { opacity: 0; width: 0; height: 0; }
|
|
.switch span { position: absolute; inset: 0; background: #262d3a; border-radius: 24px; transition: .2s; cursor: pointer; }
|
|
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
|
|
.switch input:checked + span { background: var(--accent); }
|
|
.switch input:checked + span::before { transform: translateX(20px); }
|
|
|
|
/* ===== 评分条 ===== */
|
|
.score-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; }
|
|
.score-bar .sb-label { width: 36px; color: var(--text2); }
|
|
.score-bar .sb-track { flex: 1; height: 6px; background: #262d3a; border-radius: 3px; overflow: hidden; }
|
|
.score-bar .sb-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #8b5cf6); border-radius: 3px; }
|
|
.score-bar .sb-val { width: 28px; text-align: right; color: var(--text); }
|
|
|
|
/* ===== 数据源区块(分析详情页) ===== */
|
|
.src-block { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; background: var(--bg2); overflow: hidden; }
|
|
.src-block summary { cursor: pointer; padding: 11px 14px; font-weight: 600; font-size: 13px; user-select: none; list-style: none; }
|
|
.src-block summary::-webkit-details-marker { display: none; }
|
|
.src-block summary:hover { background: rgba(59,130,246,.06); }
|
|
.src-count { float: right; color: var(--accent); font-weight: 700; }
|
|
.src-body { padding: 0 14px 12px; border-top: 1px solid #1f2630; }
|
|
.src-news { padding: 10px 0; border-bottom: 1px dashed #1f2630; }
|
|
.src-news:last-child { border-bottom: none; }
|
|
.src-news-title { font-weight: 600; margin-bottom: 5px; font-size: 13px; }
|
|
.src-news-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 5px; flex-wrap: wrap; }
|
|
.src-news-text { font-size: 12px; color: var(--text2); line-height: 1.7; }
|
|
.src-pre { white-space: pre-wrap; word-break: break-word; font-size: 12px; color: var(--text2); line-height: 1.7; background: #0d1117; border: 1px solid #1f2630; border-radius: 8px; padding: 10px; overflow-x: auto; }
|