/* === 赛道深度分析 · 暖红浅色主题（老年友好 · 大字 · 手机优先） ===
   配色思路：整体偏红但克制（浅米红底 + 深红强调 + 近黑正文），
   正文用近黑暖色保证最强对比度，次要文字用暖褐色而非冷灰。
   涨跌沿用 A 股习惯：红涨绿跌。
*/
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* 背景层级：极浅暖红 → 纯白卡片 */
  --bg:          #FDF5F4;
  --bg-soft:     #FAEBE8;
  --bg-card:     #FFFFFF;
  --bg-input:    #FFFFFF;

  /* 描边 */
  --border:      #E6C7C0;
  --border-light:#F0DBD6;

  /* 文字：正文近黑最清晰，次要用暖褐（不是冷灰） */
  --text:        #2A1B18;
  --text-bright: #8C1D14;
  --text-dim:    #7C5A53;

  /* 红：主色 */
  --red:         #C0392B;
  --red-deep:    #96271B;
  --red-bright:  #D9564A;
  --red-soft:    #FBEEEC;

  /* 辅色 */
  --gold:        #B0810F;
  --gold-deep:   #8A6408;
  --gold-soft:   #FBF3DC;
  --orange:      #C25E11;
  --green:       #167A39;
  --green-soft:  #E8F5EC;
  --amber-soft:  #FEF3E2;
  --amber-text:  #A2550B;

  --shadow:      0 2px 10px rgba(120, 40, 30, .07);
  --shadow-lg:   0 6px 22px rgba(120, 40, 30, .12);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  font-size: 20px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* ============ 顶部栏 ============ */
.topbar {
  background: linear-gradient(180deg, #A32C1E, #8C1D14);
  border-bottom: 3px solid #7A1A12;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(120, 40, 30, .18);
}
.topbar-inner { max-width: 1500px; margin: 0 auto; padding: 0 24px; height: 66px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.brand-logo { font-size: 28px; color: #FFE3DC; }
.brand-title { font-size: 22px; font-weight: 800; color: #FFFFFF; letter-spacing: 1px; }
.brand-sub { font-size: 14px; color: #FFD9D0; padding: 3px 9px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); border-radius: 6px; }
.nav-tabs { display: flex; gap: 6px; flex: 1; }
.nav-tab {
  padding: 10px 20px; border-radius: 8px; color: #FFE0D9; cursor: pointer;
  font-size: 18px; font-weight: 700; transition: all .15s; text-decoration: none;
  white-space: nowrap; min-height: 44px; display: flex; align-items: center;
}
.nav-tab:hover { color: #fff; background: rgba(255,255,255,.14); }
.nav-tab.active { color: #8C1D14; background: #FFFFFF; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.btn-icon { background: none; border: none; color: #FFE0D9; cursor: pointer; padding: 10px; border-radius: 8px; display: flex; align-items: center; }
.btn-icon:hover { background: rgba(255,255,255,.16); color: #fff; }

.view { display: none; min-height: calc(100vh - 66px); }
.view.active { display: block; }
.container { max-width: 1500px; margin: 0 auto; padding: 26px 24px; }
/* 报告库 / 计算器等页面的大标题 */
.container > h1 { font-size: 34px; color: var(--text-bright); font-weight: 800; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 3px solid var(--red); }

/* ============ Hero / 搜索 ============ */
.hero { text-align: center; padding: 44px 20px 30px; }
.hero h1 { font-size: 40px; color: var(--text-bright); margin-bottom: 16px; letter-spacing: 1px; line-height: 1.45; font-weight: 800; }
.hero-desc { color: var(--text-dim); font-size: 20px; max-width: 720px; margin: 0 auto 30px; line-height: 1.9; }
.search-box { display: flex; gap: 12px; max-width: 720px; margin: 0 auto 18px; }
.search-input {
  flex: 1; background: var(--bg-input); border: 2px solid var(--border);
  border-radius: 12px; padding: 16px 20px; color: var(--text); font-size: 20px;
  outline: none; transition: border-color .15s; min-height: 56px;
}
.search-input:focus { border-color: var(--red); }
.search-input::placeholder { color: #A88B84; }
.quick-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.quick-label { color: var(--text-dim); font-size: 18px; }
.tag-chip { background: var(--bg-card); border: 2px solid var(--border); color: var(--text-dim); padding: 9px 18px; border-radius: 22px; font-size: 18px; cursor: pointer; transition: all .15s; }
.tag-chip:hover { border-color: var(--red); color: var(--red-deep); background: var(--red-soft); }

/* ============ 按钮 ============ */
.btn-primary {
  background: linear-gradient(135deg, #B8331F, #D0453A); color: #fff; border: none;
  border-radius: 12px; padding: 16px 34px; font-size: 20px; font-weight: 800;
  cursor: pointer; transition: all .15s; white-space: nowrap; min-height: 56px;
}
.btn-primary:hover { background: linear-gradient(135deg, #A02C1A, #C0392B); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 2px solid var(--border); border-radius: 12px; padding: 14px 26px; font-size: 18px; font-weight: 700; cursor: pointer; min-height: 52px; }
.btn-secondary:hover { background: var(--bg-soft); border-color: var(--red); }
.btn-danger { background: #fff; color: var(--red-deep); border: 2px solid var(--red); border-radius: 12px; padding: 12px 20px; font-size: 17px; font-weight: 700; cursor: pointer; min-height: 48px; }
.btn-danger:hover { background: var(--red-soft); }
.btn-close { background: none; border: none; color: var(--text-dim); font-size: 26px; cursor: pointer; padding: 6px 10px; }
.btn-close:hover { color: var(--red); }
.btn-sm { padding: 12px 20px; font-size: 17px; }

.api-warning {
  margin-top: 20px; padding: 16px 22px; background: var(--amber-soft);
  border: 2px solid #F0C898; border-radius: 12px; color: var(--amber-text);
  font-size: 18px; line-height: 1.85;
}
.api-warning a { color: var(--red-deep); text-decoration: underline; }
.api-warning code { background: #fff; padding: 3px 8px; border-radius: 5px; font-size: 16px; }

/* ============ 进度面板 ============ */
.progress-panel { background: var(--bg-card); border: 2px solid var(--border); border-radius: 14px; padding: 26px; margin-bottom: 24px; box-shadow: var(--shadow); }
.progress-steps { display: flex; gap: 0; margin-bottom: 20px; overflow-x: auto; }
.progress-step { flex: 1; min-width: 130px; text-align: center; position: relative; padding: 12px 8px; color: var(--text-dim); font-size: 17px; }
.progress-step::after { content: ''; position: absolute; top: 50%; right: -50%; width: 100%; height: 3px; background: var(--border-light); z-index: 0; }
.progress-step:last-child::after { display: none; }
.progress-step .step-icon {
  width: 42px; height: 42px; border-radius: 50%; background: #fff;
  border: 3px solid var(--border); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px; font-size: 18px; position: relative; z-index: 1;
}
.progress-step.active .step-icon { background: var(--red); border-color: var(--red-deep); color: #fff; }
.progress-step.active { color: var(--red-deep); font-weight: 800; }
.progress-step.done .step-icon { background: var(--gold); border-color: var(--gold-deep); color: #fff; }
.progress-step.done { color: var(--gold-deep); font-weight: 700; }
.progress-log { background: var(--bg); border: 2px solid var(--border-light); border-radius: 10px; padding: 14px 18px; max-height: 240px; overflow-y: auto; font-size: 17px; font-family: 'SF Mono', Monaco, monospace; }
.progress-log .log-line { color: var(--text-dim); margin: 4px 0; }
.progress-log .log-line.success { color: var(--green); }
.progress-log .log-line.error { color: var(--red-deep); }
.progress-log .log-line.info { color: var(--text); font-weight: 700; }

/* ============ 报告主体 ============ */
.report { background: var(--bg-card); border: 2px solid var(--border); border-radius: 16px; padding: 34px; box-shadow: var(--shadow-lg); }
.report-header { border-bottom: 3px solid var(--red); padding-bottom: 18px; margin-bottom: 26px; }
.report-header h1 { font-size: 34px; color: var(--text-bright); line-height: 1.45; font-weight: 800; }
.report-header .meta { color: var(--text-dim); font-size: 17px; margin-top: 10px; }
.report h2 {
  font-size: 27px; color: #fff; background: linear-gradient(135deg, #A82C1E, #C0392B);
  margin: 36px 0 20px; padding: 14px 20px; border-radius: 10px; font-weight: 800; letter-spacing: .5px;
}
.report h3 { font-size: 22px; color: var(--text-bright); margin: 24px 0 14px; font-weight: 800; }

/* 通用语义类（替代原先硬编码的灰色） */
.muted { color: var(--text-dim); }
.note-sm { color: var(--text-dim); font-size: 17px; }
.path-title { color: var(--red-deep); font-weight: 800; font-size: 21px; margin-bottom: 10px; padding-left: 12px; border-left: 5px solid var(--red); }
.sub-paths { font-size: 17px; color: var(--gold-deep); margin-top: 6px; }
.tier-desc { font-size: 17px; color: var(--text-dim); margin-bottom: 8px; }
.tier-stock { font-size: 18px; margin: 5px 0; }
.od-desc { font-size: 16px; color: var(--text-dim); margin-top: 6px; line-height: 1.8; }
.flow-text { font-size: 17px; color: var(--text-dim); line-height: 1.9; }
.risk-list { font-size: 17px; color: var(--text-dim); padding-left: 24px; line-height: 1.95; }
.risk-list li { margin: 6px 0; }
.val-strong { color: var(--orange); font-weight: 800; }
.report-footer { margin-top: 28px; padding-top: 18px; border-top: 2px solid var(--border-light); text-align: center; color: var(--text-dim); font-size: 16px; }
.data-warn {
  background: var(--amber-soft); border: 2px solid #F0C898; border-radius: 10px;
  padding: 12px 16px; margin-bottom: 14px; font-size: 17px; color: var(--amber-text); line-height: 1.8;
}
.empty-tip { color: var(--text-dim); font-size: 19px; }

/* 产业链图 */
.chain-diagram { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 20px 0; }
.chain-node {
  background: #fff; color: var(--text); padding: 14px 18px; border-radius: 10px;
  font-size: 18px; font-weight: 800; text-align: center; max-width: 200px;
  border: 2px solid var(--border); box-shadow: var(--shadow);
}
.chain-node small { display: block; font-size: 15px; color: var(--text-dim); font-weight: 400; margin-top: 5px; line-height: 1.7; }
.chain-arrow { color: var(--red); font-size: 26px; font-weight: 800; }
.chain-highlight { background: linear-gradient(135deg, #B8331F, #D0453A); color: #fff; border: none; }
.chain-highlight small { color: #FFE2DD; }
.chain-material { background: linear-gradient(135deg, #FBF3DC, #F3E0B0); color: #6B4C05; border-color: var(--gold); }
.chain-material small { color: #8A6408; }
.chain-reliability { background: linear-gradient(135deg, #C0392B, #8C1D14); color: #fff; border: none; }
.chain-reliability small { color: #FFE2DD; }

/* ============ 表格 ============ */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 18px; }
th {
  background: var(--bg-soft); color: var(--text-bright); padding: 14px 12px;
  text-align: left; font-weight: 800; border-bottom: 3px solid var(--red);
  white-space: nowrap; font-size: 17px; letter-spacing: .3px;
}
td { padding: 14px 12px; border-bottom: 1px solid var(--border-light); vertical-align: middle; line-height: 1.7; }
tr:hover td { background: var(--red-soft); }
.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.up { color: var(--red); } .down { color: var(--green); }
.cell-logic { max-width: 240px; font-size: 16px; line-height: 1.75; }

/* ============ 标签 ============ */
.tag { display: inline-block; padding: 5px 13px; border-radius: 7px; font-size: 16px; font-weight: 800; white-space: nowrap; }
.tier-core { background: #C0392B; color: #fff; }
.tier-sub { background: #D2691E; color: #fff; }
.tier-reliability { background: #B0810F; color: #fff; }
.tier-app { background: #A0785F; color: #fff; }
.badge-explicit { background: var(--red-soft); color: var(--red-deep); border: 2px solid #E8A79E; }
.badge-implicit { background: var(--bg-soft); color: var(--text-dim); border: 2px solid var(--border); }
.od-severe { background: #FDECEA; color: #B3261E; border: 2px solid #F3C4BE; }
.od-partial { background: #FCEFE3; color: var(--orange); border: 2px solid #F0C49B; }
.od-reasonable { background: var(--gold-soft); color: var(--gold-deep); border: 2px solid #EBD9A0; }
.od-unreacted { background: var(--green-soft); color: var(--green); border: 2px solid #B9DCC4; }
.od-high { background: var(--amber-soft); color: var(--amber-text); border: 2px solid #F0C898; }
.od-deep { background: #E6F4EE; color: #0E7A5F; border: 2px solid #B9DDD0; }
.od-nodata { background: var(--bg-soft); color: var(--text-dim); border: 2px solid var(--border); }
.verify-tag { font-size: 16px; color: var(--text-dim); }

/* ============ 个股卡片 ============ */
.stock-card { background: #fff; border: 2px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow); }
.stock-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.stock-rank { font-size: 28px; font-weight: 800; color: var(--red-deep); min-width: 44px; }
.stock-name { font-size: 25px; font-weight: 800; color: var(--text-bright); }
.stock-code { color: var(--text-dim); font-size: 17px; }
.stock-price { font-size: 25px; font-weight: 800; color: var(--red); margin-left: auto; }
.stock-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.metric-box { background: var(--bg); border: 2px solid var(--border-light); border-radius: 10px; padding: 18px; }
.metric-box h4 { font-size: 18px; color: var(--red-deep); margin-bottom: 12px; letter-spacing: .5px; font-weight: 800; border-bottom: 2px solid var(--border-light); padding-bottom: 8px; }
.metric-box p { font-size: 18px; color: var(--text); margin: 6px 0; line-height: 1.8; }
.mini-table { width: 100%; font-size: 17px; margin-top: 10px; }
.mini-table th { background: transparent; color: var(--text-dim); padding: 8px; font-size: 16px; border-bottom: 2px solid var(--border-light); }
.mini-table td { padding: 8px; text-align: right; font-variant-numeric: tabular-nums; border: none; font-size: 17px; }
.tier-row { background: var(--bg); border: 2px solid var(--border-light); border-radius: 10px; padding: 18px; margin-bottom: 14px; display: flex; gap: 14px; align-items: flex-start; }
.tier-label { min-width: 104px; }

/* ============ 弹窗 ============ */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.modal-overlay { position: absolute; inset: 0; background: rgba(60, 20, 15, .5); }
.modal-content { position: relative; background: #fff; border: 2px solid var(--border); border-radius: 16px; width: 92%; max-width: 600px; max-height: 88vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(120,40,30,.28); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 2px solid var(--border-light); background: var(--bg-soft); }
.modal-header h2 { font-size: 24px; color: var(--text-bright); font-weight: 800; }
.modal-body { padding: 26px; }
.modal-footer { padding: 18px 26px; border-top: 2px solid var(--border-light); display: flex; justify-content: flex-end; gap: 12px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 18px; color: var(--text); margin-bottom: 8px; font-weight: 800; }
.form-group select, .form-group input {
  width: 100%; background: var(--bg-input); border: 2px solid var(--border);
  border-radius: 12px; padding: 14px 16px; color: var(--text); font-size: 19px;
  outline: none; min-height: 54px;
}
.form-group select:focus, .form-group input:focus { border-color: var(--red); }
.form-hint { font-size: 16px; color: var(--text-dim); margin-top: 8px; }
.provider-guide { background: var(--bg); border: 2px solid var(--border-light); border-radius: 10px; padding: 16px 18px; font-size: 17px; color: var(--text-dim); line-height: 1.9; }
.provider-guide a { color: var(--red-deep); }

/* ============ 报告库 ============ */
.library-toolbar { display: flex; gap: 12px; margin-bottom: 20px; align-items: center; }
.library-toolbar .search-input { max-width: 460px; }
.library-list { display: grid; gap: 14px; }
.library-item { background: var(--bg-card); border: 2px solid var(--border); border-radius: 12px; padding: 18px 22px; display: flex; align-items: center; gap: 16px; cursor: pointer; transition: all .15s; }
.library-item:hover { border-color: var(--red); background: var(--red-soft); }
.library-item .li-icon { font-size: 32px; }
.library-item .li-info { flex: 1; }
.library-item .li-title { font-size: 20px; font-weight: 800; color: var(--text-bright); }
.library-item .li-meta { font-size: 16px; color: var(--text-dim); margin-top: 4px; }
.library-item .li-actions { display: flex; gap: 10px; }
.library-empty { text-align: center; padding: 60px 20px; color: var(--text-dim); font-size: 19px; }

/* ============ 估值计算器 ============ */
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.calc-form { background: var(--bg-card); border: 2px solid var(--border); border-radius: 14px; padding: 24px; }
.calc-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.calc-form .form-row.full { grid-template-columns: 1fr; }
.calc-form label { font-size: 17px; color: var(--text); display: block; margin-bottom: 6px; font-weight: 700; }
.calc-form input, .calc-form select {
  width: 100%; background: var(--bg-input); border: 2px solid var(--border);
  border-radius: 10px; padding: 13px 14px; color: var(--text); font-size: 18px;
  outline: none; min-height: 50px;
}
.calc-form input:focus, .calc-form select:focus { border-color: var(--red); }
.calc-form .calc-actions { margin-top: 18px; display: flex; gap: 12px; }
.calc-result { background: var(--bg-card); border: 2px solid var(--border); border-radius: 14px; padding: 24px; }
.calc-placeholder { text-align: center; color: var(--text-dim); padding: 60px 20px; font-size: 19px; }
.result-card { background: var(--bg); border: 2px solid var(--border-light); border-radius: 10px; padding: 20px; margin-bottom: 14px; }
.result-card h4 { font-size: 17px; color: var(--red-deep); margin-bottom: 12px; font-weight: 800; }
.result-card .big-num { font-size: 36px; font-weight: 800; color: var(--red-deep); }
.result-card .num-accent { color: var(--gold-deep); }
.result-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: 18px; }
.result-line .label { color: var(--text-dim); }
.result-line .value { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--text); }

/* ============ 政策汇总（每日） ============ */
.daily-actions { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.daily-time { color: var(--text-dim); font-size: 17px; }
.daily-loading { text-align: center; padding: 40px 20px; }
.loading-spinner { width: 48px; height: 48px; border: 4px solid var(--border); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.daily-loading p { color: var(--text); font-size: 19px; }
.loading-sub { color: var(--text-dim); font-size: 17px; margin-top: 6px; }
.daily-error { margin: 16px 0; }
.error-box { background: var(--red-soft); border: 2px solid #E8A79E; border-radius: 12px; padding: 18px 22px; color: var(--red-deep); font-size: 18px; line-height: 1.9; }
.error-box small { color: var(--text-dim); }
.daily-empty { text-align: center; padding: 56px 20px; color: var(--text-dim); font-size: 19px; }
.daily-tracks { display: grid; gap: 16px; max-width: 960px; margin: 0 auto; padding: 12px 0; }
.track-card { background: var(--bg-card); border: 2px solid var(--border); border-radius: 14px; cursor: pointer; transition: all .2s; overflow: hidden; box-shadow: var(--shadow); display: flex; align-items: stretch; }
.track-card:hover { border-color: var(--red); box-shadow: var(--shadow-lg); }
.track-card-top { border-color: var(--red); border-width: 3px; background: linear-gradient(135deg, #FDF0EE, #FBEAE7); }
.track-card-body { display: flex; align-items: flex-start; gap: 14px; padding: 22px; }
.track-card-left { flex-shrink: 0; }
.track-card-rank { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #B8331F, #D0453A); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 21px; font-weight: 800; }
.track-card-main { flex: 1; min-width: 0; padding: 20px 18px 20px 22px; }
.track-card-name { font-size: 25px; font-weight: 800; color: var(--text-bright); margin-bottom: 8px; }
.track-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.track-card-hot { color: var(--orange); font-size: 18px; letter-spacing: 1px; }
.track-card-hotness { font-size: 17px; margin-bottom: 10px; }
.track-card-trigger { font-size: 18px; color: var(--text-dim); margin-bottom: 8px; line-height: 1.8; }
.track-card-reason { font-size: 18px; color: var(--text); margin-bottom: 8px; line-height: 1.8; }
.track-card-risk { font-size: 18px; color: var(--amber-text); line-height: 1.8; }
.track-card-right { flex-shrink: 0; display: flex; align-items: center; padding: 20px 22px 20px 0; }
.dir-badge { font-size: 16px; font-weight: 800; padding: 5px 14px; border-radius: 14px; }
.dir-pos { background: var(--red-soft); color: var(--red-deep); border: 2px solid #E8A79E; }
.dir-neg { background: var(--green-soft); color: var(--green); border: 2px solid #B9DCC4; }
.dir-neutral { background: var(--gold-soft); color: var(--gold-deep); border: 2px solid #EBD9A0; }
.daily-news { max-width: 960px; margin: 32px auto 0; }
.daily-news h2 { font-size: 24px; color: var(--text-bright); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 3px solid var(--red); font-weight: 800; }
.daily-news-list { display: flex; flex-direction: column; gap: 6px; }
.news-item { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 14px; border-radius: 8px; font-size: 18px; align-items: baseline; }
.news-item:hover { background: var(--red-soft); }
.news-time { color: var(--text-dim); white-space: nowrap; font-size: 15px; flex-shrink: 0; }
.news-text { color: var(--text); line-height: 1.85; flex: 1; min-width: 0; }

.daily-summary { max-width: 960px; margin: 18px auto 0; padding: 0 4px; }
.sentiment-badge { display: inline-block; padding: 10px 20px; border-radius: 22px; font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.sent-pos { background: var(--red-soft); color: var(--red-deep); border: 2px solid #E8A79E; }
.sent-neg { background: var(--green-soft); color: var(--green); border: 2px solid #B9DCC4; }
.sent-neutral { background: var(--gold-soft); color: var(--gold-deep); border: 2px solid #EBD9A0; }
.summary-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 12px; }
.summary-list li { position: relative; padding: 16px 18px 16px 46px; background: var(--bg-card); border: 2px solid var(--border); border-radius: 10px; font-size: 19px; line-height: 1.85; color: var(--text); }
.summary-list li::before { content: '\1F4CC'; position: absolute; left: 14px; top: 15px; font-size: 17px; opacity: .7; }
.risk-note { padding: 16px 18px; background: var(--amber-soft); border: 2px solid #F0C898; border-radius: 10px; font-size: 18px; line-height: 1.85; color: var(--amber-text); }

/* ============ 热门赛道推荐 ============ */
.rec-box { background: var(--bg-card); border: 2px solid var(--border); border-radius: 14px; padding: 22px 24px; max-width: 800px; margin: 4px auto 8px; text-align: left; box-shadow: var(--shadow); }
.rec-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.rec-title { font-size: 22px; font-weight: 800; color: var(--text-bright); white-space: nowrap; }
.rec-sub { font-size: 16px; color: var(--text-dim); }
.rec-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.rec-chip { background: var(--bg); border: 2px solid var(--border); color: var(--text); padding: 12px 20px; border-radius: 24px; font-size: 18px; cursor: pointer; transition: all .15s; white-space: nowrap; min-height: 48px; display: inline-flex; align-items: center; }
.rec-chip:hover { border-color: var(--red); color: var(--red-deep); background: var(--red-soft); transform: translateY(-1px); }
.rec-toggle { margin-top: 14px; background: none; border: 2px dashed var(--border); color: var(--text-dim); font-size: 17px; padding: 10px 20px; border-radius: 10px; cursor: pointer; transition: all .15s; min-height: 46px; }
.rec-toggle:hover { color: var(--text-bright); border-color: var(--red); }
.rec-hint { margin-top: 16px; padding: 16px 18px; background: var(--bg); border-left: 5px solid var(--red); border-radius: 8px; font-size: 17px; color: var(--text-dim); line-height: 1.9; }
.rec-hint b { color: var(--text-bright); }
.rec-example { color: var(--red); cursor: pointer; border-bottom: 2px dotted var(--red); font-weight: 700; }
.rec-example:hover { color: var(--gold-deep); border-color: var(--gold); }
.rec-chip.hot { background: var(--red-soft); border-color: #E8A79E; color: var(--red-deep); font-weight: 700; }
.rec-chip.hot:hover { background: #F8DFDB; border-color: var(--red); }
.rec-flame { font-size: 15px; line-height: 1; }

/* ============ 平板 ============ */
@media (max-width: 900px) {
  .calc-layout { grid-template-columns: 1fr; }
  .stock-grid { grid-template-columns: 1fr; }
  .container { padding: 20px 16px; }
}

/* ============ 手机：整体放大 + 底部导航 ============ */
@media (max-width: 768px) {
  body { font-size: 21px; line-height: 1.95; }

  /* 顶栏改为随页滚动（避免 fixed 子元素受 sticky 祖先影响），
     底部常驻大导航，导航始终可达 */
  .topbar { position: static; }

  /* 底部大导航，老年人拇指最好点 */
  .nav-tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    background: #fff; border-top: 3px solid var(--border);
    box-shadow: 0 -4px 16px rgba(120,40,30,.12);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .nav-tab {
    justify-content: center; text-align: center; padding: 12px 2px;
    font-size: 17px; font-weight: 800; color: var(--text-dim);
    border-radius: 0; min-height: 58px; white-space: nowrap;
  }
  .nav-tab.active { background: var(--red-soft); color: var(--red-deep); box-shadow: inset 0 4px 0 var(--red); }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

  .topbar-inner { padding: 0 12px; gap: 8px; height: 58px; }
  .brand-sub { display: none; }
  .brand-title { font-size: 20px; }
  .brand-logo { font-size: 24px; }

  .hero { padding: 24px 12px 20px; }
  .hero h1 { font-size: 30px; }
  .hero-desc { font-size: 19px; }
  .search-box { flex-direction: column; }
  .search-input { font-size: 20px; padding: 16px 18px; }
  .tag-chip { font-size: 18px; padding: 11px 18px; }

  .container { padding: 14px 12px; }
  .report { padding: 16px 12px; border-radius: 12px; }
  .report-header h1 { font-size: 26px; }
  .report h2 { font-size: 22px; margin: 28px 0 16px; padding: 12px 14px; }
  .report h3 { font-size: 20px; }

  /* 表格：字号不缩水，靠横滑 */
  table { font-size: 17px; }
  th { font-size: 16px; padding: 12px 10px; }
  td { padding: 12px 10px; }
  .cell-logic { font-size: 16px; max-width: 180px; }

  .stock-card { padding: 16px 12px; }
  .stock-name { font-size: 23px; }
  .stock-price { font-size: 23px; margin-left: 0; }
  .metric-box { padding: 16px 14px; }
  .metric-box p { font-size: 18px; }
  .mini-table { font-size: 17px; }

  .track-card { flex-direction: column; align-items: flex-start; }
  .track-card-body { flex-direction: column; align-items: flex-start; padding: 16px 12px; }
  .track-card-main { padding: 14px 12px 6px; }
  .track-card-name { font-size: 24px; }
  .track-card-right { padding: 6px 12px 16px; width: 100%; margin-top: 10px; }
  .track-card-right .btn-primary { width: 100%; }

  .btn-primary { width: 100%; padding: 17px; font-size: 20px; }
  .btn-secondary { width: 100%; }

  .news-text { font-size: 18px; }
  .daily-summary { padding: 0 8px; }
  .sentiment-badge { font-size: 17px; }
  .summary-list li { font-size: 19px; }

  .rec-box { padding: 16px 14px; margin: 4px 0 8px; }
  .rec-title { font-size: 20px; }
  .rec-sub { font-size: 15px; width: 100%; }
  .rec-chip { padding: 12px 16px; font-size: 18px; }
  .rec-hint { font-size: 16px; }

  .chain-node { font-size: 17px; max-width: 100%; }
  .modal-content { width: 96%; max-height: 90vh; }
  .modal-header h2 { font-size: 21px; }
  .library-item { padding: 16px 14px; }
  .result-card .big-num { font-size: 32px; }
}

/* ============ 小屏手机 ============ */
@media (max-width: 420px) {
  body { font-size: 21px; }
  .hero h1 { font-size: 27px; }
  .nav-tab { font-size: 16px; padding: 12px 1px; }
  .brand-title { font-size: 18px; }
  .stock-name { font-size: 22px; }
  .track-card-name { font-size: 22px; }
  .report-header h1 { font-size: 24px; }
}

/* 全站页脚备案标识 - #app 外部，始终可见 */
.site-footer {
  margin-top: 0;
  padding: 24px 16px 36px;
  border-top: 2px solid var(--border);
  background: var(--bg);
  position: relative;
  clear: both;
  z-index: 10;
}
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 2.2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--text-dim); text-decoration: none; font-weight: 500; }
.site-footer a:hover { color: var(--red); text-decoration: underline; }
.beian-sep { margin: 0 12px; color: var(--border); font-weight: bold; }
.beian-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 4px;
}
