/* ============ 基础 ============ */
* { 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-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; }

.user-info { display: flex; align-items: center; gap: 14px; }
.credits-badge {
  background: #fff7e6; border: 1px solid #f5d28a; color: #b45309; padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: 13px;
}

/* ============ 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-logo-sub { color: rgba(255,255,255,.82); font-size: 16px; margin-top: 6px; letter-spacing: 2px; }
.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; }

/* ============ 主体 ============ */
.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; }

/* VIP 横幅 */
.vip-banner {
  background: linear-gradient(90deg, #fff0f2 0%, #fff8f0 100%);
  border: 1px solid #f8dce0;
  border-radius: 16px; padding: 26px 32px; margin: 18px 0 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.vip-banner .vip-text { display: flex; flex-direction: column; gap: 6px; }
.vip-banner .vip-text b { font-size: 20px; color: #c01830; }
.vip-banner .vip-text span { color: #6b7280; font-size: 14px; }

/* 分类标签行 */
/* ============ 筛选面板（新版） ============ */
.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);
}
.filter-top {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding-bottom: 16px; margin-bottom: 14px;
  border-bottom: 1px solid #f1f3f6;
}
.filter-field { display: flex; align-items: center; gap: 8px; }
.filter-field .fi,
.quick-row .fi { width: 16px; height: 16px; color: #94a3b8; flex-shrink: 0; }
.filter-label,
.qf-label { font-size: 13px; color: #64748b; font-weight: 500; flex-shrink: 0; }
.date-range {
  display: flex; align-items: center; gap: 6px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 4px 8px;
}
.date-range input[type="date"] {
  height: 32px; border: none; background: transparent;
  font-size: 13px; color: #334155; outline: none;
}
.date-range input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
.date-range .date-sep { color: #94a3b8; font-size: 12px; padding: 0 2px; }
#sortFilter {
  height: 36px; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 0 12px; font-size: 13px; color: #334155; background: #fff;
  outline: none; min-width: 130px;
}
#sortFilter:focus { border-color: #c01830; }

/* 仅看可下载：开关式复选框 */
.filter-toggle {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  user-select: none; margin-left: auto;
}
.filter-toggle input { display: none; }
.toggle-track {
  position: relative; width: 38px; height: 20px; border-radius: 999px;
  background: #e2e8f0; transition: background .2s;
}
.toggle-thumb {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18);
  transition: transform .2s;
}
.filter-toggle input:checked + .toggle-track { background: #c01830; }
.filter-toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(18px); }
.toggle-text { font-size: 13px; color: #475569; font-weight: 500; }

/* 保留旧分类芯片（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; background: #fff0f2; border: 1px solid #f8dce0; border-radius: 10px;
  padding: 10px 16px; margin-bottom: 12px; color: #a80030; font-weight: 600;
}
.selection-bar.show { display: flex; }

/* 检索模式吸顶条（进入检索后常驻顶部，便于二次检索） */
.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; }
.ss-count { font-size: 13.5px; color: rgba(255,255,255,.92); white-space: nowrap; }
.ss-count b { color: #fff; font-size: 17px; font-weight: 800; }
.ss-clear {
  padding: 8px 16px; font-size: 13px; color: #fff; background: transparent;
  border: 1px solid rgba(255,255,255,.6); border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.ss-clear:hover { background: rgba(255,255,255,.15); border-color: #fff; }
@media (max-width: 720px) {
  .sticky-search { padding: 10px 12px; }
  .ss-count { font-size: 12px; }
  .ss-btn { padding: 0 16px; }
  .ss-box { min-width: 160px; height: 42px; }
}

/* 资料类型 Tab（全部 / 机构 / 券商 / 期货） */
.type-tabs {
  display: flex; gap: 4px; margin: 16px 0 12px;
  border-bottom: 1px solid #eef0f3;
}
.tt-tab {
  padding: 10px 22px; font-size: 14.5px; color: #6b7280; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; user-select: none;
  transition: color .12s, border-color .12s;
}
.tt-tab:hover { color: #c01830; }
.tt-tab.sel { color: #c01830; border-bottom-color: #c01830; font-weight: 700; }

/* 列表中的资料类型标签 */
.col-cat { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.type-tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.type-institution { background: #ffe3e6; color: #a80030; }
.type-broker      { background: #dde8ff; color: #1e40af; }
.type-futures     { background: #d8f0d8; color: #166534; }

/* 上传表单：资料类型单选 */
.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;
  /* 顺序：勾选 | 更新日期 | 研报名称 | 页码 | 分类 | 操作 */
  grid-template-columns: 30px 112px minmax(0, 1fr) 76px 150px 92px;
  gap: 14px;
  align-items: center;
}
.list-head {
  padding: 11px 18px; background: #f9fafb;
  border: 1px solid #eef0f3; border-bottom: none; border-radius: 10px 10px 0 0;
  color: #6b7280; font-size: 13px; font-weight: 600;
}
.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; }
.report-title .ext { color: #9ca3af; font-weight: 400; }
.report-title .hl { color: #c01830; font-weight: 800; }
.col-pages { color: #4a5568; font-size: 13px; white-space: nowrap; }
.col-date { color: #374151; font-size: 13px; font-weight: 400; white-space: nowrap; }
.list-head .col-date { color: #6b7280; }
.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; align-items: center; justify-content: center; padding: 20px;
}
.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);
}
.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;
}
.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; }
.pkg-card .pkg-feats {
  border-top: 1px dashed #f0d8d8; padding-top: 12px; margin-top: auto;
  display: flex; flex-direction: column; gap: 7px;
}
.pkg-card .pf { font-size: 12.5px; color: #6b7280; }
.pkg-card .pf b { color: #c01830; font-weight: 700; }

/* 支付模拟框 */
.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); }
  .vip-banner { flex-direction: column; text-align: center; }
}
@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; }
  /* 移动端隐藏页码/分类列 */
  .list-head, .report-row { grid-template-columns: 26px 88px minmax(0, 1fr) 78px; gap: 10px; padding-left: 12px; padding-right: 12px; }
  .col-pages, .col-cat { display: none; }
  .filter-top { gap: 12px; padding-bottom: 12px; margin-bottom: 12px; }
  .filter-field { flex-wrap: wrap; width: 100%; }
  .filter-toggle { margin-left: 0; width: 100%; justify-content: flex-start; }
  .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; }

/* 会员等级标识 */
.member-badge {
  display: inline-flex; align-items: center;
  background: linear-gradient(90deg, #c01830, #d81830);
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.member-badge.free { background: #9ca3af; }

/* 导航中的「开通会员」高亮 */
.nav-menu .nav-vip { color: #c01830; font-weight: 700; }
.nav-menu .nav-vip:hover { color: #900018; }

/* 登录方式切换 */
.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; }

/* 会员推广弹窗 */
.promo-modal { text-align: center; padding: 32px 28px 24px; max-width: 920px; }
.promo-head { margin-bottom: 20px; }
.promo-badge {
  display: inline-block; background: #fff0f2; color: #c01830;
  font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 999px; margin-bottom: 12px;
}
.promo-title { font-size: 24px; font-weight: 800; color: #111827; margin-bottom: 8px; }
.promo-sub { font-size: 14px; color: #6b7280; }
.promo-sub b { color: #c01830; }

/* 四档套餐排成一行 */
.promo-pkgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.promo-pkg {
  position: relative; border: 1px solid #e6e8eb; border-radius: 12px;
  padding: 16px 10px 14px; cursor: pointer; transition: .15s; background: #fff;
  display: flex; flex-direction: column;
}
.promo-pkg:hover { border-color: #c01830; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(192,24,48,.12); }
.promo-pkg.rec { border-color: #c01830; background: #fffafa; }
.promo-tag {
  position: absolute; top: -10px; right: 10px; background: #c01830; color: #fff;
  font-size: 11px; padding: 2px 10px; border-radius: 999px;
}
.pp-name { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 6px; }
.pp-price { color: #c01830; font-size: 13px; margin-bottom: 6px; }
.pp-price b { font-size: 24px; font-weight: 800; }
.pp-price small { font-size: 11px; color: #9ca3af; font-weight: 400; margin-left: 2px; }
.pp-quota { font-size: 11.5px; color: #6b7280; margin-bottom: 3px; }
.pp-quota b { color: #c01830; }
.pp-quota.sub { color: #9ca3af; }

.promo-foot { display: flex; gap: 12px; justify-content: center; margin-top: 6px; }
.promo-note { margin-top: 14px; font-size: 12px; color: #9ca3af; }

/* 开通/充值弹窗（新版） */
.buy-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-right: 36px;
}
.buy-head h2 { margin: 0; }
.bal-badge { font-size: 13px; color: #6b7280; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.bal-badge b { color: #c01830; font-size: 15px; }
.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: 16px 0 10px;
}
.buy-section-title span { font-size: 12px; font-weight: 400; color: #9ca3af; }

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

/* 永久档卡片：独占整行，横向排布（左：名称+有效期，中：价格，右：卖点） */
.pkg-card.wide {
  grid-column: 1 / -1;
  flex-direction: row; align-items: center; gap: 18px;
  text-align: left; padding: 20px 24px;
}
.pkg-card.wide .pkg-left { margin-left: 24px; 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; }
.pkg-card.wide .pkg-price b { font-size: 34px; }
.pkg-card.wide .pkg-feats {
  border-top: none; border-left: 1px dashed #f0d8d8;
  padding-top: 0; padding-left: 20px; margin: 0;
  flex-direction: row; align-items: center; gap: 20px; margin-left: auto;
}
/* 窄屏：退回竖排，仍然独占整行 */
@media (max-width: 720px) {
  .pkg-grid { grid-template-columns: repeat(2, 1fr); }
  .pkg-card.wide {
    flex-direction: column; align-items: stretch; text-align: center;
    padding: 20px 14px 16px; gap: 4px;
  }
  .pkg-card.wide .pkg-left { margin-left: 0; }
  .pkg-card.wide .pkg-price { margin: 8px 0 0; }
  .pkg-card.wide .pkg-dur { margin: 7px 0 13px; }
  .pkg-card.wide .pkg-feats {
    border-left: none; border-top: 1px dashed #f0d8d8;
    padding-left: 0; padding-top: 12px; margin-left: 0;
    flex-direction: column; gap: 7px;
  }
}
@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; }

/* ===== 页脚法务链接 ===== */
.footer .legal-links { margin-top: 8px; font-size: 13px; }
.footer .legal-links a { color: #6b7280; text-decoration: none; }
.footer .legal-links a:hover { color: #c01830; text-decoration: underline; }
.footer .legal-links .sep { color: #d1d5db; margin: 0 4px; }
.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; }

/* ===== 协议勾选 ===== */
.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;
}
