/* =========================================================
   学汇教辅 · 列表页 / 详情页样式
   ========================================================= */

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-400);
}
.breadcrumb a { transition: color .16s; }
.breadcrumb a:hover { color: var(--blue-600); }
.breadcrumb .crumb-current {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-500);
}

/* =========================================================
   列表页
   ========================================================= */
.page-hero {
  padding: 8px 0 28px;
  background: linear-gradient(180deg, #eef5ff 0%, #f9fbff 70%, #fff 100%);
  border-bottom: 1px solid #eef2f9;
}
.page-hero .breadcrumb { padding: 18px 0 16px; }

.page-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.page-hero-copy h1 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -.6px;
  color: var(--ink-900);
  line-height: 1.3;
}
.page-hero-copy p { margin-top: 8px; font-size: 13.5px; line-height: 1.7; color: var(--ink-500); max-width: 620px; }

.page-hero-meta { display: flex; gap: 8px; flex-shrink: 0; }
.page-hero-meta span {
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--ink-500);
  background: rgba(255, 255, 255, .8);
  border: 1px solid #e3ebf8;
  text-align: center;
  white-space: nowrap;
}
.page-hero-meta b { display: block; font-size: 16px; color: var(--ink-900); line-height: 1.4; }

.page-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 660px;
  margin-top: 20px;
  padding: 6px 6px 6px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(37, 99, 235, .08);
  transition: border-color .2s, box-shadow .2s;
}
.page-search:focus-within { border-color: #b9cdfb; box-shadow: 0 14px 32px rgba(37, 99, 235, .14); }
.page-search .search-icon { display: flex; color: var(--ink-400); }
.page-search .search-icon svg { width: 19px; height: 19px; }
.page-search input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: none;
  background: none;
  font-size: 14px;
  color: var(--ink-700);
}
.page-search input::placeholder { color: var(--ink-400); }
.page-search .btn { height: 42px; padding: 0 22px; }

/* ---------- 列表布局 ---------- */
.list-section { padding: 26px 0 64px; background: var(--bg); }

.list-layout {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.filter-side {
  position: sticky;
  top: 92px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.filter-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f4fa;
}
.filter-side-head h3 { font-size: 15px; color: var(--ink-900); }
.filter-reset {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink-400);
}
.filter-reset:hover { color: var(--blue-600); background: var(--blue-50); }

.filter-group { padding: 14px 0 10px; border-bottom: 1px dashed #eef2f9; }
.filter-group-title { margin-bottom: 8px; font-size: 12.5px; color: var(--ink-400); }
.filter-options { display: flex; flex-wrap: wrap; gap: 5px; }
.filter-options .chip { padding: 4px 9px; font-size: 12px; border-radius: 7px; }

.filter-apply { display: none; width: 100%; margin-top: 16px; }
.filter-tip { margin-top: 12px; font-size: 11px; line-height: 1.6; color: var(--ink-400); text-align: center; }

.filter-backdrop { display: none; }

/* ---------- 工具栏 ---------- */
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.toolbar-left { display: flex; align-items: center; gap: 12px; }
.result-count { font-size: 13px; color: var(--ink-500); }
.result-count b { color: var(--blue-700); }

.filter-trigger {
  display: none;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink-700);
  background: #f2f6fc;
}
.filter-trigger svg { width: 15px; height: 15px; }
.filter-badge {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 16px;
  color: #fff;
  background: var(--blue-600);
  text-align: center;
}

.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.active-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--blue-700);
  background: #e9f1ff;
  transition: background .16s;
}
.active-tag svg { width: 12px; height: 12px; }
.active-tag:hover { background: #dbe8ff; }

.card-grid.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--ink-600);
  background: #fff;
  border: 1px solid var(--line);
  transition: all .16s;
}
.page-btn:hover:not(:disabled) { color: var(--blue-700); border-color: #c6d8fb; }
.page-btn.is-active {
  color: #fff;
  font-weight: 600;
  background: var(--blue-600);
  border-color: var(--blue-600);
  box-shadow: 0 6px 14px rgba(37, 99, 235, .22);
}
.page-btn.arrow { padding: 0 14px; font-size: 12.5px; }
.page-btn:disabled { opacity: .45; cursor: not-allowed; }
.page-gap { padding: 0 4px; font-size: 12px; color: var(--ink-400); }

/* =========================================================
   详情（内容）页
   ========================================================= */
.detail-page { background: #fff; }
.detail-wrap {
  padding-bottom: 64px;
  background: linear-gradient(180deg, #f3f8ff 0%, #fff 360px);
}
.detail-wrap .breadcrumb { padding: 20px 0 18px; }

.detail-wrap .container { max-width: var(--container); }
.detail-layout { display: block; }
.detail-main { min-width: 0; }

.detail-head { padding-bottom: 20px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.detail-tags span {
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  color: #1d4ed8;
  background: #eef4ff;
}
.detail-tags span.green { color: #0f766e; background: #e6faf5; }

.detail-title {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.5px;
  color: var(--ink-900);
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ink-400);
}
.detail-meta span { display: inline-flex; align-items: center; gap: 5px; }
.detail-meta svg { width: 15px; height: 15px; }

/* ---------- 在线预览 ---------- */
.preview-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f4fa;
}
.preview-head-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.preview-live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-900); }
.preview-live i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .14);
}
.preview-sub { font-size: 12px; color: var(--ink-400); }
.preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-500);
  background: #f4f7fc;
  transition: all .16s;
}
.preview-btn svg { width: 14px; height: 14px; }
.preview-btn:hover { color: var(--blue-700); background: #e9f1ff; }

.preview-stage {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 22px;
  background: #eef2f8;
  scroll-snap-type: x mandatory;
}
.preview-stage::-webkit-scrollbar { height: 8px; }
.preview-stage::-webkit-scrollbar-thumb { background: #ced8e8; border-radius: 999px; }
.preview-stage::-webkit-scrollbar-track { background: transparent; }

.paper {
  position: relative;
  flex: 0 0 270px;
  height: 372px;
  padding: 18px 20px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .1);
  overflow: hidden;
  scroll-snap-align: start;
}
.paper-brand { font-size: 9px; letter-spacing: 1.5px; color: #93b4f7; }
.paper-brand span { font-size: 8px; color: #c0d2f2; margin-left: 3px; }
.paper-head {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 9px;
  color: #94a3b8;
}
.paper-title { margin: 10px 0 3px; font-size: 11.5px; font-weight: 700; line-height: 1.45; color: #1e293b; }
.paper-sub { font-size: 8.5px; color: #94a3b8; }
.paper-sec { margin-top: 11px; font-size: 10px; font-weight: 600; color: #334155; }
.paper-line { height: 5px; margin-top: 7px; border-radius: 3px; background: #e9eef7; }
.paper-line.w90 { width: 90%; }
.paper-line.w75 { width: 75%; }
.paper-line.w95 { width: 95%; }
.paper-line.w60 { width: 60%; }
.paper-line.w85 { width: 85%; }
.paper-line.w70 { width: 70%; }
.paper-foot {
  position: absolute;
  left: 20px; right: 20px; bottom: 12px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
  font-size: 8.5px;
  color: #94a3b8;
  text-align: center;
}
.paper-watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 4px;
  color: rgba(37, 99, 235, .055);
  transform: rotate(-24deg);
  pointer-events: none;
}

.preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  font-size: 12px;
  color: var(--ink-500);
  background: #fbfdff;
  border-top: 1px solid #f0f4fa;
}
.preview-foot span { display: inline-flex; align-items: center; gap: 6px; }
.preview-foot svg { width: 14px; height: 14px; color: var(--ink-400); }
.preview-more { flex-shrink: 0; font-size: 12.5px; font-weight: 600; color: var(--blue-700); }
.preview-more:hover { text-decoration: underline; }

/* ---------- 内容区块 ---------- */
.detail-block {
  margin-top: 20px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.block-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.block-head h2 { font-size: 17px; font-weight: 700; color: var(--ink-900); white-space: nowrap; }
.block-line { flex: 1; height: 1px; background: #eef2f9; }
.block-tip { font-size: 11.5px; color: var(--ink-400); white-space: nowrap; }

.detail-desc { font-size: 13.5px; line-height: 1.9; color: var(--ink-600); }

/* ---------- 资料简介（三图预览） ---------- */
.intro-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.intro-shot { display: flex; flex-direction: column; min-width: 0; }
.intro-shot-label {
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-400);
  text-align: center;
}
.intro-body { min-width: 0; }

.intro-page {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-height: 240px;
  padding: 19px 16px 14px;
  background: #fff;
  border: 1px solid #e7eef9;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .10), 0 1px 0 #eef3fb;
  overflow: hidden;
}
.intro-band {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
}
.intro-band.band-blue { background: linear-gradient(90deg, #93c5fd, #2563eb); }
.intro-band.band-green { background: linear-gradient(90deg, #6ee7b7, #0d9488); }
.intro-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e8eef8;
}
.intro-brand { font-size: 8.5px; letter-spacing: .5px; color: #9fb4d4; white-space: nowrap; }
.intro-page-tag {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  color: var(--blue-700);
  background: #eef4ff;
}
.intro-page-tag.tag-green { color: #0f766e; background: #e6faf5; }
.intro-page-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #1e293b;
}
.intro-page-meta { display: block; margin-top: 5px; font-size: 9.5px; color: #94a3b8; }
.intro-lines { margin-top: 12px; }
.intro-lines i {
  display: block;
  height: 5px;
  margin-top: 7px;
  border-radius: 3px;
  background: #eaeff7;
}
.intro-choices { display: grid; gap: 6px; margin-top: 10px; }
.intro-choices span { display: flex; align-items: center; gap: 7px; }
.intro-choices b {
  flex-shrink: 0;
  width: 14px; height: 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 7px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
}
.intro-choices i { display: block; height: 4px; border-radius: 2px; background: #eaeff7; }
.intro-page-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid #f1f5fa;
  font-size: 8.5px;
  color: #94a3b8;
}

.highlight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 12px;
  background: #f7faff;
}
.hl-ico {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}
.hl-ico.blue { color: #1d4ed8; background: #e3edff; }
.hl-ico.mint { color: #0f766e; background: #e2faf5; }
.hl-ico.amber { color: #b45309; background: #fef4e2; }
.hl-ico.violet { color: #6d28d9; background: #f1eafe; }
.highlight-item strong { display: block; font-size: 12.5px; color: var(--ink-900); line-height: 1.45; }
.highlight-item small { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.55; color: var(--ink-400); }

.toc-list { display: flex; flex-direction: column; }
.toc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px dashed #eef2f9;
}
.toc-item:last-child { border-bottom: 0; }
.toc-index { width: 22px; flex-shrink: 0; font-size: 11px; font-weight: 700; color: #93b4f7; }
.toc-info { flex: 1; min-width: 0; }
.toc-info strong { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-700); }
.toc-info small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-400); }
.toc-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11px;
  color: #1d4ed8;
  background: #eef4ff;
}

.usage-list { display: grid; gap: 12px; }
.usage-item { display: flex; align-items: flex-start; gap: 10px; }
.usage-item span {
  flex-shrink: 0;
  margin-top: 2px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-700);
  background: #eef4ff;
}
.usage-item p { font-size: 13px; line-height: 1.75; color: var(--ink-600); }
.usage-item b { color: var(--ink-900); }

/* ---------- 右侧下载栏 ---------- */
.detail-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 14px; }

.download-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .07);
}
.download-top { display: flex; align-items: center; gap: 12px; }
.download-cover {
  flex-shrink: 0;
  width: 56px; height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .14);
}
.download-cover .cover-subject { font-size: 16px; font-weight: 800; }
.download-cover .cover-form { margin-top: 2px; font-size: 8.5px; opacity: .85; }
.download-top-info { min-width: 0; }
.download-free {
  display: inline-block;
  margin-bottom: 5px;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: #0f766e;
  background: #e6faf5;
}
.download-top-info strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-900);
}
.download-top-info small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-400); }

.file-info {
  margin: 15px 0;
  padding: 12px 0;
  border-top: 1px solid #f2f6fb;
  border-bottom: 1px solid #f2f6fb;
}
.file-info li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 12px;
  color: var(--ink-400);
}
.file-info b { font-weight: 500; color: var(--ink-700); }

.download-main { width: 100%; }
.download-actions { display: flex; gap: 8px; margin-top: 9px; }
.download-actions .btn { flex: 1; height: 38px; padding: 0 10px; font-size: 13px; }
#favBtn.is-on { color: var(--amber); border-color: #fde68a; background: #fffbeb; }

.download-stats {
  display: flex;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #eef2f9;
  text-align: center;
}
.download-stats > div { flex: 1; }
.download-stats b { display: block; font-size: 16px; color: var(--ink-900); }
.download-stats span { font-size: 11px; color: var(--ink-400); }
.download-note { margin-top: 12px; font-size: 11px; line-height: 1.6; color: var(--ink-400); text-align: center; }

/* ---------- 精简版：横向下载信息条 ---------- */
.download-panel {
  margin-top: 6px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}
.dp-top { display: flex; align-items: center; gap: 14px; }
.dp-info { flex: 1; min-width: 0; }
.dp-info strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-900);
}
.dp-info small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-400); }
.dp-btn { flex-shrink: 0; height: 44px; padding: 0 24px; }
.dp-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f2f6fb;
  font-size: 12px;
  color: var(--ink-400);
}
.dp-meta b { font-weight: 500; color: var(--ink-700); }
.dp-actions { display: flex; gap: 8px; margin-left: auto; }
.dp-actions .btn { height: 32px; padding: 0 12px; font-size: 12px; }
.download-panel .download-note { text-align: left; }

@media (max-width: 720px) {
  .download-panel { padding: 14px; }
  .dp-top { flex-wrap: wrap; gap: 10px; }
  .dp-info strong { font-size: 15px; }
  .dp-btn { width: auto; height: 36px; padding: 0 14px; font-size: 12.5px; margin-left: auto; }
  .dp-meta { gap: 8px 14px; }
  .dp-actions { margin-left: 0; }
}

.uploader-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.uploader-avatar {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 15px; font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4f8dff, #1e40af);
}
.uploader-info { min-width: 0; }
.uploader-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
}
.verified {
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--blue-700);
  background: #eef4ff;
}
.uploader-sub { margin-top: 2px; font-size: 11px; color: var(--ink-400); }
.uploader-follow {
  flex-shrink: 0;
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--blue-700);
  background: #eef4ff;
  transition: all .16s;
}
.uploader-follow.is-followed { color: var(--ink-500); background: #f1f5f9; }

.notice-card {
  padding: 14px 16px;
  background: #fffdf6;
  border: 1px solid #f6ecd1;
  border-radius: 14px;
}
.notice-card h4 { margin-bottom: 6px; font-size: 12.5px; color: #92400e; }
.notice-card p { font-size: 11.5px; line-height: 1.75; color: #a16207; opacity: .85; }

/* ---------- 相关推荐 ---------- */
.related-section { margin-top: 40px; }
.related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* ---------- 移动端操作栏 ---------- */
.mobile-action {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  align-items: center;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, .06);
}
.mobile-fav {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 52px;
  font-size: 10.5px;
  color: var(--ink-500);
}
.mobile-fav svg { width: 20px; height: 20px; }
.mobile-fav.is-on { color: var(--amber); }
.mobile-download { flex: 1; height: 46px; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1080px) {
  .list-layout { grid-template-columns: 232px minmax(0, 1fr); gap: 18px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero-meta span:nth-child(2) { display: none; }
}

@media (max-width: 900px) {
  .list-layout { grid-template-columns: 1fr; }
  .filter-side {
    position: fixed;
    left: 0; right: 0; bottom: 0; top: auto;
    z-index: 95;
    max-height: 82vh;
    overflow-y: auto;
    margin: 0;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    border: 0;
    transform: translateY(106%);
    transition: transform .3s var(--ease);
    box-shadow: 0 -20px 50px rgba(15, 23, 42, .18);
  }
  .filter-side.is-open { transform: translateY(0); }
  .filter-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 94;
    background: rgba(11, 21, 38, .42);
    backdrop-filter: blur(2px);
  }
  .filter-backdrop[hidden] { display: none !important; }
  .filter-side-head { position: sticky; top: -20px; z-index: 1; padding: 8px 0 12px; background: #fff; }
  .filter-side-head h3 { font-size: 16px; }
  .filter-apply { display: flex; }
  .filter-tip { display: none; }
  .filter-trigger { display: inline-flex; }
  .page-hero-meta { display: none; }
  .page-hero { padding-bottom: 22px; }

  .detail-layout { grid-template-columns: 1fr; gap: 18px; }
  .detail-side { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .download-card, .uploader-card { grid-column: span 2; }
  .notice-card { display: none; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-action { display: flex; }
  .detail-page { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .detail-page .site-footer { padding-bottom: 0; }
}

/* =========================================================
   精简版：横向筛选栏
   ========================================================= */
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 14px 18px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.filter-bar-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
}
.filter-bar-title svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round;
}
.filter-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-400);
}
.filter-field select {
  height: 34px;
  padding: 0 26px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-700);
  cursor: pointer;
  transition: border-color .16s;
}
.filter-field select:hover, .filter-field select:focus { border-color: #b9cdfb; outline: none; }
.filter-bar .filter-reset {
  height: 34px;
  margin-left: auto;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink-500);
  background: #f4f7fc;
  transition: all .16s;
}
.filter-bar .filter-reset:hover { color: var(--blue-700); background: #e9f1ff; }

@media (max-width: 720px) {
  .filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 10px 12px;
    padding: 12px 14px;
  }
  .filter-bar-title { grid-column: 1; grid-row: 1; }
  .filter-bar .filter-reset {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    height: 26px;
    padding: 0 10px;
    margin-left: 0;
    color: var(--blue-700);
    background: #f0f5ff;
  }
  .filter-field { justify-content: space-between; gap: 8px; }
  .filter-field > span { flex-shrink: 0; font-size: 12px; }
  .filter-field select {
    flex: 1;
    min-width: 0;
    padding: 0 24px 0 10px;
    text-overflow: ellipsis;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7c94' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 13px;
  }
  .filter-field select.is-active {
    color: var(--blue-700);
    font-weight: 600;
    border-color: #bfd3fb;
    background-color: #f5f9ff;
  }
}

@media (max-width: 720px) {
  .page-hero .breadcrumb { padding: 14px 0 12px; }
  .page-hero-copy h1 { font-size: 23px; }
  .page-hero-copy p { font-size: 12.5px; }
  .page-search { margin-top: 16px; height: 50px; padding: 4px 4px 4px 14px; }
  .page-search input { height: 40px; font-size: 13px; }
  .page-search .btn { height: 42px; padding: 0 16px; }

  .list-section { padding: 16px 0 48px; }
  .list-toolbar { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
  .toolbar-left { gap: 8px; }
  .result-count { font-size: 12px; }
  .sort-btn { padding: 4px 9px; font-size: 12px; }
  .active-filters { margin-bottom: 10px; }
  .card-grid.grid-3 { grid-template-columns: 1fr; }
  .pagination { gap: 5px; margin-top: 22px; }
  .page-btn { min-width: 32px; height: 32px; font-size: 12px; }
  .page-btn.arrow { padding: 0 10px; }

  .detail-wrap { padding-bottom: 40px; background: linear-gradient(180deg, #f3f8ff 0%, #fff 240px); }
  .detail-wrap .breadcrumb { padding: 14px 0 12px; }
  .detail-head { padding-bottom: 16px; }
  .detail-tags { gap: 5px; }
  .detail-title { font-size: 20px; line-height: 1.5; }
  .detail-meta { gap: 6px 14px; font-size: 11.5px; }
  .highlight-grid { grid-template-columns: minmax(0, 1fr); }

  .preview-head { padding: 12px 14px; }
  .preview-live { font-size: 12.5px; }
  .preview-sub { display: none; }
  .preview-stage { padding: 14px; gap: 12px; }
  .paper { flex-basis: 232px; height: 330px; padding: 15px 16px; }
  .paper-foot { left: 16px; right: 16px; }
  .preview-foot { padding: 10px 14px; font-size: 11.5px; flex-direction: column; align-items: flex-start; gap: 6px; }

  .detail-block { padding: 18px 16px; margin-top: 14px; }
  .block-head h2 { font-size: 15.5px; }
  .highlight-grid { grid-template-columns: 1fr; }
  .detail-desc { font-size: 13px; }
  .toc-info strong { font-size: 12.5px; }
  .usage-item p { font-size: 12.5px; }

  .download-card { padding: 16px; }
  .download-cover { width: 50px; height: 64px; }
  .download-cover .cover-subject { font-size: 14px; }
  .download-actions .btn { height: 36px; }
  .related-section { margin-top: 26px; }
  .related-grid { grid-template-columns: 1fr; }
  .mobile-action { padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); }
  .mobile-download { height: 44px; }
}

/* =========================================================
   网盘下载弹窗
   ========================================================= */
.modal-mask[hidden] { display: none; }

.netdisk-modal { max-width: 520px; }
.netdisk-modal .modal-title { padding-right: 34px; }
.netdisk-modal .modal-sub { line-height: 1.7; }

.nd-list { display: grid; gap: 10px; margin-top: 18px; }
.nd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 13px;
  transition: border-color .16s, background .16s;
}
.nd-item:hover { background: #fff; border-color: #cddcf8; }

.nd-logo {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  font-size: 16px; font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.nd-logo.baidu { background: linear-gradient(135deg, #4c8bff, #1e56d6); }
.nd-logo.quark { background: linear-gradient(135deg, #7d6bff, #4650e0); }

.nd-main { flex: 1; min-width: 0; }
.nd-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.4;
}
.nd-link {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--ink-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nd-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nd-copy {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--blue-700);
  background: #eef4ff;
  transition: background .16s;
}
.nd-copy:hover { background: #dfeaff; }
.nd-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--blue-600);
  transition: background .16s;
}
.nd-open:hover { background: var(--blue-700); }

.netdisk-modal .modal-note { text-align: left; }

@media (max-width: 720px) {
  .netdisk-modal .modal-body { padding: 22px 16px 18px; }
  .nd-list { margin-top: 14px; }
  .nd-item { flex-wrap: wrap; padding: 12px; }
  .nd-main { flex: 1 1 calc(100% - 54px); }
  .nd-actions { width: 100%; }
  .nd-copy, .nd-open { flex: 1 1 0; height: 34px; }
  .netdisk-modal .modal-note { margin-top: 12px; }
}

/* 资料简介三图：移动端横向滑动 */
@media (max-width: 720px) {
  .intro-gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 148px;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .intro-shot { scroll-snap-align: start; }
  .intro-page { min-height: 208px; padding: 16px 12px 12px; }
  .intro-brand { font-size: 7.5px; letter-spacing: 0; }
  .intro-page-title { margin-top: 8px; font-size: 11px; }
  .intro-page-meta { font-size: 8.5px; }
  .intro-lines { margin-top: 9px; }
  .intro-lines i { height: 4px; margin-top: 6px; }
  .intro-choices { gap: 5px; margin-top: 8px; }
  .intro-choices b { width: 12px; height: 12px; font-size: 6.5px; }
  .intro-choices i { height: 3px; }
  .intro-page-foot { font-size: 8px; padding-top: 7px; }
  .intro-shot-label { margin-top: 6px; font-size: 10.5px; }
}

