/* =========================================================
   Flaresky Reads · 统一阅读模板（亮色）
   所有页面共用此样式表。改动样式只需改此处，全站生效。
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #f4f8fd; color: #1a1a2e; line-height: 1.85; }

/* 容器 */
.container { max-width: 860px; margin: 0 auto; background: #f4f8fd; min-height: 100vh; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 40%, #ede9fe 70%, #f5f3ff 100%); padding: 56px 36px 44px; text-align: center; position: relative; overflow: hidden; }
.hero-tag { display: inline-block; background: #eef4ff; border: 1px solid #dbe7fe; color: #4f46e5; font-size: 13px; padding: 5px 16px; border-radius: 20px; margin-bottom: 18px; letter-spacing: 1px; position: relative; }
.hero h1 { font-size: 34px; font-weight: 800; color: #1e1b4b; margin-bottom: 10px; letter-spacing: 1px; position: relative; }
.hero .subtitle, .hero .date { font-size: 15px; color: #64748b; margin-bottom: 22px; position: relative; }
.hero .date { margin-top: -2px; }
.hero-meta { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; font-size: 13px; color: #64748b; position: relative; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .dot { width: 4px; height: 4px; background: #818cf8; border-radius: 50%; display: inline-block; }
.hero .ai-icon, .hero .icon-buffett { font-size: 40px; margin-bottom: 14px; display: block; }

/* ---------- 返回按钮（悬浮左上角，深浅通用） ---------- */
/* ---------- 行情条 / 数据条 ---------- */
.market-bar, .data-bar { display: flex; background: #f8fafc; text-align: center; padding: 0; border-bottom: 1px solid #e5e7eb; }
.data-bar { background: #eef2ff; }
.market-item, .data-item { flex: 1; padding: 16px 8px; border-right: 1px solid #e5e7eb; }
.market-item:last-child, .data-item:last-child { border-right: none; }
.market-item .name, .data-item .label { font-size: 11px; color: #64748b; margin-bottom: 4px; }
.market-item .price, .data-item .num { font-size: 20px; font-weight: 700; color: #1a1a2e; }
.data-item .num { color: #4f46e5; }
.data-item .num.highlight { color: #b45309; }
.market-item .change, .data-item .label { font-size: 12px; margin-top: 2px; }
.up { color: #dc2626; }
.down { color: #16a34a; }

/* ---------- 内容容器 ---------- */
.content { padding: 32px 24px 60px; }

/* ---------- 每日新闻条目 ---------- */
.news-item { background: #f7f8fa; border: 1px solid #e6edfb; border-radius: 14px; padding: 26px; margin-bottom: 20px; transition: all 0.3s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
.news-item:hover { border-color: #818cf8; box-shadow: 0 6px 18px rgba(99,102,241,0.1); }
.news-rank { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; font-size: 15px; font-weight: 700; border-radius: 8px; margin-bottom: 12px; }
.news-tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }
.tag-red { background: #fee2e2; color: #dc2626; }
.tag-blue { background: #dbeafe; color: #2563eb; }
.tag-orange { background: #ffedd5; color: #ea580c; }
.tag-green { background: #dcfce7; color: #16a34a; }
.tag-purple { background: #f3e8ff; color: #9333ea; }
.news-title { display: block; font-size: 19px; font-weight: 700; color: #1e1b4b; text-decoration: none; line-height: 1.5; margin-bottom: 10px; }
.news-title:hover { color: #4f46e5; }
.news-desc { font-size: 16px; color: #475569; line-height: 1.9; }
.news-desc strong { color: #7c3aed; font-weight: 600; }
.news-source { font-size: 13px; color: #94a3b8; margin-top: 10px; }

/* ---------- 章节（深度/专题通用） ---------- */
.section { margin-bottom: 46px; }
.section-title { font-size: 24px; font-weight: 700; color: #1e1b4b; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
.section-title .icon { width: 32px; height: 32px; background: #4f46e5; color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex-shrink: 0; }
.section-desc { font-size: 14px; color: #64748b; margin-bottom: 22px; padding-left: 44px; }

/* ---------- 摘要框 ---------- */
.summary-box { background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%); border: 1px solid #e0e7ff; border-radius: 12px; padding: 24px; margin-bottom: 30px; }
.summary-box h3 { font-size: 15px; color: #4f46e5; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.summary-box p { font-size: 14px; color: #4b5563; line-height: 1.9; margin-bottom: 8px; }
.summary-box ul { margin: 8px 0 8px 18px; font-size: 14px; color: #4b5563; line-height: 1.9; }
.summary-box ul li { margin-bottom: 4px; }
.summary-box.green { background: linear-gradient(135deg,#f0fdf4,#ecfdf5); border-color:#a7f3d0; }
.summary-box.yellow { background: linear-gradient(135deg,#fffbeb,#fef3c7); border-color:#fde68a; }
.summary-box.red { background: linear-gradient(135deg,#fef2f2,#fee2e2); border-color:#fca5a5; }

/* ---------- 数据表 ---------- */
.data-table, .compare-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13px; }
.data-table th, .compare-table th { background: #312e81; color: #fff; padding: 12px 10px; text-align: left; font-weight: 600; font-size: 12px; white-space: nowrap; }
.data-table td, .compare-table td { padding: 10px; border-bottom: 1px solid #e5e7eb; color: #374151; }
.data-table tr:nth-child(even) td, .compare-table tr:nth-child(even) td { background: #f9fafb; }
.data-table .ticker, .compare-table .label { font-weight: 700; color: #4f46e5; }
.data-table .pos, .compare-table .pos { color: #16a34a; font-weight: 600; }
.data-table .neg, .compare-table .neg { color: #dc2626; }
.data-table .center, .compare-table .center { text-align: center; }
.table-wrap { overflow-x: auto; margin: 20px 0; }

/* ---------- 提示框 callout ---------- */
.callout { background: #fef3c7; border: 1px solid #fde68a; border-radius: 10px; padding: 20px 24px; margin: 24px 0; }
.callout .co-title { font-size: 15px; font-weight: 700; color: #92400e; margin-bottom: 8px; }
.callout p { font-size: 14px; color: #78350f; line-height: 1.9; }
.callout.info { background: #e0e7ff; border-color: #c7d2fe; }
.callout.info .co-title { color: #3730a3; }
.callout.info p { color: #312e81; }
.callout.risk { background: #fee2e2; border-color: #fecaca; }
.callout.risk .co-title { color: #991b1b; }
.callout.risk p { color: #7f1d1d; }
.callout.blue { background: #dbeafe; border-color: #93c5fd; }
.callout.blue .co-title { color: #1e40af; }
.callout.blue p { color: #1e3a8a; }

/* ---------- 目录 ---------- */
.toc { background: #f8faff; border: 1px solid #e0e7ff; border-radius: 12px; padding: 28px 32px; margin-bottom: 40px; }
.toc h3 { font-size: 16px; color: #4f46e5; margin-bottom: 14px; }
.toc ul { list-style: none; columns: 2; column-gap: 30px; }
.toc li { margin-bottom: 8px; font-size: 14px; }
.toc a { color: #4f46e5; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.toc a:hover { text-decoration: underline; }
.toc .num { display: inline-flex; width: 22px; height: 22px; background: #e0e7ff; color: #4f46e5; border-radius: 50%; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }

/* ---------- 引言卡 / 金句 ---------- */
.lead { background: linear-gradient(135deg, #eef2ff, #ede9fe); border: 1px solid #c7d2fe; border-radius: 12px; padding: 24px; margin-bottom: 28px; font-size: 15px; color: #3730a3; line-height: 1.95; }
.lead p { margin-bottom: 12px; }
.lead p:last-child { margin-bottom: 0; }
.quote-card { background: #f8fafc; border-left: 4px solid #4f46e5; padding: 18px 22px; margin-bottom: 14px; border-radius: 0 8px 8px 0; transition: transform 0.2s; }
.quote-card:hover { transform: translateX(2px); }
.quote-card .q-text { font-size: 15px; color: #1e293b; line-height: 1.9; }
.quote-card .q-text::before { content: '\201C'; font-size: 22px; color: #4f46e5; font-weight: 700; margin-right: 4px; }
.quote-card .q-theme { font-size: 12px; color: #4f46e5; font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.quote-card .q-author { font-size: 12px; color: #94a3b8; margin-top: 8px; text-align: right; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 26px; margin-bottom: 24px; border-left: 2px solid #c7d2fe; }
.timeline-item { position: relative; margin-bottom: 18px; font-size: 14.5px; color: #475569; }
.timeline-item::before { content: ''; position: absolute; left: -32px; top: 6px; width: 10px; height: 10px; background: #6366f1; border-radius: 50%; box-shadow: 0 0 0 3px #e0e7ff; }
.timeline-item .tl-date { font-weight: 700; color: #4f46e5; }

/* ---------- 主题分组 / 问答 ---------- */
.theme-group { margin-bottom: 32px; }
.theme-header { font-size: 17px; font-weight: 700; color: #312e81; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid #e0e7ff; }
.theme-header .badge { display: inline-block; background: #e0e7ff; color: #4f46e5; font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-right: 8px; vertical-align: middle; }
.qa-item { margin-bottom: 20px; }
.qa-q { font-size: 15px; font-weight: 700; color: #1e1b4b; margin-bottom: 10px; padding-left: 22px; position: relative; }
.qa-q::before { content: 'Q'; position: absolute; left: 0; top: 0; width: 18px; height: 18px; background: #4f46e5; color: #fff; border-radius: 50%; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.qa-a { font-size: 14.5px; color: #374151; line-height: 1.95; padding-left: 22px; border-left: 2px solid #e0e7ff; margin-left: 9px; padding-top: 2px; padding-bottom: 2px; }
.qa-a strong { color: #4f46e5; }

/* ---------- 信息框 ---------- */
.info-box { background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%); border: 1px solid #e0e7ff; border-radius: 12px; padding: 24px; margin-bottom: 30px; }
.info-box h3 { font-size: 16px; color: #4f46e5; margin-bottom: 12px; }
.info-box p { font-size: 14px; color: #4b5563; line-height: 1.9; }

/* ---------- 合约卡 / 影响网格 ---------- */
.deal-card { background: #f7f8fa; border: 1px solid #e6edfb; border-left: 4px solid #6366f1; border-radius: 0 10px 10px 0; padding: 22px 24px; margin-bottom: 18px; }
.deal-card .deal-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; margin-bottom: 12px; gap: 8px; }
.deal-card .deal-parties { font-size: 16px; font-weight: 700; color: #1e1b4b; }
.deal-card .deal-amount { font-size: 22px; font-weight: 800; color: #4f46e5; white-space: nowrap; }
.deal-card .deal-tag { display: inline-block; font-size: 11px; padding: 2px 10px; border-radius: 4px; background: #eef2ff; color: #4f46e5; margin-bottom: 10px; }
.deal-card .deal-detail { font-size: 14px; color: #475569; line-height: 1.9; }
.deal-card .deal-detail ul { margin: 8px 0 0 18px; }
.deal-card .deal-detail li { margin-bottom: 4px; }
.affected { background: #f8faff; border: 1px solid #e0e7ff; border-radius: 12px; padding: 24px; margin-top: 16px; }
.affected h4 { font-size: 16px; color: #4f46e5; margin-bottom: 14px; }
.affected-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.affected-item { background: #f7f8fa; border: 1px solid #e6edfb; border-radius: 8px; padding: 14px 16px; }
.affected-item .ai-name { font-size: 15px; font-weight: 700; color: #1e1b4b; margin-bottom: 6px; }
.affected-item .ai-stock { font-size: 12px; color: #6366f1; margin-bottom: 8px; }
.affected-item .ai-desc { font-size: 13px; color: #475569; line-height: 1.8; }

/* ---------- 价值投资专属 ---------- */
.criteria-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 24px; margin-bottom: 30px; }
.criteria-box h3 { font-size: 15px; color: #92400e; margin-bottom: 12px; }
.criteria-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cri-item { background: #fef3c7; border-radius: 8px; padding: 12px; text-align: center; }
.cri-item .cri-val { font-size: 18px; font-weight: 800; color: #b45309; }
.cri-item .cri-key { font-size: 11px; color: #92400e; margin-top: 2px; }
.company-card { background: #f7f8fa; border: 1px solid #e6edfb; border-radius: 12px; margin-bottom: 20px; overflow: hidden; }
.card-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: #f8fafc; border-bottom: 1px solid #e5e7eb; }
.card-header .rank-badge { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.rank-1 { background: #fbbf24; color: #78350f; }
.rank-2 { background: #e2e8f0; color: #334155; }
.rank-3 { background: #fed7aa; color: #7c2d12; }
.card-header .code { font-size: 12px; color: #64748b; }
.card-header .industry { font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600; background: #e0e7ff; color: #4f46e5; }
.card-header .name-group { flex: 1; }
.card-header .name-group h3 { font-size: 16px; font-weight: 700; color: #0f172a; }
.card-body { padding: 16px 20px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.metric { text-align: center; padding: 10px 6px; background: #f8fafc; border-radius: 8px; }
.metric .val { font-size: 16px; font-weight: 700; color: #0f172a; }
.metric .val.green { color: #16a34a; }
.metric .val.red { color: #dc2626; }
.metric .val.gold { color: #b45309; }
.metric .key { font-size: 10px; color: #94a3b8; margin-top: 2px; }
.why-box { font-size: 13px; color: #475569; line-height: 1.8; padding: 12px 0; }
.why-box strong { color: #4f46e5; }
.score-box { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.score-s { background: #dcfce7; color: #166534; }
.score-a { background: #dbeafe; color: #1e40af; }
.score-b { background: #fef3c7; color: #92400e; }
.data-table .high { color: #16a34a; font-weight: 600; }
.data-table .mid { color: #b45309; }
.data-table .pass { color: #16a34a; font-weight: 600; }
.data-table .market-a { color: #1e40af; font-weight: 600; }
.data-table .market-hk { color: #7c3aed; font-weight: 600; }

/* 产业链全景 */
.chain { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 35px; }
.chain-item { flex: 1; min-width: 120px; background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%); border: 1px solid #e0e7ff; border-radius: 10px; padding: 16px 12px; text-align: center; }
.chain-item .layer { font-size: 12px; color: #818cf8; font-weight: 600; margin-bottom: 4px; }
.chain-item .name { font-size: 14px; color: #312e81; font-weight: 700; }

/* 阅读指引 chip */
.reading-guide { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.guide-chip { background: #f3f4f6; border: 1px solid #e5e7eb; color: #4b5563; font-size: 12px; padding: 5px 14px; border-radius: 16px; text-decoration: none; }

/* ---------- 页脚 ---------- */
.footer { text-align: center; padding: 30px 24px; font-size: 13px; color: #94a3b8; border-top: 1px solid #e5e7eb; line-height: 1.8; }

/* ---------- 响应式 ---------- */
@media (max-width: 600px) {
  .hero { padding: 40px 20px 30px; }
  .hero h1 { font-size: 25px; }
  .content { padding: 24px 16px 50px; }
  .market-bar, .data-bar { flex-wrap: wrap; }
  .market-item, .data-item { flex: 1 1 50%; }
  .section-title { font-size: 21px; }
  .section-desc { padding-left: 0; }
  .news-item { padding: 18px; }
  .news-title { font-size: 16px; }
  .news-desc { font-size: 15px; }
  .toc ul { columns: 1; }
  .data-table, .compare-table { font-size: 11px; }
  .data-table th, .data-table td, .compare-table th, .compare-table td { padding: 6px 4px; }
  .affected-grid { grid-template-columns: 1fr; }
}
