/* =====================================================================
   中国轻工业出版社有限公司 — 专业版设计系统 v3
   编辑出版风（Editorial）：宋体标题气质 · 暖橙品牌传承 · 荣誉金点缀
   参照 ui-ux-pro-max 规则：无障碍(焦点环/减弱动效) · 8pt 间距 · 层级阴影 · 响应式断点
   ===================================================================== */

:root {
  /* 品牌主色 — 琥珀暖橙（出版社传承色，略加深更沉稳，增强对比度）*/
  --brand: #c24812;
  --gold-softer: #faf3e0;
  --brand-dark: #9a380a;
  --brand-light: #e86d2d;
  --brand-soft: #fbe5db;
  --brand-softer: #fdf8f4;
  --accent: #8c4d23;

  /* 荣誉金 — 精装 / 奖项 / 印章点缀（提高饱和度增强可见性）*/
  --gold: #a67c00;
  --gold-dark: #7a5f00;
  --gold-soft: #f5efe0;

  /* 墨色（暖调近黑，宣纸墨韵，增强对比度）*/
  --ink: #12100e;
  --ink-2: #33302b;
  --ink-3: #5c564f;
  --ink-4: #8a8278;
  --line: #d4ccc2;
  --line-2: #e8e2d9;
  --line-3: #f3eee6;

  /* 纸面背景（增加层次感）*/
  --bg: #ffffff;
  --bg-2: #faf7f2;
  --bg-3: #f5f0e8;
  --paper: #fcfbf8;

  /* 语义色（符合 WCAG 对比度标准）*/
  --success: #2e7d32;
  --warning: #f57f17;
  --error: #b71c1c;
  --info: #1565c0;

  /* 排版（专业出版风格）*/
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", Georgia, "Times New Roman", serif;
  --mono: "SF Mono", "Monaco", "Inconsolata", "Fira Mono", monospace;

  /* 字号系统（16px 基准，符合移动端可读性）*/
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 17px;
  --text-xl: 19px;
  --text-2xl: 22px;
  --text-3xl: 28px;
  --text-4xl: 34px;
  --text-5xl: 42px;
  --text-6xl: 50px;

  /* 间距刻度（8pt 体系，增强视觉层次）*/
  --sp-0: 0; --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  /* 结构（响应式容器宽度）*/
  --wrap: 1280px;
  --wrap-lg: 1440px;
  --measure: 65ch;
  --measure-wide: 75ch;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --header-h: 80px;

  /* 层级阴影（暖调、递进，增强深度感）*/
  --shadow-xs: 0 1px 2px rgba(78, 42, 16, .06);
  --shadow-sm: 0 3px 8px rgba(78, 42, 16, .08);
  --shadow: 0 6px 22px rgba(96, 54, 22, .1);
  --shadow-md: 0 10px 34px rgba(96, 54, 22, .14);
  --shadow-lg: 0 18px 52px rgba(96, 54, 22, .18);
  --shadow-xl: 0 30px 72px rgba(96, 54, 22, .22);

  /* 过渡与动画（专业流畅）*/
  --transition: .28s cubic-bezier(.4, 0, .2, 1);
  --transition-fast: .15s cubic-bezier(.4, 0, .2, 1);
  --transition-slow: .45s cubic-bezier(.4, 0, .2, 1);

  /* Z-index（系统化管理）*/
  --z-dropdown: 50;
  --z-sticky: 100;
  --z-modal: 500;
  --z-toast: 1000;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(207, 82, 25, .035), transparent 42%),
    radial-gradient(circle at 84% 0%, rgba(179, 137, 63, .045), transparent 46%);
  background-attachment: fixed;
  line-height: 1.75;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  min-height: 100vh;
}
img { max-width: 100%; display: block; height: auto; margin: 0 auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition); touch-action: manipulation; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.24; letter-spacing: .3px; }
h1, h2, h3 { font-family: var(--serif); text-wrap: balance; }
button { font-family: inherit; cursor: pointer; border: none; background: none; touch-action: manipulation; font-size: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* 按压反馈：轻微缩放，给触摸/点击即时视觉响应（scale-feedback）*/
.btn:active, .filter-bar a:active, .contact-tabs button:active,
.side-nav a:active, .service-card:active, .book-card:active,
.hero-arrow:active, .to-top:active, .nav-toggle:active,
.header-search button:active, .hero-dots button:active,
.pillar:active, .cat-col:active, .stat:active, .buy-btn:active, .cat-nav:active:not(:disabled) { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  .btn:active, .filter-bar a:active, .contact-tabs button:active,
  .side-nav a:active, .service-card:active, .book-card:active,
  .hero-arrow:active, .to-top:active, .nav-toggle:active,
  .header-search button:active, .hero-dots button:active,
  .pillar:active, .cat-col:active, .stat:active, .buy-btn:active, .cat-nav:active { transform: none; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(8px, 3.5vw, 24px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 无障碍：可见焦点环（键盘导航）*/
:focus-visible { 
  outline: 3px solid var(--brand); 
  outline-offset: 3px; 
  border-radius: 6px; 
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 5px var(--brand);
}
:focus:not(:focus-visible) { outline: none; }

.btn:focus-visible, 
.filter-bar a:focus-visible, 
.contact-tabs button:focus-visible,
.side-nav a:focus-visible, 
.service-card:focus-visible, 
.book-card:focus-visible,
.hero-arrow:focus-visible, 
.to-top:focus-visible, 
.nav-toggle:focus-visible,
.header-search button:focus-visible, 
.hero-dots button:focus-visible,
.pillar:focus-visible, 
.cat-col:focus-visible, 
.stat:focus-visible, 
.buy-btn:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 0 0 3px var(--brand), 0 0 0 6px var(--brand-soft);
}

/* 无障碍：尊重系统"减弱动态效果"设置 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .btn-primary:hover,
  .btn-primary:hover::before,
  .book-card:hover .book-cover,
  .service-card:hover,
  .service-card:hover .s-icon,
  .service-card:hover::before,
  .pillar:hover,
  .cat-col:hover,
  .stat:hover,
  .to-top:hover,
  .buy-btn:hover,
  .search-hot a:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* 无障碍：高对比度模式支持 */
@media (prefers-contrast: high) {
  :root {
    --brand: #b84000;
    --brand-dark: #8a2e00;
    --gold: #a07000;
    --ink: #000000;
    --ink-2: #222222;
    --ink-3: #444444;
    --line: #888888;
    --brand-soft: #ffe0cc;
    --brand-softer: #fff0e6;
    --gold-soft: #fff0cc;
  }
  .site-footer {
    background: #000 !important;
    color: #ccc !important;
  }
}

/* 无障碍：减少动画模式 */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    transition: opacity .45s ease-out, transform .45s cubic-bezier(.4, 0, .2, 1);
  }
}

/* 滚动进入渐显（配合 main.js）*/
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .45s ease, transform .45s cubic-bezier(.4, 0, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* =========================== 顶栏工具条 =========================== */
.topbar {
  background: var(--ink);
  color: #cfc7bd;
  font-size: 12.5px;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar .badges { display: flex; gap: 20px; }
.topbar .badges span { display: flex; align-items: center; gap: 6px; }
.topbar .badges span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(179, 137, 63, .18); }
.topbar .quick a { color: #cfc7bd; margin-left: 18px; }
.topbar .quick a:hover { color: #fff; }
@media (max-width: 900px) {
  .topbar .badges { display: none; }
  .topbar .wrap { justify-content: center; }
  .topbar .quick a { margin: 0 10px; min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 400px) {
  .wrap { padding: 0 clamp(8px, 3vw, 12px); }
  .section { padding: clamp(36px, 6vw, 64px) 0; }
}
@media (max-width: 380px) {
  :root {
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 16px;
    --text-xl: 17px;
    --text-2xl: 19px;
  }
}

@media (max-width: 360px) {
  .wrap { padding: 0 clamp(8px, 3vw, 12px); }
  .section { padding: clamp(36px, 6vw, 64px) 0; }
}

/* =========================== 站点页头 =========================== */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-2);
  height: var(--header-h);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; flex-shrink: 0; }
.logo-mark {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--brand); color: #fff; border-radius: var(--radius-sm);
  font-family: var(--serif); font-size: 22px; font-weight: 700; flex-shrink: 0;
}
.brand .logo-img { width: auto; height: 48px; }
.logo-text b { display: block; font-family: var(--serif); font-size: 19px; color: var(--ink); letter-spacing: 1px; white-space: nowrap; }
.logo-text small { display: block; font-size: 11px; color: var(--ink-4); letter-spacing: 1px; margin-top: 2px; white-space: nowrap; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.main-nav a {
  display: block; padding: 10px 15px; font-size: var(--text-lg); font-weight: 600;
  color: var(--ink-2); text-decoration: none; border-radius: var(--radius-xs);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.main-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.main-nav a.active { color: var(--brand); }
.main-nav .current_page_item a { color: var(--brand); }
.main-nav .nav-mobile { display: none; }
.header-search { flex-shrink: 0; }
.header-search form { display: flex; align-items: center; }
.header-search input {
  width: 134px; height: 40px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--radius-xs) 0 0 var(--radius-xs);
  font-size: 14px; color: var(--ink-2); background: var(--bg-2); outline: none; transition: border-color var(--transition);
}
.header-search input:focus { border-color: var(--brand); background: #fff; }
.header-search button {
  width: 44px; min-width: 44px; min-height: 44px; height: 44px;
  border: 1.5px solid var(--brand); background: var(--brand); color: #fff;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0; cursor: pointer;
  display: grid; place-items: center; transition: background var(--transition);
}
.header-search button:hover { background: var(--brand-dark); }
.header-actions { display: none; align-items: center; gap: 8px; margin-left: auto; }
.header-search-mobile, .nav-toggle {
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  border: none; background: none; cursor: pointer; border-radius: var(--radius-xs);
  display: grid; place-items: center; color: var(--ink-2); transition: background var(--transition);
}
.header-search-mobile:hover, .nav-toggle:hover { background: var(--brand-soft); color: var(--brand); }
.mobile-search { display: none; }
@media (max-width: 1024px) {
  .header-search input { width: 100px; }
}
@media (max-width: 980px) {
  .header-actions { display: flex; }
  .header-search { display: none; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,.98); z-index: calc(var(--z-sticky) - 1);
    padding: 20px; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s ease;
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { font-size: var(--text-xl); padding: 14px 16px; white-space: normal; }
  .main-nav .nav-mobile { display: block; }
  .mobile-search { display: block; padding: 0 0 12px; }
  .mobile-search form { display: flex; }
  .mobile-search input {
    flex: 1; height: 44px; padding: 0 12px; border: 1.5px solid var(--line);
    border-radius: var(--radius-xs) 0 0 var(--radius-xs); font-size: 16px; outline: none;
  }
  .mobile-search input:focus { border-color: var(--brand); }
  .mobile-search button {
    width: 44px; min-width: 44px; height: 44px;
    border: 1.5px solid var(--brand); background: var(--brand); color: #fff;
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0; cursor: pointer;
    display: grid; place-items: center;
  }
}

/* =========================== 通用区块 =========================== */
.section { padding: clamp(52px, 7vw, 92px) 0; }
.section.tight { padding: clamp(40px, 6vw, 64px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(28px, 4vw, 46px); gap: 16px; flex-wrap: wrap; }
.section-title { position: relative; padding-left: 18px; }
.section-title::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 5px; width: 5px; border-radius: 3px; background: linear-gradient(180deg, var(--brand), var(--gold)); }
.section-title h2 { font-size: clamp(25px, 3.9vw, 36px); color: var(--ink); letter-spacing: 1.5px; line-height: 1.2; }
.section-title .en { display: block; font-family: var(--font); font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-bottom: 8px; }
.section-title.center { text-align: center; padding-left: 0; }
.section-title.center::before { display: none; }
.section-title.center .en::after { content: ""; display: block; width: 42px; height: 3px; border-radius: 3px; margin: 12px auto 0; background: linear-gradient(90deg, var(--brand), var(--gold)); }
.more-link { font-size: 13.5px; color: var(--ink-3); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; transition: var(--transition); }
.more-link:hover { color: var(--brand); gap: 8px; }

.eyebrow {
  display: inline-block; padding: 5px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  letter-spacing: 1px; color: var(--brand); background: var(--brand-soft); margin-bottom: 14px;
}

/* 面包屑 */
.crumb { font-size: 13px; color: var(--ink-3); padding: 20px 0; display: flex; align-items: center; gap: 8px; }
.crumb a:hover { color: var(--brand); }
.crumb span { color: var(--line); }

@media (max-width: 767px) {
  .crumb a { min-height: 44px; display: inline-flex; align-items: center; }
  .more-link { min-height: 44px; display: inline-flex; align-items: center; }
}

/* 页面标题横幅 */
.page-hero {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden;
  width: 100vw; margin-inline: calc(-50vw + 50%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: 
    radial-gradient(circle at 90% 120%, rgba(166, 124, 0, .4), transparent 45%),
    radial-gradient(circle at 10% -20%, rgba(255, 255, 255, .08), transparent 50%);
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px;
  background: rgba(255, 255, 255, .08); border-radius: 50%;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(34px, 6.5vw, 52px); margin-bottom: 12px; letter-spacing: 4px; line-height: 1.15; }
.page-hero p { margin: 0; opacity: .92; font-size: clamp(16px, 1.8vw, 19px); max-width: 680px; line-height: 1.85; }
.page-hero .en { font-family: var(--font); font-size: 13px; letter-spacing: 6px; text-transform: uppercase; opacity: .74; display: block; margin-bottom: 10px; }
.page-hero.has-cover { background-size: cover; background-position: center; background-repeat: no-repeat; }
.page-hero.has-cover::before {
  background-image: linear-gradient(120deg, rgba(194, 72, 18, .55) 0%, rgba(154, 56, 10, .72) 100%);
}
.page-hero.has-cover::after { display: none; }

/* 强力推荐 — TFBOYS 三屏联动风格 (比例参照原版 74%) */
.feat-swiper-tfboys {
  position: relative;
  margin: 0 auto;
  height: clamp(240px, 28vw, 360px);
}
.feat-swiper-tfboys .swiper { overflow: hidden; border-radius: var(--radius); }
.feat-swiper-tfboys .swiper-slide { height: 100%; }

/* 主滑 (居中，最前) — 100% 父容器高 */
.feat-swiper-tfboys .current-swiper {
  width: clamp(380px, 58%, 640px);
  height: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}
.feat-swiper-tfboys .current-swiper .feat-card { height: 100%; align-items: center; }

/* 侧滑 (绝对定位) — 高 74% 父容器，居中偏移 top:13% */
.feat-swiper-tfboys .nocurrent-swiper {
  position: absolute;
  top: 13%; height: 74%;
  width: clamp(240px, 42%, 480px);
  z-index: 1;
  border-radius: 8px;
  pointer-events: none;
}
.feat-swiper-tfboys .nocurrent-swiper .feat-card {
  height: 100%; align-items: center;
  gap: clamp(10px, 1.5vw, 16px);
  padding: clamp(12px, 1.6vw, 20px);
}
.feat-swiper-tfboys .left-swiper { left: 0; }
.feat-swiper-tfboys .right-swiper { right: 0; left: auto; }

/* 侧卡内部缩小 */
.feat-swiper-tfboys .nocurrent-swiper .fc-cover { width: clamp(70px, 10vw, 120px); }
.feat-swiper-tfboys .nocurrent-swiper .fc-title { font-size: clamp(14px, 1.6vw, 17px); }
.feat-swiper-tfboys .nocurrent-swiper .fc-author { font-size: 11px; }
.feat-swiper-tfboys .nocurrent-swiper .fc-desc { font-size: 12px; -webkit-line-clamp: 2; }
.feat-swiper-tfboys .nocurrent-swiper .fc-more { font-size: 11px; padding-top: 6px; }

/* 侧卡遮罩 */
.feat-swiper-tfboys .nocurrent-swiper .swiper-slide::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(237,240,240,.88);
  z-index: 5; border-radius: var(--radius);
}

/* 导航按钮 (叠在侧滑之上，主滑之下) */
.feat-swiper-tfboys .swiper-button-prev,
.feat-swiper-tfboys .swiper-button-next {
  position: absolute; top: 50%; z-index: 20;
  width: 44px; height: 44px; margin-top: -22px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  color: var(--ink-2);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: all .3s ease;
  cursor: pointer;
}
.feat-swiper-tfboys .swiper-button-prev:hover,
.feat-swiper-tfboys .swiper-button-next:hover {
  background: var(--brand); color: #fff; border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.feat-swiper-tfboys .swiper-button-prev::after,
.feat-swiper-tfboys .swiper-button-next::after {
  font-size: 16px; font-weight: 700;
}
.feat-swiper-tfboys .swiper-button-prev { left: clamp(4px, 1.5vw, 16px); }
.feat-swiper-tfboys .swiper-button-next { right: clamp(4px, 1.5vw, 16px); }

/* 移动端：隐藏两侧预览，主滑全宽 */
@media (max-width: 767px) {
  .feat-swiper-tfboys .nocurrent-swiper { display: none; }
  .feat-swiper-tfboys .current-swiper { width: 100%; max-width: 100%; }
}

/* 控制区：底部居中，外置导航与分页 (给顶级分类保留) */
.feat-ctrl {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 20px 0 4px;
}
.feat-ctrl .swiper-button-prev,
.feat-ctrl .swiper-button-next {
  position: static; width: 36px; height: 36px; margin: 0;
  border-radius: 50%; background: var(--bg-2);
}
.feat-ctrl .swiper-button-prev:hover,
.feat-ctrl .swiper-button-next:hover {
  background: var(--brand); color: #fff;
}

/* =========================== 首页 Hero 轮播（真实 banner）=========================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 130% at 50% -25%, rgba(207, 82, 25, .10), transparent 58%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--paper) 100%);
  padding: clamp(30px, 4vw, 52px) 20px clamp(46px, 5vw, 70px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 12% 88%, rgba(179, 137, 63, .16), transparent 40%);
}
.hero-slides {
  position: relative; z-index: 1; max-width: 1160px; margin: 0 auto;
  aspect-ratio: 1024 / 468; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(120, 70, 30, .08);
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* HTML 型 / 图片叠加型幻灯片 */
.hero-slide-html, .hero-slide-overlay { background: var(--paper); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-html-inner { position: relative; z-index: 2; width: 100%; height: 100%; }
.hero-slide-html .hero-html-inner { overflow: auto; }
.hero-slide-overlay::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(20, 10, 4, .46), rgba(20, 10, 4, .08));
}
.hero-overlay-inner {
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: clamp(20px, 5%, 56px); color: #fff;
}
.hero-overlay-inner h1, .hero-overlay-inner h2, .hero-overlay-inner h3 { color: #fff; }
.hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero-dots button { position: relative; width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .72); border: 1px solid rgba(165, 63, 16, .3); box-shadow: 0 1px 4px rgba(40, 20, 8, .25); transition: var(--transition); }
.hero-dots button::before { content: ""; position: absolute; inset: -17px; border-radius: 50%; }
.hero-dots button.active { background: var(--brand); width: 30px; border-radius: 6px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .88);
  display: grid; place-items: center; color: var(--brand-dark); box-shadow: var(--shadow); transition: var(--transition);
}
.hero-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: var(--radius-full);
  font-weight: 700; font-size: var(--text-lg); letter-spacing: .5px; transition: var(--transition);
  min-width: 44px; min-height: 44px; justify-content: center;
}
.btn-primary { 
  background: linear-gradient(135deg, var(--brand-light), var(--brand)); 
  color: #fff; 
  box-shadow: 0 8px 20px rgba(207, 82, 25, .32); 
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2) 0%, transparent 50%);
  opacity: 0; transition: opacity var(--transition);
}
.btn-primary:hover { 
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); 
  transform: translateY(-2px); 
  box-shadow: 0 12px 28px rgba(207, 82, 25, .42); 
}
.btn-primary:hover::before { opacity: 1; }
.btn-ghost { border: 1.5px solid var(--brand); color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(207, 82, 25, .25); }
.btn-sm { padding: 10px 22px; font-size: var(--text-sm); }
.btn-lg { padding: 18px 44px; font-size: var(--text-xl); }

@media (max-width: 860px) {
  .hero { padding: 16px 10px 30px; }
  .hero-slides { border-radius: 12px; }
  .hero-arrow { display: none; }
  .hero-dots { bottom: 10px; }
}
@media (max-width: 767px) {
  .hero-slides { aspect-ratio: 16/9; }
}

/* =========================== 资质荣誉条 =========================== */
.creds { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.creds .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: clamp(34px, 4vw, 46px) 20px; }
.cred { display: flex; align-items: center; gap: 16px; }
.cred .icon { width: 52px; height: 52px; border-radius: 13px; background: var(--gold-soft); color: var(--gold-dark); display: grid; place-items: center; flex-shrink: 0; transition: var(--transition); }
.cred:hover .icon { background: var(--gold); color: #fff; transform: translateY(-3px); }
.cred .icon svg { width: 26px; height: 26px; }
.cred b { display: block; font-size: 15.5px; color: var(--ink); font-weight: 700; letter-spacing: .3px; }
.cred small { color: var(--ink-3); font-size: 12.5px; }
@media (max-width: 820px) { .creds .wrap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .creds .wrap { grid-template-columns: 1fr; padding: clamp(34px, 4vw, 46px) 10px; } }

/* =========================== 板块导航（图书大类）=========================== */
.pillars .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2vw, 24px); }
.pillar {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 250px;
  display: flex; align-items: flex-end; padding: 28px; color: #fff;
  box-shadow: var(--shadow); transition: var(--transition);
  background-color: var(--brand-dark); background-size: cover; background-position: center;
  background-image: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 50%, var(--gold) 100%);
}
.pillar::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 24%, rgba(28, 16, 8, .82)); }
.pillar > * { position: relative; z-index: 1; }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar h3 { font-size: clamp(21px, 2.8vw, 26px); letter-spacing: 3px; }
.pillar span { font-size: 12px; opacity: .85; letter-spacing: 3px; font-family: var(--font); font-weight: 600; }
@media (max-width: 900px) { .pillars .wrap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .pillar { min-height: 200px; padding: 20px; } }

/* =========================== 图书卡片网格 =========================== */
.book-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.book-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.book-card { background: transparent; border-radius: var(--radius-sm); overflow: visible; transition: transform var(--transition), box-shadow var(--transition); min-width: 0; }
.book-card:hover { transform: translateY(-6px); }
.book-cover {
  position: relative; aspect-ratio: 3/4; border-radius: 6px 10px 10px 6px; overflow: hidden;
  box-shadow: var(--shadow); background: linear-gradient(135deg, var(--brand-soft), #f4e0cc);
  display: grid; place-items: center; padding: 18px 18px 18px 26px; text-align: center;
  transition: transform var(--transition-slow), box-shadow var(--transition);
}
.book-cover::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; z-index: 2;
  background: linear-gradient(90deg, rgba(40, 22, 8, .28), rgba(40, 22, 8, .06) 60%, transparent);
}
.book-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.book-cover .cover-title { font-family: var(--serif); font-size: var(--text-2xl); color: var(--brand-dark); font-weight: 700; position: relative; z-index: 2; letter-spacing: 1px; }
.book-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; display: block; }
.book-cover.has-img { background: #efe6d9; padding: 0; }
.book-cover.has-img img { width: 90%; height: 90%; margin: auto; }
.book-cover.has-img .cover-title { display: none; }
.book-cover .badge { position: absolute; top: 10px; right: 10px; left: auto; z-index: 3; background: var(--brand); color: #fff; font-size: var(--text-xs); padding: 3px 9px; border-radius: var(--radius-xs); font-weight: 700; box-shadow: var(--shadow-xs); }
.book-card:hover .book-cover { box-shadow: var(--shadow-xl); transform: scale(1.05); }
.book-info { padding: 15px 4px 4px; }
.book-info h4 { font-size: var(--text-lg); color: var(--ink); font-weight: 700; font-family: var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color var(--transition); }
.book-info p { margin: 5px 0 0; font-size: var(--text-sm); color: var(--ink-3); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 角标堆叠（强力推荐 / 最新，可叠加）*/
.book-cover .badge-stack { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.book-cover .badge-stack .badge { position: static; top: auto; right: auto; left: auto; }
.book-cover .badge-rec { background: var(--brand); }
.book-cover .badge-new { background: var(--gold); }
/* 封面右下角分类角标 */
.book-cover .cover-cat { position: absolute; right: 8px; bottom: 8px; z-index: 3; background: rgba(32, 27, 22, .72); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; letter-spacing: .3px; backdrop-filter: blur(2px); }
/* 卡片元信息：作者 + 出版日期 */
.book-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.book-meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.book-meta .bm-author > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 8.5em; }

.book-meta svg { flex-shrink: 0; opacity: .75; }
/* 卡片定价：优惠价 + 原价 */
.book-price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.book-price .bp-now { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--brand); }
.book-price .bp-was { font-size: 12px; color: var(--ink-3); text-decoration: line-through; }
/* 图书总览排序切换 */
.sort-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; }
.sort-bar .sort-label { font-size: 13px; font-weight: 700; color: var(--ink-3); margin-right: 4px; }
.sort-opt { padding: 6px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 13.5px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-2); transition: var(--transition); }
.sort-opt:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.sort-opt.active { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: var(--shadow-xs); }
.sort-bar .sort-divider { width: 1px; height: 20px; background: var(--line-2); margin: 0 4px; }
.sort-bar .sort-tag { border-color: var(--gold-soft); background: var(--gold-softer); color: var(--gold-dark); }
.sort-bar .sort-tag:hover { border-color: var(--gold); background: var(--gold-soft); }
.sort-bar .sort-tag.active { border-color: var(--gold); background: var(--gold); color: #fff; }
@media (max-width: 900px) {
  .book-cover .cover-cat { font-size: 10px; padding: 2px 7px; right: 6px; bottom: 6px; }
}
@media (max-width: 1100px) { .book-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) { .book-grid, .book-grid.cols-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) {
  .book-grid, .book-grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .book-meta .bm-date { display: none; }
  .book-price .bp-was { display: none; }
  .book-cover .cover-cat { display: none; }
  .book-info { padding: 8px 2px 2px; }
  .book-info h4 { font-size: 15px; }
}

/* 强力推荐 — Swiper 幻灯片 */
.feat-swiper { overflow: hidden; padding-bottom: 36px; }
.feat-swiper .swiper-slide { height: auto; }
.feat-swiper .swiper-pagination { bottom: 0 !important; }
.feat-swiper .swiper-pagination-bullet { width: 8px; height: 8px; background: var(--brand); opacity: .35; border-radius: 4px; transition: all .35s ease; }
.feat-swiper .swiper-pagination-bullet-active { width: 22px; opacity: 1; border-radius: 4px; }
.feat-card { display: flex; gap: clamp(24px,3.5vw,40px); align-items: flex-start; padding: clamp(24px,3vw,36px); background: linear-gradient(145deg, #fcf9f5, #f5ede4); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 12px rgba(0,0,0,.04); text-decoration: none; color: inherit; transition: box-shadow .4s ease, transform .4s ease; height: 100%; }
.feat-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.08); transform: translateY(-2px); }
.feat-card .fc-cover { width: clamp(110px,15vw,160px); flex-shrink: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.1); transition: transform .4s ease, box-shadow .4s ease; }
.feat-card:hover .fc-cover { transform: scale(1.04); box-shadow: 0 6px 20px rgba(0,0,0,.14); }
.feat-card .fc-cover img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.feat-card .fc-info { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.feat-card .fc-title { font-size: clamp(18px,2.4vw,24px); color: var(--ink); line-height: 1.3; font-weight: 700; letter-spacing: .5px; }
.feat-card .fc-author { font-size: 14px; color: var(--ink-3); letter-spacing: .3px; }
.feat-card .fc-price { font-size: 16px; font-weight: 700; color: var(--brand); font-family: var(--serif); }
.feat-card .fc-desc { font-size: 14px; color: var(--ink-2); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.feat-card .fc-more { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--brand); transition: gap .3s ease, color .3s ease; }
.feat-card:hover .fc-more { gap: 10px; color: var(--brand-dark); }

@media (max-width: 560px) {
  .feat-card { flex-direction: column; align-items: center; text-align: center; padding: 20px; }
  .feat-card .fc-cover { width: 100px; }
  .feat-card .fc-desc { -webkit-line-clamp: 2; }
  .feat-card .fc-info { align-items: center; }
}

/* 强力推荐 — 横向大图 */
.feature-book {
  display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 40px); align-items: center;
  background: linear-gradient(135deg, var(--brand-softer), var(--gold-soft));
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-xs);
}
.feature-book .book-cover { aspect-ratio: 3/4; max-width: 240px; }
.feature-book .fb-body h3 { font-size: clamp(23px, 3.6vw, 30px); color: var(--ink); margin-bottom: 16px; letter-spacing: 1px; line-height: 1.3; }
.feature-book .fb-body p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 22px; line-height: 1.9; max-width: var(--measure); }
@media (max-width: 640px) { .feature-book { grid-template-columns: 1fr; text-align: center; } .feature-book .book-cover { margin: 0 auto; } }

/* 分栏书目（分类小榜）：单行排布、列宽一致；超过一屏时以幻灯片翻页方式滑动（隐藏滚动条）=========================== */
.cat-columns { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x proximity; padding: 10px 4px 8px; margin: 0 -4px; scroll-margin-top: calc(var(--header-h) + 20px); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cat-columns::-webkit-scrollbar { display: none; }
/* 幻灯片翻页控制：置于「分类书目」标题右侧，无溢出时自动隐藏 */
.cat-nav-group { display: none; gap: 10px; align-items: center; }
.cat-nav-group.on { display: inline-flex; }
.cat-nav { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1.5px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-xs); transition: var(--transition); }
.cat-nav svg { width: 20px; height: 20px; }
.cat-nav:hover:not(:disabled) { color: #fff; background: var(--brand); border-color: var(--brand); box-shadow: var(--shadow); }
.cat-nav:disabled { opacity: .35; cursor: not-allowed; }
.cat-col[hidden] { display: none; }
.cat-col { display: flex; flex-direction: column; flex: 0 0 calc((100% - 72px) / 4); min-width: 0; max-width: none; scroll-snap-align: start; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); transition: var(--transition); }
/* 卡片数不足一屏（≤每屏列数）时铺满并居中，避免右侧留白 */
.cat-columns.cat-fill { justify-content: center; }
.cat-columns.cat-fill .cat-col { flex: 1 1 0; min-width: 248px; max-width: 400px; }
.cat-col:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-col-img { width: 100%; height: 80px; border-radius: 8px; background-size: cover; background-position: center; margin-bottom: 14px; }
.cat-col h3 { font-size: 18px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 2px solid var(--line-2); position: relative; }
.cat-col h3::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 44px; height: 2px; background: linear-gradient(90deg, var(--brand), var(--gold)); }
.cat-col li a { display: flex; gap: 10px; padding: 9px 0; font-size: 13.5px; color: var(--ink-2); border-bottom: 1px dashed var(--line-2); align-items: center; }
.cat-col li:last-child a { border-bottom: none; }
.cat-col li a:hover { color: var(--brand); }
.cat-col li a .rank { width: 19px; height: 19px; flex-shrink: 0; border-radius: 5px; background: var(--line-2); color: var(--ink-3); font-size: 11px; display: grid; place-items: center; font-weight: 700; font-family: var(--serif); }
.cat-col li:nth-child(-n+3) a .rank { background: linear-gradient(135deg, var(--brand-light), var(--brand)); color: #fff; }
.cat-col li a .hr-cover { width: 64px; height: 86px; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: var(--brand-soft); box-shadow: var(--shadow-xs); transition: transform .3s ease; }
.cat-col li a:hover .hr-cover { transform: scale(1.1); }
.cat-col li a .hr-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-col li a .hr-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cat-col li a .hr-title { font-size: 13.5px; font-weight: 400; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.cat-col li a .hr-author { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-col li a .hr-price { font-size: 13px; font-weight: 700; color: var(--brand); font-family: var(--serif); }
.cat-col h3 a { color: inherit; transition: var(--transition); }
.cat-col h3 a:hover { color: var(--brand); }
.cat-more { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: auto; padding-top: 16px; font-size: 13px; font-weight: 600; color: var(--brand); transition: var(--transition); }
.cat-more:hover { gap: 8px; color: var(--brand-dark); }
/* 尚无书目的子类卡片：占位"陆续上架"，flex 填充与其它卡片等高 */
.cat-soon { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 26px 8px; color: var(--ink-3); }
.rank-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; padding: 0; }
.rank-list li a { display: flex; gap: 10px; padding: 9px 0; font-size: 13.5px; color: var(--ink-2); border-bottom: 1px dashed var(--line-2); align-items: center; }
.rank-list li:last-child a { border-bottom: none; }
.rank-list li a:hover { color: var(--brand); }
.rank-list li a .rank { width: 19px; height: 19px; flex-shrink: 0; border-radius: 5px; background: var(--line-2); color: var(--ink-3); font-size: 11px; display: grid; place-items: center; font-weight: 700; font-family: var(--serif); }
.rank-list li:nth-child(-n+3) a .rank { background: linear-gradient(135deg, var(--brand-light), var(--brand)); color: #fff; }
.rank-list li a .hr-cover { width: 64px; height: 86px; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: var(--brand-soft); box-shadow: var(--shadow-xs); transition: transform .3s ease; }
.rank-list li a:hover .hr-cover { transform: scale(1.1); }
.rank-list li a .hr-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rank-list li a .hr-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rank-list li a .hr-title { font-size: 13.5px; font-weight: 400; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.rank-list li a .hr-author { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list li a .hr-price { font-size: 13px; font-weight: 700; color: var(--brand); font-family: var(--serif); }
.cat-soon svg { width: 42px; height: 42px; color: var(--brand-light); opacity: .8; }
.cat-soon p { margin: 0; font-size: 13.5px; line-height: 1.7; }
/* 无匹配分类时的空状态 */
.cat-empty { flex: 1 1 100%; max-width: none; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: clamp(38px, 6vw, 60px) 24px; background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-3); }
.cat-empty svg { width: 46px; height: 46px; color: var(--brand-light); opacity: .85; }
.cat-empty b { font-family: var(--serif); font-size: 17px; color: var(--ink-2); }
.cat-empty span { font-size: 13.5px; }
/* 每屏列数随视口收敛：4 → 3 → 2 → 1（幻灯片翻页步长同步）*/
@media (max-width: 1080px) { .cat-col { flex-basis: calc((100% - 48px) / 3); } }
@media (max-width: 820px)  { .cat-col { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 520px)  {
  .cat-columns { gap: 12px; }
  .cat-col { flex-basis: calc(100% - 12px); padding: 16px; }
  .cat-columns.cat-fill .cat-col { min-width: 0; }
  .cat-col h3 { font-size: 16px; padding-bottom: 10px; margin-bottom: 10px; }
  .cat-col li a { padding: 7px 0; font-size: 13px; }
}

/* 分类过滤条（分类页顶部）=========================== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-bar a { position: relative; padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); transition: var(--transition); }
.filter-bar a:hover { border-color: var(--brand); color: var(--brand); }
.filter-bar a.active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 6px 16px rgba(207, 82, 25, .28); }
.filter-bar a.is-parent::before,
.filter-bar a.is-parent::after { position: absolute; font-size: 13px; font-weight: 700; color: rgba(207,82,25,.45); pointer-events: none; }
.filter-bar a.is-parent::before { content: '⌜'; left: 6px; top: 4px; }
.filter-bar a.is-parent::after { content: '⌟'; right: 6px; bottom: 4px; }
.filter-bar a.is-parent.active::before,
.filter-bar a.is-parent.active::after { color: rgba(255,255,255,.6); }
@media (max-width: 767px) {
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding-bottom: 8px; margin-bottom: 20px; }
  .filter-bar a { flex-shrink: 0; white-space: nowrap; scroll-snap-align: start; }
}
@media (max-width: 480px) { .filter-bar a { padding: 9px 14px; font-size: 13px; } }

/* =========================== 服务互动网格 =========================== */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 22px; text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); 
  position: relative; overflow: hidden; box-shadow: var(--shadow-xs);
}
.service-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform var(--transition-slow); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card .s-icon { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; transition: transform var(--transition-slow), background var(--transition), color var(--transition); }
.service-card:hover .s-icon { background: var(--brand); color: #fff; transform: scale(1.1); }
.service-card .s-icon svg { width: 30px; height: 30px; }
.service-card .s-icon img { width: 30px; height: 30px; object-fit: contain; }
.service-card h3 { font-size: var(--text-xl); margin-bottom: 7px; font-family: var(--serif); }
.service-card p { margin: 0; font-size: var(--text-sm); color: var(--ink-3); line-height: 1.65; }
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .service-grid { grid-template-columns: 1fr; } }

.svc-ext { font-size: var(--text-xs); color: var(--gold-dark); vertical-align: middle; margin-left: 3px; opacity: .65; transition: opacity var(--transition), color var(--transition); }
.service-card:hover .svc-ext { opacity: 1; color: var(--brand); }
.svc-soon { position: absolute; top: 12px; right: 12px; font-size: var(--text-xs); padding: 2px 9px; border-radius: var(--radius-full); background: var(--line); color: var(--ink-3); font-weight: 600; letter-spacing: .5px; }
.service-card.is-soon { cursor: default; opacity: .8; }
.service-card.is-soon:hover { transform: none; box-shadow: var(--shadow-xs); border-color: var(--line); }
.service-card.is-soon:hover::before { transform: scaleX(0); }
.service-card.is-soon:hover .s-icon { background: var(--brand-soft); color: var(--brand); transform: none; }

/* 互动平台（扫码关注）板块 */
.svc-interact { background: linear-gradient(180deg, var(--brand-soft), #fff); scroll-margin-top: 90px; }
.svc-interact .section-title { margin-bottom: 14px; }
.svc-interact-note { text-align: center; max-width: 640px; margin: 0 auto 36px; color: var(--ink-3); font-size: 14.5px; line-height: 1.85; }
.social-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.social-card { width: 240px; max-width: 88vw; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px 24px; text-align: center; box-shadow: var(--shadow-xs); transition: var(--transition); }
.social-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.social-card .qr { width: 150px; height: 150px; margin: 0 auto 16px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.social-card .qr img { width: 100%; height: 100%; object-fit: contain; }
.social-card .qr.qr--ph { background: var(--brand-soft); color: var(--brand); border: 1px dashed var(--brand); }
.social-card .qr.qr--ph svg { width: 66px; height: 66px; }
.social-card h3 { font-size: 16px; margin-bottom: 6px; }
.social-card p { margin: 0 0 12px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.social-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--brand); transition: var(--transition); }
.social-link:hover { gap: 9px; }

/* 征订书目页面 */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 32px; }
.catalog-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow-xs); transition: var(--transition); }
.catalog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.catalog-card .cat-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; transition: var(--transition); }
.catalog-card:hover .cat-icon { background: var(--brand); color: #fff; }
.catalog-card .cat-icon svg { width: 26px; height: 26px; }
.catalog-card h3 { font-size: 16px; margin-bottom: 8px; line-height: 1.4; }
.catalog-card p { margin: 0 0 16px; font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.catalog-note { text-align: center; color: var(--ink-3); font-size: 13.5px; }

/* =========================== 新闻 =========================== */
.news-featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; margin-bottom: 48px; }
.news-hero {
  border-radius: var(--radius); overflow: hidden; position: relative; min-height: clamp(240px, 40vw, 350px); color: #fff;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark)); background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--shadow);
}
.news-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 16, 8, .1) 20%, rgba(28, 16, 8, .78)); }
.news-hero > * { position: relative; }
.news-hero .tag { background: rgba(255, 255, 255, .25); backdrop-filter: blur(4px); padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.news-hero h3 { font-size: clamp(20px, 3.2vw, 26px); margin: 14px 0 10px; line-height: 1.35; letter-spacing: 1px; }
.news-hero p { margin: 0; font-size: 14px; opacity: .92; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-hot { display: flex; flex-direction: column; gap: 2px; }
.news-hot li a { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.news-hot li:last-child a { border-bottom: none; }
.news-hot .date { flex-shrink: 0; font-size: 12px; color: var(--gold-dark); font-weight: 700; font-variant-numeric: tabular-nums; font-family: var(--serif); }
.news-hot .t { min-width: 0; font-size: 14.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: var(--transition); }
.news-hot li a:hover .t { color: var(--brand); }
.news-hot li.is-empty { display: flex; gap: 16px; padding: 14px 0; align-items: baseline; color: var(--ink-3); }
.news-hot li.is-empty .t { color: var(--ink-3); white-space: normal; }
@media (max-width: 820px) { .news-featured { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .news-hot li a { padding: 10px 0; gap: 10px; }
  .news-hot .t { font-size: 13px; }
}

.news-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-block { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-xs); transition: var(--transition); }
.news-block:hover { box-shadow: var(--shadow); }
.news-block > h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 16px; }
.news-block > h3 i { width: 6px; height: 20px; border-radius: 3px; background: linear-gradient(180deg, var(--brand), var(--gold)); display: inline-block; }
.news-block .more-link { margin-left: auto; font-size: 12px; font-weight: 600; }
.news-list li a { display: block; padding: 11px 0; font-size: 13.8px; color: var(--ink-2); border-bottom: 1px dashed var(--line-2); position: relative; padding-left: 15px; transition: var(--transition); }
.news-list li a::before { content: ""; position: absolute; left: 0; top: 19px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-light); }
.news-list li:last-child a { border-bottom: none; }
.news-list li a:hover { color: var(--brand); padding-left: 20px; }
@media (max-width: 900px) { .news-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-cols { grid-template-columns: 1fr; } }

/* 新闻分类归档卡片网格 */
.nc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 30px); }
.nc-card {
  display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); transition: var(--transition);
}
.nc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-soft); }
.nc-thumb {
  position: relative; display: block; aspect-ratio: 16 / 10;
  background-size: cover; background-position: center; background-color: var(--line-2);
}
.nc-thumb--ph {
  display: flex; align-items: center; justify-content: center; padding: 22px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
}
.nc-thumb--ph::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 85% 115%, rgba(179, 137, 63, .38), transparent 45%);
}
.nc-ph-title {
  position: relative; z-index: 1; color: #fff; font-family: var(--serif); font-weight: 700;
  font-size: clamp(16px, 1.8vw, 19px); line-height: 1.5; letter-spacing: .5px; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.nc-cat {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(32, 27, 22, .58); backdrop-filter: blur(4px); color: #fff;
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .5px;
}
.nc-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.nc-date { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--gold-dark); font-weight: 700; font-variant-numeric: tabular-nums; }
.nc-date svg { color: var(--gold-dark); }
.nc-title {
  font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--ink); letter-spacing: .3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: var(--transition);
}
.nc-card:hover .nc-title { color: var(--brand); }
.nc-exc {
  font-size: 13.8px; color: var(--ink-3); line-height: 1.85;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nc-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--brand); transition: var(--transition); }
.nc-card:hover .nc-more { gap: 10px; }

/* 宽幅头条卡：跨整行，左图右文 */
.nc-card--feature { grid-column: 1 / -1; flex-direction: row; }
.nc-card--feature .nc-thumb { width: 46%; flex-shrink: 0; aspect-ratio: auto; min-height: 260px; }
.nc-card--feature .nc-thumb--ph { min-height: 260px; }
.nc-card--feature .nc-body { justify-content: center; gap: 14px; padding: clamp(24px, 3vw, 40px); }
.nc-card--feature .nc-title { font-size: clamp(21px, 2.6vw, 28px); -webkit-line-clamp: 3; }
.nc-card--feature .nc-exc { font-size: 15px; -webkit-line-clamp: 3; }

@media (max-width: 900px) { .nc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .nc-card--feature { flex-direction: column; }
  .nc-card--feature .nc-thumb { width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
  .nc-card--feature .nc-thumb--ph { min-height: 0; }
}
@media (max-width: 560px) {
  .nc-grid { grid-template-columns: 1fr; }
  .nc-body { padding: 14px 16px 16px; }
  .nc-title { font-size: 16px; }
}

/* =========================== 关于我们 =========================== */
.about-layout { display: grid; grid-template-columns: 260px 1fr; gap: 52px; align-items: start; }
.side-nav { 
  background: var(--bg); 
  border: 1px solid var(--line); 
  border-radius: var(--radius-lg); 
  overflow: hidden; 
  position: sticky; 
  top: calc(var(--header-h) + 24px); 
  box-shadow: var(--shadow-xs); 
  transition: box-shadow var(--transition); 
  min-width: 260px;
}
.side-nav:hover { box-shadow: var(--shadow-md); }
.side-nav h3 { 
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); 
  color: #fff; 
  padding: 20px 24px; 
  font-size: 18px; 
  letter-spacing: 2px; 
  position: relative; 
  font-family: var(--serif);
}
.side-nav h3::after { content: ""; position: absolute; bottom: 0; left: 24px; right: 24px; height: 1px; background: rgba(255, 255, 255, .2); }
.side-nav a { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 15px 24px; 
  border-bottom: 1px solid var(--line-2); 
  font-size: 15px; 
  color: var(--ink-2); 
  transition: var(--transition); 
  position: relative; 
  min-height: 52px;
}
.side-nav a::after { content: "›"; color: var(--line); font-size: 18px; transition: color var(--transition), transform var(--transition); }
.side-nav a:hover, .side-nav a.active { background: var(--brand-soft); color: var(--brand); padding-left: 28px; }
.side-nav a:hover::after, .side-nav a.active::after { color: var(--brand); transform: translateX(4px); }
.side-nav a.active { font-weight: 700; box-shadow: inset 4px 0 0 var(--brand); }
.side-nav a:last-child { border-bottom: none; }

/* 关于页内容面板（选项卡）*/
.about-content { min-width: 0; scroll-margin-top: calc(var(--header-h) + 20px); }
.about-panel { display: none; }
.about-panel.active { display: block; animation: aboutFade .4s cubic-bezier(.4, 0, .2, 1); }
@keyframes aboutFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.about-panel:focus-visible { outline: none; }

.org-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 32px 0; }
.org-card { 
  background: var(--bg); 
  border: 1px solid var(--line); 
  border-radius: var(--radius); 
  padding: 24px 26px; 
  box-shadow: var(--shadow-xs); 
  transition: var(--transition); 
  position: relative; 
  padding-left: 32px;
}
.org-card::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 5px; border-radius: 3px; background: linear-gradient(180deg, var(--brand), var(--gold)); }
.org-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.org-card b { display: block; font-family: var(--serif); font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.org-card span { display: block; font-size: 14px; color: var(--ink-3); line-height: 1.8; }

.honor-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 32px 0; }
.honor-list li { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
  background: linear-gradient(135deg, var(--brand-softer), var(--gold-soft)); 
  border: 1px solid var(--line); 
  border-radius: var(--radius-sm); 
  padding: 20px 22px 20px 50px; 
  position: relative; 
  transition: var(--transition);
}
.honor-list li::before { content: "★"; position: absolute; left: 20px; top: 18px; color: var(--gold); font-size: 18px; transition: transform var(--transition); }
.honor-list li:hover { transform: translateX(8px); box-shadow: var(--shadow); }
.honor-list li:hover::before { transform: scale(1.3); }
.honor-list li b { font-family: var(--serif); font-size: 16.5px; color: var(--ink); }
.honor-list li span { font-size: 13.5px; color: var(--ink-3); line-height: 1.65; }

.inline-link { color: var(--brand); font-weight: 700; border-bottom: 2px solid var(--brand-soft); transition: var(--transition); }
.inline-link:hover { color: var(--brand-dark); border-bottom-color: var(--brand); }

.about-body h2 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 10px; letter-spacing: 1.5px; }
.about-body .en { font-family: var(--font); color: var(--gold-dark); letter-spacing: 4px; font-size: 12px; text-transform: uppercase; font-weight: 700; display: block; margin-bottom: 8px; }
.about-body .lead { 
  font-size: clamp(17px, 2vw, 20px); 
  color: var(--ink); 
  background: linear-gradient(135deg, var(--brand-softer), var(--gold-soft)); 
  border-left: 5px solid var(--brand); 
  padding: 24px 30px; 
  border-radius: 0 16px 16px 0; 
  margin: 30px 0; 
  line-height: 2; 
  position: relative; 
  font-weight: 500;
}
.about-body .lead::before { content: ""; position: absolute; top: 0; right: 0; width: 80px; height: 80px; background: radial-gradient(circle at 100% 0%, rgba(194, 72, 18, .1), transparent 50%); border-radius: 0 16px 0 0; }
.about-body p { color: var(--ink-2); margin: 0 0 20px; text-align: justify; line-height: 2; font-size: var(--text-lg); }
.about-body p:last-child { margin-bottom: 0; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: clamp(36px, 5vw, 56px) 0; }
.stat { 
  background: var(--bg); 
  border: 1px solid var(--line); 
  border-radius: var(--radius-lg); 
  padding: clamp(28px, 4vw, 40px) 24px; 
  text-align: center; 
  box-shadow: var(--shadow-xs); 
  transition: var(--transition); 
  position: relative; 
  overflow: hidden;
}
.stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--gold)); }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat b { display: block; font-size: clamp(34px, 5.5vw, 48px); color: var(--brand); font-family: var(--serif); letter-spacing: 1px; line-height: 1.1; margin-bottom: 8px; }
.stat span { font-size: 14px; color: var(--ink-3); }

.brand-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.brand-tags span { background: var(--gold-soft); color: var(--gold-dark); padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: var(--transition); }
.brand-tags span:hover { background: var(--gold); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* 响应式断点优化 */
@media (max-width: 1024px) { 
  .about-layout { grid-template-columns: 240px 1fr; gap: 40px; }
  .side-nav { min-width: 240px; }
}
@media (max-width: 820px) { 
  .about-layout { grid-template-columns: 1fr; gap: 28px; } 
  .side-nav { position: static; min-width: auto; } 
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 16px; } 
  .org-grid { gap: 16px; }
}
@media (max-width: 560px) { 
  .org-grid, .honor-list { grid-template-columns: 1fr; } 
  .about-body .lead { padding: 20px 24px; font-size: 16px; }
  .about-body p { font-size: var(--text-base); }
  .side-nav a { padding: 14px 20px; font-size: 14px; }
  .side-nav h3 { padding: 18px 20px; font-size: 16px; }
}
@media (max-width: 480px) {
  .stat-row { gap: 12px; }
  .stat { padding: 20px 16px; }
  .stat b { font-size: clamp(28px, 8vw, 38px); }
  .honor-list li { padding: 16px 18px 16px 44px; }
}

/* =========================== 联系我们 =========================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.contact-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-xs); }
.contact-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.contact-tabs button { padding: 9px 17px; border-radius: 999px; font-size: 13.5px; font-weight: 600; min-height: 44px; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); transition: var(--transition); }
.contact-tabs button:hover { border-color: var(--brand); color: var(--brand); }
.contact-tabs button.active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 6px 16px rgba(207, 82, 25, .28); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.info-row { display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line-2); }
.info-row:last-child { border-bottom: none; }
.info-row .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.info-row .ic svg { width: 20px; height: 20px; }
.info-row b { display: block; font-size: 14.5px; }
.info-row span { font-size: 13.5px; color: var(--ink-3); }
.map-box { border-radius: var(--radius); overflow: hidden; min-height: 330px; background: linear-gradient(135deg, var(--brand-softer), var(--gold-soft)); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; color: var(--ink-3); }
.map-box svg { width: 62px; height: 62px; color: var(--brand); margin-bottom: 16px; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--brand-softer); }
.map-embed iframe { display: block; width: 100%; min-height: 330px; border: 0; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }

/* =========================== 投稿须知 / 购买帮助 =========================== */
.prepub-intro { max-width: var(--measure); margin: 0 0 30px; color: var(--ink-2); font-size: 15px; line-height: 1.9; }
.prepub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prepub-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-xs); transition: var(--transition); }
.prepub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.prepub-card h3 { font-size: 17px; margin-bottom: 6px; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.prepub-card h3::before { content: ""; width: 5px; height: 18px; border-radius: 3px; flex-shrink: 0; background: linear-gradient(180deg, var(--brand), var(--gold)); }
.prepub-card .info-row { padding: 11px 0; gap: 12px; }
.prepub-card .info-row .ic { width: 34px; height: 34px; border-radius: 9px; }
.prepub-card .info-row .ic svg { width: 17px; height: 17px; }
.prepub-note { max-width: var(--measure); margin: 30px 0 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.8; }
.help-cta { display: inline-flex; margin-top: 16px; }
.help-bank { margin-top: 6px; }
@media (max-width: 900px) { .prepub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .prepub-grid { grid-template-columns: 1fr; } }

/* =========================== 页脚 =========================== */
.site-footer { background: linear-gradient(180deg, #1f1b15, #15110d); color: #b0a89e; margin-top: 24px; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--gold), var(--brand)); }
.site-footer::after {
  content: ""; position: absolute; top: 3px; left: 0; right: 0; height: 1px; 
  background: linear-gradient(90deg, transparent, rgba(179, 137, 63, .3), transparent);
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 48px); padding: clamp(48px, 6vw, 72px) 0 clamp(34px, 4vw, 44px); }
.footer-brand .logo-text b { color: #fff; font-family: var(--serif); font-size: 19px; letter-spacing: 1px; }
.footer-brand .logo-text small { display: block; color: #857569; letter-spacing: 1px; margin-top: 4px; }
.footer-brand p { font-size: var(--text-sm); color: #948779; margin: 16px 0 0; max-width: 300px; line-height: 1.85; }
.footer-badges { display: none; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.footer-badges span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #e0d6c8; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); letter-spacing: .5px; }
.footer-col h4 { color: #fff; font-family: var(--serif); font-size: var(--text-lg); margin-bottom: 16px; letter-spacing: 1px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: linear-gradient(90deg, var(--brand), var(--gold)); border-radius: 2px; }
.footer-col a { display: block; padding: 7px 0; font-size: var(--text-sm); color: #b0a89e; transition: color var(--transition), padding-left var(--transition); }
.footer-col a:hover { color: var(--brand-light); padding-left: 6px; }
.footer-links { border-top: 1px solid #2d261f; padding: 20px 0; }
.footer-links .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; padding-left: 0; }
.footer-links h4 { color: #857569; font-size: var(--text-sm); letter-spacing: 1px; margin: 0; flex-shrink: 0; }
.footer-links ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 0; padding: 0; }
.footer-links a { color: #b0a89e; font-size: var(--text-sm); transition: color var(--transition); display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--brand-light); }
.footer-links img { height: 30px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1) brightness(1.4); opacity: .8; transition: filter var(--transition), opacity var(--transition); }
.footer-links a:hover img { filter: none; opacity: 1; }
.footer-bottom { border-top: 1px solid #2d261f; padding: 20px 0; font-size: var(--text-xs); color: #857569; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-left: 0; }
.footer-bottom a { color: #857569; transition: color var(--transition); }
.footer-bottom a:hover { color: var(--brand-light); }
@media (max-width: 900px) { .footer-badges { display: flex; } }

@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 26px; } }

@media (max-width: 767px) {
  .topbar { display: none; }
  .footer-brand p { display: none; }
  .footer-top { padding: 32px 0 24px; }
  .footer-col a { padding: 12px 0; min-height: 44px; display: flex; align-items: center; }
  .footer-links .wrap { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
  .footer-links ul { gap: 6px 12px; justify-content: center; }
  .footer-links img { max-width: 120px; height: 26px; }
  .footer-bottom .wrap { flex-direction: column; gap: 4px; font-size: 11px; text-align: center; }
}

@media (max-width: 640px) {
  .footer-top { gap: 20px; }
  .footer-col h4 { font-size: 15px; margin-bottom: 12px; }
  .footer-col a { font-size: 12px; }
}

@media (max-width: 560px) {
  .footer-col, .footer-links { display: none; }
  .footer-top { display: block; text-align: center; padding: 28px 0 20px; }
  .footer-brand .logo-text small { font-size: 10px; }
  .footer-brand p { max-width: none; }
  .footer-bottom { padding: 16px 0; }
}

/* back to top */
.to-top { 
  position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; 
  border-radius: 50%; background: var(--brand); color: #fff; 
  display: grid; place-items: center; box-shadow: var(--shadow-xl); 
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.9); 
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition); 
  z-index: var(--z-sticky); 
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { background: var(--brand-dark); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.to-top:active { transform: scale(.92); }

/* =========================== 详情页（图书 / 新闻）=========================== */
.detail-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.detail-back:hover { color: var(--brand); gap: 9px; }
.detail-back svg { width: 17px; height: 17px; }

/* 图书详情 */
.book-detail-layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.bd-cover { position: sticky; top: calc(var(--header-h) + 20px); }
.bd-cover .book-cover { aspect-ratio: 3/4; max-width: 300px; box-shadow: var(--shadow-lg); }
.bd-cover .book-cover .cover-title { font-size: 24px; }
.bd-body { min-width: 0; }
.bd-body .en { display: block; font-family: var(--font); font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-bottom: 10px; }
.bd-body h1 { font-family: var(--serif); font-size: clamp(26px, 4.4vw, 38px); color: var(--ink); letter-spacing: 1px; line-height: 1.3; margin-bottom: 16px; }
.bd-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.bd-tag { padding: 6px 15px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.bd-tag.cat { background: var(--brand-soft); color: var(--brand); }
.bd-tag.badge { background: var(--gold-soft); color: var(--gold-dark); }
.bd-tag:not(.cat):not(.badge) { background: var(--line-2); color: var(--ink-2); }

/* 版权信息网格（作者/出版日期/ISBN/开本/页数/字数/分类）*/
.bd-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 0 10% 22px 0; }
.bd-info-row { display: flex; gap: 12px; background: var(--bg); padding: 12px 18px; font-size: 14px; line-height: 1.6; }
.bd-info-row dt { color: var(--ink-3); flex-shrink: 0; min-width: 4.5em; }
.bd-info-row dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-word; }

/* 价格块（定价 / 官网优惠价）*/
.bd-price { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, var(--brand-softer), var(--gold-soft)); border: 1px solid var(--brand-soft); border-radius: var(--radius-sm); padding: 16px 24px; margin: 0 0 24px; max-width: var(--measure); }
.bd-sale { display: flex; flex-direction: column; gap: 2px; }
.bd-sale i { font-style: normal; font-size: 12px; color: var(--brand); letter-spacing: .5px; font-weight: 700; }
.bd-sale b { font-family: var(--serif); font-size: clamp(26px, 4vw, 34px); color: var(--brand); line-height: 1.05; }
.bd-list { font-size: 14px; color: var(--ink-3); }
.bd-list s { color: var(--ink-3); }

/* 在线购买（天猫 / 京东 / 当当）*/
.bd-buy { margin: 0 0 26px; max-width: var(--measure); }
.bd-buy-label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .5px; color: var(--ink-3); margin-bottom: 12px; }
.bd-buy-links { display: flex; flex-wrap: wrap; gap: 12px; }
.buy-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 700; letter-spacing: .3px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); box-shadow: var(--shadow-xs); transition: var(--transition); }
.buy-btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.buy-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.buy-btn.tmall { color: #d10133; border-color: #f6cdd6; }
.buy-btn.tmall:hover { background: #ff0036; border-color: #ff0036; color: #fff; }
.buy-btn.jd { color: #d0261c; border-color: #f6cdca; }
.buy-btn.jd:hover { background: #e1251b; border-color: #e1251b; color: #fff; }
.buy-btn.dangdang { color: #d10714; border-color: #f6cbce; }
.buy-btn.dangdang:hover { background: #e60012; border-color: #e60012; color: #fff; }

/* 内容简介 / 图书目录 区块 */
.bd-sections { margin-top: clamp(36px, 5vw, 60px); }
.bd-section { margin-bottom: clamp(30px, 4vw, 50px); }
.bd-section:last-child { margin-bottom: 0; }
.bd-section .section-title { margin-bottom: 20px; }
.bd-desc { font-size: clamp(15px, 1.6vw, 16.5px); color: var(--ink-2); line-height: 2.05; margin: 0; padding-right: 10%; }

/* 图书目录列表 */
.bd-toc { counter-reset: toc; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 26px; padding-right: 10%; }
.bd-toc li { counter-increment: toc; position: relative; padding: 12px 16px 12px 48px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14.5px; color: var(--ink-2); line-height: 1.6; transition: var(--transition); }
.bd-toc li::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 16px; top: 12px; font-family: var(--serif); font-size: 13px; font-weight: 700; color: var(--gold-dark); }
.bd-toc li:hover { border-color: var(--brand); box-shadow: var(--shadow-xs); transform: translateY(-1px); }
.bd-toc li.toc-hidden { display: none; }
.bd-toc li.toc-toggle-wrap { grid-column: 1 / -1; padding: 12px 16px; background: transparent; border: none; text-align: center; }
.bd-toc li.toc-toggle-wrap .toc-toggle-link { display: inline-block; padding: 6px 16px; font-size: 14px; font-weight: 600; color: var(--brand); cursor: pointer; transition: var(--transition); }
.bd-toc li.toc-toggle-wrap .toc-toggle-link:hover { color: var(--brand-dark); text-decoration: underline; }
.bd-toc li.toc-toggle-wrap .toc-collapse { display: none; }
.bd-toc.toc-expanded li.toc-hidden { display: list-item; }
.bd-toc.toc-expanded li.toc-toggle-wrap .toc-expand { display: none; }
.bd-toc.toc-expanded li.toc-toggle-wrap .toc-collapse { display: inline-block; }

.detail-note { display: flex; gap: 13px; align-items: flex-start; background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px 22px; color: var(--ink-3); font-size: 13.5px; line-height: 1.85; margin: 0 0 28px; max-width: var(--measure); }
.detail-note svg { width: 22px; height: 22px; color: var(--brand-light); flex-shrink: 0; margin-top: 3px; }
.detail-note b { color: var(--ink-2); font-family: var(--serif); font-weight: 700; margin-right: 4px; }
.bd-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* 详情"未找到"空状态 */
.detail-empty { text-align: center; max-width: 560px; margin: clamp(20px, 5vw, 48px) auto; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: clamp(38px, 6vw, 60px) 24px; background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius); }
.detail-empty svg { width: 52px; height: 52px; color: var(--brand-light); opacity: .85; }
.detail-empty b { font-family: var(--serif); font-size: 19px; color: var(--ink-2); }
.detail-empty span { font-size: 14px; color: var(--ink-3); line-height: 1.8; }
.detail-empty .btn { margin-top: 8px; }

/* 同类推荐 */
.related { margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); padding-top: clamp(30px, 4vw, 46px); }

@media (max-width: 820px) {
  .book-detail-layout { grid-template-columns: 1fr; gap: 28px; }
  .bd-cover { position: static; width: 240px; max-width: 100%; margin: 0 auto; }
  .bd-cover .book-cover { width: 100%; max-width: 240px; }
  .bd-body h1, .bd-meta { text-align: center; }
  .bd-meta { justify-content: center; }
  .bd-actions { justify-content: center; }
  .bd-info, .bd-toc { grid-template-columns: 1fr; }
  .bd-desc, .bd-toc { padding-right: 0; }
  .bd-price { justify-content: center; }
}

/* =========================== 新闻详情（编辑出版风）=========================== */
.news-article { max-width: 1120px; margin: 0 auto; }

/* 标题头：居中排版、品牌胶囊分类、宋体大标题、金点缀元信息 */
.na-head { text-align: center; max-width: 880px; margin: 0 auto clamp(28px, 4vw, 44px); padding-bottom: clamp(22px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.na-cat { display: none; }
.na-head h1 { font-family: var(--serif); font-size: clamp(25px, 4.4vw, 40px); line-height: 1.4; letter-spacing: .6px; color: var(--ink); }
.na-meta { margin-top: clamp(16px, 2.4vw, 24px); font-size: 13.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.na-meta span { display: inline-flex; align-items: center; gap: 7px; }
.na-meta svg { width: 15px; height: 15px; color: var(--gold-dark); }

/* 正文 + 侧栏两栏；窄屏堆叠 */
.na-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 4vw, 60px); align-items: start; }

.na-body { font-size: clamp(15.5px, 1.7vw, 17px); }
.na-body .lead { font-family: var(--serif); font-size: clamp(17px, 2vw, 20px); line-height: 1.95; color: var(--ink); background: linear-gradient(135deg, var(--brand-softer), var(--gold-soft)); border-left: 4px solid var(--brand); padding: 20px 26px; border-radius: 0 12px 12px 0; margin: 0 0 30px; text-indent: 0; }
.na-body p { color: var(--ink-2); line-height: 2.05; margin: 0 0 20px; text-indent: 2em; text-align: justify; }
.na-body .detail-note { margin-top: 6px; }

/* 正文尾部：标签 + 分享 */
.na-foot { margin-top: clamp(30px, 4vw, 44px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.na-tags { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.na-tag { font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 6px 14px; border-radius: 999px; background: var(--line-2); transition: var(--transition); }
.na-tag:hover { color: var(--brand); background: var(--brand-soft); }
.na-share { display: inline-flex; align-items: center; gap: 12px; }
.na-share-label { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.share-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1.5px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-xs); transition: var(--transition); }
.share-btn svg { width: 20px; height: 20px; }
.share-btn:hover { color: #fff; border-color: transparent; box-shadow: var(--shadow); }
.share-btn.wx:hover { background: #07c160; }
.share-btn.wb:hover { background: #e6162d; }
.share-btn.copy:hover { background: var(--brand); }
.share-btn:active { transform: scale(.94); }

/* 侧栏：粘性「相关阅读」卡片 + 返回按钮 */
.na-aside { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 18px; }
.na-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-xs); }
.na-card h3 { font-family: var(--serif); font-size: 18px; color: var(--ink); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--brand-soft); }
.na-card h3 .en { display: block; font-family: var(--font); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-bottom: 4px; }
.na-related li { border-bottom: 1px dashed var(--line); }
.na-related li:last-child { border-bottom: none; }
.na-related a { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 13px 0; }
.na-rel-t { min-width: 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: var(--transition); }
.na-related a:hover .na-rel-t { color: var(--brand); }
.na-rel-d { font-size: 12px; color: var(--ink-3); flex-shrink: 0; padding-top: 2px; }
.na-back { width: 100%; justify-content: center; }
.na-back svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .na-layout { grid-template-columns: 1fr; gap: 34px; }
  .na-aside { position: static; }
  .na-foot { justify-content: center; }
}
@media (max-width: 767px) {
  .na-body p { text-indent: 0; }
  .na-body .lead { padding: 16px 20px; }
  .na-meta { font-size: 12px; gap: 6px 16px; }
}

/* =========================== 轻量提示条 =========================== */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); z-index: 1000;
  max-width: min(90vw, 440px); text-align: center;
  background: rgba(32, 27, 22, .96); color: #fdf7f0;
  padding: 13px 24px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: .3px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(179, 137, 63, .35);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* =========================== 站内搜索页 =========================== */
/* 移动端搜索入口图标（顶栏搜索框隐藏时出现）*/
.search-jump { display: none; }
@media (max-width: 1080px) {
  .search-jump {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
    color: var(--ink); margin-left: auto; flex-shrink: 0; transition: var(--transition);
  }
  .search-jump:hover { color: var(--brand); background: var(--brand-soft); }
  .search-jump:active { transform: scale(.94); }
}
@media (max-width: 980px) {
  /* 让 search-jump 的 margin-left:auto 生效，实现右侧 [🔍][☰] 排布 */
  .nav-toggle { margin-left: 6px; }
}

/* 搜索页 hero */
.search-top {
  position: relative; overflow: hidden;
  background:
    radial-gradient(140% 120% at 50% -20%, rgba(207, 82, 25, .12), transparent 55%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(46px, 7vw, 88px) 0 clamp(34px, 5vw, 56px);
}
.search-top::before {
  content: ""; position: absolute; right: -90px; top: -90px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(179, 137, 63, .18), transparent 66%); border-radius: 50%; pointer-events: none;
}
.search-top::after {
  content: ""; position: absolute; left: -80px; bottom: -120px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(207, 82, 25, .08), transparent 66%); border-radius: 50%; pointer-events: none;
}
.search-top .wrap { position: relative; z-index: 1; max-width: 760px; text-align: center; }
.search-top .en {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font); font-size: 12px; letter-spacing: 5px; text-transform: uppercase; color: var(--gold-dark); font-weight: 700;
}
.search-top .en::before, .search-top .en::after { content: ""; width: 28px; height: 1.5px; background: var(--gold); opacity: .6; }
.search-hero-title { font-size: clamp(30px, 5.4vw, 46px); color: var(--ink); letter-spacing: 4px; margin: 14px 0 10px; }
.search-hero-sub { margin: 0 auto; color: var(--ink-2); font-size: clamp(14.5px, 1.7vw, 17px); max-width: 32em; line-height: 1.8; }

/* 搜索框 */
.search-box {
  display: flex; align-items: center; gap: 8px; max-width: 660px; margin: clamp(26px, 3.6vw, 36px) auto 0;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 8px 8px 22px; box-shadow: var(--shadow-lg); transition: border-color var(--transition), box-shadow var(--transition);
}
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow-lg); }
.search-box-icon { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; }
.search-box input {
  flex: 1; min-width: 0; border: none; background: none; outline: none;
  font-size: clamp(15px, 1.7vw, 17px); color: var(--ink); font-family: inherit;
}
.search-box input::placeholder { color: var(--ink-3); }
.search-box button {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand)); color: #fff; border-radius: 999px;
  padding: 13px 32px; font-size: 15px; font-weight: 700; letter-spacing: 3px;
  box-shadow: 0 8px 18px rgba(207, 82, 25, .3); transition: var(--transition);
}
.search-box button:hover { box-shadow: 0 10px 26px rgba(207, 82, 25, .42); transform: translateY(-1px); }
.search-box button:active { transform: scale(.96); }

/* 收录规模 */
.search-scope { margin: clamp(16px, 2vw, 22px) 0 0; font-size: 13px; color: var(--ink-3); letter-spacing: .4px; }
.search-scope b { color: var(--gold-dark); font-weight: 700; }

/* 热门搜索词 */
.search-hot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; margin-top: clamp(14px, 2vw, 20px); }
.search-hot-label { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.search-hot-label svg { color: var(--brand); }
.search-hot a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--ink-2); background: rgba(255, 255, 255, .72); border: 1px solid var(--line); transition: var(--transition);
  min-height: 44px; min-width: 44px;
}
.search-hot a:hover { color: #fff; border-color: var(--brand); background: var(--brand); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(207, 82, 25, .26); }
.search-hot a:active { transform: scale(.95); }

/* 404 页面（复用 .search-top 浅色横幅 + 搜索框）*/
.error-404 .err-code {
  display: block; font-family: var(--serif); font-weight: 700;
  font-size: clamp(84px, 19vw, 184px); line-height: .9; letter-spacing: 6px; user-select: none;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark) 66%, var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 4px;
}
.error-404 .err-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: clamp(24px, 3.4vw, 36px); }
@media (max-width: 480px) {
  .error-404 .err-links { gap: 10px; }
  .error-404 .err-links .btn { padding: 12px 22px; font-size: 14px; }
}

/* 结果统计 */
.search-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 28px); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.search-meta { font-size: 14.5px; color: var(--ink-2); }
.search-meta b { color: var(--brand); font-weight: 800; font-size: 16px; }
.search-meta .q { color: var(--ink); font-weight: 700; }
.search-range { font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: .3px; }

/* 信息丰富卡：分类标签 / 作者 / 简介 / 优惠价 */
.sr-card { display: flex; flex-direction: column; }
.sr-card .book-cover { flex-shrink: 0; }
.sr-card .book-info { flex: 1 1 auto; padding: 14px 4px 4px; display: flex; flex-direction: column; gap: 6px; }
.sr-card .book-info h4 { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.35; }
.sr-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-tag { font-size: 11px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 2px 8px; letter-spacing: .3px; }
.sr-tag--sub { color: var(--gold-dark); background: var(--gold-soft); }
.sr-author { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-card .book-info p { margin: 0; }
.sr-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 2px; }
.sr-now { font-size: 17px; font-weight: 800; color: var(--brand); font-family: var(--serif); }
.sr-was { font-size: 12px; color: var(--ink-3); }

/* 结果分页 */
.search-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: clamp(30px, 4vw, 44px); }
.search-pager button { min-width: 44px; height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; transition: var(--transition); }
.search-pager button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.search-pager button:active:not(:disabled) { transform: scale(.94); }
.search-pager .pg-num.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 14px rgba(207, 82, 25, .28); }
.search-pager button:disabled { opacity: .4; cursor: not-allowed; }

/* 高亮命中词 */
.search-detail mark, #search-detail mark {
  background: linear-gradient(180deg, transparent 58%, var(--gold-soft) 58%);
  color: var(--brand-dark); font-weight: 700; padding: 0 1px; border-radius: 2px;
}

/* 结果统计响应式 */
@media (max-width: 640px) {
  .search-summary { align-items: stretch; }
}
@media (max-width: 560px) {
  .search-box { padding: 6px 6px 6px 16px; flex-direction: column; border-radius: 16px; gap: 8px; }
  .search-box input { width: 100%; padding: 6px 0; }
  .search-box button { padding: 11px 18px; letter-spacing: 1px; width: 100%; justify-content: center; }
}

/* ===== chlippro WP 适配：服务端分页链接沿用 demo3 按钮样式 ===== */
.search-pager a.pg-btn, .search-pager span.pg-btn,
.search-pager a.pg-num, .search-pager span.pg-num {
  min-width: 44px; height: 44px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-2);
  font-size: 14px; font-weight: 700; display: inline-flex; align-items: center;
  justify-content: center; transition: var(--transition); text-decoration: none;
}
.search-pager a.pg-btn:hover, .search-pager a.pg-num:hover {
  border-color: var(--brand); color: var(--brand); background: var(--brand-soft);
}
.search-pager a.pg-btn:active, .search-pager a.pg-num:active { transform: scale(.94); }
.search-pager span[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.search-pager .pg-num.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 14px rgba(207, 82, 25, .28); }
.search-pager .pg-gap { min-width: 24px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); font-weight: 700; user-select: none; }
