:root {
  --primary: #1677ff;
  --primary-dark: #0d5fd6;
  --primary-light: #eaf3ff;
  --secondary: #4f6ef7;
  --bg: #f4f7fc;
  --card-bg: #fff;
  --border: #eaedf5;
  --text: #1a1f2e;
  --text-muted: #8a94a8;
  --text-light: #b0b8cc;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(45,80,155,.06);
  --shadow-hover: 0 12px 32px rgba(45,80,155,.14);
  --container: 1440px;
  --success: #00c48c;
  --danger: #f44056;
}

/* 换页/切分类时做一次淡入淡出，替代浏览器默认的硬切白闪。
   不支持的浏览器（如微信旧内核）会直接忽略，退回原行为。 */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

* { box-sizing: border-box; margin: 0; padding: 0; scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; }
html {
  scroll-behavior: smooth;
  height: 100%;
  /* 移动端横屏或窄屏时浏览器会自动放大正文，导致加载瞬间文字跳一下 */
  /* !important 用于压过微信内置浏览器注入到 body 上的行内缩放样式 */
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* 容器 */
.home-container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ===== 顶部导航 ===== */
.home-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.home-header-inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 24px;
}
.home-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.home-logo img { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; }
.home-logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), #5fa5ff);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 18px;
}

.home-nav { display: flex; align-items: center; gap: 6px; }
.home-nav a {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-muted);
  transition: all .2s;
}
.home-nav a:hover { color: var(--primary); background: var(--primary-light); }
.home-nav .btn-login {
  background: var(--primary);
  color: #fff;
  padding: 7px 18px;
  border-radius: 8px;
  font-weight: 500;
}
.home-nav .btn-login:hover { background: var(--primary-dark); color: #fff; }

/* ===== Banner ===== */
.home-banner {
  background: linear-gradient(135deg, #1668e3 0%, #3b8bff 55%, #6db1ff 100%);
  padding: 56px 0 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.home-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
}
.home-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 10%;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 70%);
}
/* Banner 圆圈光晕：两个游走的柔光圆 + 三个漂浮的空心圆圈 */

.banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 40px;
}
.banner-left { flex: 1; min-width: 0; }
.banner-content h1 { font-size: 36px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.banner-content h1 span { color: #ffd166; }
.banner-content p { font-size: 16px; color: rgba(255,255,255,.75); margin-bottom: 26px; }
.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  font-size: 12.5px;
  color: rgba(255,255,255,.92);
  margin-bottom: 16px;
}
.banner-badge i { color: #ffd166; }

/* hero 主搜索框 */
.banner-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 560px;
  background: #fff;
  border-radius: 14px;
  padding: 6px 6px 6px 0;
  box-shadow: 0 14px 36px rgba(8, 50, 130, .28);
}
.banner-search .bs-icon {
  position: absolute;
  left: 18px;
  color: var(--text-light);
  font-size: 15px;
}
.banner-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  padding: 11px 12px 11px 46px;
  font-size: 15px;
  color: var(--text);
}
.banner-search button {
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  padding: 11px 26px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #5fa5ff);
  cursor: pointer;
  transition: filter .18s;
}
.banner-search button:hover { filter: brightness(1.08); }
.banner-hotwords {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.banner-hotwords a {
  padding: 3px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,.13);
  color: rgba(255,255,255,.92);
  transition: background .18s;
}
.banner-hotwords a:hover { background: rgba(255,255,255,.26); color: #fff; }

/* hero 玻璃拟态视觉组 */
.banner-visual { position: relative; width: 430px; height: 370px; flex-shrink: 0; }

@media (max-width: 960px) {
  .banner-visual { display: none; }
  .banner-search { max-width: none; }
}

/* ===== 分类导航 ===== */
.home-cats {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 90;
}
.home-cats-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 0 0;
  scrollbar-width: none;
}
.home-cats-inner::-webkit-scrollbar { display: none; }
.home-cat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.home-cat-item:hover { color: var(--primary); }
.home-cat-item.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.home-cat-item i { font-size: 15px; }

/* ===== 主内容区 ===== */
.home-main { padding: 28px 0 60px; }
.home-section { margin-bottom: 40px; }
.home-section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.home-section-title {
  font-size: 18px;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.home-section-title::before {
  content: '';
  width: 4px; height: 18px;
  background: var(--primary);
  border-radius: 2px;
  display: block;
}
.home-section-more {
  font-size: 13px;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}
.home-section-more:hover { color: var(--primary); }

/* ===== 资料卡片 ===== */
.material-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.material-card {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.material-card:hover { box-shadow: var(--shadow-hover); }
/* 悬停时一道柔光扫过封面。只扫图不扫文字区——扫到白底上会把标题洗淡 */
.material-card-thumb::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-18deg);
  /* 默认不设过渡：鼠标移开时直接跳回起点，不会看到光倒着扫回来 */
  transition: none;
}
.material-card:hover .material-card-thumb::before {
  left: 120%;
  transition: left .55s cubic-bezier(.22, 1, .36, 1);
}
/* 封面容器：图片没到之前显示转圈，避免一片空白灰块 */
.material-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg);
  overflow: hidden;
}
.material-card-thumb::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: coverSpin .8s linear infinite;
  z-index: 0;
}
.material-card-thumb.is-loaded::after { content: none; }
@keyframes coverSpin { to { transform: rotate(360deg); } }
.material-card-cover {
  /* 压在转圈之上：万一 JS 没跑，图片到位后也能盖住占位 */
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.material-card-cover-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f0f2f8, #e8ecf4);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light);
  font-size: 36px;
}
.material-card-body {
  /* 撑满卡片剩余高度，配合 footer 的 margin-top:auto 把价格压到底 */
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 13px;
}
.material-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  /* 不预留第二行高度：一行标题不会在下面留出一条空白。
     同排卡片等高交给 grid 的 stretch + footer 沉底 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
  color: var(--text);
}
.material-card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-muted);
  /* 放不下就截断，别换行把卡片顶高 */
  white-space: nowrap;
  overflow: hidden;
}
.material-card-cat {
  flex: 0 1 auto;
  min-width: 0;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg);
  overflow: hidden;
  text-overflow: ellipsis;
}
.material-card-chapter { flex: none; }
.material-card-chapter i { margin-right: 4px; font-size: 11px; opacity: .75; }
.material-card-footer {
  display: flex;
  /* baseline 而不是 center：销量的小字和价格的大字落在同一条基线上 */
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.material-card-price { font-size: 17px; font-weight: 700; color: var(--primary); line-height: 1.1; }
.material-card-price .origin { font-size: 12px; color: var(--text-light); text-decoration: line-through; margin-left: 5px; font-weight: 400; }
.material-card-sales { flex: none; font-size: 12px; color: var(--text-muted); }
.material-card-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 500;
}
.material-card-wrap { position: relative; }

/* ===== 资料详情页 ===== */
.detail-breadcrumb {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  white-space: nowrap;
}
.detail-breadcrumb a { color: var(--text-muted); flex-shrink: 0; }
.detail-breadcrumb a:hover { color: var(--primary); }
.detail-breadcrumb .sep { margin: 0 6px; flex-shrink: 0; }
.detail-breadcrumb .cur { color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.detail-layout { display: flex; gap: 28px; align-items: flex-start; }
.detail-main { flex: 1; min-width: 0; }
.detail-sidebar { width: 320px; flex-shrink: 0; }

/* ===== 详情页三段式布局 ===== */
/* 第一行：基本信息 + 资料信息 等高 */
.detail-top {
  display: flex;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 16px;
}
.detail-top .detail-hero-card {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}
/* 购买区沉到卡片底部，并清掉尾部外边距，使其与右侧「查看目录」按钮对齐 */
.detail-top .detail-hero-card #buy-zone { margin-top: auto; }
.detail-top .detail-hero-card #buy-zone > *:last-child { margin-bottom: 0; }
.detail-top .detail-side-card {
  width: 320px;
  flex-shrink: 0;
  margin-bottom: 0;
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
}
.detail-side-card .detail-facts { flex: 0 0 auto; }
/* 客服卡 + 目录按钮沉到底部，把资料信息卡撑到与左侧等高 */
.side-bottom { margin-top: auto; }
.side-bottom .wechat-card { margin-bottom: 12px; }
.side-actions { display: flex; gap: 10px; }
.side-actions .side-btn { flex: 1; min-width: 0; }
.side-btn {
  padding: 11px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
/* 查看目录：主题蓝 */
.side-toc-btn {
  border: 1px solid var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.side-toc-btn:hover { background: var(--primary); color: #fff; }
/* 联系客服：微信绿 */
.side-wechat-btn {
  border: 1px solid #07c160;
  background: #eafaf0;
  color: #07c160;
}
.side-wechat-btn:hover { background: #07c160; color: #fff; }

/* 第二行两列：左侧资料试看，右侧资料信息；资料介绍在下面通栏（没有试看时介绍在左、资料信息在右） */
.detail-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px 24px;
  align-items: start;
}
.detail-bottom > * { margin-bottom: 0; }
.detail-bottom .detail-intro-full { grid-column: 1 / -1; }
.detail-bottom.no-reader .detail-intro-full { grid-column: 1; grid-row: 1; }
.detail-bottom.no-reader .detail-facts-card { grid-column: 2; grid-row: 1; }
.catalog-count {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

.detail-cover-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.detail-cover-box img { width: 100%; display: block; }

.detail-info-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.detail-title { font-size: 22px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.detail-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); margin-bottom: 14px; flex-wrap: wrap; }
.detail-meta span { display: flex; align-items: center; gap: 4px; }
.detail-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.detail-price .price { font-size: 32px; font-weight: 800; color: var(--primary); }
.detail-price .origin { font-size: 15px; color: var(--text-muted); text-decoration: line-through; }
.detail-price .label { font-size: 13px; color: var(--text-muted); }

/* 购买/下载按钮 */
.btn-buy {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), #5fa5ff);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .2s, transform .1s;
  margin-bottom: 10px;
}
.btn-buy:hover { opacity: .92; }
.btn-buy:active { transform: scale(.98); }
.btn-download {
  width: 100%;
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .2s;
  margin-bottom: 10px;
}
.btn-download:hover { opacity: .9; }
.btn-wechat {
  width: 100%;
  background: #fff;
  color: #07c160;
  border: 1.5px solid #07c160;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .2s;
}
.btn-wechat:hover { background: #07c160; color: #fff; }
.detail-tips { font-size: 12px; color: var(--text-muted); margin-top: 12px; display: flex; gap: 16px; justify-content: center; }
.detail-tips span { display: flex; align-items: center; gap: 4px; }

/* 移动端吸底购买栏（≤860px 显示） */
.detail-buybar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  align-items: center;
  gap: 10px;
}
.buybar-price { flex: 1; font-size: 22px; font-weight: 800; color: var(--primary); }
.buybar-price .origin { font-size: 13px; color: var(--text-light); text-decoration: line-through; margin-left: 6px; font-weight: 400; }
.buybar-buy {
  background: linear-gradient(135deg, var(--primary), #5fa5ff);
  color: #fff; border: none; border-radius: 10px;
  padding: 12px 28px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  white-space: nowrap;
}
.buybar-buy.full { flex: 1; }
.buybar-buy.green { background: var(--success); }

/* 相关推荐 */
.related-list { display: flex; flex-direction: column; gap: 10px; }
.related-item {
  display: flex; gap: 10px; align-items: center;
  padding: 10px; border-radius: 12px;
  background: #f5f8fc;
  transition: all .2s;
}
.related-item:hover { background: var(--primary-light); }
.related-cover { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.related-cover-ph {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary-light), #ffe8e0);
  border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 16px;
}
.related-title {
  font-size: 13px; font-weight: 500; line-height: 1.5; margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-price { font-size: 14px; font-weight: 700; color: var(--primary); }

/* 自定义复选框 */

/* 表头 */

/* 商品行 */

/* 结算栏 */
.btn-checkout { background: var(--primary); color: #fff; border: none; border-radius: 10px; padding: 12px 32px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all .2s; flex-shrink: 0; white-space: nowrap; }
.btn-checkout:hover { background: var(--primary-dark); }

/* 移动端下拉搜索条 */
.mobile-search-bar {
  display: none;
  background: #fff;
  padding: 10px 16px 14px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,.07);
  position: sticky; top: 60px; z-index: 95;
}
.mobile-search-bar form { display: flex; gap: 0; }
.mobile-search-bar input {
  flex: 1; border: 1.5px solid var(--border); border-right: none;
  border-radius: 24px 0 0 24px; padding: 9px 16px; font-size: 14px;
  outline: none; background: var(--bg);
}
.mobile-search-bar input:focus { border-color: var(--primary); }
.mobile-search-bar button {
  background: var(--primary); color: #fff; border: none;
  border-radius: 0 24px 24px 0; padding: 9px 18px;
  font-size: 14px; cursor: pointer;
}
.mobile-search-bar.open { display: block; }

/* 详情内容区 */
.detail-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.detail-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.detail-section h3 i { color: var(--primary); }
.detail-desc { font-size: 14px; line-height: 1.8; color: #444; white-space: pre-line; }
.detail-desc h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 22px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
  line-height: 1.4;
}
.detail-desc h4:first-child { margin-top: 0; }
.detail-desc p { margin: 0 0 12px; }
.detail-desc ul, .detail-desc ol { margin: 0 0 14px; padding-left: 20px; }
.detail-desc li { margin-bottom: 7px; }
.detail-desc li::marker { color: var(--text-light); }
.detail-desc strong { color: var(--text); font-weight: 600; }
.detail-desc > *:last-child { margin-bottom: 0; }

/* 目录 */
.catalog-list { list-style: none; }
.catalog-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.catalog-list li:last-child { border-bottom: none; }
.catalog-list li .c-title { display: flex; align-items: baseline; gap: 8px; }
.catalog-list li .c-num { color: var(--text-muted); font-size: 12px; }
.catalog-list li .c-page { color: var(--text-muted); font-size: 12px; flex-shrink: 0; margin-left: 12px; }

/* 目录层级：level 1=章 2=节 3=条目，缺省 0 走上面的扁平样式 */
.catalog-list li .c-label {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}
.catalog-list li.c-lv1 {
  margin-top: 14px;
  padding: 11px 12px;
  border-bottom: none;
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.catalog-list li.c-lv1:first-child { margin-top: 0; }
.catalog-list li.c-lv1 .c-label { color: var(--primary); font-size: 13px; }
.catalog-list li.c-lv2 { padding-left: 15px; }
.catalog-list li.c-lv2 .c-label { color: var(--secondary); }
.catalog-list li.c-lv3 {
  padding: 6px 0 6px 32px;
  border-bottom: none;
  font-size: 13px;
  color: #5a6478;
}
.catalog-list li.c-lv2 + li.c-lv3 { padding-top: 8px; }
@media (max-width: 640px) {
  .catalog-list li.c-lv1 { font-size: 14px; }
  .catalog-list li.c-lv2 { padding-left: 8px; }
  .catalog-list li.c-lv3 { padding-left: 18px; }
}

/* 试看预览 */
.preview-swiper { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.preview-swiper::-webkit-scrollbar { height: 4px; }
.preview-swiper::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.preview-img {
  flex-shrink: 0;
  width: 160px;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow);
}
.preview-img img { width: 100%; height: 100%; display: block; object-fit: cover; }
.preview-watermark-tip {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  display: flex; align-items: center; gap: 4px;
}

/* 客服微信卡片 */
.wechat-card {
  background: linear-gradient(135deg, #07c160, #0ab557);
  border-radius: 10px;
  padding: 14px 16px;
  color: #fff;
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px;
}
.wechat-card i { font-size: 28px; }
.wechat-card .label { font-size: 12px; opacity: .85; }
.wechat-card .id { font-size: 16px; font-weight: 700; letter-spacing: .02em; }

/* ===== 列表页 ===== */
.list-toolbar {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.list-sort-btn {
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  border: none;
  background: #f0f4fa;
  color: var(--text-muted);
  transition: all .2s;
}
.list-sort-btn.active, .list-sort-btn:hover { background: var(--primary); color: #fff; }

/* 分页 */
.home-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.home-pager a, .home-pager span {
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  border: none;
  background: var(--card-bg);
  box-shadow: 0 1px 4px rgba(45,80,155,.08);
  color: var(--text-muted);
  transition: all .2s;
  padding: 0 8px;
}
.home-pager a:hover { background: var(--primary-light); color: var(--primary); }
.home-pager .active { background: var(--primary); color: #fff; box-shadow: 0 4px 10px rgba(22,119,255,.25); }
.home-pager .disabled { opacity: .4; cursor: not-allowed; }

/* ===== 用户中心 ===== */
.user-layout { display: flex; gap: 24px; align-items: flex-start; padding-bottom: 40px; }
.user-sidebar { width: 220px; flex-shrink: 0; }
.user-main {
  flex: 1; min-width: 0;
  /* 静态光晕：右上淡蓝 + 左下微暖，打破纯白的单调 */
  background:
    radial-gradient(circle at 97% 0%, rgba(22, 119, 255, .14), transparent 36%),
    radial-gradient(circle at 0% 100%, rgba(240, 169, 60, .10), transparent 32%),
    var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.user-profile-card {
  background:
    radial-gradient(circle at 88% -10%, rgba(22, 119, 255, .16), transparent 58%),
    radial-gradient(circle at 0% 110%, rgba(95, 165, 255, .12), transparent 52%),
    var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  text-align: center;
}
.user-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, var(--primary), #5fa5ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: #fff;
  font-weight: 700;
}
.user-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.user-phone { font-size: 13px; color: var(--text-muted); }
.user-nav-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(22, 119, 255, .11), transparent 60%),
    var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.user-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: all .2s;
  cursor: pointer;
}

.user-nav-item:last-child { border-bottom: none; }
.user-nav-item:hover, .user-nav-item.active { color: var(--primary); background: var(--primary-light); }
.user-nav-item i { width: 18px; text-align: center; }

/* 已购列表 */
.purchase-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  display: flex; gap: 14px; align-items: center;
}
.purchase-cover { width: 72px; height: 72px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.purchase-cover-ph {
  width: 60px; height: 80px;
  background: linear-gradient(135deg, #f0f2f8, #e8ecf4);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light);
  font-size: 22px;
  flex-shrink: 0;
}
.purchase-info { flex: 1; min-width: 0; }
.purchase-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.purchase-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.purchase-actions { display: flex; gap: 8px; }
.btn-sm { padding: 6px 14px; border-radius: 7px; font-size: 13px; cursor: pointer; border: none; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; transition: all .2s; }
.btn-sm-primary { background: var(--primary); color: #fff; }
.btn-sm-primary:hover { background: var(--primary-dark); }
.btn-sm-outline { background: none; border: 1px solid var(--border); color: var(--text-muted); }
.btn-sm-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm-green { background: var(--success); color: #fff; }
.btn-sm-green:hover { opacity: .9; }

/* ===== 登录弹窗 ===== */
.login-modal-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.login-modal-box {
  background: #fff;
  border-radius: 16px;
  width: 380px;
  max-width: calc(100vw - 32px);
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  animation: slideUp .25s;
  position: relative;
}
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.login-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 16px;
}
.login-modal-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.login-modal-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.login-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.login-tab { flex: 1; text-align: center; padding: 10px; font-size: 14px; cursor: pointer; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .2s; }
.login-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
/* 扫码登录 */
.qr-login { text-align: center; padding: 4px 0 6px; }
.qr-box { position: relative; width: 200px; height: 200px; margin: 0 auto; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.qr-box img { width: 100%; height: 100%; display: block; }
/* 前端画的方形二维码要留一圈白边，扫得更快（小程序码自带留白） */
.qr-box img.is-plain { padding: 14px; box-sizing: border-box; }
.qr-loading { display: flex; align-items: center; justify-content: center; height: 100%; padding: 16px; color: var(--text-muted); font-size: 13px; }
.qr-mask { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(255,255,255,.94); color: var(--text); font-size: 15px; font-weight: 600; }
.qr-mask i { font-size: 34px; color: var(--primary); margin-bottom: 4px; }
.qr-mask-sub { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.qr-tip { margin-top: 14px; font-size: 14px; color: var(--text); }
.qr-tip i { color: #07c160; margin-right: 4px; }
.qr-sub { margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.login-form .field { margin-bottom: 14px; }
.login-form .field label { font-size: 13px; font-weight: 500; display: block; margin-bottom: 5px; }
.login-form .field input {
  width: 100%;
  border: 1.5px solid transparent;
  background: #f0f4fa;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px; outline: none;
  transition: border-color .2s;
}
.login-form .field input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(22,119,255,.1); }
.login-form .btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), #5fa5ff);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity .2s;
}
.login-form .btn-submit:hover { opacity: .9; }

/* 第一次用微信登录：完善账号的说明 */
.wx-bind-tip { display: flex; gap: 10px; margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; background: #f0faf3; color: #3d5246; font-size: 13px; line-height: 1.7; text-align: left; }
.wx-bind-tip i { flex: none; margin-top: 3px; color: #07c160; font-size: 16px; }
.wx-bind-tip b { color: #172443; }
/* 微信快捷登录 */
.wx-quick { margin-top: 18px; }
.wx-quick-line { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--text-muted); font-size: 12px; }
.wx-quick-line::before, .wx-quick-line::after { content: ''; flex: 1; border-top: 1px solid var(--border); }
.wx-quick-btn { display: block; padding: 11px 14px; border: 1px solid #07c160; border-radius: 10px; color: #07a650; font-size: 15px; font-weight: 600; text-align: center; transition: background .2s; }
.wx-quick-btn:hover { background: #f0faf3; }
.wx-quick-btn i { margin-right: 4px; }
.wx-quick-btn small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 400; color: var(--text-muted); }

/* ===== 支付页 ===== */
.pay-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  max-width: 520px;
  margin: 40px auto;
}
.pay-material-info { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.pay-material-info img { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; }
.pay-material-info .name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.pay-material-info .price { font-size: 20px; font-weight: 800; color: var(--primary); }
.pay-methods { display: flex; gap: 12px; margin-bottom: 24px; }
.pay-method {
  flex: 1;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.pay-method.active { border-color: var(--primary); background: var(--primary-light); }
.pay-method i { font-size: 24px; display: block; margin-bottom: 4px; }
.pay-method.alipay i { color: #1677ff; }
.pay-method.wechat i { color: #07c160; }
.pay-method span { font-size: 13px; }
.btn-pay {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), #5fa5ff);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-pay:hover { opacity: .9; }

/* ===== Footer ===== */
/* Footer 小鱼跃水特效条 */
.footer-fish {
  position: relative;
  height: 110px;
  overflow: hidden;
  margin-bottom: -1px; /* 防止与 footer 之间出现细缝 */
}
.footer-fish canvas { display: block; }
@media (max-width: 640px) {
  .footer-fish { height: 80px; }
}

.home-footer {
  background: #1a1f2e;
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
}
.home-footer a { color: rgba(255,255,255,.5); }
.home-footer a:hover { color: #fff; }
.home-footer .icp { margin-top: 6px; font-size: 12px; }

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  right: 20px; bottom: 40px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--text-muted);
  box-shadow: 0 4px 16px rgba(0,0,0,.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  z-index: 98;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all .25s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: var(--primary); }

/* ===== 空状态 ===== */
.home-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.home-empty i { font-size: 48px; display: block; margin-bottom: 12px; opacity: .35; }
.home-empty p { font-size: 15px; }

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
  .material-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .material-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-layout { flex-direction: column; padding-bottom: 76px; }
  .detail-sidebar { width: 100%; }
  /* 三段式：窄屏堆叠 */
  .detail-top { flex-direction: column; gap: 16px; }
  .detail-top .detail-side-card { width: 100%; }
  /* 内容区窄屏单列堆叠 */
  .detail-bottom { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .detail-bottom > *,
  .detail-bottom.no-reader .detail-intro-full,
  .detail-bottom.no-reader .detail-facts-card { grid-column: 1; grid-row: auto; }
  .side-bottom { margin-top: 16px; }
  /* 详情页：隐藏封面卡和卡内购买区，改用吸底购买栏 */
  .detail-cover-box { display: none; }
  #buy-zone { display: none; }
  .detail-buybar { display: flex; }
  .back-to-top { bottom: 90px; }
  .user-layout { flex-direction: column; }
  .user-sidebar { width: 100%; }
  .user-main { width: 100%; padding: 16px; }
}
@media (max-width: 640px) {
  /* 导航：移动端使用图标展开搜索 */
  .nav-search-btn { display: flex !important; }
  .home-header-inner { gap: 4px; padding: 0 12px; }
  .home-nav { gap: 2px; }
  .home-nav a { padding: 7px 9px; }
  .nav-text { display: none !important; }
  .btn-login { font-size: 13px; padding: 7px 12px; white-space: nowrap; }
  /* 分类栏跟随 */
  .home-cats { top: 60px; }
}
@media (max-width: 600px) {
  .material-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  /* 卡片窄，价格和销量挤一行会折行导致卡片高度参差，改成上下两行 */
  .material-card-meta { font-size: 11px; gap: 5px; margin-bottom: 8px; }
  /* 两列时卡片只有 ~160px，分类块一挂上章节数就没地方了，窄屏只保留章节数 */
  .material-card-cat { display: none; }
  .material-card-footer { flex-direction: column; align-items: flex-start; gap: 2px; }
  .material-card-price { font-size: 15px; }
  .material-card-sales { font-size: 11px; white-space: nowrap; }
  .home-banner { padding: 36px 0 32px; }
  .banner-content h1 { font-size: 24px; }
  .banner-stats { gap: 20px; }
  .banner-stat-num { font-size: 22px; }
}
/* 桌面端搜索图标按钮隐藏 */
.nav-search-btn { display: none; }

/* ===== 前台新版导航 ===== */
.home-primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.home-primary-nav a {
  position: relative;
  height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 0;
  color: #3d4557;
  font-size: 14px;
  font-weight: 600;
  transition: color .18s;
}
.home-primary-nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: #3b7ef6;
  transform: translateX(-50%);
}
.home-primary-nav a:hover {
  color: #3b7ef6;
  background: transparent;
}
.home-primary-nav a.active {
  color: #3b7ef6;
  background: transparent;
  font-weight: 700;
}
.home-primary-nav a.active::after {
  width: 24px;
}
.home-nav { flex-shrink: 0; }

/* ===== 首页：场景路线版 ===== */
.scenario-home {
  --scene-green: #3b7ef6;
  --scene-green-dark: #2563eb;
  --scene-green-soft: #eaf2ff;
  --scene-blue: #2f74e6;
  --scene-blue-soft: #eef5ff;
  --scene-yellow: #f8b923;
  --scene-yellow-soft: #fff8e3;
  --scene-coral: #f16454;
  --scene-ink: #152033;
  --scene-muted: #687386;
  --scene-line: #e8edf2;
  background: #f7f9fb;
  color: var(--scene-ink);
}
.scenario-hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  /* 左边一整块干净底色。原来照片铺满整屏、靠一层白幕压住，
     白幕从 88% 掉到 48% 的那一段正好落在搜索框右端，
     文字和按钮压在半透明的便签纸上，中间是一条既不透也不实的脏带 */
  background: linear-gradient(116deg, #ffffff 0%, #f8fbf9 44%, #edf5f0 100%);
}
.scenario-hero-img {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  /* 只占右半边。源图 1400x788 是 16:9，这个容器差不多也是 16:9，
     照片基本不裁，整个构图（窗、绿植、笔记本）都在，
     不像铺满时那样被裁成桌面的一条随机切片 */
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* 左缘渐隐进底色，替代原来的白幕 */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.28) 34%, #000 70%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.28) 34%, #000 70%);
}
.scenario-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* 只剩很轻的一层：上面接住白色导航，下面接住白色内容区 */
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.5) 0%,
    rgba(255,255,255,0) 26%,
    rgba(255,255,255,0) 70%,
    rgba(255,255,255,.55) 100%
  );
}
.scenario-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 360px;
  display: flex;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 44px;
}
.scenario-hero-copy {
  width: min(690px, 100%);
}
.scenario-mobile-greeting { display: none; }
.scenario-hero h1 {
  font-size: 52px;
  line-height: 1.08;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--scene-ink);
}
.scenario-hero h1 span {
  position: relative;
  display: inline-block;
  color: var(--scene-green);
}
/* 手绘感的一笔划线：纯 CSS 画不出这种粗细不均的笔触，用内联 SVG */
.scenario-hero h1 span::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -6px;
  bottom: -6px;
  height: 14px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M5 9.6C58 5.2 122 3.4 168 4.6c37 1 78 3.4 127 2.1' fill='none' stroke='%230b8f45' stroke-width='4' stroke-linecap='round' opacity='.32'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 100%;
}
.scenario-hero p {
  width: min(560px, 100%);
  font-size: 16px;
  line-height: 1.8;
  color: #425066;
  margin-bottom: 24px;
}
.scenario-search {
  width: min(680px, 100%);
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px;
  border: 1px solid rgba(16, 44, 30, .08);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 46px rgba(34, 74, 56, .16);
}
.scenario-search-type {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-right: 1px solid var(--scene-line);
  color: #38445a;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.scenario-search-type i { color: var(--scene-green); }
.scenario-search input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 15px;
  color: var(--scene-ink);
  font-size: 15px;
}
.scenario-search input::placeholder { color: #96a1b2; }
.scenario-search button {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  border-radius: 8px;
  padding: 0 22px;
  color: #fff;
  background: var(--scene-green);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s, transform .12s;
}
.scenario-search button:hover { background: var(--scene-green-dark); }
.scenario-search button:active { transform: translateY(1px); }
.scenario-search input:focus-visible,
.scenario-search button:focus-visible,
.scenario-card:focus-visible,
.scenario-category-strip a:focus-visible {
  outline: 3px solid rgba(47, 116, 230, .22);
  outline-offset: 2px;
}
.scenario-hotwords {
  width: min(680px, 100%);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  color: #687386;
  font-size: 13px;
}
.scenario-hotwords span {
  color: #4d586c;
  font-weight: 700;
}
.scenario-hotwords a {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(20, 55, 35, .11);
  color: #4c576a;
  transition: color .18s, border-color .18s, background .18s;
}
.scenario-hotwords a:hover {
  color: var(--scene-green);
  border-color: rgba(59, 126, 246, .24);
  background: #fff;
}
.scenario-routes {
  padding: 28px 0 18px;
  background: #fff;
  border-bottom: 1px solid var(--scene-line);
}
.scenario-section-head,
.scenario-product-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.scenario-kicker {
  color: var(--scene-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 2px;
}
.scenario-section-head h2,
.scenario-product-head h2 {
  font-size: 25px;
  line-height: 1.25;
  font-weight: 900;
  color: var(--scene-ink);
}
.scenario-section-head p,
.scenario-product-head p {
  flex: 1;
  color: var(--scene-muted);
  font-size: 14px;
}
.scenario-scroll-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.scenario-scroll-controls button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--scene-line);
  border-radius: 50%;
  color: #687386;
  background: #fff;
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s;
}
.scenario-scroll-controls button:hover {
  color: var(--scene-green);
  border-color: rgba(59, 126, 246, .28);
  background: var(--scene-green-soft);
}
.scenario-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 1px 14px;
  scroll-snap-type: x proximity;
}
.scenario-card {
  min-width: 190px;
  flex: 0 0 190px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 142px;
  padding: 18px 18px 14px;
  border: 1px solid var(--scene-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(32, 49, 73, .07);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.scenario-card:hover {
  box-shadow: 0 18px 36px rgba(32, 49, 73, .12);
  border-color: rgba(59, 126, 246, .22);
}
.scenario-card-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 22px;
  background: var(--scene-green-soft);
  color: var(--scene-green);
}
.scenario-card.yellow .scenario-card-icon { background: var(--scene-yellow-soft); color: #d99500; }
.scenario-card.blue .scenario-card-icon { background: var(--scene-blue-soft); color: var(--scene-blue); }
.scenario-card.lime .scenario-card-icon { background: #eefbe5; color: #6abf26; }
.scenario-card.violet .scenario-card-icon { background: #f4efff; color: #7c57e6; }
.scenario-card.orange .scenario-card-icon { background: #fff3eb; color: #ee8427; }
.scenario-card b {
  color: var(--scene-ink);
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 5px;
}
.scenario-card small {
  min-height: 32px;
  color: var(--scene-muted);
  font-size: 13px;
  line-height: 1.45;
}
.scenario-card em {
  margin-top: auto;
  font-style: normal;
  color: #2d3b4f;
  font-size: 13px;
  font-weight: 800;
}
.scenario-card em i { margin-left: 3px; font-size: 11px; }
.scenario-card:hover em { color: var(--scene-green); }

.scenario-category-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--scene-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(32, 49, 73, .06);
  overflow: hidden;
}
.scenario-category-strip a {
  min-height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #2f3a4d;
  font-size: 13px;
  font-weight: 700;
  border-right: 1px solid var(--scene-line);
  transition: color .18s, background .18s;
}
.scenario-category-strip a:last-child { border-right: none; }
.scenario-category-strip a i {
  color: var(--scene-green);
  font-size: 18px;
}
.scenario-category-strip a:hover {
  color: var(--scene-green);
  background: #f8fcfa;
}

.scenario-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 32px 0 54px;
  background: #f6f8fb;
}
.scenario-main::before,
.scenario-main::after {
  position: absolute;
  z-index: 0;
  content: '';
  pointer-events: none;
}
.scenario-main::before {
  width: 230px;
  height: 230px;
  top: 94px;
  left: max(-118px, calc((100vw - var(--container)) / 2 - 208px));
  border: 1px solid rgba(47, 116, 230, .16);
  border-radius: 8px;
  background: rgba(238, 245, 255, .5);
  transform: rotate(18deg);
}
.scenario-main::after {
  width: 280px;
  height: 196px;
  right: max(-126px, calc((100vw - var(--container)) / 2 - 224px));
  bottom: 78px;
  border: 1px solid rgba(59, 126, 246, .15);
  border-radius: 8px;
  background: rgba(238, 250, 243, .58);
  transform: rotate(-14deg);
}
.scenario-main > .home-container { position: relative; z-index: 1; }
.scenario-geometry {
  position: absolute;
  z-index: 0;
  display: block;
  pointer-events: none;
}
.scenario-geometry-three {
  width: 128px;
  height: 104px;
  top: 42%;
  right: max(-42px, calc((100vw - var(--container)) / 2 - 108px));
  border: 1px solid rgba(241, 100, 84, .2);
  border-radius: 7px;
  background: rgba(255, 244, 239, .66);
  clip-path: polygon(18% 0, 100% 0, 100% 74%, 80% 100%, 0 100%, 0 20%);
}
.scenario-geometry-four {
  width: 128px;
  height: 128px;
  bottom: 12%;
  left: max(-46px, calc((100vw - var(--container)) / 2 - 120px));
  border: 1px solid rgba(248, 185, 35, .25);
  border-radius: 8px;
  background: rgba(255, 248, 227, .72);
  transform: rotate(45deg);
}
@keyframes scenario-geometry-drift-left {
  from { transform: translate3d(0, 0, 0) rotate(18deg); }
  to { transform: translate3d(32px, -22px, 0) rotate(26deg); }
}
@keyframes scenario-geometry-drift-right {
  from { transform: translate3d(0, 0, 0) rotate(-14deg); }
  to { transform: translate3d(-28px, 24px, 0) rotate(-21deg); }
}
@keyframes scenario-geometry-float-up {
  from { transform: translate3d(0, 0, 0) rotate(0); }
  to { transform: translate3d(-20px, -30px, 0) rotate(12deg); }
}
@keyframes scenario-geometry-float-down {
  from { transform: translate3d(0, 0, 0) rotate(45deg); }
  to { transform: translate3d(24px, 28px, 0) rotate(56deg); }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-force) .scenario-main::before,
  html:not(.motion-force) .scenario-main::after,
  html:not(.motion-force) .scenario-geometry { animation: none; }
}
.scenario-product-section {
  margin-bottom: 34px;
}
.scenario-product-head {
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.scenario-product-head h2 { flex: 0 0 auto; margin: 0; }
.scenario-product-line {
  height: 1px;
  flex: 1;
  margin-top: 5px;
  background: var(--scene-line);
}
.scenario-product-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #687386;
  font-size: 13px;
  font-weight: 700;
}
.scenario-product-more:hover { color: var(--scene-green); }
.scenario-material-grid .material-card {
  border-radius: 8px;
  border: 1px solid rgba(232, 237, 242, .78);
  box-shadow: 0 10px 28px rgba(32, 49, 73, .06);
}
.scenario-material-grid .material-card:hover {
  box-shadow: 0 18px 38px rgba(32, 49, 73, .12);
}
.scenario-material-grid .material-card-body { padding: 11px; }
.scenario-material-grid .material-card-title { color: var(--scene-ink); }
.scenario-material-grid .material-card-price { color: #3b7ef6; }
.scenario-material-grid .material-card-badge,
.scenario-home .material-card-badge {
  background: var(--scene-green);
}

.scenario-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--scene-line);
  border-bottom: 1px solid var(--scene-line);
  background: rgba(255,255,255,.7);
}
.scenario-trust-strip div {
  min-height: 96px;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 12px;
  padding: 18px 24px;
  border-right: 1px solid var(--scene-line);
}
.scenario-trust-strip div:last-child { border-right: none; }
.scenario-trust-strip i {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--scene-green);
  font-size: 24px;
}
.scenario-trust-strip b {
  color: var(--scene-ink);
  font-size: 15px;
  line-height: 1.35;
}
.scenario-trust-strip span {
  color: var(--scene-muted);
  font-size: 12px;
}
.scenario-empty {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--scene-line);
}

@media (max-width: 1180px) {
  .home-header-inner { gap: 12px; }
  .home-primary-nav a { padding: 0 9px; }
}
@media (max-width: 1060px) {
  .home-primary-nav { display: none; }
  .home-nav { margin-left: auto; }
  .scenario-category-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .scenario-category-strip a:nth-child(4n) { border-right: none; }
  .scenario-category-strip a:nth-child(n+5) { border-top: 1px solid var(--scene-line); }
  /* 这个宽度下文字块已经盖过照片的起始位置，压着半透明的图不好看，
     直接收掉照片，只留底色 */
  .scenario-hero-img { display: none; }
  .scenario-hero-overlay {
    background: linear-gradient(180deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,.6) 100%);
  }
}
@media (max-width: 760px) {
  .scenario-main::before,
  .scenario-main::after,
  .scenario-geometry { display: none; }
  .scenario-hero {
    min-height: 0;
    background: #fff;
    border-bottom: 1px solid var(--scene-line);
  }
  .scenario-hero-img,
  .scenario-hero-overlay { display: none; }
  .scenario-hero-inner {
    min-height: 0;
    align-items: flex-start;
    padding: 22px 16px 20px;
  }
  .scenario-hero p,
  .scenario-hotwords { display: none; }
  .scenario-mobile-greeting {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    padding: 7px 10px;
    border: 1px solid rgba(59, 126, 246, .14);
    border-radius: 8px;
    background: var(--scene-green-soft);
    color: var(--scene-ink);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap;
  }
  .scenario-mobile-greeting i { color: var(--scene-green); }
  .scenario-hero h1 {
    display: none;
  }
  .scenario-search {
    display: flex;
    align-items: center;
    height: 56px;
    gap: 0;
    padding: 6px 7px 6px 14px;
  }
  .scenario-search-type { display: none; }
  .scenario-search input {
    height: 42px;
    padding: 0;
    font-size: 14px;
  }
  .scenario-search button {
    width: 44px;
    flex: 0 0 44px;
    padding: 0;
    font-size: 0;
  }
  .scenario-search button i { font-size: 16px; }
  .scenario-routes {
    padding: 26px 0 22px;
  }
  .scenario-section-head,
  .scenario-product-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .scenario-routes .scenario-section-head {
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    text-align: center;
  }
  .scenario-routes .scenario-kicker,
  .scenario-routes .scenario-section-head p { display: none; }
  .scenario-routes .scenario-section-head h2 {
    font-size: 23px;
    line-height: 1.3;
  }
  .scenario-scroll-controls {
    display: none;
  }
  .scenario-track {
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .scenario-card {
    min-width: 184px;
    min-height: 154px;
  }
  .scenario-category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .scenario-category-strip a {
    min-height: 82px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    font-size: 14px;
    text-align: center;
  }
  .scenario-category-strip a i { font-size: 20px; }
  .scenario-category-strip a:nth-child(2n) { border-right: none; }
  .scenario-category-strip a:nth-child(n+3) { border-top: 1px solid var(--scene-line); }
  .scenario-main { padding-top: 30px; }
  .scenario-product-section { margin-bottom: 42px; }
  .scenario-product-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 0;
    text-align: left;
  }
  .scenario-product-head h2 { font-size: 21px; }
  .scenario-product-head .scenario-product-more {
    color: var(--scene-green-dark);
    font-size: 12px;
  }
  .scenario-product-head h2,
  .scenario-section-head h2 {
    font-size: 22px;
  }
  .scenario-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 4px;
    border: 1px solid var(--scene-line);
    border-radius: 8px;
    overflow: hidden;
  }
  .scenario-trust-strip div {
    min-height: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    border-right: 1px solid var(--scene-line);
    border-bottom: 1px solid var(--scene-line);
    text-align: center;
  }
  .scenario-trust-strip div:nth-child(2n) { border-right: none; }
  .scenario-trust-strip div:nth-child(n+3) { border-bottom: none; }
  .scenario-trust-strip i {
    color: var(--scene-green);
    font-size: 19px;
  }
  .scenario-trust-strip b { font-size: 13px; }
  .scenario-trust-strip span { display: none; }
}
@media (max-width: 420px) {
  .scenario-mobile-greeting { font-size: 16px; }
  .scenario-hero h1 { font-size: 32px; }
  .scenario-hero h1 span::after { height: 9px; bottom: -4px; }
  .scenario-card { min-width: 174px; }
  .scenario-hotwords a { padding: 4px 8px; }
}

/* ===== 资料库列表页 ===== */
.library-page {
  --library-green: #3b7ef6;
  --library-green-dark: #2563eb;
  --library-green-soft: #eaf2ff;
  --library-blue: #2f74e6;
  --library-blue-soft: #eef5ff;
  --library-yellow: #f8b923;
  --library-ink: #152033;
  --library-muted: #687386;
  --library-line: #e8edf2;
  background: #f7f9fb;
  min-height: 100%;
}
.library-hero {
  background:
    linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.82)),
    url('/static/img/home-teaching-geometry-hero-v1.jpg') center right / cover no-repeat;
  border-bottom: 1px solid var(--library-line);
}
.library-hero-inner {
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 34px;
  align-items: center;
  padding-top: 34px;
  padding-bottom: 34px;
}
.library-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(59, 126, 246, .18);
  color: var(--library-green-dark);
  font-size: 13px;
  font-weight: 800;
}
.library-copy h1 {
  max-width: 720px;
  color: var(--library-ink);
  font-size: 38px;
  line-height: 1.2;
  font-weight: 900;
  margin-bottom: 12px;
}
.library-copy p {
  max-width: 620px;
  color: #4b586d;
  font-size: 15px;
  line-height: 1.8;
}
.library-search {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 92px;
  align-items: center;
  height: 58px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(16, 44, 30, .08);
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 44px rgba(32, 49, 73, .12);
}
.library-search i {
  color: var(--library-green);
  text-align: center;
}
.library-search input {
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--library-ink);
  font-size: 15px;
}
.library-search input::placeholder { color: #96a1b2; }
.library-search button {
  height: 46px;
  border: none;
  border-radius: 8px;
  background: var(--library-green);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.library-search button:hover { background: var(--library-green-dark); }
.library-filter-band {
  background: #fff;
  border-bottom: 1px solid var(--library-line);
}
.library-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 10px;
  padding: 18px 0;
}
.library-cat {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--library-line);
  border-radius: 8px;
  background: #fff;
  color: #2f3a4d;
  font-size: 14px;
  font-weight: 700;
  transition: color .18s, background .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.library-cat i {
  color: var(--library-green);
  font-size: 16px;
}
.library-cat:hover,
.library-cat.active {
  color: var(--library-green);
  border-color: rgba(59, 126, 246, .24);
  background: var(--library-green-soft);
  box-shadow: 0 10px 22px rgba(59, 126, 246, .07);
}
.library-cat:hover { transform: translateY(-1px); }
.library-main {
  padding: 24px 0 58px;
}
.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--library-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(32, 49, 73, .06);
}
.library-result {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--library-muted);
  font-size: 14px;
}
.library-result b {
  color: var(--library-ink);
  font-size: 24px;
  font-weight: 900;
}
.library-sort {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.library-sort a {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border-radius: 999px;
  background: #f2f5f8;
  color: #5d687a;
  font-size: 13px;
  font-weight: 800;
  transition: color .18s, background .18s;
}
.library-sort a:hover,
.library-sort a.active {
  background: var(--library-green);
  color: #fff;
}
.library-grid .material-card {
  border-radius: 8px;
  border: 1px solid rgba(232, 237, 242, .82);
  box-shadow: 0 10px 28px rgba(32, 49, 73, .06);
}
.library-grid .material-card:hover {
  box-shadow: 0 18px 38px rgba(32, 49, 73, .12);
}
.library-grid .material-card-price { color: #3b7ef6; }
.library-empty {
  background: #fff;
  border: 1px solid var(--library-line);
  border-radius: 8px;
}
.library-empty a { color: var(--library-green); font-weight: 800; }

@media (max-width: 860px) {
  .library-hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
  }
  .library-copy h1 { font-size: 30px; }
  .library-search { max-width: none; }
  .library-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 560px) {
  .library-hero {
    background:
      linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.88)),
      url('/static/img/home-teaching-geometry-hero-v1.jpg') 68% bottom / auto 58% no-repeat;
  }
  .library-hero-inner {
    padding: 26px 16px 160px;
  }
  .library-copy h1 { font-size: 27px; }
  .library-copy p { font-size: 14px; line-height: 1.7; }
  .library-search {
    grid-template-columns: 34px minmax(0, 1fr);
    height: auto;
    padding: 10px;
    row-gap: 9px;
  }
  .library-search button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .library-cats {
    display: flex;
    overflow-x: auto;
    padding: 14px 0;
  }
  .library-cat {
    flex: 0 0 auto;
    min-width: 122px;
  }
  .library-sort {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .library-sort a {
    justify-content: center;
    padding: 0 8px;
  }
}

/* ===== 资料详情页新版视觉 ===== */
.detail-page {
  --detail-green: #3b7ef6;
  --detail-green-dark: #2563eb;
  --detail-green-soft: #eaf2ff;
  --detail-blue: #2f74e6;
  --detail-yellow-soft: #fff8e3;
  --detail-ink: #152033;
  --detail-muted: #687386;
  --detail-line: #e8edf2;
  padding: 24px 0 58px;
  background:
    linear-gradient(180deg, #f7f9fb 0%, #fff 46%, #f7f9fb 100%);
}
.detail-page .detail-breadcrumb {
  margin-bottom: 18px;
  padding: 10px 0;
}
.detail-page .detail-breadcrumb a:hover {
  color: var(--detail-green);
}
.detail-page .detail-layout {
  gap: 24px;
}
.detail-page .detail-info-card,
.detail-page .detail-section,
.detail-page .detail-cover-box {
  border: 1px solid var(--detail-line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(32, 49, 73, .06);
}
.detail-page .detail-info-card {
  padding: 28px;
  background:
    linear-gradient(110deg, rgba(255,255,255,.98), rgba(255,255,255,.92)),
    url('/static/img/home-teaching-geometry-hero-v1.jpg') center right / cover no-repeat;
}
.detail-page .detail-title {
  max-width: 760px;
  color: var(--detail-ink);
  font-size: 30px;
  line-height: 1.35;
  font-weight: 900;
  margin-bottom: 12px;
}
.detail-page .detail-meta {
  gap: 10px;
  margin-bottom: 16px;
}
.detail-page .detail-meta span {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(232, 237, 242, .9);
  color: #586477;
}
.detail-page .detail-meta i {
  color: var(--detail-green);
}
.detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--detail-green-soft);
  color: var(--detail-green);
  font-size: 12px;
  font-weight: 800;
}
.detail-page .detail-price {
  align-items: center;
  gap: 10px;
  margin: 18px 0 20px;
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(232, 237, 242, .9);
}
.detail-page .detail-price .label {
  color: var(--detail-muted);
  font-size: 13px;
  font-weight: 800;
}
.detail-page .detail-price .price {
  color: #3b7ef6;
  font-size: 34px;
  font-weight: 900;
}
.detail-page .btn-buy {
  border-radius: 8px;
  background: var(--detail-green);
  box-shadow: 0 12px 26px rgba(59, 126, 246, .18);
}
.detail-page .btn-buy:hover {
  background: var(--detail-green-dark);
  opacity: 1;
}
.detail-page .btn-download {
  border-radius: 8px;
  background: var(--detail-green);
}
.detail-page .detail-tips {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.detail-page .detail-tips i {
  color: var(--detail-green);
}
.detail-page .detail-section {
  padding: 22px;
  background: #fff;
}
.detail-page .detail-section h3 {
  border-bottom-color: var(--detail-line);
}
.detail-page .detail-section h3 i {
  color: var(--detail-green);
}
.detail-summary-box {
  padding: 13px 15px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid rgba(59, 126, 246, .16);
  background: var(--detail-green-soft);
  color: #294635;
  font-size: 14px;
  line-height: 1.8;
}
.detail-page .detail-desc {
  color: #3f4a5d;
}
.detail-page .catalog-list .c-num {
  min-width: 24px;
  color: var(--detail-green);
  font-weight: 800;
}
.detail-page .detail-cover-box {
  overflow: hidden;
  background: #fff;
}
.detail-page .detail-cover-box img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.detail-side-card {
  margin-bottom: 0;
}
.detail-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 13px;
}
.detail-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--detail-line);
}
.detail-facts div:last-child {
  border-bottom: none;
}
.detail-facts span {
  color: var(--detail-muted);
}
.detail-facts b {
  color: var(--detail-ink);
  font-weight: 800;
  text-align: right;
}
.detail-page .wechat-card {
  border-radius: 8px;
  background: linear-gradient(135deg, var(--detail-green), #0aa45a);
}
.detail-page .related-item {
  border-radius: 8px;
  background: #f8fbfa;
}
.detail-page .related-item:hover {
  background: var(--detail-green-soft);
}
.detail-page .related-price {
  color: #3b7ef6;
}
.detail-page .related-cover {
  border-radius: 8px;
  object-fit: cover;
}
.detail-buybar {
  border-top-color: var(--detail-line, #e8edf2);
}
.detail-buybar .buybar-price {
  color: #3b7ef6;
}
.detail-buybar .buybar-buy {
  background: #3b7ef6;
  border-radius: 8px;
}
.detail-buybar .buybar-buy.green {
  background: #3b7ef6;
}

@media (max-width: 860px) {
  .detail-page {
    padding: 16px 0 34px;
  }
  .detail-page .detail-info-card,
  .detail-page .detail-section {
    padding: 18px;
  }
  .detail-page .detail-title {
    font-size: 24px;
  }
  .detail-page .detail-price {
    padding: 13px 14px;
  }
}
@media (max-width: 560px) {
  .detail-page .detail-breadcrumb {
    font-size: 12px;
  }
  .detail-page .detail-info-card {
    background:
      linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92)),
      url('/static/img/home-teaching-geometry-hero-v1.jpg') 70% bottom / auto 54% no-repeat;
  }
  /* 作者/分类/浏览/已购这几个胶囊按内容宽度排，挤得下就同行，不要each占一整行 */
  .detail-page .detail-meta {
    gap: 8px;
  }
  .detail-page .detail-meta span {
    font-size: 12px;
    min-height: 26px;
    padding: 4px 9px;
  }
  .detail-page .detail-price .price {
    font-size: 30px;
  }
  .detail-page .detail-tips {
    justify-content: center;
  }
}

[v-cloak] { display: none; }

/* 移动端表单：字号必须 ≥16px，否则 iOS 聚焦输入框时会强制放大整个页面 */
@media (max-width: 768px) {
  input[type="text"],
  input[type="password"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  textarea,
  select,
  .banner-search input,
  .mobile-search-bar input,
  .login-form .field input,
  .scenario-search input,
  .library-search input {
    font-size: 16px;
  }
}

/* ===== 支付弹窗 ===== */
.paym-mask {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 20px;
}
.paym-box {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
  overflow: hidden;
}
.paym-head {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.paym-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 8px;
}
.paym-close:hover { color: var(--text); }

.paym-body { padding: 18px 20px 4px; }
.paym-loading { padding: 40px 0; text-align: center; color: var(--text-muted); font-size: 14px; }

.paym-waiting { padding: 32px 0 24px; text-align: center; }
.paym-waiting-icon {
  font-size: 34px;
  color: var(--primary);
  background: var(--primary-light);
  width: 68px;
  height: 68px;
  line-height: 68px;
  border-radius: 50%;
  margin-bottom: 16px;
}
.paym-waiting-title { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.paym-waiting-sub { font-size: 13.5px; color: var(--text-muted); margin: 0 0 14px; }
.paym-waiting-tip { font-size: 12.5px; color: var(--text-muted); margin: 0; opacity: .8; }

.paym-goods {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.paym-goods-name {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}
.paym-goods-qty { color: var(--text-muted); font-size: 13px; flex-shrink: 0; }

.paym-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.paym-price { font-size: 26px; font-weight: 700; color: #3b7ef6; }
.paym-order-no {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.paym-section-title { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.paym-channels { display: flex; flex-direction: column; gap: 10px; }
.paym-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  color: var(--text);
  transition: border-color .18s, background .18s;
}
.paym-channel:hover { border-color: var(--primary); }
.paym-channel i:first-child { font-size: 22px; }
.paym-channel span { flex: 1; text-align: left; }
.paym-tick { opacity: 0; color: var(--primary); font-size: 14px; }
.paym-channel.active { border-color: var(--primary); background: var(--primary-light, #f0f6ff); }
.paym-channel.active .paym-tick { opacity: 1; }

.paym-empty { text-align: center; padding: 24px 10px; color: var(--text-muted); }
.paym-empty i { font-size: 34px; color: #07c160; margin-bottom: 10px; display: block; }
.paym-empty p { font-size: 14px; line-height: 1.7; margin: 0; }

.paym-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px 18px;
}
.paym-cancel, .paym-submit {
  border-radius: 8px;
  font-size: 14px;
  padding: 9px 22px;
  cursor: pointer;
  border: 1px solid transparent;
}
.paym-cancel { background: #fff; border-color: var(--border); color: var(--text-muted); }
.paym-cancel:hover { color: var(--text); }
.paym-submit { background: var(--primary); color: #fff; font-weight: 500; }
.paym-submit:hover { filter: brightness(1.05); }
.paym-submit:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 600px) {
  .paym-box { max-width: none; }
  .paym-price { font-size: 24px; }
}
/* 图标与面板之间的隐形桥，鼠标移过去时不会先收起 */

/* 删除按钮平时藏起来，hover 到条目才出现，避免整排图标很吵 */

/* 2026-10-15 卡片等高：标题固定两行高度，价格行贴底，同一行卡片一样高 */
.material-card-wrap { height: 100%; }
.material-card { display: flex; flex-direction: column; height: 100%; }
.material-card-body { flex: 1; display: flex; flex-direction: column; }
.material-card-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.9em; }
.material-card-footer { margin-top: auto; }

/* 2026-10-15 详情页顶部：左封面右信息；规格标签；会员引导；价格改品牌蓝 */
.detail-top .detail-hero-card { flex-direction: row; gap: 28px; align-items: stretch; }
.detail-hero-cover { flex: none; width: 240px; }
.detail-hero-cover img { display: block; width: 240px; height: 240px; object-fit: cover; border-radius: 12px; box-shadow: 0 12px 28px rgba(36, 72, 140, .16); background: #f2f5fb; }
.detail-hero-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.detail-specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.detail-specs:empty { display: none; }
.detail-specs span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 6px; background: #eaf2ff; color: #2f6ee8; font-size: 13px; font-weight: 600; }
.detail-page .detail-price .price, .detail-price .price { color: #3b7ef6; }
.detail-price .save { margin-left: 10px; padding: 2px 8px; border-radius: 4px; background: #fff1ee; color: #f0573f; font-size: 12px; font-weight: 600; }
@media (max-width: 768px) {
  .detail-top .detail-hero-card { flex-direction: column; gap: 16px; }
  .detail-hero-cover, .detail-hero-cover img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
}

/* 2026-10-15 手机端：价格行不挤；底栏价格、下载按钮统一品牌蓝 */
.detail-buybar .buybar-price { color: #3b7ef6; }
.buybar-buy.green, .btn-download { background: #3b7ef6; }
@media (max-width: 768px) {
  .detail-price { flex-wrap: wrap; row-gap: 6px; }
  .detail-price .label { display: none; }
  .detail-price .save { white-space: nowrap; }
}

/* 2026-10-15 首页：分类入口 + 会员横幅（配色同小程序）。hq- 前缀：.home-cats 已被吸顶分类导航占用 */
.hq-quick { margin: 8px 0 36px; }
.hq-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.hq-cat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; }
.hq-cat:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.hq-cat-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; color: #fff; font-size: 20px; }
.hq-cat-name { font-size: 16px; font-weight: 700; }
.hq-cat-0 .hq-cat-icon { background: linear-gradient(135deg, #5b9bfa, #3b7ef6); }
.hq-cat-1 .hq-cat-icon { background: linear-gradient(135deg, #4fd19b, #22b07d); }
.hq-cat-2 .hq-cat-icon { background: linear-gradient(135deg, #ffb26b, #f6863a); }
.hq-cat-3 .hq-cat-icon { background: linear-gradient(135deg, #a78bfa, #8b6cf0); }
.hq-cat-4 .hq-cat-icon { background: linear-gradient(135deg, #67c3f3, #38a8e8); }
@media (max-width: 768px) {
  .hq-quick { margin: 0 0 24px; }
  .hq-cats { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .hq-cat { flex-direction: column; gap: 6px; padding: 12px 4px; text-align: center; }
  .hq-cat-icon { width: 38px; height: 38px; font-size: 16px; }
  .hq-cat-name { font-size: 12px; white-space: nowrap; }
}
@media (max-width: 768px) {
  /* 板块标题：标题靠左、「查看全部」靠右放一行（之前几段旧规则叠出来是居中竖排，浪费一行） */
  .scenario-main .scenario-product-head { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; margin-bottom: 14px; }
  .scenario-main .scenario-product-head .scenario-product-line { display: none; }
  .scenario-main .scenario-product-head .scenario-product-more { margin-left: auto; color: #3b7ef6; font-size: 13px; }
}

/* ===== 2026-10-15 手机端仿小程序：底部 Tab、资料行、精简页脚 ===== */
.m-tabbar { display: none; }
@media (max-width: 768px) {
  .m-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .98); border-top: 1px solid #edf1f7; box-shadow: 0 -4px 16px rgba(48, 92, 170, .05); }
  .m-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #9aa4b6; font-size: 11px; text-decoration: none; }
  .m-tabbar a i { font-size: 19px; }
  .m-tabbar a.on { color: #3b7ef6; font-weight: 600; }
  body.has-tabbar { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  body.has-tabbar .back-to-top { display: none; }

  /* 页脚只留版权和备案号（备案号网站必须展示） */
  .home-footer .footer-main, .footer-fish { display: none; }
  .home-footer { padding: 0; background: transparent; }
  .home-footer .footer-bottom { flex-direction: column; gap: 2px; padding: 16px 16px 20px; border: 0; color: #a3acbd; font-size: 11px; text-align: center; background: transparent; }
  .home-footer .footer-bottom a { color: #a3acbd; }

  /* 资料：两列卡片改成小程序的一行一条 */
  .material-grid { grid-template-columns: 1fr !important; gap: 0 !important; background: #fff; border-radius: 16px; padding: 0 14px; box-shadow: 0 4px 16px rgba(48, 92, 170, .05); }
  .material-grid .material-card-wrap { height: auto; border-bottom: 1px solid #edf1f7; }
  .material-grid .material-card-wrap:last-child { border-bottom: 0; }
  .material-grid .material-card { flex-direction: row; align-items: center; gap: 14px; height: auto; padding: 14px 0; background: transparent; box-shadow: none !important; border: 0; border-radius: 0; transform: none !important; }
  .material-grid .material-card-thumb { flex: none; width: 88px; height: 88px; border-radius: 10px; overflow: hidden; }
  .material-grid .material-card-thumb::before, .material-grid .material-card-thumb::after { display: none; }
  .material-grid .material-card-cover { width: 88px; height: 88px; aspect-ratio: auto; object-fit: cover; }
  .material-grid .material-card-body { padding: 0; min-width: 0; }
  .material-grid .material-card-title { min-height: 0; font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
  .material-grid .material-card-meta { margin-bottom: 6px; font-size: 12px; }
  .material-grid .material-card-cat { display: inline-block; }
  .material-grid .material-card-footer { flex-direction: row; align-items: baseline; justify-content: space-between; margin-top: 0; }
  .material-grid .material-card-price { font-size: 16px; }
  .material-grid .material-card-badge { top: 14px; left: 0; transform: scale(.85); transform-origin: left top; }
}
@media (max-width: 768px) {
  /* 资料库手机端：同小程序「分类」页——顶部只留搜索，分类胶囊横滑，排序一行小字 */
  .library-page .library-hero { min-height: 0; padding: 12px 0 4px; background: linear-gradient(180deg, #eef4fe, #f4f7fc) !important; }
  .library-page .library-hero::before, .library-page .library-hero::after { display: none; }
  .library-page .library-copy { display: none; }
  .library-page .library-hero-inner { display: block; padding-top: 0; padding-bottom: 0; }
  .library-page .library-search { display: flex; align-items: center; gap: 0; width: 100%; height: 44px; margin: 0; padding: 0 4px 0 14px; border-radius: 12px; box-shadow: 0 4px 14px rgba(48, 92, 170, .06); }
  .library-page .library-search input { flex: 1; min-width: 0; height: 44px; padding: 0 8px; font-size: 16px; border: 0; }
  .library-page .library-search button { flex: none; width: auto; height: 36px; padding: 0 16px; margin: 0; border-radius: 10px; font-size: 14px; }
  .library-page .library-filter-band { padding: 10px 0 2px; background: transparent; border: 0; }
  .library-page .library-cats { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .library-page .library-cats::-webkit-scrollbar { display: none; }
  .library-page .library-cat { flex: none; width: auto; min-width: 0; height: 32px; padding: 0 14px; border: 0; border-radius: 16px; background: #fff; color: #5c6883; font-size: 13px; box-shadow: none; }
  .library-page .library-cat i { display: none; }
  .library-page .library-cat.active { background: #3b7ef6; color: #fff; font-weight: 600; }
  .library-page .library-main { padding-top: 6px; }
  .library-page .library-toolbar { display: flex; flex-direction: row; align-items: center; justify-content: space-between; margin: 4px 0 10px; padding: 0 2px; background: transparent; border: 0; box-shadow: none; }
  .library-page .library-result b { font-size: 15px; }
  .library-page .library-result span { font-size: 12px; }
  .library-page .library-sort { display: flex; gap: 16px; }
  .library-page .library-sort a { height: auto; padding: 0; background: transparent !important; color: #8a94a8; font-size: 13px; box-shadow: none; }
  .library-page .library-sort a i { display: none; }
  .library-page .library-sort a.active { color: #172443; font-weight: 700; }
}
@media (max-width: 768px) {
  .library-page .library-cat { display: inline-flex; align-items: center; min-height: 0; padding-top: 0; padding-bottom: 0; line-height: 1; }
  .library-page .library-result { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
}
@media (max-width: 768px) {
  .library-page .library-sort { margin-left: auto; }
}
@media (max-width: 768px) {
  /* polish.css 在后面加载、也给页脚上了深色，这里用更具体的选择器压回浅色 */
  body .home-footer { background: transparent; border: 0; }
  body .home-footer .footer-bottom { background: transparent; color: #a3acbd; }
}

/* =====================================================================
   2026-10-15 页头 / 页脚 / 按钮：参考「AI比价」——白色毛玻璃吸顶页头、
   居中导航、浅底描边按钮；白色页脚 + 蓝色小鱼跃水 + 三列图标链接。
   用 body 前缀压过后加载的 polish.css。
   ===================================================================== */
body .home-header { position: sticky; top: 0; z-index: 1000; height: 64px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid #edf1f7; box-shadow: none; }
body .home-header .home-header-inner { display: flex; align-items: center; gap: 34px; height: 64px; }
body .home-logo { position: relative; display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; overflow: hidden; color: #243247; }
body .home-logo img { height: 38px; width: auto; border-radius: 10px; }
body .home-logo .logo-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: #3b7ef6; color: #fff; font-size: 18px; }
body .home-logo-text { color: #243247; font-size: 22px; font-weight: 800; white-space: nowrap; }
/* logo 流光：一个周期里只扫前四分之一，其余时间停在画面外，不吵 */
body .home-logo::after { content: ""; position: absolute; top: -40%; bottom: -40%; left: -45%; width: 34%; pointer-events: none; opacity: 0; transform: skewX(-22deg); background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.92) 50%, rgba(255,255,255,0) 100%); animation: logo-shine 4s linear infinite; }
@keyframes logo-shine { 0% { left: -45%; opacity: 0; } 3% { opacity: 1; } 20% { opacity: 1; } 24% { left: 115%; opacity: 0; } 100% { left: 115%; opacity: 0; } }

body .home-primary-nav { display: flex; align-items: center; justify-content: flex-start; gap: 30px; flex: 1; min-width: 0; height: 100%; }
body .home-primary-nav a { position: relative; display: inline-flex; align-items: center; height: 100%; padding: 0; color: #3f434b; font-size: 16px; font-weight: 500; white-space: nowrap; background: none; border: 0; transition: color .2s; }
body .home-primary-nav a::after { display: none; }
body .home-primary-nav a:hover, body .home-primary-nav a.active { color: #3b7ef6; }
body .home-primary-nav a.active { font-weight: 600; }

body .home-header .home-nav { display: flex; align-items: center; gap: 12px; margin-left: 0; }
body .home-top-search { display: flex; align-items: center; gap: 8px; width: 200px; height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; background: #edf1f7; color: #6a778d; font-size: 14px; transition: border-color .2s, background .2s; }
body .home-top-search:focus-within { border-color: #3b7ef6; background: #fff; }
body .home-top-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #243247; font-size: 14px; }
/* 按钮：白底描边（开通会员）/ 浅蓝底（登录） */
body .home-header .btn-login { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid #dceafe; border-radius: 10px; background: #edf5ff; color: #3b7ef6; font-size: 14px; font-weight: 600; box-shadow: none; }
/* 旧规则 .home-nav .btn-login:hover 会把字变白、polish.css 还加光晕，这里显式压回 */
body .home-header .btn-login:hover { border-color: #3b7ef6; background: #fff; color: #3b7ef6; box-shadow: none; }
body .home-member { display: inline-flex; align-items: center; gap: 7px; max-width: 130px; color: #3f434b; }
body .home-member:hover { color: #3b7ef6; }
body .home-member-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #dceafe; color: #3b7ef6; font-size: 13px; font-weight: 700; }
body .home-member-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; font-weight: 600; }

/* 页脚：白底，上方小鱼跃水（水面同为白色，用细灰边勾出水面线） */
body .footer-fish { position: relative; height: 110px; margin-top: 16px; margin-bottom: -1px; overflow: hidden; background: transparent; }
body .footer-fish canvas { display: block; filter: drop-shadow(0 -1px 0 #e1e7f0); }
body .home-footer { padding: 36px 0 26px; background: #fff; color: #6a778d; text-align: left; border: 0; }
body .home-footer-top { display: flex; justify-content: space-between; gap: 40px; }
body .home-footer-brand { max-width: 440px; }
body .home-footer-logo { display: inline-flex; align-items: center; gap: 12px; color: #243247; font-size: 22px; font-weight: 800; }
body .home-footer-logo img { height: 38px; width: auto; border-radius: 10px; }
body .home-footer-logo .logo-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: #3b7ef6; color: #fff; font-size: 18px; }
body .home-footer-brand p { margin-top: 14px; font-size: 14.5px; line-height: 1.75; color: #6a778d; }
body .home-footer-cols { display: flex; gap: 64px; }
body .home-footer-col h3 { margin-bottom: 14px; color: #243247; font-size: 16px; font-weight: 700; }
body .home-footer-col a { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: #59677b; font-size: 14.5px; white-space: nowrap; transition: color .15s, transform .15s; }
body .home-footer-col a i { width: 16px; color: #6a778d; font-size: 13.5px; text-align: center; transition: color .15s; }
body .home-footer-col a:hover { color: #3b7ef6; transform: translateX(2px); }
body .home-footer-col a:hover i { color: #3b7ef6; }
body .home-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #edf1f7; color: #6a778d; font-size: 13.5px; }
body .home-footer-bottom a { color: #59677b; }
body .home-footer-bottom a:hover { color: #3b7ef6; }
body .home-footer-statement { margin-left: auto; }

/* 回到顶部：毛玻璃圆按钮，外圈是阅读进度 */
.home-totop { position: fixed; right: 28px; bottom: 28px; z-index: 940; display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 6px 20px rgba(16,24,40,.12); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); color: #3b7ef6; font-size: 18px; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s; }
.home-totop.is-show { opacity: 1; visibility: visible; transform: none; }
.home-totop:hover { box-shadow: 0 8px 24px rgba(59, 126, 246, .25); }
.home-totop svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.home-totop circle { fill: none; stroke-width: 2.5; }
.home-totop-track { stroke: #dceafe; }
.home-totop-bar { stroke: #3b7ef6; stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; }

@media (max-width: 1100px) {
  body .home-top-search { display: none; }
}
@media (max-width: 768px) {
  body .home-header { height: 56px; }
  body .home-header .home-header-inner { height: 56px; gap: 12px; }
  body .home-primary-nav { display: none; }
  body .home-logo-text { font-size: 19px; }
  body .home-logo .logo-icon, body .home-logo img { width: 32px; height: 32px; font-size: 15px; }
  body .home-header .home-nav { margin-left: auto; gap: 8px; }
  body .home-member-name { display: none; }
  body .home-header .btn-login { height: 36px; padding: 0 12px; font-size: 13px; }
  /* 手机端页脚：小鱼和三列都收起，只留版权和备案号一行（底部有 Tab） */
  body .footer-fish, body .home-footer-top, body .home-footer-statement { display: none; }
  body .home-footer { padding: 0 0 8px; background: transparent; }
  body .home-footer-bottom { justify-content: center; gap: 2px 12px; margin-top: 0; padding: 14px 0 6px; border: 0; font-size: 11px; text-align: center; }
  body.has-tabbar .home-totop { display: none; }
}

/* =====================================================================
   2026-10-15 首页首屏：左轮播 + 右侧栏（参考 AI比价）。hb- 前缀避免撞名
   三张各有主题色：①品牌蓝找资料 ②浅色精选（立体封面+信息卡）③藏青金会员
   ===================================================================== */
.hb-wrap { padding: 20px 0 8px; }
.hb-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: stretch; }
.hb-hero { position: relative; display: grid; min-height: 400px; border-radius: 20px; overflow: hidden; isolation: isolate; box-shadow: 0 10px 30px rgba(36, 72, 140, .12); }
.hb-slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; gap: 32px; padding: 40px 56px; overflow: hidden; visibility: hidden; opacity: 0; transition: opacity .6s ease, visibility .6s; }
.hb-slide.is-on { visibility: visible; opacity: 1; }
.hb-copy { position: relative; z-index: 1; flex: 1; min-width: 0; max-width: 560px; }
.hb-kicker { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 14px; background: rgba(59, 126, 246, .12); color: #2f6ee8; font-size: 13px; font-weight: 600; }
.hb-sub { margin-top: 12px; font-size: 15px; line-height: 1.75; }
.hb-clamp { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hb-deco { position: absolute; border-radius: 50%; pointer-events: none; }
.hb-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 24px; border-radius: 12px; background: #3b7ef6; color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 10px 22px rgba(59, 126, 246, .3); transition: transform .2s, filter .2s; }
.hb-btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.06); }

/* ① 找资料：品牌蓝，右侧热门封面扇形 */
.hb-s1 { background: linear-gradient(125deg, #4d8ef9 0%, #3274f0 55%, #2a5fd8 100%); color: #fff; }
.hb-s1 .d1 { right: -120px; top: -160px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,0) 65%); }
.hb-s1 .d2 { left: -80px; bottom: -140px; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.18); }
.hb-s1 .hb-kicker { background: rgba(255,255,255,.18); color: #fff; }
.hb-s1 h1 { margin-top: 16px; color: #fff; font-size: clamp(30px, 2.9vw, 42px); font-weight: 800; line-height: 1.25; letter-spacing: -.5px; }
.hb-s1 .hb-sub { color: rgba(255,255,255,.85); }
.hb-search { display: flex; align-items: center; gap: 10px; height: 54px; margin-top: 24px; padding: 0 6px 0 18px; border-radius: 14px; background: #fff; box-shadow: 0 14px 30px rgba(20, 50, 120, .25); }
.hb-search > i { color: #8a94a8; }
.hb-search input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; color: #243247; font-size: 15px; }
.hb-search button { flex: none; height: 42px; padding: 0 24px; border: 0; border-radius: 10px; background: #3b7ef6; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.hb-search button:hover { background: #2f6ee8; }
.hb-hotwords { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; }
.hb-hotwords span { color: rgba(255,255,255,.75); }
.hb-hotwords a { padding: 3px 12px; border-radius: 14px; background: rgba(255,255,255,.16); color: #fff; }
.hb-hotwords a:hover { background: rgba(255,255,255,.28); color: #fff; }
.hb-fan { position: relative; flex: none; width: 330px; height: 300px; }
.hb-fan img { position: absolute; top: 40px; width: 190px; height: 190px; object-fit: cover; border: 5px solid #fff; border-radius: 14px; box-shadow: 0 18px 38px rgba(10, 30, 80, .35); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.hb-fan .f0 { left: 70px; z-index: 3; transform: rotate(-2deg); }
.hb-fan .f1 { left: 0; z-index: 2; transform: rotate(-14deg) translateY(16px) scale(.92); }
.hb-fan .f2 { left: 140px; z-index: 1; transform: rotate(12deg) translateY(16px) scale(.92); }
.hb-hero:hover .hb-fan .f1 { transform: rotate(-18deg) translate(-14px, 20px) scale(.92); }
.hb-hero:hover .hb-fan .f2 { transform: rotate(16deg) translate(14px, 20px) scale(.92); }

/* ② 本周精选：浅底，立体封面 + 白色信息卡 */
.hb-s2 { justify-content: center; gap: 48px; background: radial-gradient(circle at 20% 30%, #dfeaff 0, #eef4ff 45%, #f7faff 100%); }
.hb-s2-cover { position: relative; flex: none; width: 260px; height: 260px; perspective: 900px; }
.hb-s2-cover img { position: relative; z-index: 1; width: 260px; height: 260px; object-fit: cover; border-radius: 14px; transform: rotateY(14deg) rotateX(4deg); box-shadow: -18px 24px 40px rgba(36, 72, 140, .28); }
.hb-s2-shadow { position: absolute; left: 20px; right: -10px; bottom: -22px; height: 26px; border-radius: 50%; background: radial-gradient(ellipse, rgba(36,72,140,.22), rgba(36,72,140,0) 70%); }
.hb-s2-card { position: relative; z-index: 1; flex: 1; min-width: 0; max-width: 520px; padding: 26px 28px; border-radius: 18px; background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 14px 34px rgba(36, 72, 140, .1); }
.hb-s2-card h2 { margin-top: 12px; color: #172443; font-size: 26px; font-weight: 800; line-height: 1.3; }
.hb-s2-card .hb-sub { color: #59677b; }
.hb-s2-stats { display: flex; gap: 22px; margin-top: 16px; padding: 12px 0; border-top: 1px dashed #dbe4f3; border-bottom: 1px dashed #dbe4f3; }
.hb-s2-stats span { display: flex; flex-direction: column; color: #8a94a8; font-size: 12px; }
.hb-s2-stats b { color: #172443; font-size: 20px; font-weight: 800; }
.hb-s2-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.hb-s2-price { color: #3b7ef6; font-size: 30px; font-weight: 800; }
.hb-s2-price small { font-size: 16px; }
.hb-s2-price s { margin-left: 8px; color: #a3acbd; font-size: 14px; font-weight: 400; }

/* ③ 会员：藏青底 + 金色，右侧三张价格卡 */

/* 箭头（悬停出现）+ 进度条式圆点（右下） */
.hb-arrow { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #243247; box-shadow: 0 6px 16px rgba(16, 24, 40, .15); cursor: pointer; opacity: 0; transition: opacity .2s, transform .2s; }
.hb-arrow.prev { left: 14px; }
.hb-arrow.next { right: 14px; }
.hb-hero:hover .hb-arrow { opacity: 1; }
.hb-arrow:hover { transform: scale(1.06); }
.hb-dots { position: absolute; right: 24px; bottom: 20px; z-index: 3; display: flex; gap: 6px; }
.hb-dots button { width: 22px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s, background .3s; }
.hb-dots button.is-on { width: 40px; background: #fff; }
.hb-hero.on-light .hb-dots button { background: rgba(59, 126, 246, .25); }
.hb-hero.on-light .hb-dots button.is-on { background: #3b7ef6; }

/* 右侧栏 */
.hb-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hb-panel { display: block; padding: 16px 18px; border: 1px solid #edf1f7; border-radius: 14px; background: #fff; box-shadow: 0 4px 16px rgba(48, 92, 170, .04); }
.hb-panel-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.hb-panel-hd h2 { font-size: 16px; font-weight: 700; color: #243247; }
.hb-panel-hd h2 i { margin-right: 4px; color: #22b07d; }
.hb-panel-hd a { color: #8a94a8; font-size: 13px; }
.hb-panel-hd a:hover { color: #3b7ef6; }
.hb-free { flex: 1; }
.hb-free-list { margin: 0; padding: 0; list-style: none; }
.hb-free-list a { display: flex; align-items: center; gap: 10px; padding: 9px 6px; margin: 0 -6px; border-radius: 10px; transition: background .15s; }
.hb-free-list a:hover { background: #f4f8ff; }
.hb-free-list img { flex: none; width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: #eef3fb; }
.hb-free-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hb-free-txt strong { color: #243247; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-free-txt small { align-self: flex-start; padding: 0 8px; border-radius: 4px; font-size: 11px; line-height: 18px; }
.hb-free-txt small.t1 { background: #e3f6ee; color: #1aa874; }
.hb-free-txt small.t2 { background: #e8f0fe; color: #3b7ef6; }
.hb-free-txt small.t3 { background: #fff0e3; color: #e8792b; }
.hb-free-txt small.t4 { background: #ffeceb; color: #e5484d; }
.hb-empty { padding: 14px 0 4px; color: #8a94a8; font-size: 13px; }
.hb-service { display: flex; align-items: center; gap: 12px; }
.hb-service img { flex: none; width: 64px; height: 64px; border-radius: 8px; border: 1px solid #edf1f7; }
.hb-service div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hb-service b { color: #243247; font-size: 15px; }
.hb-service span { color: #8a94a8; font-size: 12px; }
.hb-service .hb-wx { color: #59677b; }

/* 首屏下面原来的内容区上边距收一收 */
.hb-wrap + .scenario-main { padding-top: 28px; }

@media (max-width: 1240px) {
  .hb-fan { transform: scale(.85); transform-origin: right center; }
  .hb-s2-cover, .hb-s2-cover img { width: 210px; height: 210px; }
}
@media (max-width: 1100px) {
  .hb-top { grid-template-columns: 1fr; }
  .hb-side { display: grid; grid-template-columns: repeat(2, 1fr); }
  .hb-free { grid-row: span 2; }
}
@media (max-width: 768px) {
  /* 手机：只保留第 1 张的问候 + 搜索，右侧栏收起——分类入口和会员横幅在下面 */
  .hb-wrap { padding: 12px 0 0; }
  .hb-side, .hb-s2, .hb-dots, .hb-arrow, .hb-fan, .hb-deco, .hb-kicker, .hb-s1 h1, .hb-sub, .hb-hotwords { display: none; }
  .hb-hero { min-height: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  .hb-s1 { padding: 0; background: transparent; }
  .hb-search { height: 46px; margin-top: 12px; border: 1px solid #e1e7f0; box-shadow: 0 6px 16px rgba(48, 92, 170, .08); }
  .hb-search input { height: 44px; font-size: 16px; }
  .hb-search button { height: 36px; padding: 0 16px; }
}

/* 2026-10-15 网站免费资料专区：浅绿横幅 + 筛选 + 竖版卡片 + 自绘弹窗 */
.fz-page { padding: 24px 0 48px; }
.fz-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 32px; border: 1px solid #dbe7fb; border-radius: 16px; background: radial-gradient(circle at 92% 0, #d9e8ff 0, rgba(217,232,255,0) 40%), linear-gradient(120deg, #f3f8ff 0%, #e8f0ff 100%); }
.fz-hero h1 { color: #172443; font-size: 24px; font-weight: 800; }
.fz-hero h1 i { color: #3b7ef6; margin-right: 4px; }
.fz-hero p { margin-top: 6px; color: #6a778d; font-size: 14px; }

.fz-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 18px; }
.fz-tabs button { height: 36px; padding: 0 18px; border: 1px solid #e1e7f0; border-radius: 18px; background: #fff; color: #59677b; font-size: 14px; cursor: pointer; transition: all .15s; }
.fz-tabs button:hover { border-color: #3b7ef6; color: #3b7ef6; }
.fz-tabs button.on { border-color: #3b7ef6; background: #3b7ef6; color: #fff; font-weight: 600; }

.fz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fz-card { display: flex; gap: 14px; padding: 14px; border: 1px solid #edf1f7; border-radius: 14px; background: #fff; scroll-margin-top: 90px; transition: border-color .15s, box-shadow .15s; }
.fz-card[hidden] { display: none; }
.fz-card:hover { border-color: #cfdcf3; box-shadow: 0 8px 22px rgba(48, 92, 170, .08); }
.fz-card:target { border-color: #3b7ef6; box-shadow: 0 0 0 3px rgba(59, 126, 246, .15); }
.fz-thumb { flex: none; width: 92px; height: 122px; border-radius: 8px; background: #f2f5fb; overflow: hidden; border: 1px solid #f0f3f8; }
.fz-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fz-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fz-body h3 { color: #172443; font-size: 15px; font-weight: 700; line-height: 1.45; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.fz-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.fz-tag { padding: 1px 7px; border-radius: 4px; font-size: 12px; font-weight: 600; line-height: 18px; }
.fz-tag.t1 { background: #e6f7ef; color: #13945f; } .fz-tag.t2 { background: #e6f8ee; color: #06a552; } .fz-tag.t3 { background: #fff1e6; color: #e06d1f; } .fz-tag.t4 { background: #fdecec; color: #d93a3f; }
.fz-owned { color: #13945f; font-size: 12px; }
.fz-cond { display: flex; gap: 5px; margin-top: 6px; color: #8a94a8; font-size: 12px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.fz-cond i { margin-right: 4px; color: #a3b3cc; font-size: 11px; }
.fz-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.fz-count { color: #a3acbd; font-size: 12px; }
.fz-btn { height: 30px; padding: 0 16px; border: 0; border-radius: 15px; background: #3b7ef6; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s; }
.fz-btn:hover { background: #2563eb; }
.fz-btn.ghost { border: 1px solid #c5d9fc; background: #fff; color: #3b7ef6; }
.fz-btn.ghost:hover { background: #f3f8ff; }
.fz-empty { padding: 80px 0; text-align: center; color: #8a94a8; }
.fz-empty i { font-size: 44px; color: #c4ccd9; }

/* 弹窗 */
.fz-mask { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 42, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.fz-mask[hidden] { display: none; }
.fz-modal { position: relative; width: 460px; max-width: 100%; padding: 30px 28px 26px; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(15, 23, 42, .25); animation: fz-in .2s ease-out; }
@keyframes fz-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.fz-close { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f2f5fb; color: #8a94a8; cursor: pointer; }
.fz-close:hover { color: #243247; }
.fz-mt { color: #172443; font-size: 20px; font-weight: 800; text-align: center; }
.fz-mt .fa-weixin { color: #07c160; margin-right: 4px; }
.fz-msub { margin: 6px 0 18px; color: #8a94a8; font-size: 13px; text-align: center; }
.fz-ok { width: 56px; height: 56px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: #e8f0fe; color: #3b7ef6; font-size: 28px; }
.fz-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #f4f8fd; font-size: 14px; }
.fz-row > span { flex: none; color: #8a94a8; font-size: 13px; }
.fz-row > a { flex: 1; min-width: 0; color: #3b7ef6; word-break: break-all; }
.fz-row .fz-code { flex: 1; color: #3b7ef6; font-size: 20px; letter-spacing: 3px; }
.fz-row button, .fz-kw button { flex: none; height: 30px; padding: 0 14px; border: 0; border-radius: 15px; background: #3b7ef6; color: #fff; font-size: 13px; cursor: pointer; }
.fz-download { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; margin-top: 14px; border-radius: 12px; background: #3b7ef6; color: #fff; font-weight: 700; }
.fz-download:hover { color: #fff; filter: brightness(1.06); }
.fz-mp { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
.fz-qr { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border: 1px solid #e1e7f0; border-radius: 14px; background: #fff; }
.fz-qr img { width: 148px; height: 148px; object-fit: contain; border-radius: 8px; }
.fz-qr > i { display: grid; place-items: center; width: 148px; height: 148px; color: #c4ccd9; font-size: 60px; }
.fz-qr span { color: #8a94a8; font-size: 12px; }
.fz-steps { flex: 1; margin: 0; padding: 0; list-style: none; }
.fz-steps li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; color: #3f4a5d; font-size: 14px; line-height: 1.5; }
.fz-steps b { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e8f0fe; color: #3b7ef6; font-size: 12px; }
.fz-kw { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border: 1px dashed #a9c8fb; border-radius: 14px; background: #f6f9ff; }
.fz-kw span { color: #8a94a8; font-size: 13px; }
.fz-kw b { flex: 1; color: #3b7ef6; font-size: 24px; font-weight: 800; letter-spacing: 3px; }
.fz-kw button { background: #3b7ef6; }
.fz-done { display: block; width: 100%; height: 44px; margin-top: 16px; border: 1px solid #c5d9fc; border-radius: 12px; background: #fff; color: #3b7ef6; font-size: 15px; font-weight: 600; cursor: pointer; }
.fz-done:hover { background: #f3f8ff; }

@media (max-width: 1360px) { .fz-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) { .fz-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .fz-page { padding: 12px 0 24px; }
  .fz-hero { padding: 16px 18px; border-radius: 14px; }
  .fz-hero h1 { font-size: 19px; }
  .fz-hero p { font-size: 12px; }
  .fz-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 12px -16px 10px; padding: 0 16px; scrollbar-width: none; }
  .fz-tabs::-webkit-scrollbar { display: none; }
  .fz-tabs button { flex: none; height: 32px; padding: 0 14px; font-size: 13px; }
  .fz-grid { grid-template-columns: 1fr; gap: 10px; }
  .fz-card { padding: 12px; gap: 12px; }
  .fz-thumb { width: 78px; height: 104px; }
  .fz-mp { flex-direction: column; }
}

/* 2026-10-15 资料库电脑端：标题、搜索、学段筛选收进一张卡片，排序做成分段按钮 */
.library-cat em { margin-left: 6px; font-style: normal; font-size: 12px; opacity: .6; }
@media (min-width: 769px) {
  .library-page { background: transparent; padding: 24px 0 48px; }
  .library-page .library-head { border: 1px solid #e8eef7; border-radius: 18px; background: #fff; box-shadow: 0 6px 24px rgba(48, 92, 170, .05); overflow: hidden; }
  .library-page .library-hero { background: linear-gradient(110deg, #f3f8ff 0%, #ffffff 60%); border-bottom: 1px solid #eef2f8; }
  .library-page .library-hero-inner { min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 26px 32px; }
  .library-page .library-copy h1 { margin: 0; font-size: 26px; font-weight: 800; color: #172443; }
  .library-page .library-copy p { margin-top: 6px; color: #7b889c; font-size: 14px; line-height: 1.6; }
  .library-page .library-search { flex: none; display: flex; align-items: center; width: 480px; height: 48px; padding: 0 5px 0 16px; border: 1.5px solid #dbe5f4; border-radius: 24px; background: #fff; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
  .library-page .library-search:focus-within { border-color: #3b7ef6; box-shadow: 0 0 0 4px rgba(59, 126, 246, .1); }
  .library-page .library-search input { flex: 1; min-width: 0; height: 100%; padding: 0 10px; border: 0; background: transparent; font-size: 14px; }
  .library-page .library-search button { flex: none; height: 38px; padding: 0 24px; border-radius: 19px; font-size: 14px; font-weight: 600; }
  .library-page .library-filter-band { display: flex; align-items: center; gap: 18px; padding: 16px 32px; background: #fff; border: 0; }
  .library-filter-label { flex: none; color: #9aa5b8; font-size: 14px; }
  .library-page .library-cats { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; }
  .library-page .library-cat { display: inline-flex; align-items: center; width: auto; min-height: 0; height: 36px; padding: 0 18px; border: 1px solid transparent; border-radius: 18px; background: #f4f7fc; color: #4b586d; font-size: 14px; font-weight: 500; box-shadow: none; transform: none; }
  .library-page .library-cat i { display: none; }
  .library-page .library-cat:hover { background: #eaf2ff; color: #3b7ef6; transform: none; }
  .library-page .library-cat.active { background: #3b7ef6; color: #fff; font-weight: 600; box-shadow: 0 6px 14px rgba(59, 126, 246, .25); }
  .library-page .library-cat.active em { opacity: .85; }
  .library-page .library-main { padding: 0; }
  .library-page .library-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 16px; padding: 0 4px; border: 0; background: transparent; box-shadow: none; }
  .library-page .library-result { display: flex; align-items: baseline; gap: 4px; color: #7b889c; font-size: 14px; }
  .library-page .library-result b { color: #3b7ef6; font-size: 18px; font-weight: 800; }
  .library-page .library-sort { display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid #e8eef7; }
  .library-page .library-sort a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 16px; border-radius: 9px; background: transparent; color: #6a778d; font-size: 13px; box-shadow: none; }
  .library-page .library-sort a:hover { background: #f4f7fc; color: #3b7ef6; }
  .library-page .library-sort a.active { background: #eaf2ff; color: #3b7ef6; font-weight: 700; }
}
@media (max-width: 768px) {
  .library-filter-label { display: none; }
  .library-page .library-cat em { display: none; }
  .library-page .library-hero { padding: 12px 0 4px; background: transparent !important; border: 0; }
}

/* 2026-10-16 资料库二级分类行：比学段行轻一档，选中用蓝字浅底 */
.library-subcat { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 15px; color: #59677b; font-size: 13px; white-space: nowrap; }
.library-subcat em { margin-left: 5px; font-style: normal; font-size: 12px; opacity: .55; }
.library-subcat:hover { color: #3b7ef6; }
.library-subcat.active { background: #eaf2ff; color: #3b7ef6; font-weight: 600; }
@media (min-width: 769px) {
  .library-page .library-sub-band { padding-top: 0; }
  .library-page .library-subcats { gap: 6px; padding: 10px 12px; border-radius: 12px; background: #f7f9fd; }
}
@media (max-width: 768px) {
  .library-page .library-sub-band { padding: 2px 0 0; }
  .library-page .library-subcats { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .library-page .library-subcats::-webkit-scrollbar { display: none; }
  .library-subcat em { display: none; }
}
