* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #0a0e27;
  color: #e0e6f0;
  min-height: 100vh;
}
.header {
  background: linear-gradient(135deg, #1a1f3a 0%, #0d1230 100%);
  padding: 20px 30px;
  border-bottom: 1px solid #2a2f4a;
  display: flex; align-items: center; justify-content: space-between;
}
.header h1 { font-size: 22px; background: linear-gradient(90deg, #4facfe, #00f2fe); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.header .subtitle { font-size: 12px; color: #6a7090; }
.search-box {
  margin: 20px 30px; display: flex; gap: 10px; align-items: center;
}
.search-box input {
  width: 200px; padding: 12px 16px; border: 1px solid #2a2f4a; border-radius: 8px;
  background: #151a30; color: #e0e6f0; font-size: 15px; outline: none;
  transition: border-color 0.3s;
}
.search-box input:focus { border-color: #4facfe; }
.btn {
  padding: 12px 28px; border: none; border-radius: 8px; cursor: pointer;
  font-size: 15px; font-weight: 600; transition: all 0.3s;
}
.btn-primary {
  background: linear-gradient(135deg, #4facfe, #00f2fe); color: #0a0e27;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(79,172,254,0.4); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.container { padding: 0 30px 30px; }

/* Phase indicator */
.phase-badge {
  display: inline-block; padding: 4px 14px; border-radius: 12px;
  font-size: 12px; font-weight: 600; margin-bottom: 15px;
}
.phase-collecting { background: rgba(79,172,254,0.15); color: #4facfe; }
.phase-scoring { background: rgba(0,242,254,0.15); color: #00f2fe; }
.phase-ai { background: rgba(255,193,7,0.15); color: #ffc107; }

/* Analyst cards */
.analyst-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px; margin-bottom: 20px;
}
.analyst-card {
  background: #151a30; border: 1px solid #2a2f4a; border-radius: 12px;
  padding: 18px; transition: all 0.3s ease; cursor: pointer;
}
.analyst-card:hover {
  border-color: #4facfe;
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(79,172,254,0.18);
}
.analyst-card.running { border-color: #4facfe; box-shadow: 0 0 20px rgba(79,172,254,0.2); }
.analyst-card.done { border-color: #00c853; }
.analyst-card.error { border-color: #ff5252; }
/* 功能卡片(AI对话/市场情绪历史): 边框与其他模块完成态一致(绿色) */
#card-ai_chat, #card-sentiment_history { border-color: #00c853; }

/* Modal */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.78); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-panel {
  background: #151a30; border: 1px solid #2a2f4a; border-radius: 16px;
  width: 92%; max-width: 960px; max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
  padding: 16px 24px; border-bottom: 1px solid #2a2f4a;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.modal-header h2 { font-size: 18px; color: #4facfe; }
.modal-close {
  background: none; border: none; color: #6a7090; font-size: 26px;
  cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: all 0.2s;
}
.modal-close:hover { color: #ff5252; background: rgba(255,82,82,0.1); }
.modal-body {
  padding: 20px 24px; overflow-y: auto; overflow-x: hidden; flex: 1; min-width: 0;
}
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-track { background: #0d1230; border-radius: 3px; }
.modal-body::-webkit-scrollbar-thumb { background: #2a2f4a; border-radius: 3px; }

/* Detail sections */
.detail-section { margin-bottom: 24px; max-width: 100%; }
.detail-section h3 {
  font-size: 15px; color: #ffc107; margin-bottom: 12px;
  padding-bottom: 8px; padding-left: 12px;
  border-bottom: 1px solid #1a1f3a; border-left: 3px solid #ffc107;
}
.detail-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.detail-table td {
  padding: 8px 12px; border-bottom: 1px solid #1a1f3a; vertical-align: top;
}
.detail-table td:first-child { color: #6a7090; width: 30%; white-space: nowrap; }
.detail-table td:last-child { color: #e0e6f0; }

/* 盘中资金流弹窗: 盘后Tushare数据(T+1)灰度显示 */
.stale-note {
  background: rgba(255,193,7,0.08); border: 1px dashed rgba(255,193,7,0.4);
  color: #ffc107; font-size: 12px; padding: 8px 12px; border-radius: 8px;
  margin-bottom: 10px; line-height: 1.7;
}
.stale-section { opacity: 0.55; filter: grayscale(0.6); }
.stale-section h3 { color: #8a90b0; border-left-color: #8a90b0; }
.stale-section .detail-table td:last-child { color: #9aa0c0; }

/* Tip icon */
.tip-icon {
  display: inline-block; width: 14px; height: 14px; line-height: 14px;
  text-align: center; font-size: 10px; font-weight: 700;
  background: #2a2f4a; color: #8a90b0; border-radius: 50%;
  margin-left: 3px; cursor: help; vertical-align: middle; user-select: none;
}
.tip-icon:hover { background: #4facfe; color: #fff; }

/* K-line mini table */
.kline-table { border-collapse: collapse; font-size: 12px; min-width: 980px; }
.kline-table th { color: #6a7090; font-weight: 500; padding: 6px 8px; text-align: right; background: #0d1230; white-space: nowrap; }
.kline-table th:first-child { text-align: left; }
.kline-table td { padding: 5px 8px; text-align: right; border-bottom: 1px solid #1a1f3a; color: #c0c6e0; white-space: nowrap; }
.kline-table td:first-child { text-align: left; color: #8a90b0; }
.kline-table tr:hover { background: #1a1f3a; }
.kline-wrap::-webkit-scrollbar { height: 6px; width: 6px; }
.kline-wrap::-webkit-scrollbar-track { background: #0d1230; border-radius: 3px; }
.kline-wrap::-webkit-scrollbar-thumb { background: #2a2f4a; border-radius: 3px; }
.kline-wrap::-webkit-scrollbar-thumb:hover { background: #4facfe; }
.kline-up { color: #ff5252 !important; }
.kline-down { color: #00c853 !important; }

/* Tag / badge */
.tag {
  display: inline-block; padding: 2px 10px; border-radius: 10px;
  font-size: 11px; margin: 2px 4px 2px 0;
  background: rgba(79,172,254,0.12); color: #4facfe;
}
.tag-orange { background: rgba(255,152,0,0.12); color: #ff9800; }
.tag-green { background: rgba(0,200,83,0.12); color: #00c853; }

/* News items */
.news-list-item {
  padding: 12px 14px; border-bottom: 1px solid #1a1f3a;
  cursor: pointer; transition: background 0.2s; border-radius: 6px;
}
.news-list-item:hover { background: #1a1f3a; }
.news-list-item .nl-title {
  color: #4facfe; font-size: 14px; margin-bottom: 4px; line-height: 1.5;
}
.news-list-item .nl-meta {
  font-size: 12px; color: #6a7090; display: flex; gap: 16px;
}

/* News article view */
.news-article { padding: 4px 0; }
.news-article .back-btn {
  background: none; border: 1px solid #2a2f4a; color: #8a90b0;
  padding: 6px 16px; border-radius: 6px; cursor: pointer; font-size: 13px;
  margin-bottom: 16px; transition: all 0.2s;
}
.news-article .back-btn:hover { border-color: #4facfe; color: #4facfe; }
.news-article .article-meta {
  color: #6a7090; font-size: 12px; margin-bottom: 8px;
  display: flex; gap: 20px; flex-wrap: wrap;
}
.news-article h3 { color: #e0e6f0; font-size: 18px; margin-bottom: 16px; line-height: 1.5; }
.news-article .article-content { line-height: 2; color: #c0c6e0; font-size: 15px; }
.news-article .article-content p { margin-bottom: 16px; text-indent: 2em; }
.news-article .article-content .section-title {
  color: #ffc107; font-size: 16px; font-weight: 700; margin: 24px 0 12px;
  padding: 8px 0 6px 12px; border-left: 4px solid #ffc107;
  text-indent: 0;
}
.news-article .article-content .data-point {
  color: #4facfe; font-weight: 600;
}
.news-article .article-source {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid #2a2f4a;
}
.news-article .article-source a {
  color: #4facfe; text-decoration: none; font-size: 13px;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color 0.2s;
}
.news-article .article-source a:hover { color: #00f2fe; }

/* Loading in modal */
.modal-loading {
  text-align: center; padding: 40px; color: #6a7090;
}
.card-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.card-header .icon {
  width: 40px; height: 40px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; font-size: 18px;
}
.icon-fundamental { background: rgba(255,152,0,0.15); color: #ff9800; }
.icon-technical { background: rgba(33,150,243,0.15); color: #2196f3; }
.icon-capital { background: rgba(156,39,176,0.15); color: #9c27b0; }
.icon-sentiment { background: rgba(233,30,99,0.15); color: #e91e63; }
.icon-industry { background: rgba(0,188,212,0.15); color: #00bcd4; }
.icon-news { background: rgba(76,175,80,0.15); color: #4caf50; }
.card-header .name { font-size: 15px; font-weight: 600; }
.card-header .status {
  font-size: 11px; padding: 2px 10px; border-radius: 10px; margin-left: auto;
}
.status-pending { background: #2a2f4a; color: #6a7090; }
.status-running { background: rgba(79,172,254,0.2); color: #4facfe; }
.status-done { background: rgba(0,200,83,0.2); color: #00c853; }
.status-error { background: rgba(255,82,82,0.2); color: #ff5252; }
.card-body .message { font-size: 13px; color: #8a90b0; margin-bottom: 8px; }
.card-body .score-display {
  font-size: 28px; font-weight: 700; margin: 5px 0;
}
.completeness-high { color: #00c853; }
.completeness-mid { color: #ffc107; }
.completeness-low { color: #ff5252; }
.score-bar {
  height: 6px; background: #2a2f4a; border-radius: 3px; margin-top: 8px; overflow: hidden;
}
.score-bar-fill {
  height: 100%; border-radius: 3px; transition: width 0.5s ease;
}
.data-preview {
  margin-top: 10px; font-size: 12px; color: #6a7090;
  max-height: 120px; overflow-y: auto; background: #0d1230;
  padding: 8px 12px; border-radius: 6px;
}
.data-preview .kv { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; min-width: 0; padding: 2px 0; border-bottom: 1px solid #1a1f3a; }
.data-preview .kv:last-child { border-bottom: none; }
.data-preview .kv span { min-width: 0; overflow-wrap: anywhere; word-break: break-all; }

/* Score summary */
.score-summary {
  background: #151a30; border: 1px solid #2a2f4a; border-radius: 12px;
  padding: 20px; margin-bottom: 20px;
}
.score-summary h3 { font-size: 16px; margin-bottom: 15px; color: #4facfe; }
.final-score-row {
  display: flex; align-items: center; gap: 20px; margin-bottom: 15px;
}
.final-score-circle {
  width: 80px; height: 80px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; flex-direction: column;
  border: 3px solid; font-size: 22px; font-weight: 700;
}
.completeness-badge {
  padding: 6px 18px; border-radius: 20px; font-size: 14px; font-weight: 600;
}

/* AI Report */
.ai-report {
  background: #151a30; border: 1px solid #2a2f4a; border-radius: 12px;
  padding: 24px; margin-bottom: 20px;
}
.ai-report h2 {
  font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.ai-report .report-content {
  line-height: 1.8; font-size: 14px;
  color: #c0c6e0;
}
.ai-report .report-h {
  color: #ffc107; font-size: 17px; font-weight: 700;
  margin: 24px 0 8px; padding: 4px 0 4px 14px;
  border-left: 4px solid #ffc107; line-height: 1.4;
}
.ai-report .report-h4 {
  color: #4facfe; font-size: 15px; font-weight: 600;
  margin: 16px 0 6px; padding-left: 8px;
  border-left: 3px solid #4facfe; line-height: 1.4;
}
.ai-report .report-p {
  color: #c0c6e0; font-size: 14px; line-height: 1.8;
  margin-bottom: 10px; text-indent: 2em;
}
.ai-report .report-ul, .ai-report .report-ol {
  margin: 6px 0 10px 24px; color: #c0c6e0; font-size: 14px; line-height: 1.7;
}
.ai-report .report-ul li, .ai-report .report-ol li { margin-bottom: 2px; }
.ai-report .report-hr {
  border: none; border-top: 1px solid #2a2f4a; margin: 16px 0;
}
.ai-report .report-footer {
  color: #7a8098; font-size: 12.5px; line-height: 1.7;
  margin: 4px 0; text-indent: 0;
}
.ai-report .report-footer strong { color: #8a90b0; font-weight: 600; }

/* AI progress bar */
.ai-progress-container {
  background: #151a30; border: 1px solid #2a2f4a; border-radius: 12px;
  padding: 20px 24px; margin-bottom: 20px;
}
.ai-progress-container h3 {
  font-size: 16px; color: #ffc107; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.ai-progress-bar {
  height: 8px; background: #2a2f4a; border-radius: 4px; overflow: hidden; position: relative;
}
.ai-progress-bar .fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #ffc107, #ff9800, #ffc107);
  background-size: 200% 100%;
  animation: aiShimmer 1.5s ease infinite;
  width: 100%;
}
@keyframes aiShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.ai-progress-container .status-text {
  font-size: 13px; color: #8a90b0; margin-top: 10px;
}
.spinner {
  display: inline-block; width: 16px; height: 16px; border: 2px solid #4facfe;
  border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


.hidden { display: none; }


/* K-line chart */
.kline-chart-container {
  width: 100%; height: 420px; margin-bottom: 20px;
  background: #0d1230; border-radius: 12px; overflow: hidden;
}
.kline-chart-container .chart-inner { width: 100%; height: 100%; }

/* Toast notification */
.toast-container { position: fixed; top: 50px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 24px; border-radius: 8px; font-size: 13px; color: #fff; max-width: 380px; box-shadow: 0 4px 20px rgba(0,0,0,0.5); animation: toastIn 0.3s ease, toastOut 0.3s ease 3.5s forwards; }
.toast-error { background: #c0392b; }
.toast-warn { background: #d35400; }
.toast-info { background: #1a5276; }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }



@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(60px); } }

/* 涨停梯队总览 chips */
.pool-summary { display: flex; flex-wrap: wrap; gap: 10px; }
.pool-chip { cursor: pointer; border-radius: 12px; padding: 12px 16px; min-width: 100px; text-align: center; border: 1px solid transparent; transition: all 0.15s ease; }
.pool-chip:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.pool-chip .num { font-size: 24px; font-weight: 800; line-height: 1.2; }
.pool-chip .lbl { font-size: 12px; opacity: 0.9; margin-top: 2px; }

/* 涨停池折叠分组 */
details.pool-group { background: #0d1230; border: 1px solid #232a4d; border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
details.pool-group summary { cursor: pointer; padding: 13px 18px; display: flex; align-items: center; gap: 12px; list-style: none; user-select: none; }
details.pool-group summary::-webkit-details-marker { display: none; }
details.pool-group summary:hover { background: #11163a; }
.pool-board-label { font-size: 15px; font-weight: 700; }
.pool-board-count { font-size: 13px; color: #8a90b0; background: #151a30; border-radius: 20px; padding: 2px 12px; }
.pool-board-chev { margin-left: auto; color: #6a7090; font-size: 12px; transition: transform 0.2s ease; }
details.pool-group[open] .pool-board-chev { transform: rotate(90deg); }
.pool-table-wrap { overflow-x: auto; padding: 2px 6px 8px; }
.pool-table { width: 100%; min-width: 1080px; border-collapse: collapse; font-size: 12px; }
.pool-table th { position: sticky; top: 0; background: #151a30; color: #6a7090; padding: 8px 10px; text-align: left; font-weight: 600; border-bottom: 1px solid #232a4d; white-space: nowrap; }
.pool-table td { padding: 8px 10px; border-bottom: 1px solid #1a1f3d; color: #c0c6e0; white-space: nowrap; }
.pool-table tr:hover td { background: #151a30; }
.pool-table td.reason-cell { white-space: normal; max-width: 260px; min-width: 160px; color: #8a90b0; line-height: 1.5; }
.pool-up { color: #ff6b6b; font-weight: 600; }

/* ===== 搜索建议下拉 ===== */
.search-box { position: relative; }
.suggest-list {
  position: absolute; top: 52px; left: 0; z-index: 500;
  width: 320px; background: #151a30; border: 1px solid #2a2f4a;
  border-radius: 8px; overflow: hidden; box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.suggest-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer; font-size: 13px;
  border-bottom: 1px solid #1a1f3a; transition: background 0.15s;
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover { background: #1a1f3a; }
.suggest-item .s-name { color: #e0e6f0; font-weight: 600; }
.suggest-item .s-code { color: #8a90b0; font-size: 12px; }
.suggest-item .s-ind { color: #6a7090; font-size: 11px; margin-left: auto; }

/* ===== 功能卡片 (AI对话 / 情绪历史) ===== */
.icon-chat { background: rgba(0,242,254,0.15); color: #00f2fe; }
.icon-sentiment2 { background: rgba(255,193,7,0.15); color: #ffc107; }
.chat-ready-tip { font-size: 12px; color: #69f0ae; margin-bottom: 8px; line-height: 1.6; }
.chat-card-input { display: flex; gap: 6px; margin-top: 4px; }
.chat-card-input input {
  flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid #2a2f4a; border-radius: 6px;
  background: #0d1230; color: #e0e6f0; font-size: 13px; outline: none;
  transition: border-color 0.2s;
}
.chat-card-input input:focus { border-color: #4facfe; }
.chat-card-input button {
  padding: 8px 14px; border: none; border-radius: 6px; cursor: pointer;
  background: linear-gradient(135deg, #4facfe, #00f2fe); color: #0a0e27;
  font-size: 13px; font-weight: 600; transition: all 0.2s; white-space: nowrap;
}
.chat-card-input button:hover { box-shadow: 0 2px 12px rgba(79,172,254,0.4); }
.sent-card-preview { margin-top: 10px; font-size: 12px; color: #8a90b0; background: #0d1230; padding: 10px 12px; border-radius: 6px; line-height: 1.9; }

/* ===== AI对话 (弹窗内) ===== */
.chat-page { display: flex; flex-direction: column; min-height: 60vh; max-height: 72vh; }
.chat-notice { color: #8a90b0; font-size: 12px; text-align: center; line-height: 1.6; padding: 6px 12px 8px; flex: none; }
.chat-messages { flex: 1; overflow-y: auto; padding: 4px 8px; display: flex; flex-direction: column; gap: 14px; max-height: 52vh; }
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-track { background: #0d1230; border-radius: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: #2a2f4a; border-radius: 3px; }
.chat-welcome { color: #6a7090; font-size: 13px; line-height: 1.9; background: #101528; border: 1px dashed #2a2f4a; border-radius: 10px; padding: 16px 18px; }
.chat-msg { display: flex; flex-direction: column; max-width: 82%; }
.chat-msg.user { align-self: flex-end; align-items: flex-end; }
.chat-msg.assistant { align-self: flex-start; align-items: flex-start; }
.chat-bubble {
  padding: 11px 15px; border-radius: 12px; font-size: 14px; line-height: 1.8;
  white-space: pre-wrap; word-break: break-word;
}
.chat-msg.user .chat-bubble { background: linear-gradient(135deg, #4facfe, #00c2f0); color: #0a0e27; border-bottom-right-radius: 4px; }
.chat-msg.assistant .chat-bubble {
  background: #151a30; border: 1px solid #2a2f4a; color: #c0c6e0;
  border-bottom-left-radius: 4px;
}
.chat-msg.assistant .chat-bubble .report-h { font-size: 15px; }
.chat-msg.assistant .chat-bubble .report-p { font-size: 14px; text-indent: 0; }
.chat-msg.assistant .chat-bubble .report-ul, .chat-msg.assistant .chat-bubble .report-ol { font-size: 14px; }
.chat-msg .chat-role { font-size: 11px; color: #6a7090; margin-bottom: 4px; padding: 0 4px; }
.chat-input-row {
  display: flex; gap: 10px; margin-top: 14px; flex-shrink: 0;
}
.chat-input-row textarea {
  flex: 1; padding: 12px 14px; border: 1px solid #2a2f4a; border-radius: 10px;
  background: #151a30; color: #e0e6f0; font-size: 14px; font-family: inherit;
  resize: none; height: 46px; outline: none; line-height: 1.5;
}
.chat-input-row textarea:focus { border-color: #4facfe; }
.chat-thinking { color: #6a7090; font-size: 12px; padding: 2px 8px; }

/* ===== 市场情绪历史 (弹窗内) ===== */
.sentiment-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.sentiment-toolbar select {
  padding: 9px 14px; border: 1px solid #2a2f4a; border-radius: 8px;
  background: #151a30; color: #e0e6f0; font-size: 14px; outline: none;
}
.sent-note { font-size: 12px; color: #6a7090; margin-left: auto; }
.sent-table-wrap { overflow: auto; max-height: 58vh; border: 1px solid #2a2f4a; border-radius: 10px; background: #0d1230; }
.sent-table { border-collapse: collapse; font-size: 12px; min-width: 1180px; width: 100%; }
.sent-table th {
  position: sticky; top: 0; background: #151a30; color: #6a7090;
  padding: 10px 8px; font-weight: 600; border-bottom: 1px solid #232a4d;
  white-space: nowrap; z-index: 2;
}
.sent-table td { padding: 8px; text-align: center; border-bottom: 1px solid #1a1f3d; color: #c0c6e0; white-space: nowrap; }
.sent-table tr:hover td { background: #151a30; }
.sent-table td.s-date { color: #8a90b0; font-weight: 600; }
.sent-table td.s-main { max-width: 260px; white-space: normal; text-align: left; color: #8a90b0; line-height: 1.5; }
.sent-table td.s-stocks { max-width: 200px; white-space: normal; text-align: left; color: #8a90b0; line-height: 1.5; }
.sent-red { color: #ff6b6b !important; font-weight: 700; }
.sent-green { color: #69f0ae !important; font-weight: 700; }
.sent-blue { color: #64b5f6 !important; font-weight: 600; }
.sent-holiday { color: #ff8a80; font-weight: 700; letter-spacing: 2px; }
.sent-empty { color: #6a7090; text-align: center; padding: 40px; font-size: 13px; }

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .header {
    flex-direction: column; align-items: stretch; gap: 10px;
    padding: 14px 14px 12px;
  }
  .header h1 { font-size: 19px; }
  .header > div:last-child { flex-wrap: wrap; gap: 8px; width: 100%; }
  #userArea { flex-wrap: wrap; gap: 8px 12px; }
  #currentTime { display: none; }
  .search-box { margin: 12px 12px 4px; flex-wrap: wrap; gap: 8px; }
  .search-box input { flex: 1; min-width: 0; width: auto; font-size: 16px; }
  .search-box .btn { padding: 12px 18px; font-size: 15px; }
  #searchHelp { width: 100%; }
  .suggest-list { width: calc(100vw - 24px); max-width: 100%; }
  .container { padding: 0 12px 20px; }
  .analyst-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .analyst-card { min-width: 0; padding: 13px 12px; }
  .analyst-card .card-header, .analyst-card .card-body { min-width: 0; }
  .analyst-card:hover { transform: none; }
  .card-header .name { font-size: 14px; }
  .card-body .score-display { font-size: 22px; }
  .data-preview { max-height: 100px; }

  /* 弹窗: 模块详情全屏化, 其余(升级引导等)保持卡片 */
  .modal-overlay { padding: 0; }
  .modal-panel { width: 94%; max-width: 94%; max-height: 90vh; border-radius: 14px; }
  #detailModal .modal-panel { width: 100%; max-width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; }
  .modal-header { padding: 13px 16px; }
  .modal-header h2 { font-size: 16px; }
  .modal-body { padding: 14px 14px 28px; }
  .modal-close { font-size: 24px; }
  .detail-section h3 { font-size: 14px; }
  .detail-table td { padding: 7px 8px; font-size: 13px; line-height: 1.6; }
  .detail-table td:first-child { width: 36%; min-width: 86px; white-space: normal; }

  /* AI研报移动阅读字号 */
  .ai-report { padding: 16px 14px; }
  .ai-report h2 { font-size: 16px; }
  .ai-report .report-content { font-size: 15px; line-height: 1.9; }
  .ai-report .report-h { font-size: 16px; margin: 20px 0 8px; }
  .ai-report .report-h4 { font-size: 15px; }
  .ai-report .report-p { font-size: 15px; line-height: 1.9; text-indent: 0; margin-bottom: 8px; }
  .ai-report .report-ul, .ai-report .report-ol { font-size: 15px; line-height: 1.8; margin-left: 18px; }
  .ai-report .report-footer { font-size: 12.5px; }
  .score-summary { padding: 14px; }
  .score-summary h3 { font-size: 15px; }
  .final-score-row { flex-wrap: wrap; gap: 12px; }
  .final-score-circle { width: 68px; height: 68px; font-size: 19px; }
  .ai-progress-container { padding: 16px 14px; }

  /* 图表容器移动端高度 */
  .kline-chart-container { height: 280px; }
  .kline-table { min-width: 700px; }

  /* 新闻阅读 */
  .news-list-item .nl-title { font-size: 15px; }
  .news-article h3 { font-size: 16px; }
  .news-article .article-content { font-size: 15px; }
  .news-article .article-content p { text-indent: 0; margin-bottom: 12px; }

  /* AI对话 */
  .chat-page { min-height: 70vh; max-height: 92vh; }
  .chat-messages { max-height: 60vh; padding: 2px 0; }
  .chat-msg { max-width: 92%; }
  .chat-bubble { font-size: 15px; padding: 10px 13px; }
  .chat-welcome { font-size: 14px; }
  .chat-input-row textarea { font-size: 16px; height: 44px; }

  /* 市场情绪历史 */
  .sentiment-toolbar { gap: 8px; }
  .sent-note { margin-left: 0; width: 100%; }
  .sent-table-wrap { max-height: 62vh; }
  .sent-table { min-width: 860px; }

  /* 涨停池 */
  .pool-chip { min-width: 80px; padding: 10px 12px; }
  .pool-chip .num { font-size: 20px; }
  .pool-table { min-width: 800px; }

  /* Toast */
  .toast-container { top: 12px; right: 12px; left: 12px; }
  .toast { max-width: 100%; font-size: 14px; padding: 11px 16px; }
  .site-footer { font-size: 12px; padding: 0 12px; }
}

@media (max-width: 480px) {
  .header h1 { font-size: 17px; }
  .header .subtitle { font-size: 11.5px; }
  .analyst-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .analyst-card { padding: 11px 10px; }
  .card-header .icon { width: 34px; height: 34px; font-size: 15px; }
  .card-header { gap: 8px; }
  .search-box .btn { padding: 11px 14px; }
  .kline-chart-container { height: 240px; }
  .ai-report .report-content { font-size: 15px; }
  .modal-header h2 { font-size: 15px; }
}