/* ============ 基础 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #f8f9fb;
  color: #24292f;
  font-size: 14px;
  line-height: 1.6;
}
a { color: #c01830; text-decoration: none; }
a:hover { color: #900018; }
button { font-family: inherit; cursor: pointer; }

/* ============ 顶部导航 ============ */
.topbar {
  background: #fff;
  border-bottom: 1px solid #f0e6e8;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(160, 20, 40, .05);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #a80030, #c01830);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800;
  box-shadow: 0 3px 10px rgba(160, 20, 40, .25);
}
.logo .brand { font-size: 20px; font-weight: 800; color: #111827; white-space: nowrap; letter-spacing: .5px; display: flex; flex-direction: column; line-height: 1.2; }
.logo .brand small { font-size: 11px; font-weight: 500; color: #9ca3af; margin-top: 2px; letter-spacing: 0; }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a {
  padding: 8px 16px; border-radius: 8px; color: #4a5568; font-size: 14px; font-weight: 500;
  transition: all .15s;
}
.nav-menu a:hover { color: #c01830; background: #fff0f2; }
.nav-menu a.active { color: #c01830; font-weight: 700; background: #fff0f2; }

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ============ 按钮 ============ */
.btn {
  border: 1px solid #e8dbde; background: #fff; color: #24292f; padding: 8px 16px; border-radius: 8px; font-size: 14px;
  transition: all .15s;
}
.btn:hover { border-color: #c01830; color: #c01830; }
.btn-primary { background: #c01830; border-color: #c01830; color: #fff; }
.btn-primary:hover { background: #900018; color: #fff; }
.btn-orange { background: #ff6b1a; border-color: #ff6b1a; color: #fff; }
.btn-orange:hover { background: #e67500; color: #fff; }
/* 「一键下载」批量下载按钮：加大加粗、更醒目 */
.btn-batch {
  padding: 12px 30px; font-size: 17px; font-weight: 700; border-radius: 24px;
  letter-spacing: .5px; box-shadow: 0 4px 14px rgba(255,107,26,.40);
}
.btn-batch:hover { background: #e67500; color: #fff; box-shadow: 0 6px 20px rgba(255,107,26,.55); transform: translateY(-1px); }
.btn-danger { color: #dc2626; border-color: #f3c1c1; }
.btn-danger:hover { background: #fef2f2; border-color: #dc2626; color: #dc2626; }
.btn-vip { background: linear-gradient(90deg, #c01830, #d81830); color: #fff; border: none; font-weight: 600; padding: 10px 22px; }
.btn-vip:hover { filter: brightness(1.08); color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: 5px 14px; font-size: 13px; border-radius: 6px; }

/* ============ Hero 搜索区 ============ */
.hero {
  background: linear-gradient(135deg, #6a0018 0%, #a80030 45%, #c01830 100%);
  padding: 56px 20px 48px;
  text-align: center;
}
.hero-main { max-width: 760px; margin: 0 auto; }
.hero-logo { margin-bottom: 24px; }
.hero-logo-mark {
  color: #fff; font-size: 44px; font-weight: 900; letter-spacing: 4px;
  text-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.hero-search {
  max-width: 680px; margin: 0 auto; display: flex; align-items: center;
  background: #fff; border-radius: 999px; overflow: hidden;
  border: 2px solid #ffd9de;
  box-shadow: 0 14px 34px rgba(0,0,0,.24), 0 0 0 6px rgba(255,255,255,.08);
}
.hero-search .hs-icon { display: flex; align-items: center; padding: 0 0 0 20px; }
.hero-search input {
  flex: 1; height: 58px; border: none; padding: 0 14px; font-size: 16px; outline: none; color: #24292f;
}
.hero-search input::placeholder { color: #9ca3af; }
.hero-search button {
  height: 58px; padding: 0 40px; border: none; background: #c01830; color: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: 2px;
}
.hero-search button:hover { background: #a80030; }
.hot-words { margin-top: 18px; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.hot-words span { color: rgba(255,255,255,.7); font-size: 13px; margin-right: 2px; }
.hot-words a {
  color: rgba(255,255,255,.95); font-size: 13px; padding: 5px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); transition: all .15s;
}
.hot-words a:hover { background: rgba(255,255,255,.3); color: #fff; }

/* Hero 两侧卡通吉祥物（左：大象·记忆/研究　右：狐狸·机敏） */
.hero { position: relative; overflow: hidden; }
.hero-main { position: relative; z-index: 2; }
.hero-deco {
  position: absolute; bottom: -6px; height: 176px; display: block;
  pointer-events: none; user-select: none;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,.34));
  animation: heroFloat 5.2s ease-in-out infinite;
}
.hero-deco img { height: 100%; width: auto; display: block; }
.hero-deco-l { left: 2.6%; }
.hero-deco-r { right: 2.6%; animation-delay: -2.6s; }
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .hero-deco { animation: none; } }
@media (max-width: 1280px) { .hero-deco { height: 148px; } }
@media (max-width: 1080px) { .hero-deco { height: 126px; } }
@media (max-width: 900px) { .hero-deco { display: none; } }

/* ============ 主体 ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 报告分类卡片 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
  margin: 28px 0 22px;
}
.cat-card {
  border-radius: 14px; padding: 18px 12px; text-align: center; cursor: pointer;
  color: #fff; min-height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(0,0,0,.08); transition: all .15s; position: relative; overflow: hidden;
}
.cat-card::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,0));
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.15); }
.cat-card .cn { font-size: 15px; font-weight: 700; line-height: 1.3; position: relative; z-index: 1; }
.cat-card .en { font-size: 10px; font-weight: 600; letter-spacing: 1px; opacity: .75; margin-top: 4px; position: relative; z-index: 1; }
.cat-card.c-red { background: linear-gradient(135deg, #ff6b6b, #ef5350); }
.cat-card.c-blue { background: linear-gradient(135deg, #4dabf7, #339af0); }
.cat-card.c-yellow { background: linear-gradient(135deg, #ffd43b, #fcc419); }
.cat-card.c-orange { background: linear-gradient(135deg, #ff922b, #fd7e14); }
.cat-card.c-purple { background: linear-gradient(135deg, #9775fa, #7950f2); }
.cat-card.c-green { background: linear-gradient(135deg, #69db7c, #51cf66); }
.cat-card.c-cyan { background: linear-gradient(135deg, #22b8cf, #15aabf); }
.cat-card.c-pink { background: linear-gradient(135deg, #f783ac, #f06595); }

/* 推荐区三栏 */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 18px 0 28px;
}
.featured-col {
  background: #fff; border: 1px solid #eef0f3; border-radius: 14px;
  padding: 16px 18px 12px; box-shadow: 0 2px 8px rgba(30,60,120,.04);
}
.featured-head {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #f3f4f6;
}
.featured-head b { font-size: 17px; color: #111827; font-weight: 800; }
.featured-head span { font-size: 12px; color: #9ca3af; }
.featured-list { display: flex; flex-direction: column; gap: 10px; }
.featured-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f7f8fa; cursor: pointer;
}
.featured-item:last-child { border-bottom: none; }
.featured-item:hover .ft-title { color: #c01830; }
.featured-rank {
  width: 22px; height: 22px; border-radius: 50%; background: #f3f4f6; color: #6b7280;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.featured-rank.top { background: #c01830; color: #fff; }
.featured-body { min-width: 0; flex: 1; }
.ft-title { font-size: 14px; color: #24292f; font-weight: 500; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ft-meta { font-size: 12px; color: #9ca3af; margin-top: 4px; }

/* 分类标签行 */
/* ============ 筛选面板（新版） ============ */
.filter-bar {
  background: #fff; border: 1px solid #eef0f3; border-radius: 16px;
  padding: 18px 20px 16px; margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(30, 60, 120, .06);
}
/* 原顶栏筛选行（日期区间 / 排序 / 下载可用性开关）已于 2026-09-15 移除，
   对应样式 .filter-top / .filter-field / .filter-label / .date-range /
   #sortFilter / .filter-toggle / .toggle-* 一并清理。
   注意：.quick-row .fi 与 .qf-label 仍被「时间范围 / 页数」芯片使用，保留。 */
.quick-row .fi { width: 16px; height: 16px; color: #94a3b8; flex-shrink: 0; }
.qf-label { font-size: 13px; color: #64748b; font-weight: 500; flex-shrink: 0; }

/* 保留旧分类芯片（catChips 隐藏区使用） */
.cat-chip {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
  border: 1px solid #e3e7ef; color: #4a5568; background: #fff; transition: all .15s; white-space: nowrap;
}
.cat-chip:hover { border-color: #c01830; color: #c01830; }
.cat-chip.sel { background: #c01830; border-color: #c01830; color: #fff; }
.cat-chip .cnt { opacity: .6; font-size: 12px; }

/* 结果统计 */
.result-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: #6b7280; font-size: 13px; }
.result-meta .total b { color: #c01830; font-size: 16px; }
.section-title { font-size: 17px; font-weight: 700; color: #111827; }
.section-title .sub { font-size: 12px; color: #9ca3af; font-weight: 400; margin-left: 8px; }

/* 选择栏 */
.selection-bar {
  display: none; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff0f2; border: 1px solid #f8dce0; border-radius: 10px;
  padding: 12px 16px; margin-bottom: 12px; color: #a80030; font-weight: 600;
}
.selection-bar.show { display: flex; }

/* 批量下载进度条（多份研报同时下载时显示） */
.dl-progress { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 2px; }
.dl-progress[hidden] { display: none; }
.dl-progress-track { flex: 1; min-width: 120px; height: 10px; background: #f3d6dc; border-radius: 6px; overflow: hidden; }
.dl-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #ff6b1a, #c01830); border-radius: 6px; transition: width .2s ease; }
.dl-progress-bar.indeterminate { width: 42% !important; animation: dl-indet 1.1s ease-in-out infinite; }
@keyframes dl-indet { 0% { margin-left: -42%; } 100% { margin-left: 100%; } }
.dl-progress-text { font-size: 13px; color: #a80030; font-weight: 600; white-space: nowrap; min-width: 140px; text-align: right; }

/* 检索模式吸顶条（进入检索后常驻顶部，便于二次检索） */
.sticky-search {
  position: sticky; top: 56px; /* 由 JS 按导航实际高度校正 */
  z-index: 45;
  display: none;
  margin: 0 0 12px; padding: 12px 16px;
  background: linear-gradient(135deg, #a80030 0%, #c01830 100%);
  border: none; border-radius: 12px;
  box-shadow: 0 10px 24px -8px rgba(168, 0, 48, .5);
}
.sticky-search.show { display: block; }
.ss-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ss-tag {
  padding: 6px 13px; border-radius: 999px; background: #fff; color: #c01830;
  font-size: 12.5px; font-weight: 800; white-space: nowrap; letter-spacing: 1px;
}
.ss-box {
  display: flex; align-items: center; flex: 1; min-width: 220px; height: 46px;
  background: #fff; border: none; border-radius: 999px; overflow: hidden;
}
.ss-box:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, .4); }
.ss-icon { display: flex; align-items: center; padding: 0 4px 0 16px; }
.ss-box input {
  flex: 1; min-width: 0; padding: 0 12px; height: 100%; font-size: 15px;
  border: none; outline: none; background: #fff; color: #111827;
}
.ss-btn {
  height: 38px; padding: 0 24px; margin-right: 4px; font-size: 14.5px; font-weight: 700;
  color: #fff; background: #c01830;
  border: none; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.ss-btn:hover { background: #a80030; }
@media (max-width: 720px) {
  .sticky-search { padding: 10px 12px; }
  .ss-btn { padding: 0 16px; }
  .ss-box { min-width: 160px; height: 42px; }
  .btn-batch { padding: 10px 22px; font-size: 15px; }
}

/* 资料类型 Tab（全部 / 机构 / 券商 / 期货 / 公司财报）——鲜艳马卡龙色块 */
.type-tabs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 18px 0 16px;
}
.tt-tab {
  padding: 11px 26px; font-size: 17px; font-weight: 600; line-height: 1.2;
  cursor: pointer; user-select: none; border-radius: 14px;
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, background-color .15s, color .15s, border-color .15s;
}
.tt-tab:hover { transform: translateY(-2px); }

/* 「全部报告」是主入口，刻意放大一档（字号 + 内边距），与分类 Tab 拉开层级 */
.tt-tab[data-type="all"] {
  font-size: 19px; padding: 13px 34px; letter-spacing: .5px;
}
.tt-tab[data-type="all"].sel { font-weight: 800; }

/* 未选中：浅马卡龙底 + 同色系文字 */
.tt-tab[data-type="all"]         { background: #FFE1E8; color: #C9184A; border-color: #FFC9D6; }
.tt-tab[data-type="institution"] { background: #D5F7E8; color: #0E9F6E; border-color: #B2EFD8; }
.tt-tab[data-type="broker"]      { background: #D8EBFF; color: #1565C0; border-color: #B6DAFF; }
.tt-tab[data-type="futures"]     { background: #FFEFCF; color: #B26A00; border-color: #FFDFA0; }
.tt-tab[data-type="finance"]     { background: #E9DDFF; color: #6D28D9; border-color: #D6C4FF; }

/* 选中：同色系加深成鲜艳渐变 + 白字 + 投影 */
.tt-tab.sel { color: #fff; font-weight: 700; }
.tt-tab[data-type="all"].sel         { background: linear-gradient(135deg, #FF7A9C, #E6315C); border-color: #E6315C; box-shadow: 0 6px 16px rgba(230,49,92,.30); }
.tt-tab[data-type="institution"].sel { background: linear-gradient(135deg, #3ED598, #12A26B); border-color: #12A26B; box-shadow: 0 6px 16px rgba(18,162,107,.28); }
.tt-tab[data-type="broker"].sel      { background: linear-gradient(135deg, #57A9F5, #1B6FD1); border-color: #1B6FD1; box-shadow: 0 6px 16px rgba(27,111,209,.28); }
.tt-tab[data-type="futures"].sel     { background: linear-gradient(135deg, #FFC24D, #E08A00); border-color: #E08A00; box-shadow: 0 6px 16px rgba(224,138,0,.28); }
.tt-tab[data-type="finance"].sel     { background: linear-gradient(135deg, #A78BFA, #6D28D9); border-color: #6D28D9; box-shadow: 0 6px 16px rgba(109,40,217,.30); }

/* 窄屏：字号与内边距收敛，允许换行（「全部报告」仍保持比其余大一档） */
@media (max-width: 720px) {
  .type-tabs { gap: 10px; }
  .tt-tab { padding: 10px 18px; font-size: 15.5px; border-radius: 12px; }
  .tt-tab[data-type="all"] { padding: 11px 24px; font-size: 17px; }
}

/* 列表中的资料分类（.type-tag / .type-institution / .type-broker / .type-futures
   为早期彩色类型标签，已无引用，2026-09-16 清理） */
.col-cat { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }

/* 上传表单：资料类型单选 */
.type-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.type-pick { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border: 1px solid #d4d7dd; border-radius: 999px; cursor: pointer; font-size: 13px; color: #4a5568; }
.type-pick input { accent-color: #c01830; }
.type-pick:has(input:checked) { background: #fff0f2; border-color: #c01830; color: #c01830; font-weight: 700; }

/* 研报列表 —— 表格化排版：整块一张卡、行间细分隔线、紧凑行距 */
.report-list {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #eef0f3; border-top: none;
  border-radius: 0 0 10px 10px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(30, 60, 120, .04);
}
.list-head, .report-row {
  display: grid;
  /* 顺序：勾选 | 更新日期 | 研报名称 | 页码 | 分类 | 操作 */
  /* 更新日期列宽 112→96，让「研报标题」更贴近日期（2026-09-15 用户要求） */
  /* 资料分类列宽 150→100，空间让给「研报名称」（2026-09-17 用户要求，分类名最长 4 字） */
  grid-template-columns: 30px 96px minmax(0, 1fr) 76px 100px 92px;
  gap: 14px;
  align-items: center;
}
.list-head {
  padding: 12px 18px; background: linear-gradient(90deg, #ff7a1a, #c01830);
  border: 1px solid #c01830; border-bottom: none; border-radius: 10px 10px 0 0;
  color: #fff; font-size: 16px; font-weight: 800; text-shadow: 0 1px 2px rgba(120, 0, 20, .28);
}
/* 表头 checkbox 在深底上要显形 */
.list-head input[type="checkbox"] { accent-color: #fff; }
/* 表头内「更新日期 / 页码」会被下方 .col-date/.col-pages 的正文样式盖掉
   （选择器同权重但位置更靠后），此处提权覆盖，保证整行表头字号与配色一致 */
.list-head .col-date,
.list-head .col-pages { font-size: 16px; font-weight: 800; color: #fff; }
@media (max-width: 720px) {
  .list-head { font-size: 14.5px; padding: 11px 12px; }
  .list-head .col-date, .list-head .col-pages { font-size: 14.5px; }
}
.report-row {
  padding: 11px 18px;
  border-bottom: 1px solid #f3f4f6;
  transition: background .12s;
}
.report-row:last-child { border-bottom: none; }
.report-row:nth-child(even) { background: #fafbfd; }
.report-row:hover { background: #fff7f8; }
.report-list .empty { border: none; border-radius: 0; background: transparent; }
.col-check { display: flex; justify-content: center; }
.col-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: #c01830; cursor: pointer; }
.col-name { min-width: 0; }
.report-title {
  font-size: 14.5px; color: #1f2937; font-weight: 500; display: block; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; cursor: pointer;
}
.report-title:hover { color: #c01830; }
/* 标题开头的【出品方】：加黑加粗，一眼看出是谁出的报告 */
.org-tag { font-weight: 800; color: #0b0f16; letter-spacing: .2px; }
.report-title:hover .org-tag,
.featured-item:hover .ft-title .org-tag,
.pvr-item:hover .pvr-name .org-tag { color: #c01830; }
.report-title .ext { color: #9ca3af; font-weight: 400; }
.report-title .hl { color: #c01830; font-weight: 800; }
/* 研报名称前的文件图标（PDF） */
.col-name .name-line { display: flex; align-items: center; gap: 7px; min-width: 0; }
.col-name .doc-icon { flex: 0 0 auto; display: inline-flex; width: 20px; height: 20px; color: #C01830; }
.col-name .doc-icon svg { width: 100%; height: 100%; display: block; }
.col-name .report-title { flex: 1 1 auto; min-width: 0; }
.report-row.is-gone .col-name .doc-icon { color: #c6ccd4; }
.col-pages { color: #4a5568; font-size: 13px; white-space: nowrap; }
/* 更新日期：比正文大一号 + 加粗（2026-09-16 用户要求），表头仍由 .list-head 提权规则控制 */
.col-date { color: #374151; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
/* 表头文字颜色统一由 .list-head 控制（原单独给 .col-date 降灰度的规则已移除） */
.col-cat { min-width: 0; }
.col-cat .cat-tag {
  display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12px; max-width: 100%;
  background: #fff0f2; color: #a80030; font-weight: 600; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; cursor: pointer; transition: all .15s;
}
.col-cat .cat-tag { background: #f3f4f6; color: #6b7280; font-weight: 500; padding: 2px 8px; }
.col-cat .cat-tag:hover { background: #e8eaee; }
.col-op { display: flex; justify-content: center; }

/* 快捷筛选：时间范围 / 页数 */
.quick-bar { display: flex; flex-direction: column; gap: 10px; }
.quick-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.chip-group {
  display: inline-flex; flex-wrap: wrap; gap: 0;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  overflow: hidden;
}
.qf-chip {
  padding: 7px 16px; font-size: 13px; cursor: pointer;
  border: none; border-right: 1px solid #e2e8f0; background: #fff;
  color: #64748b; white-space: nowrap; transition: all .15s;
}
.qf-chip:last-child { border-right: none; }
.qf-chip:hover { background: #fff5f6; color: #c01830; }
.qf-chip.sel {
  background: #c01830; color: #fff; font-weight: 600;
  box-shadow: inset 0 0 0 1px #c01830;
}

/* 页数：多选复选框式芯片 */
.checkbox-chips {
  background: transparent; border: none; border-radius: 0;
  gap: 8px;
}
.checkbox-chips .qf-chip {
  border: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0; border-radius: 999px;
  background: #fff; color: #64748b;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px 6px 11px;
}
.checkbox-chips .qf-chip:last-child { border-right: 1px solid #e2e8f0; }
.checkbox-chips .qf-chip:hover { background: #fff5f6; color: #c01830; }
.checkbox-chips .qf-chip.sel { background: #fff0f2; color: #c01830; border-color: #f0a8b4; box-shadow: none; }
.chip-check {
  width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: .55; transition: all .15s; flex-shrink: 0;
}
.chip-check::after {
  content: ''; width: 4px; height: 7px; border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-.5px, -1px); opacity: 0; transition: opacity .15s;
}
.qf-chip.sel .chip-check { background: #c01830; border-color: #c01830; opacity: 1; }
.qf-chip.sel .chip-check::after { opacity: 1; }

.empty { padding: 60px 20px; text-align: center; color: #9ca3af; background: #fff; border-radius: 10px; border: 1px solid #eef0f3; }
.loading { text-align: center; padding: 40px; color: #9ca3af; }
.loading-sm { text-align: center; padding: 20px; color: #9ca3af; font-size: 13px; }
/* 转圈加载图标（检索/上传/预览等待时显示） */
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(192, 24, 48, .22); border-top-color: #c01830; border-radius: 50%; vertical-align: -3px; margin-right: 8px; animation: pv-spin .7s linear infinite; }
@keyframes pv-spin { to { transform: rotate(360deg); } }

/* 分页 */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 20px 0 40px; flex-wrap: wrap; }
.pg-info { font-size: 13px; color: #6b7280; margin-right: 8px; white-space: nowrap; }
.pg-info b { color: #c01830; font-weight: 700; }
.pg-btn {
  min-width: 32px; height: 32px; padding: 0 9px; border: 1px solid #d6dae0; border-radius: 6px;
  background: #fff; font-size: 13px; color: #374151; cursor: pointer; transition: all .15s;
}
.pg-btn:hover:not([disabled]):not(.active) { border-color: #c01830; color: #c01830; }
.pg-btn.active { background: #c01830; border-color: #c01830; color: #fff; font-weight: 700; }
.pg-btn[disabled] { opacity: .35; cursor: not-allowed; }
.pg-dots { color: #9ca3af; padding: 0 2px; }
.pg-jump { font-size: 13px; color: #6b7280; margin-left: 8px; white-space: nowrap; }
.pg-input {
  width: 54px; height: 30px; border: 1px solid #d6dae0; border-radius: 6px;
  text-align: center; font-size: 13px; margin: 0 4px; outline: none;
}
.pg-input:focus { border-color: #c01830; }

/* ============ 页脚 ============ */
.footer {
  margin-top: 40px; background: #1a0a0c; color: #b8a0a4; text-align: center; padding: 32px 20px; font-size: 13px;
}
.footer b { color: #fff; font-size: 15px; }
.footer .links { margin-top: 10px; display: flex; justify-content: center; gap: 18px; }
.footer .links a { color: #b8a0a4; }
.footer .links a:hover { color: #fff; }
.footer .copy { margin-top: 8px; color: #7a6064; font-size: 12px; }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 100; display: none;
  /* 关键：内容超高时可滚动 + 顶部对齐（配合 .modal{margin:auto}）。
     原来用 align-items:center 垂直居中，弹窗一超高顶部就被顶出屏幕，右上角 × 够不着也滚不到 → 关不掉。 */
  align-items: flex-start; justify-content: center; padding: 20px; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 440px; padding: 28px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,.2);
  margin: auto; /* 内容装得下→垂直居中；装不下→自动贴顶并随遮罩滚动，× 永远可达 */
}
.modal-lg { max-width: 560px; }
/* 研报预览专用：加宽，让 A4 页面尽量按原始比例放大显示 */
.modal-xl { max-width: 900px; }
.modal h2 { font-size: 19px; margin-bottom: 18px; }
.modal .close {
  position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 22px; color: #9ca3af; line-height: 1;
  z-index: 10; /* 永远盖在弹窗内容之上，不被图片/长文本遮住 */
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
}
.modal .close:hover { background: #f3f4f6; color: #4b5563; }
.form-item { margin-bottom: 14px; }
.form-item label { display: block; font-size: 13px; color: #6b7280; margin-bottom: 6px; }
.form-item input {
  width: 100%; height: 40px; border: 1px solid #d6dae0; border-radius: 8px; padding: 0 12px; font-size: 14px; outline: none;
}
.form-item input:focus { border-color: #c01830; }
.form-tip { font-size: 12px; color: #9ca3af; margin-top: 8px; }
.switch-tip { text-align: center; margin-top: 14px; font-size: 13px; color: #6b7280; }
.msg { text-align: center; margin-top: 10px; font-size: 13px; min-height: 18px; }
.msg.ok { color: #16a34a; }
.msg.err { color: #dc2626; }

/* 套餐卡片（开通会员弹窗 · 新版） */
.pkg-card {
  position: relative;
  border: 1.5px solid #e6e8eb; border-radius: 14px; padding: 22px 14px 16px;
  text-align: center; cursor: pointer; transition: all .18s; background: #fff;
  display: flex; flex-direction: column;
}
.pkg-card:hover { border-color: #e0a2ac; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(192, 24, 48, .10); }
.pkg-card.sel {
  border-color: #c01830;
  background: linear-gradient(180deg, #fff7f8 0%, #fff 75%);
  box-shadow: 0 10px 26px rgba(192, 24, 48, .16);
}
.pkg-card.sel::after {
  content: '✓'; position: absolute; top: 10px; left: 12px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #c01830; color: #fff; font-size: 12px; line-height: 20px; font-weight: 700;
}
.pkg-card .pkg-tag {
  position: absolute; top: -10px; right: 12px;
  background: linear-gradient(135deg, #d81830, #a80030); color: #fff;
  font-size: 11px; padding: 3px 12px; border-radius: 999px; letter-spacing: 1px;
  box-shadow: 0 3px 8px rgba(192, 24, 48, .30);
}
.pkg-card .pkg-name { font-size: 14px; font-weight: 700; color: #374151; }
.pkg-card .pkg-price { margin: 8px 0 0; color: #c01830; line-height: 1; }
.pkg-card .pkg-price .cur { font-size: 16px; font-weight: 700; vertical-align: 15px; margin-right: 2px; }
.pkg-card .pkg-price b { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.pkg-card .pkg-dur { font-size: 12px; color: #9ca3af; margin: 7px 0 13px; }

/* 支付模拟框 */
.pay-box { text-align: center; padding: 10px 0; }
.pay-box .pay-amount { font-size: 30px; font-weight: 800; color: #1f2937; margin: 12px 0; }
.pay-box .pay-amount small { font-size: 14px; color: #6b7280; font-weight: 400; }
.pay-methods { display: flex; gap: 10px; justify-content: center; margin: 18px 0; }
.pay-method {
  border: 1px solid #d6dae0; border-radius: 10px; padding: 12px 18px; text-align: center; font-size: 13px; color: #6b7280;
}
.pay-method b { display: block; font-size: 15px; color: #1f2937; margin-bottom: 3px; }
.pay-method.sel { border-color: #c01830; background: #fff0f2; }
.pay-tip { font-size: 12px; color: #9ca3af; margin-top: 12px; }

/* ============ 管理端 ============ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid #e6e8eb; border-radius: 12px; padding: 18px; }
.stat-card .num { font-size: 26px; font-weight: 800; color: #1f2937; margin-top: 4px; }
.stat-card .label { color: #6b7280; font-size: 13px; }

.upload-zone {
  border: 2px dashed #f8dce0; border-radius: 12px; background: #fffafa; padding: 36px 20px; text-align: center; color: #6b7280; transition: all .15s; margin-bottom: 16px;
}
.upload-zone.dragover { border-color: #c01830; background: #fff0f2; }
.upload-zone input[type="file"] { display: none; }
.upload-zone .big { font-size: 15px; color: #1f2937; margin-bottom: 6px; }
.upload-zone a { color: #c01830; font-weight: 600; }
.upload-form { background: #fff; border: 1px solid #e6e8eb; border-radius: 12px; padding: 18px; margin-bottom: 20px; display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.upload-form .form-item { margin-bottom: 0; }
.upload-form .form-item input { width: 180px; }
.upload-progress { background: #fff; border: 1px solid #e6e8eb; border-radius: 12px; padding: 18px; margin-bottom: 20px; }
.upload-progress .bar { height: 8px; background: #e5e7eb; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.upload-progress .bar div { height: 100%; background: #c01830; width: 0; transition: width .2s; }

table.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e6e8eb; border-radius: 12px; overflow: hidden; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; font-size: 13px; border-bottom: 1px solid #eef0f3; }
.admin-table th { background: #f8f9fb; color: #6b7280; font-weight: 600; }
.admin-table td input { border: 1px solid #d6dae0; border-radius: 6px; padding: 5px 8px; font-size: 13px; width: 130px; }
.admin-table td input.wide { width: 100%; min-width: 200px; }

.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 10px 22px; border-radius: 10px; font-size: 14px; z-index: 200; display: none; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.toast.show { display: block; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 10px; }
  .nav-menu { order: 3; width: 100%; overflow-x: auto; }
  .featured-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .hero-logo-mark { font-size: 32px; }
  .hero-search { border-radius: 12px; }
  .hero-search input { border-radius: 12px 0 0 12px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card { min-height: 72px; padding: 14px 8px; }
  .cat-card .cn { font-size: 14px; }
  .cat-card .en { font-size: 9px; }
  .featured-grid { margin: 14px 0 22px; }
  /* 移动端隐藏页码/分类列；更新日期列宽 88→80，与桌面端同步收紧（2026-09-15） */
  .list-head, .report-row { grid-template-columns: 26px 80px minmax(0, 1fr) 78px; gap: 10px; padding-left: 12px; padding-right: 12px; }
  .col-pages, .col-cat { display: none; }
  .quick-row { gap: 6px; align-items: flex-start; }
  .qf-chip { padding: 5px 10px; font-size: 12px; }
  .chip-group { border-radius: 8px; }
}

/* ============ 会员体系与下载额度 ============ */

.btn-lg { padding: 12px 28px; font-size: 15px; border-radius: 8px; }
.btn-outline { background: #fff; border: 1px solid #c01830; color: #c01830; }
.btn-outline:hover { background: #fff0f2; }


/* 登录方式切换 */
.auth-tabs { display: flex; border-bottom: 1px solid #eef0f3; margin-bottom: 16px; }
.auth-tab {
  flex: 1; text-align: center; padding: 10px 0; font-size: 14px;
  color: #6b7280; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.auth-tab.sel { color: #c01830; font-weight: 600; border-bottom-color: #c01830; }

.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-row .btn { white-space: nowrap; }

/* 会员推广弹窗（增强版 · 品牌红）
   注意：文件后段（~1140 行）另有 .modal-lg{max-width:600px}，同优先级且更靠后会覆盖单类选择器，
   故此处用 .modal.promo-modal 复合选择器（0,2,0）确保宽度生效。 */
.modal.promo-modal { max-width: 960px; padding: 0; overflow: hidden; border-radius: 24px; }

/* 顶部品牌红 hero 带 */
.promo-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 30px 36px 66px;
  background: linear-gradient(135deg, #D81830 0%, #C01830 45%, #A80030 100%);
  color: #fff;
}
.promo-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.4px, transparent 1.4px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(120% 90% at 18% 8%, #000 30%, transparent 72%);
          mask-image: radial-gradient(120% 90% at 18% 8%, #000 30%, transparent 72%);
  opacity: .8;
}
.promo-deco { position: absolute; right: -8px; top: -8px; opacity: .5; }
.promo-hero .promo-badge {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .5px; opacity: .95;
  background: rgba(255,255,255,.16); padding: 5px 14px; border-radius: 999px; backdrop-filter: blur(3px);
}
.promo-hero .promo-title { position: relative; z-index: 2; margin-top: 14px; font-size: 27px; font-weight: 900; letter-spacing: .5px; }
.promo-hero .promo-sub { position: relative; z-index: 2; margin-top: 8px; font-size: 14px; opacity: .92; font-weight: 400; }
.promo-hero .close {
  position: absolute; top: 16px; right: 16px; z-index: 6;
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.18); color: #fff; font-size: 20px; line-height: 34px;
  backdrop-filter: blur(4px); transition: .2s;
}
.promo-hero .close:hover { background: rgba(255,255,255,.32); transform: rotate(90deg); }

/* 三卡 */
.promo-pkgs {
  position: relative; z-index: 3; margin: -42px 26px 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.promo-pkg {
  position: relative; text-align: left;
  border: 1px solid #F0D2D6; border-radius: 20px; background: #fff;
  padding: 24px 20px 22px; cursor: pointer; display: flex; flex-direction: column;
  box-shadow: 0 6px 18px rgba(160,0,48,.08), 0 2px 6px rgba(160,0,48,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.promo-pkg:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(160,0,48,.16); }
.promo-pkg.rec {
  border: 2px solid #C01830;
  background: linear-gradient(180deg, #FFF6F6 0%, #fff 58%);
  transform: translateY(-12px);
  box-shadow: 0 22px 50px rgba(192,24,48,.22);
}
.promo-pkg.rec:hover { transform: translateY(-18px); }

/* 双圈光环「最受欢迎」徽章 */
.pp-ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 15px 6px 11px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(135deg, #D81830, #A80030); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .5px;
  box-shadow: 0 8px 18px rgba(192,24,48,.35);
}
.pp-ribbon .pp-ring {
  width: 17px; height: 17px; border-radius: 50%; background: #D81830;
  box-shadow: 0 0 0 2px rgba(255,255,255,.55), 0 0 0 5px rgba(255,255,255,.18);
  display: grid; place-items: center; font-size: 10px;
}
/* 终身「尊享」小标 */
.pp-tag {
  position: absolute; top: 12px; right: 12px;
  background: rgba(192,24,48,.08); color: #C01830;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.pp-name { font-size: 16.5px; font-weight: 900; color: #2A1418; }
.pp-sub { font-size: 12px; color: #6B5158; margin-top: 2px; font-weight: 400; }

.promo-pkg .pp-price { color: #C01830; display: flex; align-items: flex-end; gap: 3px; margin: 14px 0 4px; line-height: 1; }
.promo-pkg .pp-price .cur { font-size: 17px; font-weight: 700; transform: translateY(-2px); }
.promo-pkg .pp-price b { font-size: 40px; font-weight: 900; letter-spacing: -1px; }
.promo-pkg .pp-price small { font-size: 13px; color: #6B5158; font-weight: 500; margin-bottom: 5px; }

/* 周期胶囊 */
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.pp-chip {
  font-size: 12px; color: #6B5158; border: 1px solid #F0D2D6; border-radius: 999px;
  padding: 4px 11px; font-weight: 500;
}
.promo-pkg.rec .pp-chip { background: rgba(192,24,48,.06); }
.pp-chip b { color: #2A1418; font-weight: 700; }
.pp-chip.soft { color: #9c7b82; border-style: dashed; }

/* 额度胶囊 */
.pp-quota {
  display: inline-block; align-self: flex-start; white-space: nowrap;
  background: #FFF6F6; color: #A80030; font-size: 13px; font-weight: 700;
  padding: 6px 13px; border-radius: 999px; border: 1px solid #F0D2D6;
}
.pp-quota .pp-qd { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #C01830; vertical-align: middle; margin-right: 6px; }
.pp-quota b { color: #C01830; }

/* 权益清单 */
.pp-feat { list-style: none; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pp-feat li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: #2A1418; font-weight: 500; }
.pp-chk { width: 18px; height: 18px; border-radius: 50%; flex: none; margin-top: 1px; background: #C01830; display: grid; place-items: center; }
.pp-chk svg { width: 11px; height: 11px; }

/* 卡片 CTA */
.pp-cta {
  margin-top: 18px; width: 100%; border: none; cursor: pointer;
  padding: 12px 0; border-radius: 12px; font-size: 14.5px; font-weight: 700;
  font-family: inherit; color: #fff;
  background: linear-gradient(135deg, #D81830, #A80030);
  box-shadow: 0 10px 22px rgba(192,24,48,.28); transition: .2s;
}
.pp-cta:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(192,24,48,.36); }
.promo-pkg:not(.rec) .pp-cta { background: #fff; color: #C01830; border: 1.5px solid #C01830; box-shadow: none; }
.promo-pkg:not(.rec) .pp-cta:hover { background: #FFF6F6; }

/* 信任条 */
.promo-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;
  margin: 20px 26px 0; color: #6B5158; font-size: 12.5px;
}
.promo-trust span { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.promo-trust svg { width: 15px; height: 15px; color: #C01830; }

.promo-note { text-align: center; margin: 14px 26px 0; font-size: 12px; color: #b79aa0; }
.promo-skip {
  display: block; margin: 12px auto 22px; border: none; background: none; cursor: pointer;
  color: #9c7b82; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px;
  font-family: inherit;
}
.promo-skip:hover { color: #C01830; }

@media (max-width: 760px) {
  .promo-hero { padding: 26px 20px 56px; }
  .promo-hero .promo-title { font-size: 22px; }
  .promo-pkgs { grid-template-columns: 1fr; margin: -30px 16px 0; }
  .promo-pkg.rec { transform: none; }
  .promo-pkg.rec:hover { transform: translateY(-6px); }
  .promo-trust { margin: 18px 16px 0; }
}

/* 开通/充值弹窗（新版） */
.buy-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-right: 36px;
}
.buy-head h2 { margin: 0; }
.pay-note { margin-top: 12px; text-align: center; font-size: 12px; color: #9ca3af; }

.buy-section-title {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 15px; font-weight: 700; margin: 12px 0 6px;
}
.buy-section-title span { font-size: 12px; font-weight: 400; color: #9ca3af; }

.pkg-list { margin-top: 4px; max-height: 68vh; overflow-y: auto; padding-right: 4px; }

.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 4px; }

/* ---- 会员档位分组（普通会员 / 超级会员 / 店铺终身会员） ---- */
.pkg-group { margin-top: 12px; }
.pkg-group:first-child { margin-top: 2px; }
.pkg-group-head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
  padding: 0 2px 9px; margin-bottom: 12px;
  border-bottom: 1px dashed #f0d8d8;
}
.pkg-group-head .pg-name {
  font-size: 14.5px; font-weight: 700; color: #c01830;
  display: inline-flex; align-items: center; gap: 8px;
}
.pkg-group-head .pg-name::before {
  content: ''; width: 4px; height: 17px; border-radius: 2px;
  background: #c01830; display: inline-block;
}
.pkg-group-head .pg-sub { font-size: 12px; color: #9ca3af; }

/* 会员档位：统一品牌红（辣椒红），消除原蓝/粉/紫配色冲突 */
.pkg-group.tier-basic,    .promo-pkg.tier-basic    { --mc:#C01830; --mc-soft:#FCE9EC; }
.pkg-group.tier-super,    .promo-pkg.tier-super    { --mc:#C01830; --mc-soft:#FCE9EC; }
.pkg-group.tier-lifetime, .promo-pkg.tier-lifetime { --mc:#C01830; --mc-soft:#FCE9EC; }

/* 分组标题：小圆点 + 文字，不用大色块 */
.pkg-group-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; padding: 0 2px 6px; margin-bottom: 8px; border-bottom: 1px dashed #e6e8eb; }
/* 分组标题字号 16 → 18（2026-09-16 用户要求「普通会员/超级会员 大 2 号」；三组统一以保持一致） */
.pkg-group-head .pg-name { color: #1f2937; font-size: 18px; font-weight: 700; letter-spacing: .3px; }
.pkg-group-head .pg-name::before { background: var(--mc); }
.pkg-group-head .pg-sub { color: #9ca3af; }

/* 卡片：白底 + 顶部细色条；价格是绝对主角 */
.pkg-card.tier-basic, .pkg-card.tier-super, .pkg-card.tier-lifetime {
  background: #fff; border: 1.5px solid #e6e8eb; border-top: 3px solid var(--mc); min-height: auto;
}
/* 价格：最大、品牌红，全档统一 → 一眼锁定核心 */
.pkg-card .pkg-price { color: #c01830; margin: 6px 0 0; }
.pkg-card .pkg-price b { font-size: 48px; font-weight: 800; letter-spacing: -2px; }
.pkg-card.tier-basic:hover, .pkg-card.tier-super:hover, .pkg-card.tier-lifetime:hover {
  border-color: var(--mc); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.10);
}
.pkg-card.tier-basic.sel, .pkg-card.tier-super.sel, .pkg-card.tier-lifetime.sel {
  border-color: var(--mc); background: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.14);
}
.pkg-card.tier-basic.sel::after, .pkg-card.tier-super.sel::after, .pkg-card.tier-lifetime.sel::after { background: var(--mc); }
.pkg-card.wide.tier-lifetime { min-height: auto; }

/* 每月份数：次要信息，明显小于价格 */
.pkg-quota { font-size: 13px; color: #9ca3af; margin: 6px 0 2px; line-height: 1; }
.pkg-quota b { font-size: 18px; font-weight: 700; color: #6b7280; margin-right: 3px; }
/* 永久档中段：把额度做成胶囊，和左（名称）/右（价格）一起撑满整行 */
.pkg-card.wide .pkg-quota {
  margin: 0; flex: 0 0 auto;
  padding: 8px 22px; border-radius: 12px;
  background: var(--mc-soft, #f3f4f6); color: #6b7280;
  font-size: 13px; line-height: 1.25; text-align: center;
}
.pkg-card.wide .pkg-quota b { font-size: 20px; font-weight: 800; color: var(--mc, #6b7280); margin-right: 4px; }

/* 价格单位「元」 */
.pkg-price .pkg-unit { font-size: 18px; font-weight: 700; color: #c01830; margin-left: 3px; }

/* 促销弹窗：同样克制 */
.promo-pkg.tier-basic, .promo-pkg.tier-super, .promo-pkg.tier-lifetime { background: #fff; border: 1px solid #e6e8eb; border-top: 3px solid var(--mc); }
.promo-pkg .pp-name { color: #1f2937; }
.promo-pkg .pp-price { color: #c01830; }
.promo-pkg .pp-quota { color: #9ca3af; }
.promo-pkg .pp-quota b { color: #6b7280; }
.promo-pkg.tier-basic:hover, .promo-pkg.tier-super:hover, .promo-pkg.tier-lifetime:hover { border-color: var(--mc); box-shadow: 0 8px 20px rgba(0,0,0,.10); }
.promo-pkg.tier-super.rec { border-color: var(--mc); background: #fff; }
.pkg-grid.one { grid-template-columns: 1fr; }

/* 永久档卡片：独占整行，横向三块撑满（左：名称+有效期 · 中：额度胶囊 · 右：价格） */
.pkg-card.wide {
  grid-column: 1 / -1;
  flex-direction: row; align-items: center; justify-content: space-between; gap: 20px;
  text-align: left; padding: 20px 24px;
}
/* 左侧缩进 12px：避开选中态左上角 ✓ 徽标（12–32px），又不至于把内容推得太靠内 */
.pkg-card.wide .pkg-left { margin-left: 12px; display: flex; flex-direction: column; gap: 3px; }
.pkg-card.wide .pkg-name { font-size: 15px; }
.pkg-card.wide .pkg-dur { margin: 0; }
.pkg-card.wide .pkg-price { margin: 0; text-align: right; }
.pkg-card.wide .pkg-price b { font-size: 42px; }
/* 窄屏：退回竖排，仍然独占整行 */
@media (max-width: 720px) {
  .pkg-grid { grid-template-columns: repeat(2, 1fr); }
  .pkg-card.wide {
    flex-direction: column; align-items: stretch; justify-content: flex-start; text-align: center;
    padding: 20px 14px 16px; gap: 10px;
  }
  .pkg-card.wide .pkg-left { margin-left: 0; }
  .pkg-card.wide .pkg-quota { align-self: center; padding: 6px 16px; }
  .pkg-card.wide .pkg-price { margin: 0; text-align: center; }
  .pkg-card.wide .pkg-dur { margin: 4px 0 0; }
}
@media (max-width: 420px) {
  .pkg-grid { grid-template-columns: 1fr; }
}

/* 我的下载记录 */
@media (max-width: 720px) {
  .promo-pkgs { grid-template-columns: 1fr; }
  .dl-item { flex-wrap: wrap; }
  .dl-time { width: 100%; }
}

.dl-list { max-height: 420px; overflow-y: auto; }
.dl-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px; border-bottom: 1px solid #f3f4f6;
}
.dl-main { flex: 1; min-width: 0; }
.dl-title {
  font-size: 14px; color: #111827; margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dl-meta { font-size: 12px; color: #9ca3af; }
.dl-time { font-size: 12px; color: #9ca3af; white-space: nowrap; }

@media (max-width: 900px) {
  .promo-pkgs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .promo-pkgs { grid-template-columns: 1fr; }
  .dl-item { flex-wrap: wrap; }
  .dl-time { width: 100%; }
}

/* ============ 管理后台：会员管理 ============ */

.admin-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e6e8eb; margin: 18px 0 16px; }
.admin-tab {
  padding: 10px 20px; font-size: 14px; color: #6b7280; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.admin-tab.sel { color: #c01830; font-weight: 700; border-bottom-color: #c01830; }

.member-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.member-toolbar input, .member-toolbar select {
  height: 34px; border: 1px solid #d6dae0; border-radius: 8px; padding: 0 12px;
}
.member-toolbar input { width: 220px; }

.member-summary { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.mstat {
  flex: 0 0 180px; background: #fff; border: 1px solid #eef0f3; border-radius: 10px; padding: 14px;
}
.mstat b { display: block; font-size: 20px; color: #c01830; }
.mstat span { font-size: 12px; color: #6b7280; }

.lv-tag {
  display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600;
}
.lv-member { background: #fff0f2; color: #c01830; }
.lv-free { background: #f3f4f6; color: #6b7280; }

.admin-tag { font-size: 11px; background: #111827; color: #fff; padding: 2px 6px; border-radius: 4px; }
td.expired { color: #dc2626; }

.quick-amounts { display: flex; gap: 8px; margin: -4px 0 12px; flex-wrap: wrap; }

/* ===== 上传去重选项与结果 ===== */
.dup-option {
  margin-top: 14px; padding: 12px 14px;
  background: #fafafa; border: 1px solid #e6e8eb; border-radius: 8px;
}
.dup-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #374151; cursor: pointer; }
.dup-check input { width: 15px; height: 15px; accent-color: #c01830; cursor: pointer; }
.dup-check b { color: #c01830; }
.dup-hint { margin-top: 8px; font-size: 12px; line-height: 1.75; color: #6b7280; }

.upload-result {
  margin-top: 14px; padding: 14px 16px; border-radius: 8px;
  border: 1px solid #e6e8eb; background: #fff;
}
.ur-head { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 10px; }
.ur-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ur-stat { padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.ur-stat.add { background: #ecfdf5; color: #047857; }
.ur-stat.skip { background: #fff7ed; color: #b45309; }
.ur-stat.repl { background: #eff6ff; color: #1d4ed8; }
.ur-list { max-height: 260px; overflow-y: auto; border-top: 1px dashed #e6e8eb; padding-top: 10px; }
.ur-item {
  display: flex; gap: 8px; align-items: baseline;
  padding: 5px 0; font-size: 12px; line-height: 1.6; border-bottom: 1px solid #f3f4f6;
}
.ur-item:last-child { border-bottom: none; }
.ur-tag {
  flex: none; padding: 1px 7px; border-radius: 4px; font-size: 11px;
  font-weight: 600; color: #fff; background: #9ca3af;
}
.ur-tag.skip { background: #f59e0b; }
.ur-tag.repl { background: #2563eb; }
.ur-name { color: #374151; word-break: break-all; }
.ur-why { color: #9ca3af; flex: none; font-size: 11px; }
.ur-more { padding-top: 8px; font-size: 12px; color: #9ca3af; }

/* ===== 研报预览（前 3 页） ===== */
.preview-modal { max-height: 88vh; display: flex; flex-direction: column; }
.pv-head { padding-right: 32px; }
.pv-title { font-size: 16px; font-weight: 700; color: #111827; line-height: 1.6; }
.pv-meta { font-size: 12.5px; color: #9ca3af; margin-top: 5px; }
.pv-actions {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid #f0f1f3;
}
.pv-actions.bottom { border-bottom: none; border-top: 1px solid #f0f1f3; justify-content: center; }
.pv-tip { font-size: 12.5px; color: #6b7280; }
.pv-tip b { color: #c01830; }
.pv-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px 2px; min-height: 220px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.pv-page { width: 100%; text-align: center; }
.pv-page img {
  /* 撑满弹窗宽度（图片按 110 DPI 渲染，放大后文字仍清晰） */
  width: 100%; max-width: 100%;
  border: 1px solid #e6e8eb; border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
}
.pv-page-no { font-size: 12px; color: #9ca3af; margin-bottom: 7px; }
.pv-note { font-size: 13px; color: #9ca3af; text-align: center; padding: 4px 0 6px; }
/* COMPLIANCE-BLOCK：预览弹窗版权提示 */
.pv-note.pv-copyright { font-size: 11.5px; color: #b0b6bf; border-top: 1px dashed #eef0f3; margin-top: 6px; padding-top: 8px; line-height: 1.7; }

/* ===== 页脚法务链接 ===== */
/* COMPLIANCE-BLOCK：页脚合规信息区（版权声明 + 主办单位 + 举报入口）
   2026-09-17 为通过公安联网备案审核新增；恢复时连同 index.html 里同名注释块一起删除 */
.footer .cpl {
  max-width: 880px; margin: 16px auto 0; text-align: left; padding: 14px 18px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09); border-radius: 10px;
  font-size: 12px; line-height: 1.85; color: #9b8387;
}
.footer .cpl b { color: #d8c0c4; font-size: 12px; font-weight: 700; }
.footer .cpl a { color: #c9a2a8; text-decoration: underline; }
.footer .cpl a:hover { color: #fff; }
.footer .cpl-org {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.12); color: #8a7276;
}
@media (max-width: 640px) {
  .footer .cpl { font-size: 11.5px; padding: 12px 14px; }
}

.footer .legal-links { margin-top: 8px; font-size: 13px; }
/* COMPLIANCE-BLOCK：2026-09-17 新增「违法和不良信息举报」后，窄屏会把「举报」的
   「报」字挤到下一行。故每个链接整体不折行，窄屏再收一号字，四项可排一行。 */
.footer .legal-links a { color: #6b7280; text-decoration: none; white-space: nowrap; }
.footer .legal-links a:hover { color: #c01830; text-decoration: underline; }
.footer .legal-links .sep { color: #d1d5db; margin: 0 4px; }
@media (max-width: 640px) {
  .footer .legal-links { font-size: 12px; }
  .footer .legal-links .sep { margin: 0 3px; }
}
.footer .icp { margin-top: 6px; font-size: 12px; color: #9ca3af; }
.footer .icp:empty { display: none; }
.footer .icp a { color: #9ca3af; text-decoration: none; }
.footer .icp a:hover { color: #fff; text-decoration: underline; }
.footer .icp .sep { color: #4a3a3c; margin: 0 4px; }
/* 公安联网备案编号（2026-09-18 通过）：官方图标在前、编号在后 */
.footer .icp .mps { display: inline-flex; align-items: center; gap: 4px; }
.footer .icp .mps img { width: 16px; height: 16px; display: block; }
.footer .icp .mps:hover img { opacity: .85; }

/* ===== 协议勾选 ===== */
.agree-row { margin: 12px 0 2px; }
.agree-label {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 12.5px; line-height: 1.7; color: #6b7280; cursor: pointer;
}
.agree-label input { width: 14px; height: 14px; margin-top: 3px; flex: none; accent-color: #c01830; cursor: pointer; }
.agree-label a { color: #c01830; text-decoration: none; }
.agree-label a:hover { text-decoration: underline; }
.pay-agree {
  margin-top: 12px; padding: 10px 12px;
  background: #fafafa; border: 1px solid #e6e8eb; border-radius: 6px;
}

/* ============ 顶栏头像入口 ============ */
.avatar-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: none; padding: 5px 12px 5px 6px; border-radius: 999px; cursor: pointer; transition: background .15s;
}
.avatar-btn:hover { background: #fff0f2; }
.avatar-circle {
  width: 42px; height: 42px; border-radius: 50%; overflow: hidden; display: inline-flex; flex: 0 0 auto;
  box-shadow: 0 2px 8px rgba(160,20,40,.26); background: #c01830; position: relative;
}
.avatar-circle .avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-fallback { display: none; }
.avatar-circle.no-img .avatar-fallback,
.profile-avatar.no-img .avatar-fallback {
  display: flex; align-items: center; justify-content: center; position: absolute; inset: 0;
  color: #fff; font-weight: 700; font-size: 16px;
}
/* 会员状态色块：按等级配色（灰 → 粉 → 橙红 → 金，逐级升级） */
.avatar-name {
  font-size: 16px; font-weight: 800; line-height: 1.2;
  padding: 5px 13px; border-radius: 999px; border: 1px solid transparent;
  max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.avatar-name.lv-free     { background: #f1f3f5; color: #6b7280; border-color: #e2e6ea; }
.avatar-name.lv-basic    { background: #FFE1E8; color: #C9184A; border-color: #FFC9D6; }
.avatar-name.lv-super    { background: linear-gradient(135deg, #ff8a3d, #c01830); color: #fff; border-color: #c01830; box-shadow: 0 3px 10px rgba(192,24,48,.28); }
.avatar-name.lv-lifetime { background: linear-gradient(135deg, #FFD86F, #E0A300); color: #6b3f00; border-color: #E0A300; box-shadow: 0 3px 10px rgba(224,163,0,.32); }

/* ============ 个人中心弹窗 ============ */
.profile-modal { max-width: 540px; }
.profile-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid #f1f2f4; }
.profile-avatar { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; box-shadow: 0 3px 10px rgba(160,20,40,.22); background: #c01830; position: relative; }
.profile-avatar .profile-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-id { min-width: 0; }
.profile-name { font-size: 18px; font-weight: 800; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-level { font-size: 13px; color: #c01830; margin-top: 4px; font-weight: 600; }

.profile-balance { display: flex; gap: 10px; margin: 16px 0; }
.pb-item { flex: 1; background: #fafbfc; border: 1px solid #eef0f2; border-radius: 12px; padding: 14px 8px; text-align: center; }
.pb-num { font-size: 22px; font-weight: 800; color: #111827; }
.pb-total .pb-num { color: #c01830; font-size: 32px; }
/* 个人中心只保留一个额度格：整行单卡，居中突出 */
.profile-balance .pb-item:only-child { padding: 18px 8px; }
.profile-balance .pb-item:only-child .pb-label { font-size: 13px; margin-top: 6px; }
.pb-label { font-size: 12px; color: #9ca3af; margin-top: 4px; }

.profile-section { margin-top: 8px; }
.ps-title { font-size: 15px; font-weight: 700; color: #111827; margin: 14px 0 8px; }
.ps-sub { font-size: 12px; color: #9ca3af; font-weight: 400; }
.ps-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f3f4f6; }
.ps-label { width: 64px; font-size: 14px; color: #6b7280; flex: 0 0 auto; }
.ps-val { flex: 1; font-size: 14px; color: #111827; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-edit { padding: 10px 0 4px; border-bottom: 1px solid #f3f4f6; }
.ps-edit .msg { text-align: left; margin-top: 8px; }

@media (max-width: 540px) {
  .profile-balance { flex-wrap: wrap; }
  .avatar-name { display: none; }
}

/* ============ 发票（个人中心 / 管理后台） ============ */
.modal-lg { max-width: 600px; }
.modal-h { font-size: 19px; font-weight: 800; color: #111827; margin-bottom: 12px; }
.invoice-seller { font-size: 13px; color: #6b7280; background: #f7f8fa; border: 1px solid #eef0f2; border-radius: 10px; padding: 9px 12px; margin-bottom: 16px; }

.inv-section { margin-bottom: 18px; }
.inv-sec-title { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 10px; }
.inv-orders { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; border: 1px solid #eef0f2; border-radius: 10px; padding: 8px; background: #fcfcfd; }
.inv-order { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; background: #fff; border: 1px solid #eef0f2; font-size: 13px; }
.inv-order input[type=checkbox] { width: 16px; height: 16px; flex: 0 0 auto; accent-color: #c01830; }
.inv-order-used { opacity: .6; background: #f3f4f6; }
.io-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1f2328; }
.io-amt { font-weight: 700; color: #c01830; flex: 0 0 auto; }
.io-date { color: #9ca3af; font-size: 12px; flex: 0 0 auto; }
.io-tag { color: #c01830; font-size: 12px; font-weight: 600; flex: 0 0 auto; }
.inv-amount { margin-top: 10px; font-size: 14px; color: #374151; }
.inv-amount b { font-size: 18px; color: #c01830; margin-left: 4px; }

/* 发票类型分段控件（需覆盖 .form-item label / .form-item input 的默认样式，故提权到 .form-item .seg） */
.form-item .seg { display: inline-flex; border: 1px solid #e2e5ea; border-radius: 10px; overflow: hidden; }
.form-item .seg .seg-item { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; margin: 0; font-size: 14px; color: #374151; cursor: pointer; user-select: none; }
.form-item .seg .seg-item + .seg-item { border-left: 1px solid #e2e5ea; }
.form-item .seg .seg-item input[type=radio] { width: auto; height: auto; padding: 0; margin: 0; border: none; border-radius: 50%; accent-color: #c01830; }
.req { color: #c01830; font-weight: 700; }

/* 发票弹窗里的多行备注（.form-item input 不匹配 textarea，需单独补样式） */
.form-item textarea { width: 100%; border: 1px solid #d6dae0; border-radius: 8px; padding: 8px 12px; font-size: 14px; outline: none; resize: vertical; font-family: inherit; box-sizing: border-box; }
.form-item textarea:focus { border-color: #c01830; }

/* 我的发票申请列表 */
.inv-list { display: flex; flex-direction: column; gap: 10px; }
.inv-item { border: 1px solid #eef0f2; border-radius: 12px; padding: 12px 14px; background: #fff; }
.inv-item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.iv-title { font-size: 15px; font-weight: 700; color: #111827; }
.iv-badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; flex: 0 0 auto; }
.iv-pending { color: #b45309; background: #fff7ed; border: 1px solid #fed7aa; }
.iv-issued { color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; }
.inv-item-meta { font-size: 13px; color: #6b7280; line-height: 1.7; }
.inv-item-meta a { color: #c01830; }
.iv-time { color: #9ca3af; font-size: 12px; }

/* 管理后台：发票申请列表 */
.inv-admin-toolbar { display: flex; align-items: center; gap: 14px; margin: 18px 0 14px; flex-wrap: wrap; }
.inv-admin-toolbar select { height: 36px; border: 1px solid #d6dae0; border-radius: 8px; padding: 0 10px; font-size: 14px; }
.inv-admin-tip { font-size: 13px; color: #9ca3af; }
.inv-admin-list { display: flex; flex-direction: column; gap: 12px; }
.inv-admin-card { border: 1px solid #e8eaed; border-radius: 14px; padding: 14px 16px; background: #fff; box-shadow: 0 1px 3px rgba(17,24,39,.04); }
.iv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.inv-admin-card .iv-head .iv-title { font-size: 16px; }
.iv-meta { font-size: 13px; color: #6b7280; line-height: 1.7; }
.iv-meta a { color: #c01830; }
.inv-admin-actions { margin-top: 12px; display: flex; justify-content: flex-end; }

/* 管理后台：开具弹窗信息区 */
.inv-ap-info { background: #f7f8fa; border: 1px solid #eef0f2; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.inv-ap-info .iv-meta { color: #374151; }
.inv-ap-info b { color: #111827; }

/* ================== 关键词匹配方式（分词 / 关键词不分割） ==================
   三处同步：① Hero 搜索框下 ② 吸顶检索条内 ③ 结果区提示条
   深底 / 浅底两套皮肤，选中态由 setSearchMode() 按 [data-sm] 统一同步 */

/* --- 分段控件本体（默认＝深底皮肤） --- */
.sm-seg {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
}
.sm-item {
  border: 0; background: transparent; color: rgba(255,255,255,.92);
  font-size: 15px; font-weight: 700; padding: 9px 22px; border-radius: 999px;
  cursor: pointer; line-height: 1.25; white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s, transform .08s;
}
.sm-item:hover { background: rgba(255,255,255,.26); color: #fff; }
.sm-item:active { transform: scale(.97); }
/* 深底上选中态用「纯白底 + 深红字」，对比最强、最显眼 */
.sm-item.sel { background: #fff; color: #c01830; font-weight: 800; box-shadow: 0 3px 10px rgba(0,0,0,.2); }

/* --- 浅底皮肤（结果区提示条） --- */
.sm-seg.light { background: #fff; border-color: #e3ddd8; }
.sm-seg.light .sm-item { color: #6b7078; }
.sm-seg.light .sm-item:hover { background: #fff1ee; color: #c01830; }
.sm-seg.light .sm-item.sel { background: linear-gradient(135deg, #ff7a1a, #c01830); color: #fff; }

/* --- ① Hero 区 --- */
.search-mode { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.sm-label { color: rgba(255,255,255,.85); font-size: 14px; font-weight: 600; letter-spacing: .5px; }
.sm-tip { flex-basis: 100%; color: rgba(255,255,255,.75); font-size: 12.5px; line-height: 1.6; }

/* --- ② 吸顶检索条内 --- */
.ss-modes { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ss-modes .sm-item { font-size: 14px; padding: 7px 16px; }

/* --- ③ 结果区提示条 --- */
.sm-hint {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 10px 0 0; padding: 10px 14px;
  background: #fff7f4; border: 1px solid #ffdcd2; border-radius: 10px;
  font-size: 13px; color: #6b7078;
}
.smh-label { color: #374151; font-weight: 700; }
.smh-note b { color: #c01830; font-weight: 700; }

@media (max-width: 720px) {
  .sm-item { font-size: 14px; padding: 8px 16px; }
  .ss-modes { flex-basis: 100%; }
  .ss-modes .sm-item { font-size: 13.5px; padding: 7px 14px; }
}
@media (max-width: 480px) {
  .sm-tip { display: none; }
  .sm-item { font-size: 13.5px; padding: 8px 13px; }
  .sm-hint { gap: 8px; padding: 9px 12px; }
}

/* ================== 搜索历史 / 动态热词 ================== */
.hot-words #hotWordList { display: contents; }
.hw-label { margin-right: 2px; }
.hot-words .hw-clear {
  background: transparent !important; color: rgba(255,255,255,.6) !important;
  font-size: 12px !important; padding: 5px 8px !important; text-decoration: underline;
}
.hot-words .hw-clear:hover { color: #fff !important; background: rgba(255,255,255,.14) !important; }
/* 历史词条样式略淡于热词，避免抢主视觉 */
#historyWords { margin-top: 10px; opacity: .85; }
#historyWords a { background: rgba(255,255,255,.08); font-size: 12.5px; padding: 4px 12px; }

/* ================== 零结果页：给出下一步动作 ================== */
.empty-rich { padding: 26px 20px; }
.empty-title { font-size: 16px; font-weight: 700; color: #374151; margin-bottom: 12px; }
.empty-tips { list-style: none; padding: 0; margin: 0 0 16px; }
.empty-tips li {
  position: relative; padding-left: 18px; margin-bottom: 7px;
  font-size: 13.5px; color: #6b7078; line-height: 1.7;
}
.empty-tips li::before {
  content: ''; position: absolute; left: 4px; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: #ffb199;
}
.empty-tips a { color: #c01830; font-weight: 600; }
.empty-sub { font-size: 13px; color: #8a8f99; padding-top: 12px; border-top: 1px dashed #e8e2de; }
.empty-sub-btn {
  color: #fff !important; background: linear-gradient(135deg, #ff7a1a, #c01830);
  padding: 5px 14px; border-radius: 999px; font-weight: 600; font-size: 12.5px; margin: 0 4px;
}

/* ================== 预览弹窗：相关研报推荐 ================== */
.pv-related { margin-top: 18px; padding-top: 16px; border-top: 1px solid #f0eae6; }
.pvr-title { font-size: 14.5px; font-weight: 700; color: #374151; margin-bottom: 10px; }
.pvr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pvr-item {
  display: block; padding: 10px 12px; border: 1px solid #f0eae6; border-radius: 10px;
  background: #fffaf8; text-decoration: none !important; transition: border-color .15s, background .15s;
}
.pvr-item:hover { border-color: #ffb199; background: #fff5f1; }
.pvr-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13px; color: #374151; line-height: 1.5; margin-bottom: 5px;
}
.pvr-meta { font-size: 11.5px; color: #a1a6ae; }

/* ================== 后台数据看板 ================== */
.an-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin-top: 14px; }
.an-card { background: #fff; border: 1px solid #e8eaed; border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(17,24,39,.04); }
.an-card.wide { grid-column: 1 / -1; }
.an-card.warn { border-color: #ffd8b8; background: #fffaf5; }
.an-card-h { font-size: 14.5px; font-weight: 700; color: #1f2430; margin-bottom: 12px; }
.an-empty { font-size: 13px; color: #a1a6ae; padding: 18px 0; text-align: center; }
.an-table td { padding: 7px 8px !important; font-size: 13px; }
.an-rank { width: 26px; color: #c01830; font-weight: 800; }
.an-num { text-align: right; color: #6b7078; white-space: nowrap; }

.an-trend { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 6px; }
.an-trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.an-trend-bar {
  width: 100%; max-width: 34px; border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #ff7a1a, #c01830); min-height: 2px;
}
.an-trend-x { font-size: 10px; color: #a1a6ae; margin-top: 5px; white-space: nowrap; }

.an-bars { display: flex; flex-direction: column; gap: 8px; }
.an-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.an-bar-name { flex: 0 0 96px; color: #4b5563; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-bar-track { flex: 1; height: 9px; background: #f2f4f6; border-radius: 999px; overflow: hidden; }
.an-bar-track i { display: block; height: 100%; background: linear-gradient(90deg, #ff7a1a, #c01830); border-radius: 999px; }
.an-bar-val { flex: 0 0 42px; text-align: right; color: #6b7078; }

/* ================== 额度 / 到期提醒条 ================== */
.warn-box {
  max-width: 1200px; margin: 12px auto 0; padding: 11px 14px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(135deg, #fff7ed, #fff1f0);
  border: 1px solid #ffd8b8; border-radius: 12px; font-size: 13.5px; color: #7c4a1d;
}
.warn-box .wb-icon {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%;
  background: #ff7a1a; color: #fff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.warn-box .wb-text { flex: 1; min-width: 200px; line-height: 1.6; }
.warn-box .wb-text b { color: #c01830; font-weight: 800; }
.warn-box .wb-btn {
  border: 0; padding: 7px 18px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #ff7a1a, #c01830); color: #fff; font-size: 13px; font-weight: 700;
}
.warn-box .wb-close {
  border: 0; background: transparent; color: #b08a63; font-size: 20px; line-height: 1;
  cursor: pointer; padding: 0 4px;
}
.warn-box .wb-close:hover { color: #7c4a1d; }
@media (max-width: 640px) {
  .warn-box { font-size: 12.5px; padding: 10px 12px; }
  .warn-box .wb-btn { width: 100%; }
}
