* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #f5f6f8; color: #222; }
header { background: #1a3a5c; color: #fff; padding: 14px 24px; }
header h1 { font-size: 20px; margin-bottom: 10px; cursor: pointer; }
/* logo(2026-10-02 需求6): 只限高不限宽保原比例; src 由 app.js 按 ME.flags.logo_v 拼 ?v= */
.logo-img { height: 30px; width: auto; vertical-align: -9px; margin-right: 8px; border-radius: 6px; }
.hero-logo { height: 110px; width: auto; display: block; margin: 0 auto 14px; border-radius: 16px; }
.mod-steps { list-style: none; display: flex; gap: 8px; }
.mod-steps li { padding: 5px 14px; border-radius: 16px; background: rgba(255,255,255,.15); font-size: 13px; cursor: default; }
.mod-steps li.active { background: #fff; color: #1a3a5c; font-weight: bold; }
.mod-steps li.done { background: rgba(255,255,255,.35); }
/* 首页隐藏顶部导航条(hero 已有大标题), 旧浏览器不支持 :has 时仅退化为双标题 */
body:has(#page0.active) header { display: none; }
main { max-width: 960px; margin: 20px auto; padding: 0 16px; }
.page { display: none; }
.page.active { display: block; }
.card { background: #fff; border-radius: 10px; padding: 18px 20px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.card h2 { font-size: 15px; margin-bottom: 10px; }
.card.muted { color: #888; }
label { display: block; font-size: 13px; color: #555; margin-bottom: 8px; }
select, input[type=text] { width: 100%; padding: 9px 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; }
.hint { font-size: 12px; color: #999; margin-top: 6px; }
.kw-row { display: flex; gap: 12px; flex-wrap: wrap; }
.kw-box { flex: 1; min-width: 150px; position: relative; }
.suggest { position: absolute; z-index: 10; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid #ddd; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.12); display: none; max-height: 220px; overflow: auto; }
.suggest div { padding: 7px 12px; font-size: 13px; cursor: pointer; }
.suggest div:hover { background: #eef4fb; }
.kw-stat { font-size: 12px; color: #666; margin-top: 6px; min-height: 16px; }
.kw-stat svg { vertical-align: middle; }
button { padding: 10px 22px; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; }
button.primary { background: #1a5cab; color: #fff; }
button.primary:disabled { background: #a9c3e0; cursor: not-allowed; }
button.ghost { background: #fff; border: 1px solid #ccc; color: #444; }
button.ghost:hover { border-color: #1a5cab; color: #1a5cab; }
/* wrap(2026-10-03 移动端改造): 桌面最宽按钮行~640px<容器900px 永不触发, 窄屏防溢出 */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.status { background: #fff8e6; border: 1px solid #f0dfa8; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; }
/* 页面2 关键词组 */
.kw-group { background: #fff; border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.kw-group h3 { font-size: 13px; color: #1a5cab; margin-bottom: 10px; }
.kw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border: 1px solid #ccd7e4; border-radius: 18px; font-size: 13px; cursor: pointer; user-select: none; background: #fbfdff; }
.chip small { color: #999; margin-left: 4px; }
.chip.sel { background: #1a5cab; border-color: #1a5cab; color: #fff; }
.chip.sel small { color: #cfe0f5; }
.chip.custom { border-style: dashed; }
/* 页面3 题目组 */
.topic-group { background: #fff; border-radius: 10px; padding: 14px 18px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.topic-group h3 { font-size: 14px; color: #1a5cab; border-left: 3px solid #1a5cab; padding-left: 8px; margin-bottom: 10px; }
.topic { padding: 10px 8px; border-bottom: 1px solid #f0f0f0; display: flex; gap: 10px; align-items: flex-start; }
.topic:last-child { border-bottom: none; }
.topic input { margin-top: 4px; }
.topic .body { flex: 1; }
.topic .title-line { font-size: 14px; font-weight: 500; }
.topic .meta { font-size: 12px; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag { padding: 1px 8px; border-radius: 10px; font-size: 11px; }
.tag.level { background: #eef2f7; color: #556; }
.tag.red { background: #fde8e8; color: #c0392b; }
.tag.yellow { background: #fdf3d7; color: #9a7d0a; }
.tag.green { background: #e2f5e9; color: #1e7e42; }
.topic .basis { font-size: 12px; color: #666; margin-top: 4px; }
.topic .matches { font-size: 12px; color: #b0433a; margin-top: 3px; }
footer { text-align: center; font-size: 12px; color: #999; padding: 24px 12px 30px; }
footer p { margin: 5px 0; line-height: 1.8; }   /* 免责声明分段(2026-09-20 用户需求1) */

/* ---- 生成等待/繁忙/重试(2026-09-18) ---- */
#genStatus .elapsed { margin-left: 12px; color: #8a94a6; font-size: 12px; }
#genStatus .gen-note { display: block; font-size: 12px; color: #8a94a6; margin-bottom: 3px; }
.retry-bar { display: none; align-items: center; gap: 12px; margin: 10px 0;
  padding: 10px 14px; border-radius: 8px;
  background: #fff7e6; border: 1px solid #f0d9a8; color: #7a5b16; font-size: 14px; }
.retry-bar:empty { display: none; }
.retry-bar:not(:empty) { display: flex; }
.retry-msg { flex: 1; }
.retry-btn { flex-shrink: 0; }
.empty-hint { padding: 14px 6px; color: #a05a2c; font-size: 13px; }

/* ---- 页面4 论证辅助(二期) ---- */
.arg-toolbar { display: flex; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.arg-toolbar input { flex: 1; min-width: 220px; }
.arg-card h3 { margin: 0 0 8px; font-size: 15px; }
.compete { background: #f4f7fb; border-radius: 6px; padding: 8px 12px; font-size: 13px; color: #2a3a55; }
.recent { margin: 8px 0; font-size: 13px; }
.recent summary { cursor: pointer; color: #1a5cab; }
.recent-list { max-height: 220px; overflow-y: auto; margin-top: 6px; }
.recent-item { padding: 3px 0; border-bottom: 1px dashed #e3e8f0; color: #445; }
.sec { margin-top: 12px; }
.sec h4 { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.sec-body { font-size: 13.5px; line-height: 1.65; }
.sec-body ul, .sec-body ol { margin: 4px 0 8px 22px; padding: 0; }
.sec-body li { margin: 3px 0; }
.hint.fail { color: #b03030; }
button.mini { padding: 2px 10px; font-size: 12px; }

/* ---- 页面2 加载提示(排队友好提示约定) ---- */
.loading-box { display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: #eef4fc; border: 1px solid #c9dcf5; border-radius: 8px; }
.loading-text b { color: #1a5cab; font-size: 14px; }
.loading-text .hint { display: block; margin-top: 4px; color: #667; }
.spinner { width: 20px; height: 20px; flex: none;
  border: 3px solid #c9dcf5; border-top-color: #1a5cab; border-radius: 50%;
  animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pick-guide { background: #f6f9f4; border: 1px solid #d8e8cf; color: #33502a;
  margin-bottom: 12px; font-size: 13px; line-height: 1.7; }
.kw-stat svg { display: block; margin-top: 4px; }
.extra-matches { margin-top: 2px; }
button.more-m { margin: 4px 0 0; }

/* ---- 第四批: 联想 placeholder/相似课题详情/按钮旁进度 ---- */
#kwAdd::placeholder { color: #1a5cab; font-weight: bold; }
/* .m-title 全局链接化(2026-09-20 用户需求5): 逐题诊断相似课题题名一眼可辨为可点击 */
.m-title { color: #1a5cab; cursor: pointer; text-decoration: underline; }
.m-title:hover { color: #0d3f7e; }
.m-detail { margin: 4px 0 2px; }
.m-detail-card { background: #f7f9fc; border: 1px solid #dfe7f2; border-radius: 6px;
  padding: 6px 10px; margin: 4px 0; font-size: 12px; color: #334; line-height: 1.8; }
.m-detail-card .k { color: #667; margin-right: 6px; }
.btn-progress { margin-left: 10px; font-size: 12px; color: #1a5cab; font-weight: bold; }

/* ---- 第五批: 选题思想输入框 + 题目微调中转页 ---- */
.card textarea { width: 100%; box-sizing: border-box; padding: 8px 10px;
  border: 1px solid #ccd5e0; border-radius: 6px; font: inherit; color: #223;
  resize: vertical; }
.card textarea:focus { outline: 2px solid #b9d2f0; }
.tweak-item { margin-bottom: 12px; }
.tweak-item textarea { margin-top: 6px; }
.tweak-check { margin-top: 8px; font-size: 12px; }
.tweak-check .tag { margin-right: 8px; }

/* 生成结束后藏 spinner, 保留文字提示 */
.loading-box.settled .spinner { display: none; }

button.primary.mini { padding: 3px 12px; font-size: 12px; }
button.primary.mini:hover { background: #134a8c; }

.wait-hint { font-size: 12px; color: #1a5cab; margin-bottom: 8px; }

/* 按钮旁小号 spinner(论证页进行中提示) */
.btn-progress .spinner { width: 11px; height: 11px; border: 2px solid #cfe0f5;
  border-top-color: #1a5cab; display: inline-block; margin-right: 5px;
  vertical-align: -2px; border-radius: 50%; animation: spin 0.8s linear infinite; }

/* ---- 首页(页0): hero + 三模块卡片 ---- */
.hero { text-align: center; padding: 34px 10px 6px; }
.hero h2 { font-size: 26px; color: #1a3a5c; letter-spacing: 1px; }
.hero p { font-size: 14px; color: #66788e; margin-top: 10px; }
/* hero 四行版(2026-09-30 用户定稿): 主标语/副题/受众(教师·学生高亮)/功能清单;
   尺寸自上而下递减, 教师学生用暖棕色加粗与其他文字区分 */
.hero .hero-motto { font-size: 17px; color: #3a5a7e; letter-spacing: 3px; margin-top: 12px; }
.hero .hero-aud { font-size: 15px; color: #55627a; margin-top: 8px; }
.hero .hero-em { color: #b0433a; font-weight: bold; padding: 0 2px; }
.hero .hero-feat { font-size: 13px; color: #7a8aa0; margin-top: 8px; }
/* 管理员公告横幅(#10): 显示在友情提醒条上方, 关闭按钮仅收起本次会话 */
#sysNotice { margin-top: 18px; padding: 10px 38px 10px 16px; background: #eef4fc;
  border: 1px solid #bcd2ec; border-radius: 8px; font-size: 13.5px;
  color: #1a3a5c; text-align: center; position: relative; }
#sysNotice .sn-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  cursor: pointer; color: #7a8aa0; font-size: 15px; border: none; background: none; }
.home-cards { display: flex; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.mod-card { flex: 1; min-width: 260px; background: #fff; border-radius: 12px;
  padding: 26px 22px 22px; box-shadow: 0 2px 8px rgba(0,0,0,.07);
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column; }
.mod-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(26,90,171,.16); }
.mod-icon { font-size: 38px; line-height: 1; }
.mod-icon svg { width: 38px; height: 38px; display: block; }   /* 彩色矢量图标, 与🎯 emoji 字号一致(2026-09-22) */
.mod-card p .rb { color: #a52a2a; font-weight: 600; }   /* 首页红棕色导语(2026-09-22) */
.mod-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }  /* 图标与模块名同一行(2026-09-22 用户需求1) */
.mod-head h3 { margin: 0; }
.mod-card h3 { font-size: 17px; color: #1a3a5c; margin: 12px 0 8px; }
.mod-card p { font-size: 13px; color: #55627a; line-height: 1.65; flex: 1; }
.mod-tags { margin: 12px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.mod-tags span { font-size: 11px; color: #1a5cab; background: #eef4fc;
  border-radius: 10px; padding: 2px 9px; }
.mod-card button { width: 100%; }

/* ---- 页头模块徽标 / 首页友情提醒 ---- */
#modBadge { font-size: 13px; font-weight: normal; color: #cfe0f5; margin-left: 10px; }
.notice-bar { margin-top: 18px; padding: 10px 16px; background: #fff8e6;
  border: 1px solid #f0dfa8; border-radius: 8px; font-size: 13px;
  color: #6a5a1e; text-align: center; }
.notice-bar b { color: #8a6d1f; }

/* ---- 逐题诊断: 相似已立项课题清单 ---- */
.sim-box { margin-top: 12px; border-top: 1px dashed #e3e8f0; padding-top: 8px; }
.sim-head { font-size: 12.5px; color: #1a5cab; font-weight: bold; margin-bottom: 4px; }
.sim-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 4px 0; border-bottom: 1px dashed #f0f2f6; font-size: 12.5px; }
.sim-row:last-of-type { border-bottom: none; }
.sim-year { flex: none; color: #667; }
.sim-row .sim-score { flex: none; margin-left: auto; color: #1a5cab; font-weight: bold; }
.sim-row .m-detail { flex-basis: 100%; }
.sim-more { margin-top: 6px; }

/* ---- 模块2: 图形风格 + 六套配色选择(页6, 2026-09-22) ---- */
.rm-style-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.rm-style-row select { width: auto; min-width: 240px; }

/* R47: 图形风格级联下拉(一级两组上下靠在一起, 二级右侧展开;
   select 是唯一数据源与状态容器, .lcel 只是它的可视外壳, app.js initRmLayoutUi) */
.lcel { position: relative; width: 380px; max-width: 100%; }
.lcel-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 8px 12px; border: 1px solid #c9d6e8; border-radius: 6px;
  background: #fff; font-size: 14px; color: #233; cursor: pointer; text-align: left; }
.lcel-btn i { font-style: normal; color: #667; }
.lcel-pop { display: none; position: absolute; top: calc(100% + 4px); left: 0; z-index: 60;
  background: #fff; border: 1px solid #c9d6e8; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 40, 80, 0.14); overflow: hidden; }
.lcel-pop.show { display: flex; }
.lcel-l1 { width: 118px; border-right: 1px solid #e4ebf4; background: #f6f9fd;
  display: flex; flex-direction: column; }
.lcel-grp { padding: 13px 10px; font-size: 14px; font-weight: bold; color: #233;
  cursor: pointer; border-left: 3px solid transparent; white-space: nowrap; }
.lcel-grp:hover { background: #eaf1f9; }
.lcel-grp.act { background: #fff; color: #1a5cab; border-left-color: #1a5cab; }
.lcel-l2 { flex: 1; min-width: 330px; }
.lcel-panel { display: none; max-height: min(56vh, 520px); overflow-y: auto; }
.lcel-panel.act { display: block; }
.lcel-item { padding: 9px 12px; font-size: 13px; color: #233; cursor: pointer;
  line-height: 1.45; }
.lcel-item:hover { background: #eef4fb; }
.lcel-item.on { color: #1a5cab; font-weight: bold; background: #f2f7fd; }
.rm-palette-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rm-pal { display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid #d7e2ee; background: #fff; border-radius: 16px;
  padding: 4px 12px 4px 7px; font-size: 12.5px; cursor: pointer; color: #33475e; }
.rm-pal i { width: 14px; height: 14px; border-radius: 50%; display: inline-block;
  border: 1px solid rgba(0,0,0,.18); flex: none; }
.rm-pal:hover { border-color: #9db8d8; }
.rm-pal.on { border-color: #1a5cab; background: #eaf2fb; color: #1a5cab;
  font-weight: bold; }

/* ---- 模块2: 结构确认编辑器(页6) ---- */
.rm-stage { padding: 14px 16px; }
.rm-stage-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rm-stage-no { font-size: 13px; font-weight: bold; color: #1a5cab; flex: none; }
.rm-stage-head .rm-tag { width: 168px; flex: none; font-size: 12.5px; }   /* 左轨学术定位词(2026-09-22 需求3) */
.rm-stage-head .rm-frame { flex: 1; font-weight: bold; }
.rm-cells { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
.rm-cell { flex: 1; min-width: 150px; background: #f7f9fc; border: 1px solid #dbe4f0;
  border-radius: 8px; padding: 8px 10px; position: relative; }
.rm-cell input { width: 100%; border: none; border-bottom: 1px dashed #ccd;
  border-radius: 0; background: transparent; font-size: 13.5px;
  font-weight: bold; padding: 3px 2px; margin-bottom: 4px; }
.rm-cell .rm-sub { font-weight: normal; font-size: 12.5px; color: #556;
  border-bottom: none; }
.rm-cell .rm-del-cell { position: absolute; top: -8px; right: -6px;
  border-radius: 50%; width: 22px; height: 22px; padding: 0; line-height: 1;
  background: #fff; color: #b03030; border: 1px solid #e8c8c8; }
.rm-cells > .rm-add-cell { align-self: center; flex: none; }
button.disabled { opacity: .45; cursor: not-allowed; }
.rm-methods { margin-top: 10px; }
.rm-methods label { margin-bottom: 5px; }
/* v4 纵向走势版环节: 五组只读展示(P1) + 产出/关系词编辑行 */
.rm-groups { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.rm-group { background: #f4f7fb; border: 1px solid #d8e2ec; border-radius: 6px;
  padding: 4px 8px; font-size: 12px; color: #333; }
.rm-group b { color: #1a5cab; margin-right: 6px; }
.rm-group span { display: inline-block; background: #fff; border: 1px solid #d8e2ec;
  border-radius: 4px; padding: 1px 6px; margin: 2px 4px 2px 0; }
.rm-v4row { display: flex; flex-wrap: wrap; gap: 14px; margin: 6px 0;
  font-size: 12.5px; color: #555; }
.rm-v4row input { max-width: 220px; font-size: 12.5px; padding: 3px 6px; }

/* ---- 模块2: 预览(页7) ---- */
.rm-preview { background: #fff; border-radius: 10px; padding: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); margin-bottom: 12px; }
.rm-preview svg { width: 100%; height: auto; display: block; }
.export-tip { font-size: 13px; line-height: 1.8; color: #5a4a1a;
  background: #fffaf0; border: 1px solid #ead9b0; }
.export-tip b { color: #8a6d1f; }

/* ---- 模块3: 题目录入 + 逐题诊断 + 对比决策 ---- */
#dTitleBox { display: flex; flex-direction: column; gap: 8px; }
.diag-card h3 { font-size: 14.5px; margin-bottom: 10px; }
.dim-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.dim-name { flex: none; width: 62px; font-size: 12.5px; color: #445; }
.dim-bar { flex: none; width: 120px; height: 8px; background: #edf0f5;
  border-radius: 4px; overflow: hidden; }
.dim-fill { display: block; height: 100%; border-radius: 4px; }
.dim-val { flex: none; width: 30px; text-align: right; font-size: 13px; }
.dim-cm { font-size: 12px; color: #667; flex: 1; min-width: 0; }
.ai-pending { display: flex; align-items: center; gap: 8px; margin-top: 10px;
  font-size: 12.5px; color: #1a5cab; }
.ai-pending .spinner { width: 13px; height: 13px; border-width: 2px; }
.diag-summary { margin-top: 10px; padding: 8px 12px; background: #f4f7fb;
  border-radius: 6px; font-size: 13px; color: #2a3a55; line-height: 1.7; }
.diag-total { margin-top: 8px; font-size: 13px; color: #445; text-align: right; }
.diag-total b { font-size: 17px; color: #1a5cab; }
.verdict-card { border-left: 4px solid #1a5cab; }
.verdict-tag { display: inline-block; background: #1a5cab; color: #fff;
  font-size: 12px; border-radius: 10px; padding: 2px 12px; margin-bottom: 10px; }
.verdict-card h3 { font-size: 16.5px; color: #1a3a5c; line-height: 1.5; }
.verdict-reason { font-size: 13.5px; color: #334; line-height: 1.75; margin-top: 8px; }
.verdict-sub { margin-top: 10px; font-size: 13px; color: #445; }
.verdict-sug { margin: 4px 0 0 22px; font-size: 13px; color: #334; line-height: 1.7; }
.radar-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px;
  font-size: 12.5px; color: #445; }
.radar-legend i { display: inline-block; width: 10px; height: 10px;
  border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
/* 需求3(2026-09-22): 题目+跳转按钮为一组, 虚线分隔组与组 */
.rank-group { padding: 2px 0 10px; border-bottom: 1px dashed #e3e8f0; }
.rank-group:last-child { border-bottom: none; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; }
.rank-no { flex: none; width: 22px; height: 22px; border-radius: 50%;
  color: #fff; font-size: 12px; text-align: center; line-height: 22px; }
.rank-title { flex: 1; font-size: 13.5px; }
.rank-total { flex: none; font-size: 12.5px; color: #667; }
.rank-total b { font-size: 15px; color: #1a5cab; }
.rank-note { padding: 8px 12px; margin: 6px 0 4px; background: #f4f7fb;
  border-radius: 6px; font-size: 12.5px; color: #2a3a55; line-height: 1.7; }

/* ---- 子页快捷返回首页悬浮按钮(2026-09-20 用户需求3), 显隐由 app.js go() 控制 ---- */
#homeFloat { position: fixed; right: 22px; bottom: 28px; z-index: 60;
  background: #1a5cab; color: #fff; border: none; border-radius: 22px;
  padding: 10px 20px; font-size: 13.5px; box-shadow: 0 4px 14px rgba(26,90,171,.35); }
#homeFloat:hover { background: #134a8c; }

/* ---- 对比决策 → 生成申请书 跳转行(2026-09-20 用户需求7) ---- */
.jump-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.rank-group .jump-row { margin-top: 6px; }   /* 组内题目与按钮贴紧 */
.jump-row span:first-child { font-size: 13.5px; color: #1e7e42; font-weight: bold; }

/* ---- 模块4: 文献确认(页13) + 分节生成(页12), 2026-09-21 Phase3 ---- */
.lit-item { display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 6px; border-bottom: 1px dashed #e8edf4; font-size: 13px; cursor: pointer; }
.lit-item:last-child { border-bottom: none; }
.lit-item input[type=checkbox] { margin-top: 3px; flex: none; }
.lit-item .lit-main { flex: 1; min-width: 0; line-height: 1.55; }
.lit-item .lit-main .hint { display: block; margin-top: 2px; }
.lit-badge { flex: none; font-size: 11px; color: #1e7e42; background: #e2f5e9;
  border-radius: 10px; padding: 2px 9px; margin-top: 2px; white-space: nowrap; }
.lit-pending .lit-badge { color: #8a6d1f; background: #fdf3d7; }
.lit-pending { opacity: .62; cursor: default; }
.lit-pending .lit-main b { font-weight: normal; }
/* 核实链接按钮化+前置(2026-10-12 用户需求"放题目前比较明显"): 浅蓝底小按钮,
   与右侧核验徽标视觉区分; 同类也被 全选/取消全选/暂存进度 复用(视觉统一) */
.lit-check { flex: none; font-size: 12px; color: #1a5cab; margin-top: 2px;
  border: 1px solid #b9d0ec; background: #eef4fc; border-radius: 10px;
  padding: 2px 10px; white-space: nowrap; text-decoration: none; }
.lit-check:hover { color: #0d3f7e; background: #ddeafa; }
/* 教育部五部分组头条(R25 需求12(6) 2026-10-01): 仅展示不参与生成 */
.prop-grp { font-size: 15px; font-weight: 700; color: #143a6b; margin: 16px 0 8px;
  padding: 7px 12px; background: #eef3fa; border-left: 4px solid #1a5cab;
  border-radius: 4px; line-height: 1.5; }
.prop-sec h4 { font-size: 14.5px; display: flex; align-items: baseline; gap: 10px; }
.prop-sec .prop-state { font-size: 12px; margin-left: auto; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px; }
/* 分节生成中转圈(2026-09-21 用户需求5, 同日修复压扁): 状态栏改 inline-flex 后圆圈
   作为 flex 子项不再被行内基线/行高压扁; 尺寸12px+2px边匹配小号状态栏 */
.prop-state .spinner { width: 12px; height: 12px; border-width: 2px; flex: none; }
.prop-body { font-size: 13.5px; line-height: 1.7; color: #334; margin-top: 8px; }
.prop-body details summary { cursor: pointer; color: #1a5cab; font-size: 13px; }
.prop-body details[open] summary { margin-bottom: 6px; }
.prop-ol { margin: 4px 0 8px 22px; }
.prop-ol li { margin: 4px 0; }
.prop-p { margin: 6px 0; }
.prop-warn { background: #fff7e6; border: 1px solid #f0d9a8; color: #7a5b16;
  border-radius: 6px; padding: 6px 10px; font-size: 12.5px; margin-bottom: 8px; }
button.ghost.mini.prop-retry { margin-left: 8px; }

/* ============================================================
   P0 前端增量(2026-09-23): 用户区 / 登录弹窗 / 扣费确认弹窗 /
   反馈弹窗 / AI 生成标识 / 提纲预览 / 一键带入链
   ============================================================ */

/* ---- 顶部用户区(固定右上, 全页面可见; 首页 header 隐藏时也不受影响) ---- */
#userBar { position: fixed; top: 10px; right: 14px; z-index: 70;
  display: flex; align-items: center; gap: 10px;
  background: rgba(26,58,92,.92); color: #fff; border-radius: 20px;
  padding: 6px 14px; font-size: 13px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
#userBar .ub-login { color: #ffd875; font-weight: bold; cursor: pointer;
  background: none; border: none; font-size: 13.5px; padding: 0; }
#userBar .ub-login:hover { text-decoration: underline; }
#userBar .ub-vip { background: #d4a017; color: #fff; border-radius: 8px;
  padding: 1px 6px; font-size: 11px; font-weight: bold; }
#userBar .ub-coins { color: #ffd875; font-weight: bold; }
#userBar a, #userBar button { color: #cfe0f5; background: none; border: none;
  cursor: pointer; font-size: 12.5px; padding: 0; text-decoration: underline; }
#userBar a:hover, #userBar button:hover { color: #fff; }

/* ---- 弹窗层 ---- */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(15,30,50,.45); align-items: center; justify-content: center;
  padding: 16px; }
.modal-overlay.show { display: flex; }
.modal-box { background: #fff; border-radius: 12px; padding: 22px 24px;
  width: 400px; max-width: 100%; max-height: 92vh; overflow: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,.25); position: relative;
  animation: modalIn .16s ease-out; }
@keyframes modalIn { from { transform: translateY(14px); opacity: 0; }
  to { transform: none; opacity: 1; } }
.modal-box h3 { margin-bottom: 14px; font-size: 17px; }
.modal-x { position: absolute; top: 10px; right: 12px; background: none;
  border: none; font-size: 22px; color: #889; cursor: pointer; line-height: 1; }
.modal-x:hover { color: #334; }
.am-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.am-row input, .am-row select, .am-row textarea {
  border: 1px solid #ccd6e4; border-radius: 8px; padding: 9px 10px;
  font-size: 14px; font-family: inherit; width: 100%;
  box-sizing: border-box; }
.am-row input:focus, .am-row textarea:focus { outline: none;
  border-color: #1a5cab; }
.am-row textarea { resize: vertical; }
#amCaptchaImg svg { border-radius: 6px; display: block; }
.am-btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.am-agree { display: flex; gap: 7px; align-items: flex-start; margin-top: 10px;
  font-size: 12.5px; line-height: 1.55; color: #5a6b7d; cursor: pointer; }
.am-agree input { margin-top: 2px; flex: none; }
.am-agree a { color: #1a5cab; }
.cm-line { display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0; font-size: 14px; border-bottom: 1px dashed #e8edf4; }
.cm-line:last-of-type { border-bottom: none; }
.cm-line b { color: #1a3a5c; }
.cm-vip { margin-top: 10px; font-size: 13px; border-radius: 8px;
  padding: 8px 12px; background: #eef4fb; color: #2a4a73; }
.cm-vip a { color: #1a5cab; font-weight: bold; cursor: pointer; text-decoration: underline; }
.cm-lack { margin-top: 10px; font-size: 13.5px; border-radius: 8px;
  padding: 9px 12px; background: #fdf0ef; color: #b0433a; font-weight: bold; }
/* 2026-09-23 合规固化: 申请书扣费确认前的科研诚信提示行(橙底警示, 与 cm-lack 同色系) */
.cm-ethic { margin-top: 10px; font-size: 13px; border-radius: 8px;
  padding: 9px 12px; background: #fff3e8; color: #a3541e; line-height: 1.55; }
.cm-lack a { color: #1a5cab; cursor: pointer; }

/* ---- 充值/会员价格卡(P1, 2026-09-24) ---- */
.pay-sec { margin: 14px 0 8px; font-size: 14.5px; font-weight: bold; color: #1a3a5c;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pay-sec:first-of-type { margin-top: 6px; }
.pay-now { font-size: 12px; font-weight: normal; color: #7a8a9a; }
.pay-now.ok { color: #1e7e42; }
.pay-perks { flex-basis: 100%; font-size: 12.5px; font-weight: normal; color: #5a6b7d; }
.pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pay-card { position: relative; border: 1.5px solid #dfe7f0; border-radius: 10px;
  padding: 10px 6px 9px; text-align: center; background: #fbfdff; }
.pay-card.reco { border-color: #1a5cab; background: #f2f7fd; }
.pay-tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  font-size: 11px; background: #1a5cab; color: #fff; border-radius: 8px;
  padding: 1px 8px; white-space: nowrap; }
.pay-name { font-size: 13px; color: #2a3a4a; }
.pay-price { font-size: 19px; font-weight: bold; color: #1a3a5c; margin: 2px 0; }
.pay-sub { font-size: 11px; color: #7a8a9a; min-height: 15px; }
.pay-buy { margin-top: 5px; width: 100%; padding: 4px 0; font-size: 12.5px;
  border-radius: 7px; border: 1px solid #1a5cab; background: #fff; color: #1a5cab;
  cursor: pointer; }
.pay-buy:hover { background: #1a5cab; color: #fff; }
.pay-card.reco .pay-buy { background: #1a5cab; color: #fff; }
.pay-card.reco .pay-buy:hover { background: #123f77; }
.pay-agree { display: flex; gap: 7px; align-items: flex-start; margin-top: 12px;
  font-size: 12px; line-height: 1.55; color: #5a6b7d; cursor: pointer; }
.pay-agree input { margin-top: 2px; flex: none; }
@media (max-width: 560px) { .pay-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- 个人中心(P1, 2026-09-24) ---- */
.ub-phone { cursor: pointer; border-bottom: 1px dashed #9ab; }
.ub-phone:hover { color: #fff; text-decoration: underline; }   /* R44 需求1: 深蓝#1a5cab在深蓝header上看不清, 改白+下划线 */
.ub-vleft { color: #ffd875; font-size: 12px; font-weight: bold; }   /* R44 需求2: VIP 本月剩余额度短提示 */
.ub-del { font-size: 11px; color: #b0433a; border: 1px solid #b0433a;
  border-radius: 6px; padding: 0 5px; }
.me-delbanner { background: #fdf0ef; color: #b0433a; border-radius: 8px;
  padding: 9px 12px; font-size: 13px; line-height: 1.6; margin-bottom: 10px; }
.me-delbanner button { margin-left: 8px; }
.me-workbanner { background: #fff8ec; color: #8a5a12; border-radius: 8px;
  padding: 9px 12px; font-size: 13px; line-height: 1.6; margin-bottom: 10px; }
.me-workbanner button { margin-left: 8px; }
.me-vip-forever { color: #1a7a3c; font-weight: bold; }
/* 结果页 👍/👎 质量打分条(P1 方案第九节) */
.qvote { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.qvote .qv-ask { font-size: 13px; color: #5a6b7d; }
.qvote .qv-btn { padding: 3px 10px; }
.me-tabs { display: flex; gap: 6px; border-bottom: 1.5px solid #e3eaf2;
  margin-bottom: 8px; }
.me-tab { border: none; background: none; padding: 7px 12px; font-size: 14px;
  color: #5a6b7d; cursor: pointer; border-bottom: 2px solid transparent; }
.me-tab.on { color: #1a3a5c; font-weight: bold; border-bottom-color: #1a5cab; }
.me-list { min-height: 120px; max-height: 300px; overflow-y: auto; }
.me-row { display: flex; gap: 10px; align-items: baseline; padding: 7px 2px;
  font-size: 13.5px; border-bottom: 1px dashed #edf1f6; }
.me-kind { flex: none; color: #1a5cab; font-size: 12px; background: #eef4fb;
  border-radius: 6px; padding: 1px 7px; }
.me-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; color: #2a3a4a; }
.me-st { flex: none; font-size: 12px; color: #1e7e42; }
.me-time { flex: none; font-size: 12px; color: #98a5b3; }
.me-empty { padding: 26px 8px; text-align: center; font-size: 13px; color: #98a5b3; }
.me-danger { margin-top: 14px; padding-top: 10px; border-top: 1px dashed #e3eaf2;
  display: flex; gap: 10px; align-items: center; font-size: 12px; color: #98a5b3; }
.me-danger button { border: 1px solid #c9d4de; background: #fff; color: #b0433a;
  border-radius: 7px; padding: 4px 12px; cursor: pointer; font-size: 12.5px; }
.me-danger button:hover { border-color: #b0433a; }

/* ---- AI 生成内容标识(合规 P0: 结果页顶部一行醒目标识) ---- */
.ai-mark { background: #fff7e6; border: 1px solid #f0d9a8; color: #7a5b16;
  border-radius: 8px; padding: 7px 12px; font-size: 12.5px; margin-bottom: 12px; }

/* ---- 意见反馈悬浮按钮(在「首页」按钮上方, 避免重叠) ---- */
#fbFloat { position: fixed; right: 22px; bottom: 76px; z-index: 60;
  background: #5b7ea6; color: #fff; border: none; border-radius: 22px;
  padding: 9px 18px; font-size: 13px; box-shadow: 0 4px 14px rgba(91,126,166,.4); }
#fbFloat:hover { background: #48688c; }

/* ---- 提纲预览(页13, 免费额度) ---- */
.outline-list { margin: 4px 0 8px 22px; }
.outline-list li { margin: 7px 0; font-size: 13.5px; line-height: 1.65; }
.outline-list li b { color: #1a3a5c; }

/* ---- 2026-09-23 需求2/9/14: 弹窗提示棕红显眼 + AI 提名徽标警示 ---- */
/* 登录弹窗内的错误提示(#amMsg)与原因/引导(#amReason)统一棕红加粗, 不再用浅灰 hint */
#amMsg { color: #b0433a; font-weight: bold; }
#amReason { color: #b0433a; font-weight: bold; }
/* 所有"新用户注册赠送 40 金币"文案统一棕红显眼(需求14) */
.gift-hint { color: #b0433a; font-weight: bold; }
/* AI 提名类中文文献徽标: 橙红警示(需求9), 与 ✓ 数据库收录的绿色形成对比 */
.lit-badge.lit-badge-warn { color: #b0433a; background: #f9e9e5; font-weight: bold; }

/* ---- 轻提示条(自动消失, 不打断操作) ---- */
#xtToast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px);
  z-index: 120; background: rgba(26,58,92,.95); color: #fff; border-radius: 20px;
  padding: 10px 22px; font-size: 13.5px; box-shadow: 0 4px 16px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: 80vw; }
#xtToast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 生成按钮下 VIP 常驻提示行(方案第二节★) */
.fee-hint { font-size: 12px; color: #8a97a5; margin-top: 6px; line-height: 1.5; }
.fee-hint a { color: #1a5cab; cursor: pointer; }
/* 从我的申请书带入: 多份选择浮层 */
.pick-list { max-height: 46vh; overflow-y: auto; }
.pick-row { display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; padding: 10px 12px; border: 1px solid #e3eaf2; border-radius: 10px;
  margin-bottom: 8px; cursor: pointer; }
.pick-row:hover { border-color: #1a5cab; background: #f4f8fd; }
.pick-row b { font-size: 13.5px; color: #1a3a5c; }
.pick-row span { font-size: 12px; color: #8a97a5; white-space: nowrap; }

/* ---------- 页21 立项趋势分析(R45) ---------- */
.tr-year-card { margin-bottom: 12px; }
.tr-year-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.tr-year-num { font-size: 17px; color: #1a3a5c; }
.tr-hot { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.tr-chip { display: inline-block; padding: 2px 10px; border-radius: 20px; background: #eef4fb;
  border: 1px solid #d7e4f2; color: #1a5cab; font-size: 12.5px; cursor: pointer; }
.tr-chip:hover { background: #dbe9f8; border-color: #1a5cab; }
.tr-chip-up { background: #fef9ec; border-color: #f2d9a8; color: #b45309; }
.tr-chip-up:hover { background: #fdf0d5; border-color: #b45309; }
.tr-chip-down { background: #fdf1f0; border-color: #f0cfc9; color: #b91c1c; }
.tr-chip-down:hover { background: #fbe4e1; border-color: #b91c1c; }
.tr-cloud { width: 100%; }
.tr-cloudsvg { width: 100%; display: block; }
.tr-cw { cursor: pointer; }
.tr-cw:hover { fill: #e11d48 !important; }
.tr-kw-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tr-kw-name { font-size: 17px; color: #1a3a5c; }
.tr-rel { margin: 10px 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13px; color: #64748b; }
.tr-yd-box { margin-top: 10px; }
.tr-yd { border: 1px solid #e3eaf2; border-radius: 8px; margin-bottom: 8px; background: #fbfdff; }
.tr-yd summary { padding: 9px 12px; cursor: pointer; font-size: 13.5px; color: #1a3a5c;
  font-weight: 600; user-select: none; }
.tr-yd summary:hover { background: #f4f8fd; border-radius: 8px; }
.tr-yd-list { padding: 2px 12px 10px; }
.tr-yd-list .m-title { font-size: 13px; }
.tr-extra-title { font-size: 17px; color: #1a3a5c; margin: 18px 0 10px; }
.tr-two-col { display: flex; gap: 24px; flex-wrap: wrap; }
.tr-two-col > div { flex: 1 1 300px; min-width: 260px; }
.tr-two-col b { display: block; margin-bottom: 8px; font-size: 14px; color: #1a3a5c; }
.tr-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tr-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; font-size: 12.5px; }
.tr-bar-name { flex: 0 0 130px; text-align: right; color: #475569; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.tr-bar-track { flex: 1; height: 12px; background: #f1f5f9; border-radius: 6px; overflow: hidden; }
.tr-bar-fill { display: block; height: 100%; background: linear-gradient(90deg, #3b82f6, #1a5cab);
  border-radius: 6px; }
.tr-bar-v { flex: 0 0 34px; color: #1a5cab; font-weight: 600; }
.tr-linesvg, .tr-quadsvg, .tr-heatsvg { width: 100%; display: block; }
.tr-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #475569; margin-top: 4px; }
.tr-lg { display: inline-flex; align-items: center; gap: 4px; }
.tr-lg i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; }
.tr-hm-wrap { width: 100%; }
/* R45b: 两 Tab 页签(热词与趋势 | 附加分析) + 词云粒度切换 */
.tr-tabs { display: flex; gap: 8px; margin: 14px 0 12px; border-bottom: 2px solid #e3eaf2; }
.tr-tab { padding: 9px 22px 8px; border: none; background: none; cursor: pointer;
  font-size: 15px; color: #64748b; border-radius: 8px 8px 0 0;
  border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 600; }
.tr-tab:hover { color: #1a5cab; background: #f4f8fd; }
.tr-tab.active { color: #1a5cab; border-bottom-color: #1a5cab; background: #eef4fb; }
/* R54 需求2: 页签内「-国社科」后缀小一号 */
.tr-tab-sub { font-size: 0.82em; }
/* R54 需求2/4(热词与趋势组): 页21 显眼提示条(浅蓝底+左侧深蓝竖线) */
.tr-tipbar { background: #e8f1fc; border-left: 4px solid #1a5cab; border-radius: 6px;
  padding: 9px 12px; margin: 10px 0; font-size: 13px; color: #1f3a5f; font-weight: 500; }
.tr-mode-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tr-mode-btn { padding: 4px 14px; border-radius: 20px; border: 1px solid #cbd5e1;
  background: #fff; cursor: pointer; font-size: 13px; color: #475569; }
.tr-mode-btn:hover { border-color: #1a5cab; color: #1a5cab; }
.tr-mode-btn.active { background: #1a5cab; border-color: #1a5cab; color: #fff; font-weight: 600; }

/* ---- 首单完成转化横幅(R48 3.6): 底部居中深蓝条, 避让右下悬浮球 ---- */
#promoBar { position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 76px; z-index: 210; display: none; align-items: center; gap: 12px;
  max-width: min(720px, calc(100vw - 24px)); background: #16324f; color: #fff;
  border-radius: 10px; padding: 11px 14px; font-size: 13px; line-height: 1.7;
  box-shadow: 0 4px 18px rgba(22, 50, 79, .35); }
#promoBar .pb-txt { flex: 1; }
#promoBar a { color: #ffd875; font-weight: bold; white-space: nowrap;
  cursor: pointer; }
#promoBar a.pb-ghost { color: #c6d6e6; font-weight: normal; }
#promoBar #pbClose { cursor: pointer; color: #8fa5ba; font-size: 17px;
  padding: 0 2px; line-height: 1; }
#promoBar #pbClose:hover { color: #fff; }

/* ============================================================
   R49/R51: 2026 最新趋势洞察(页21 第三页签) — insight2026.js 专用样式
   R51 重构: 删策展卡/经验卡/画廊/lightbox 与 it-* / ins-tips / ins-gallery /
   #insLb 样式(已随功能整体移除, 勿按旧文档恢复); 主题图/赛道改为下拉选学科+数据插槽。
   🔴 注释内严禁出现 星号+斜杠 相邻字符序列(曾把 it-* 后紧跟 /ins-tips
   写进注释, 两字符连用提前闭合注释, CSS 错误恢复恰好吞掉下一条
   .ins-hero 规则, hero 深蓝背景丢失)。
   ============================================================ */
.ins-hero { background: linear-gradient(135deg, #1a3a66, #2f5a9f); color: #fff;
  border-radius: 12px; padding: 22px 26px 18px; margin-bottom: 14px; }
.ins-hero h2 { font-size: 21px; font-weight: 700; letter-spacing: 0.5px; margin: 0 0 10px; }
.ins-hero p { font-size: 13px; line-height: 1.8; color: #d7e4f5; margin: 0; }
.ins-hero-t { font-size: 21px; font-weight: 700; letter-spacing: 0.5px; }
.ins-hero-nums { display: flex; gap: 26px; margin: 14px 0 10px; flex-wrap: wrap; }
.ins-hero-nums .ihn { font-size: 13px; color: #cfe0f4; }
.ins-hero-nums .ihn b { font-size: 30px; color: #fff; margin-right: 5px;
  font-weight: 700; font-family: Consolas, monospace; }
.ins-kalibration { font-size: 12.5px; line-height: 1.75; color: #d7e4f5;
  margin-top: 12px; border-top: 1px solid rgba(255,255,255,0.18); padding-top: 10px; }
.ins-kalibration b { color: #ffd875; }

.ins-h3 { font-size: 17px; color: #163a5f; margin: 22px 0 10px; padding-left: 9px;
  border-left: 4px solid #2f5a9f; }
.ins-h3sub { font-size: 12px; color: #7d92a8; font-weight: 400; margin-left: 10px; }

.ins-chart { background: #fff; border: 1px solid #e3eaf2; border-radius: 10px;
  padding: 14px 16px 10px; margin-bottom: 12px; }
.ins-chart h3 { font-size: 15.5px; color: #163a5f; margin: 0 0 10px; }   /* 洞察页卡题 */
.ins-chart .ic-t { font-size: 14px; font-weight: 600; color: #2c4a6e; margin-bottom: 8px; }   /* 深钻页卡题 */
.ins-chart .ic-note { font-size: 12px; color: #7d92a8; line-height: 1.7;
  margin: 6px 0 4px; border-top: 1px dashed #e3eaf2; padding-top: 7px; }
.ins-h4 { font-size: 13.5px; font-weight: 600; color: #2c4a6e; margin: 4px 0 8px; }
.ins-note { font-size: 12px; color: #7d92a8; line-height: 1.7; margin: 6px 0 4px; }
.ins-legend-note { font-size: 12px; color: #7d92a8; margin-bottom: 6px; }
.lg-red { color: #c2563b; font-weight: 600; }
.lg-gray { color: #8a97a8; font-weight: 600; }
.ins-svg { width: 100%; height: auto; display: block; }
.ins-svg .ins-lb { font-size: 12px; fill: #41586e; }
.ins-svg .ins-val { font-size: 11.5px; fill: #2c4a6e; font-weight: 600; }
.ins-svg .ins-inval { font-size: 10.5px; fill: #fff; font-weight: 600; }
.ins-svg .ins-tick { font-size: 11px; fill: #8fa5ba; }
.ins-loading { text-align: center; color: #7d92a8; font-size: 13px; padding: 22px 0; }

/* 下拉选择行(学科走势/主题地图/赛道研判共用, R51 需求4/8/11) */
.ins-selrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ins-selrow label { font-size: 13px; color: #41586e; }
.ins-sel { font-size: 13.5px; color: #163a5f; padding: 6px 10px; border: 1px solid #c8d4e2;
  border-radius: 6px; background: #fff; min-width: 200px; }
.ins-sel:focus { outline: none; border-color: #2f5a9f; }
.ins-selcap { font-size: 12px; color: #7d92a8; }

/* 立项单位 Top100 列表(R51 需求5): CSS 条形替代 SVG, 100 行不卡 */
.ins-barlist { max-height: 520px; overflow-y: auto; padding-right: 4px; }
.ub-row { display: flex; align-items: center; gap: 8px; padding: 3.5px 0; font-size: 12.5px; }
.ub-rank { flex: none; width: 30px; text-align: right; color: #8fa5ba; font-family: Consolas, monospace; }
.ub-name { flex: none; width: 200px; color: #2c4a6e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ub-bar { flex: 1 1 auto; height: 8px; background: #eef3f8; border-radius: 4px; overflow: hidden; min-width: 40px; }
.ub-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4a7ab5, #2f5a9f); }
.ub-n { flex: none; width: 40px; text-align: right; color: #2c4a6e; font-weight: 600; font-size: 12px; }

/* 主题卡(R51 需求8, 用户参考图2: 深蓝编号+主题名+约N项+核心内容框+代表课题) */
.ins-theme { border: 1px solid #e3eaf2; border-radius: 10px; margin: 10px 0; overflow: hidden; }
.th-head { display: flex; align-items: baseline; gap: 9px; background: #f4f8fc;
  padding: 9px 13px; border-bottom: 1px solid #e3eaf2; }
.th-no { flex: none; min-width: 22px; height: 22px; border-radius: 5px; background: #1f4e8c; color: #fff;
  font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.th-name { font-size: 14.5px; color: #163a5f; }
.th-cnt { margin-left: auto; font-size: 12px; color: #c2563b; font-weight: 700; white-space: nowrap; }
.th-body { padding: 10px 13px 12px; }
.th-rel { font-size: 12.5px; color: #41586e; background: #f7fafd; border-left: 3px solid #2f5a9f;
  border-radius: 0 6px 6px 0; padding: 7px 10px; line-height: 1.7; margin-bottom: 8px; }
.th-tops { margin: 0; padding-left: 2px; list-style: none; }
.th-tops li { display: flex; align-items: baseline; gap: 8px; padding: 5.5px 0;
  border-bottom: 1px dashed #edf2f7; font-size: 13px; }
.th-tops li:last-child { border-bottom: none; }
.th-cat { flex: none; font-style: normal; font-size: 11px; color: #fff; border-radius: 4px;
  padding: 1.5px 7px; line-height: 1.5; position: relative; top: -1px; }
.th-title { flex: 1 1 auto; color: #2c4a6e; line-height: 1.6; }
.th-unit { flex: none; max-width: 34%; font-size: 12px; color: #8fa5ba; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }

/* 赛道研判卡(R51 需求11, 单卡数据插槽 + 对冲措辞) */
.ins-track { border-radius: 10px; padding: 13px 15px; border: 1px solid #e3eaf2; background: #fff; }
.itk-line { font-size: 13px; color: #41586e; line-height: 1.8; margin: 4px 0; }
.itk-line.itk-muted { color: #7d92a8; }
.itk-chart { margin: 10px 0 4px; }
.itk-block { border-top: 1px dashed #e3eaf2; margin-top: 10px; padding-top: 9px; }
.itk-h { font-size: 13px; font-weight: 600; color: #2c4a6e; margin-bottom: 7px; }
.itk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.itk-chip { font-size: 12.5px; color: #1f4e8c; background: #eef4fb; border: 1px solid #d5e3f3;
  border-radius: 14px; padding: 3px 11px; cursor: pointer; }
.itk-chip:hover { background: #dbe9f8; border-color: #1a5cab; }
.itk-chip-static { cursor: default; color: #41586e; background: #f4f7fb; }
.itk-chip-static:hover { background: #f4f7fb; border-color: #e3eaf2; }
.itk-facts { margin: 0; padding-left: 18px; font-size: 12.5px; color: #41586e; line-height: 1.9; }

/* R52: 主题/赛道/词云 双粒度切换按钮(细/粗, 分段式胶囊) + 新锐方向展开清单 */
.th-mode-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.th-mode-btns { display: inline-flex; margin-left: auto; }
.th-mode-btn { font-family: inherit; font-size: 12px; color: #41586e; background: #f4f7fb;
  border: 1px solid #d5e3f3; padding: 3px 12px; cursor: pointer; line-height: 1.6; }
.th-mode-btn:first-child { border-radius: 12px 0 0 12px; }
.th-mode-btn:last-child { border-radius: 0 12px 12px 0; }
.th-mode-btn + .th-mode-btn { border-left: none; }
.th-mode-btn:hover { background: #e8f0fa; }
.th-mode-btn.on { color: #fff; background: #1f4e8c; border-color: #1f4e8c; }
.itk-chip { font-family: inherit; }
.itk-chip.on { color: #fff; background: #1f4e8c; border-color: #1f4e8c; }
.itk-rise { margin-top: 9px; border: 1px solid #e3eaf2; border-radius: 8px;
  background: #f9fbfd; padding: 10px 13px; }
.itk-rise-h { font-size: 12.5px; font-weight: 600; color: #2c4a6e; margin-bottom: 4px; }
.itk-rise-list { margin: 0; padding-left: 2px; list-style: none; }

.ins-foot { font-size: 12px; color: #8fa5ba; line-height: 1.75; margin-top: 18px;
  border-top: 1px solid #e3eaf2; padding-top: 10px; }

/* ============================================================
   响应式专区(2026-10-03 移动端改造)
   新增规则集中此处; 主断点 767px(iPad 竖屏 768 留桌面布局)。
   全局类(.tbl-scroll)不进 @media——桌面容器宽约900px, min-width
   永不触发; 回滚本专区=整块删除。零散断点(560/640/720/760)保留不动。
   ============================================================ */

/* 窄屏表格横滚容器(全局): kt-table(页20)与 admin .btable 共用 */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-scroll table { min-width: 520px; }

@media (max-width: 767px) {
  /* 用户区固定右上悬浮(2026-10-04 用户需求, 同反馈球滑动不动); 登录态多元素换行靠右 */
  #userBar { position: fixed; top: 8px; right: 10px; max-width: calc(100vw - 20px);
    flex-wrap: wrap; justify-content: flex-end; padding: 5px 10px;
    font-size: 12px; gap: 8px; }
  #userBar a, #userBar button { font-size: 12px; }
  /* 路线图预览横滚(admin chart-wrap 样板): 350px 屏等比缩放后字号不可读 */
  .rm-preview { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .rm-preview svg { min-width: 640px; }
  .rm-preview[data-fam="three_col"] svg { min-width: 860px; }   /* 983 画布族需更宽保字号 */
  /* 页6 编辑器: 左轨定位词固定 168px 窄屏挤压, 放开收缩 */
  .rm-stage-head { flex-wrap: wrap; }
  .rm-stage-head .rm-tag { width: auto; flex: 1 1 120px; }
  /* 文献条目: 徽标放不下整枚落到题名下一行, 不再挤压题名列 */
  .lit-item { flex-wrap: wrap; }
  .lit-badge { white-space: normal; }
  /* 悬浮球缩小少占内容区 */
  #homeFloat { right: 14px; bottom: 20px; padding: 8px 14px; font-size: 12.5px; }
  #fbFloat { right: 14px; bottom: 64px; padding: 8px 14px; font-size: 12.5px; }
}

@media (max-width: 480px) {
  /* 超窄屏: 弹窗内边距收窄换内容空间; 关键词框 140px 让两列更稳 */
  .modal-box { padding: 18px 16px; }
  .kw-box { min-width: 140px; }
}

/* 页21 词云/图表移动端横滚(R45): SVG viewBox 缩放到 375px 时字号过小, 保最小宽横滚 */
@media (max-width: 767px) {
  #page21 .card, #page21 .tr-cloud, #page21 .tr-hm-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #page21 svg { min-width: 660px; }
  .tr-bar-name { flex: 0 0 96px; }
}

/* R47: 级联下拉移动端(767 专区, 一级列收窄+弹层不超屏) */
@media (max-width: 767px) {
  .lcel { width: 100%; }
  .lcel-l2 { min-width: 0; }
  .lcel-pop { max-width: calc(100vw - 32px); }
  .lcel-l1 { width: 96px; }
}

/* R48: 首单转化横幅移动端(767 专区, 换行+避让悬浮球) */
@media (max-width: 767px) {
  #promoBar { flex-wrap: wrap; bottom: 64px; font-size: 12.5px; }
}

/* R49/R51: 洞察页移动端(767 专区: hero 缩放; 主题卡课题行换行; 单位列表收窄) */
@media (max-width: 767px) {
  .ins-hero { padding: 16px 16px 14px; }
  .ins-hero h2 { font-size: 17px; }
  .ins-hero-t { font-size: 17px; }
  .ins-hero-nums { gap: 16px; }
  .ins-hero-nums .ihn b { font-size: 24px; }
  .ins-sel { min-width: 0; flex: 1 1 160px; }
  .th-head { flex-wrap: wrap; }
  .th-cnt { margin-left: 0; flex-basis: 100%; }
  .th-tops li { flex-wrap: wrap; }
  .th-unit { max-width: 100%; flex-basis: 100%; padding-left: 2px; }
  .ub-name { width: 128px; }
  .itk-facts { padding-left: 16px; }
  .th-mode-btns { margin-left: 0; flex-basis: 100%; }
}

/* R50: 数据深钻页签(.dp-* 系, 复用 .ins-* 为主; 767 移动端规则在文末专区) */
.dp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dp-table th, .dp-table td { padding: 7px 10px; border-bottom: 1px solid #edf2f7; text-align: left; }
.dp-table th { font-size: 12px; color: #7d92a8; font-weight: 600; white-space: nowrap; }
.dp-table td b { color: #2c4a6e; }
.dp-hot { color: #c2563b; font-weight: 600; }
.dp-ok { color: #3a8f6d; font-weight: 600; }
.dp-coocs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.dp-cooc { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.dp-cooc .dp-x { color: #a9bbcd; font-style: normal; margin: 0 1px; }
.dp-cooc b { color: #2c4a6e; font-size: 12.5px; min-width: 30px; text-align: right; }
.dp-barwrap { flex: 1 1 auto; height: 8px; background: #eef3f8; border-radius: 4px; overflow: hidden; min-width: 40px; }
.dp-bar { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4a7ab5, #2f5a9f); }
.dp-barlist { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 30px; }
.dp-prow { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.dp-prow .dp-pl { flex: 0 0 62px; color: #41586e; text-align: justify; text-align-last: justify; }
.dp-prow b { color: #2c4a6e; min-width: 34px; text-align: right; font-size: 12px; }
.dp-sparks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 18px; }
.dp-spark { background: #f7fafd; border: 1px solid #e8eef5; border-radius: 8px; padding: 8px 10px 6px; }
.dp-spark-w { display: inline-block; font-size: 13px; font-weight: 600; color: #2c4a6e; margin-bottom: 2px; cursor: pointer; }
.dp-spark-w:hover { color: #1a5cab; text-decoration: underline; }
.dp-spark svg { max-width: 100%; height: auto; }

/* R50: 数据深钻移动端(767 专区: 共现/省份单列, spark 两列) */
@media (max-width: 767px) {
  .dp-coocs, .dp-barlist { grid-template-columns: 1fr; }
  .dp-sparks { grid-template-columns: repeat(2, 1fr); }
  .dp-prow .dp-pl { flex-basis: 52px; }
}

/* R51 需求14: 数据深钻·词速览面板(点词云词条就地展示历年趋势+代表课题) */
.dp-kwpanel { display: none; margin-top: 10px; border: 1px solid #d5e3f3; border-radius: 10px;
  background: #f9fbfe; padding: 10px 13px; }
.dp-kwpanel.show { display: block; }
.dpk-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.dpk-head b { font-size: 14px; color: #163a5f; }
.dpk-n { font-size: 12px; color: #c2563b; font-weight: 600; }
.dpk-x { margin-left: auto; cursor: pointer; color: #8fa5ba; font-size: 18px; line-height: 1; padding: 0 4px; }
.dpk-x:hover { color: #b0433a; }
.dpk-years { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.dpk-y { font-size: 12px; color: #1f4e8c; background: #e8f0fa; border: 1px solid #d5e3f3;
  border-radius: 12px; padding: 2px 10px; font-family: Consolas, monospace; }
.dpk-y.zero { color: #a9bbcd; background: #f4f7fb; }
.dpk-cap { font-size: 12px; color: #7d92a8; margin: 4px 0; }
.dpk-loading { font-size: 13px; color: #7d92a8; padding: 8px 0; }
.dpk-row { display: flex; align-items: baseline; gap: 8px; padding: 5px 0;
  border-bottom: 1px dashed #e3eaf2; font-size: 12.5px; }
.dpk-row:last-child { border-bottom: none; }
.dpk-yr { flex: none; color: #8fa5ba; font-family: Consolas, monospace; font-size: 12px; }
.dpk-cat { flex: none; font-style: normal; font-size: 11px; border-radius: 4px;
  padding: 1px 7px; color: #fff; background: #8a97a8; }   /* 兜底灰, 四类徽标色经 cat-* 覆盖 */
.dpk-cat.cat-zd { background: #a0432a; }
.dpk-cat.cat-yb { background: #2f5a9f; }
.dpk-cat.cat-qn { background: #3a8f6d; }
.dpk-cat.cat-xb { background: #c9922a; }
.dpk-title { flex: 1 1 auto; color: #2c4a6e; line-height: 1.6; }
.dpk-sub { flex: none; max-width: 32%; font-size: 12px; color: #8fa5ba; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }

/* R51: 词速览面板移动端(单位与题名各自成行) */
@media (max-width: 767px) {
  .dpk-title { flex-wrap: wrap; }
  .dpk-sub { max-width: 100%; flex-basis: 100%; }
}

/* R57 需求4: 「热词与趋势」下钻题目行三段式(左类别徽标+中题名+右立项单位),
 * 外观对齐「26年最新趋势」主题详情卡——徽标/单位样式类(dpk-cat/dpk-sub)直接复用,
 * 行容器仍挂 .m-title(详情展开委托), 在此覆盖其全局链接色与下划线, 仅题名保留链接观感 */
.tr-trow { display: flex; align-items: baseline; gap: 8px; color: inherit;
  text-decoration: none; padding: 2px 0; }
.tr-trow:hover { color: inherit; }
.tr-trow .tr-tname { flex: 1 1 auto; color: #1a5cab; text-decoration: underline; line-height: 1.6; }
.tr-trow:hover .tr-tname { color: #0d3f7e; }
.tr-trow .dpk-sub { max-width: 34%; }
@media (max-width: 767px) {
  .tr-trow { flex-wrap: wrap; }
  .tr-trow .dpk-sub { max-width: 100%; flex-basis: 100%; }
}

/* ---- R71: 中文文献期刊来源单选(三模块输入页 11/15/18, only|prefer 两档) ---- */
.cssci-pick { margin-top: 10px; }
.cssci-pick > label { display: block; font-weight: 600; font-size: 14px; color: #243244; }
.cssci-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.cssci-opt { display: flex; align-items: flex-start; gap: 8px; font-size: 14px;
  color: #243244; cursor: pointer; line-height: 1.5; }
.cssci-opt input { margin-top: 3px; accent-color: #2f6fbf; flex: none; }
.cssci-opt .hint { font-size: 12px; color: #7b8aa0; }


/* ===== R91 智能解析进度弹窗(#smartModal) ===== */
.sm-spin { width: 30px; height: 30px; margin: 2px auto 8px;
  border: 3px solid #d8e4f2; border-top-color: #2f6fbf; border-radius: 50%;
  animation: sm-rot 0.9s linear infinite; }
@keyframes sm-rot { to { transform: rotate(360deg); } }
#smartModal .modal-box { text-align: center; }
#smartModal .am-btn-row { justify-content: center; }
