/* ===== 列表页专用样式（古诗词/作者/成语/名句等通用） ===== */

/* 面包屑（扁平：nav.bc 直接含 a/span，无 ol/li） */
.bc { font-size: 13px; color: var(--c6); margin-bottom: 16px; padding: 10px 16px; background: var(--c7); border-radius: 6px; border-left: 3px solid var(--c1); display: flex; flex-wrap: nowrap; align-items: center; white-space: nowrap; overflow: hidden; }
.bc > a, .bc > span { display: inline-flex; align-items: center; }
.bc > a + a::before, .bc > a + span::before, .bc > span + a::before, .bc > span + span::before { content: "›"; margin: 0 8px; color: var(--c8); }
.bc > a { color: var(--c6); }
.bc > a:hover { color: var(--c1); }
.bc > span { color: var(--c4); }
/* 兼容旧 ol/li 结构（其它栏目可能还在用） */
.bc ol { display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; list-style: none; margin: 0; padding: 0; }
.bc li { display: inline-flex; align-items: center; }
.bc li + li::before { content: "›"; margin: 0 8px; color: var(--c8); }
.bc li:last-child span { color: var(--c4); }

/* 页面标题区 */
.pt { font-size: 22px; font-weight: 600; color: var(--c4); margin-bottom: 8px; padding: 16px 20px 12px; background: var(--c7); border-radius: 8px; border-left: 4px solid var(--c1); }
.pd { font-size: 14px; color: var(--c6); margin-bottom: 20px; line-height: 1.7; padding: 0 20px; }

/* 筛选区（背景容器） */
.ft { margin-bottom: 16px; background: var(--c7); border-radius: 8px; padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ft + .ft { margin-top: -8px; }
.ft > h2 { font-size: 14px; font-weight: 600; color: var(--c4); white-space: nowrap; margin: 0 4px 0 0; flex-shrink: 0; }
/* 二级筛选行：弱化 + 顶部分隔 */
.ft.ft-sub { background: var(--c7); padding: 12px 18px; }
.ft.ft-sub > h2 { color: var(--c1); }

/* 筛选标签 */
.ft .t { padding: 5px 12px; font-size: 13px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; color: var(--c5); border: 1px solid transparent; background: var(--c9); transition: all .15s; }
.ft .t:hover { color: var(--c1); border-color: var(--c1); }
.ft .t.cur { background: var(--c1); color: var(--c9); border-color: var(--c1); font-weight: 500; }

/* 兼容旧栏目 .ft > .fg > .tg 三层结构 */
.ft .fg { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; width: 100%; }
.ft .fg:last-child { margin-bottom: 0; }
.ft .fg h2 { font-size: 14px; font-weight: 600; color: var(--c4); white-space: nowrap; min-width: 50px; }
.ft .fg .tg { flex: 1; overflow: hidden; display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ft .fg .tg::-webkit-scrollbar { display: none; }
.ft-desc { font-size: 13px; color: var(--c6); margin-bottom: 12px; width: 100%; }

/* 诗词列表项 */
.poem { display: flex; gap: 14px; padding: 16px; margin-bottom: 8px; background: var(--c9); border-radius: 6px; border: 1px solid var(--c8); align-items: flex-start; transition: border-color .2s; }
.poem:hover { border-color: var(--c1); }
.poem .av { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--c8); }
.poem .lc { flex: 1; min-width: 0; }
.poem .lc h3 { font-size: 16px; font-weight: 500; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.poem .lc h3 > a { color: var(--c4); }
.poem .lc h3 > a:hover { color: var(--c1); }
.poem .lc h3 .au { font-size: 14px; color: var(--c1); font-weight: normal; }
.poem .lc h3 em { font-style: normal; font-size: 14px; color: var(--c6); }
.poem .lc h3 em a { color: var(--c6); }
.poem .lc h3 em a:hover { color: var(--c1); }
.poem .lc h3 .tag { font-size: 12px; padding: 2px 8px; background: var(--c7); color: var(--c6); border-radius: 3px; border: 1px solid var(--c8); font-weight: normal; }
.poem .lc h3 .tag:hover { color: var(--c1); border-color: var(--c1); }
.poem .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.poem .tags a { font-size: 12px; padding: 2px 8px; background: var(--c7); color: var(--c6); border-radius: 3px; border: 1px solid var(--c8); }
.poem .tags a:hover { color: var(--c1); border-color: var(--c1); }
.poem .body { font-size: 14px; color: var(--c5); line-height: 1.6; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.poem .desc { font-size: 14px; color: var(--c5); line-height: 1.6; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }

/* 功能按钮 */
.poem .acts { display: flex; gap: 4px; margin-left: auto; flex-shrink: 0; }
.poem .acts button { width: 26px; height: 26px; border: 1px solid var(--c8); background: var(--c7); color: var(--c5); border-radius: 4px; font-size: 12px; cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; }
.poem .acts button:hover { background: var(--c1); color: var(--c9); border-color: var(--c1); }

/* 展开内容区（译文/注释/赏析） */
.poem .extra { display: none; margin-top: 10px; padding: 14px; background: var(--c7); border-radius: 6px; position: relative; width: 100%; font-size: 15px; line-height: 1.8; color: var(--c5); }
.poem .extra .close { position: absolute; top: 8px; right: 12px; cursor: pointer; font-size: 18px; color: var(--c6); }
.poem .extra .close:hover { color: var(--c1); }

/* 名句列表项 */
.mj { padding: 14px 16px; margin-bottom: 6px; border-bottom: 1px dashed var(--c8); }
.mj:last-child { border-bottom: none; }
.mj h3 { font-size: 15px; font-weight: 500; line-height: 1.8; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mj h3 a { color: var(--c4); flex-shrink: 0; }
.mj h3 a:hover { color: var(--c1); }
.mj .desc { font-size: 13px; color: var(--c6); font-weight: normal; white-space: nowrap; text-align: right; }
.mj .desc a { color: var(--c6); }
.mj .desc a:hover { color: var(--c1); }
.mj .desc em { font-style: normal; margin: 0 4px; }
.mj .cy-desc { font-size: 13px; color: var(--c5); line-height: 1.7; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* 成语列表项 */
.mc .sh { background: var(--c7); padding: 12px 18px; border-radius: 6px; border-bottom: none; border-left: 4px solid var(--c1); margin-bottom: 16px; }
.cy-item { background: var(--c7); border-radius: 6px; padding: 14px 18px; margin-bottom: 10px; border: 1px solid var(--c8); transition: box-shadow .2s; }
.cy-item:hover { box-shadow: 0 2px 8px rgba(74,173,160,.1); border-color: var(--c1); }
.cy-item h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cy-item h3 a { color: var(--c4); }
.cy-item h3 a:hover { color: var(--c1); }
.cy-item h3 .tag { font-size: 12px; font-weight: normal; padding: 2px 8px; background: var(--c9); color: var(--c6); border-radius: 3px; border: 1px solid var(--c8); }
.cy-item .cy-desc { font-size: 13px; color: var(--c5); line-height: 1.6; margin: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }

/* 分页 */
.pg { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 24px; flex-wrap: wrap; }
.pg a, .pg span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; font-size: 14px; border-radius: 4px; border: 1px solid var(--c8); color: var(--c5); transition: all .2s; }
.pg a:hover { background: var(--c1); color: var(--c9); border-color: var(--c1); }
.pg .cur { background: var(--c1); color: var(--c9); border-color: var(--c1); font-weight: 600; }
.pg .dot { border: none; min-width: auto; }

/* 古籍列表项（扁平：article 直接含 img + h3 + p.bk-meta + p.bk-desc） */
.bk-item { background: var(--c7); border-radius: 6px; padding: 14px 18px; margin-bottom: 10px; border: 1px solid var(--c8); transition: box-shadow .2s; display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 4px; align-items: start; }
.bk-item:hover { box-shadow: 0 2px 8px rgba(74,173,160,.1); border-color: var(--c1); }
.bk-item .bk-cover { grid-column: 1; grid-row: 1 / span 3; width: 72px; height: 96px; object-fit: cover; border-radius: 4px; background: var(--c8); display: block; }
.bk-item .bk-title { grid-column: 2; grid-row: 1; font-size: 16px; font-weight: 600; margin: 0; line-height: 1.4; }
.bk-item .bk-title a { color: var(--c4); }
.bk-item .bk-title a:hover { color: var(--c1); }
.bk-item .bk-meta { grid-column: 2; grid-row: 2; font-size: 13px; color: var(--c6); margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; line-height: 1.6; }
.bk-item .bk-meta .dot { color: var(--c8); }
.bk-item .bk-meta a { color: var(--c5); }
.bk-item .bk-meta a:hover { color: var(--c1); }
.bk-item .bk-desc { grid-column: 2; grid-row: 3; font-size: 13px; color: var(--c5); line-height: 1.7; margin: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* 无数据提示 */
.no-data { padding: 32px 16px; text-align: center; color: var(--c6); background: var(--c7); border-radius: 8px; }
.no-data p { margin: 0; font-size: 14px; }

/* 右侧栏容器（与其它栏目一致：淡背景圆角块） */
.sd { background: var(--c7); border-radius: 8px; padding: 18px; align-self: flex-start; }
.sd > h2 { font-size: 16px; font-weight: 600; color: var(--c4); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--c1); }
.sd .hot-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.04); color: var(--c4); font-size: 14px; }
.sd .hot-item:last-child { border-bottom: none; }
.sd .hot-item:hover { color: var(--c1); }
.sd .hot-item .hot-rank { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--c9); background: var(--c8); border-radius: 4px; flex-shrink: 0; }
.sd .hot-item:nth-of-type(1) .hot-rank { background: var(--c1); }
.sd .hot-item:nth-of-type(2) .hot-rank { background: var(--c3); }
.sd .hot-item:nth-of-type(3) .hot-rank { background: #8a9e9e; }
.sd .hot-item .hot-cover { width: 44px; height: 60px; object-fit: cover; border-radius: 3px; background: var(--c8); flex-shrink: 0; }
.sd .hot-item .hot-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd .hot-item > a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c4); }
.sd .hot-item > a:hover { color: var(--c1); }
.sd .hot-item .hot-au { flex-shrink: 0; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--c6); }
.sd .hot-item .hot-au a { color: var(--c6); }
.sd .hot-item .hot-au a:hover { color: var(--c1); }

/* 旧栏目兼容：aside.sd > div.sw > .hot-item */
.sd .sw { margin-bottom: 20px; }
.sd .sw:last-child { margin-bottom: 0; }
.sd .sw h2 { font-size: 16px; font-weight: 600; color: var(--c4); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--c1); }

/* 旧式独立 .hot 容器（如有） */
.hot { background: var(--c7); border-radius: 8px; padding: 18px; }
.hot h3 { font-size: 16px; font-weight: 600; color: var(--c4); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--c1); }

@media (max-width: 768px) {
  /* 面包屑 */
  .bc { font-size: 14px; padding: 10px 12px; border-radius: 0; margin-bottom: 0; }
  
  /* 标题 */
  .pt { font-size: 20px; font-weight: 700; padding: 14px 12px 10px; border-radius: 0; border-left: none; border-right: none; margin-bottom: 0; }
  .pd { font-size: 15px; padding: 0 12px 10px; line-height: 1.8; }
  
  /* 筛选区 - 手机端折叠显示（默认只显示一行，多了折叠） */
  .ft:not(.ft-zimu) {
    max-height: 48px;
    overflow: hidden;
    position: relative;
    padding: 10px 44px 10px 12px;
    transition: max-height .3s ease;
  }
  .ft.ft-mobile-open {
    max-height: 2000px;
    overflow: visible;
  }
  .ft-mobile-toggle {
    position: absolute;
    right: 6px;
    top: 10px;
    width: 32px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--c8);
    background: var(--c9);
    border-radius: 4px;
    cursor: pointer;
    color: var(--c5);
    font-size: 11px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    z-index: 2;
  }
  .ft-mobile-toggle::before { content: "\25BC"; transition: transform .2s; }
  .ft.ft-mobile-open .ft-mobile-toggle::before { transform: rotate(180deg); }
  .ft-mobile-toggle:hover { background: var(--c1); color: var(--c9); border-color: var(--c1); }
  .ft.ft-mobile-toggle-hidden .ft-mobile-toggle { display: none; padding-right: 12px; }
  .ft > h2 { font-size: 15px; font-weight: 600; }
  .ft.ft-sub { padding: 8px 44px 8px 12px; }
  .ft .t { padding: 6px 12px; font-size: 14px; font-weight: 500; }
  .ft-desc { font-size: 14px; padding: 0 12px; }
  /* 兼容旧栏目 */
  .ft .fg { flex-direction: column; gap: 8px; align-items: flex-start; width: 100%; }
  .ft .fg h2 { min-width: auto; font-size: 15px; }
  .ft .fg .tg { flex-wrap: wrap; overflow-x: visible; gap: 6px; width: 100%; }
  
  /* 诗词列表 */
  .poem { padding: 12px; gap: 12px; border-radius: 0; margin-bottom: 0; border-left: none; border-right: none; }
  .poem .av { width: 48px; height: 48px; }
  .poem .lc h3 { font-size: 16px; font-weight: 600; gap: 6px; }
  .poem .lc h3 .au { font-size: 14px; }
  .poem .lc h3 em { font-size: 14px; }
  .poem .lc h3 .tag { font-size: 13px; padding: 3px 8px; }
  .poem .body { font-size: 15px; line-height: 1.7; }
  .poem .desc { font-size: 15px; line-height: 1.7; }
  .poem .tags { gap: 4px; }
  .poem .tags a { font-size: 13px; padding: 2px 8px; }

  /* 成语列表 */
  .cy-item { padding: 12px; margin-bottom: 0; border-radius: 0; border-left: none; border-right: none; }
  .cy-item h3 { font-size: 17px; gap: 6px; }
  .cy-item h3 .tag { font-size: 13px; padding: 2px 8px; }
  .cy-item .cy-desc { font-size: 14px; line-height: 1.7; }
  .mc .sh { padding: 12px; font-size: 17px; font-weight: 600; border-radius: 0; border-left: none; border-right: none; margin-bottom: 0; }

  /* 古籍列表 */
  .bk-item { padding: 12px; margin-bottom: 0; gap: 12px; border-radius: 0; border-left: none; border-right: none; }
  .bk-item .bk-cover { flex: 0 0 64px; }
  .bk-item .bk-cover img { width: 64px; height: 86px; }
  .bk-item .bk-title, .bk-item h3 { font-size: 17px; font-weight: 600; }
  .bk-item .bk-meta { font-size: 14px; gap: 6px; }
  .bk-item .bk-desc { font-size: 14px; line-height: 1.7; -webkit-line-clamp: 2; }
  .sd .hot-item .hot-cover { width: 40px; height: 54px; }

  /* 名句列表 */
  .mj { padding: 12px; }
  .mj h3 { font-size: 16px; flex-direction: column; align-items: flex-start; gap: 4px; font-weight: 500; }
  .mj .desc { white-space: normal; text-align: left; font-size: 15px; }
  .mj .cy-desc { font-size: 15px; line-height: 1.7; }
  
  /* 分页 */
  .pg { gap: 4px; padding: 12px 0; }
  .pg a, .pg span { min-width: 36px; height: 36px; font-size: 15px; padding: 0 8px; }
  
  /* 热门推荐 */
  .hot { padding: 14px 12px; border-radius: 0; }
  .hot h3 { font-size: 17px; }
  .hot-item a { font-size: 15px; }
  
  /* 区块标题 */
  .sh { font-size: 18px; font-weight: 600; }

  /* 侧边栏 */
  .sd { padding: 14px 12px; border-radius: 0; }
  .sd > h2 { font-size: 17px; font-weight: 600; }
  .sd .hot-item { font-size: 15px; }
  .sd .hot-item .hot-rank { width: 24px; height: 24px; font-size: 13px; }
  .sd .sw h2 { font-size: 17px; }

  /* 鉴赏列表 */
  .jy-item { padding: 12px; margin-bottom: 0; border-radius: 0; border-left: none; border-right: none; }
  .jy-item .jy-title { font-size: 17px; font-weight: 600; }
  .jy-item .jy-meta { font-size: 14px; gap: 6px; }
  .jy-item .jy-desc { font-size: 15px; line-height: 1.8; -webkit-line-clamp: 2; }

  /* 字典词典网格 */
  .mc > .word-grid { padding: 0; border-radius: 0; }
  .word-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
  .word-grid.char { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
  .word-grid.pinyin { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .word-grid.topic-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .word-grid.topic-grid .word-cell { font-size: 15px; padding: 12px 12px; min-height: 52px; }
  .word-grid.topic-grid .word-cell .wc-t { font-size: 15px; }
  .word-grid.topic-grid .word-cell .wc-py { font-size: 12px; }
  .word-cell { font-size: 20px; padding: 10px 6px; min-height: 44px; }
  .word-cell .wc-t { font-size: 18px; font-weight: 500; }
  .word-cell .wc-py { font-size: 12px; }
  .word-grid.char .word-cell { font-size: 22px; min-height: 48px; padding: 12px 6px; }
  .ft.ft-fold:not(.ft-zimu) { max-height: 48px; padding-right: 44px; }
  .ft.ft-zimu { padding: 8px 10px; gap: 2px; }
  .ft.ft-zimu > h2 { font-size: 14px; margin-right: 6px; }
  .ft.ft-zimu .t { padding: 5px 2px; font-size: 14px; }

  /* 古籍目录 */
  .book-head { grid-template-columns: 84px 1fr; column-gap: 12px; padding: 14px 12px; border-radius: 0; margin-bottom: 0; }
  .book-head .bh-cover { width: 84px; height: 112px; }
  .book-head .bh-title { font-size: 20px; font-weight: 700; }
  .book-head .bh-tag { padding: 5px 12px; font-size: 14px; }
  .mc > .intro { padding: 14px 12px; border-radius: 0; margin-bottom: 0; border-left: none; border-right: none; }
  .mc > .intro > h2 { font-size: 17px; font-weight: 600; }
  .mc > .intro > p { font-size: 16px; line-height: 1.9; }
  .mc > .ch-h2 { font-size: 17px; padding: 12px; border-radius: 0; border-left: none; border-right: none; }
  .mc > .cat-h3 { font-size: 16px; padding: 8px 12px; border-radius: 0; }
  .mc > .cat-h3 .cat-cnt { font-size: 13px; }
  .mc > .ch-grid { padding: 12px; grid-template-columns: repeat(2, 1fr); gap: 8px 12px; border-radius: 0; border-left: none; border-right: none; }
  .mc > .ch-grid a { padding: 9px 12px; font-size: 15px; }
  .mc > .no-data { font-size: 15px; border-radius: 0; border-left: none; border-right: none; }
}

@media (max-width: 480px) {
  .pt { font-size: 19px; padding: 12px 12px 8px; }
  .pd { font-size: 14px; padding: 0 12px; }
  .ft { padding: 8px 12px; }
  .ft .t { padding: 5px 10px; font-size: 13px; }
  .fg h2 { font-size: 14px; }
  .poem .av { width: 44px; height: 44px; }
  .poem .lc h3 { font-size: 15px; }
  .cy-item { padding: 12px; }
  .cy-item h3 { font-size: 16px; }
  .cy-item .cy-desc { font-size: 14px; -webkit-line-clamp: 2; }
  .pg a, .pg span { min-width: 32px; height: 32px; font-size: 14px; }
  .mc .sh { padding: 10px 12px; font-size: 16px; }
  .book-head { grid-template-columns: 72px 1fr; column-gap: 10px; }
  .book-head .bh-cover { width: 72px; height: 96px; }
  .book-head .bh-title { font-size: 18px; }
  .mc > .ch-grid { grid-template-columns: 1fr; }
  .jy-item { padding: 12px; }
  .jy-item .jy-title { font-size: 16px; }
  .jy-item .jy-meta { font-size: 14px; }
}


/* ===== 古籍目录页（BookList.aspx）专用 ===== */

/* 书籍头部卡：扁平 grid 布局，img / h1 / p 直接挂在 section 下（2层） */
.book-head { display: grid; grid-template-columns: 120px 1fr; grid-template-rows: auto auto; column-gap: 18px; row-gap: 8px; align-items: center; padding: 20px; margin-bottom: 16px; background: var(--c9); border: 1px solid var(--c8); border-radius: 8px; }
.book-head .bh-cover { grid-column: 1; grid-row: 1 / span 2; width: 120px; height: 160px; object-fit: cover; border-radius: 6px; border: 1px solid var(--c8); background: var(--c7); display: block; align-self: center; }
.book-head .bh-title { grid-column: 2; grid-row: 1; align-self: end; font-size: 24px; font-weight: 600; color: var(--c4); margin: 0; line-height: 1.3; }
.book-head .bh-meta { grid-column: 2; grid-row: 2; align-self: start; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.book-head .bh-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; background: var(--c7); border: 1px solid var(--c8); border-radius: 4px; font-size: 13px; color: var(--c5); line-height: 1.5; text-decoration: none; }
.book-head .bh-tag b { color: var(--c6); font-weight: 500; font-size: 12px; }
.book-head a.bh-tag { color: var(--c5); }
.book-head a.bh-tag:hover { color: var(--c1); border-color: var(--c1); }

/* 内容简介卡：section > h2 + p（2层） */
.mc > .intro { background: var(--c9); border: 1px solid var(--c8); border-radius: 8px; padding: 16px 20px; margin-bottom: 16px; }
.mc > .intro > h2 { font-size: 16px; font-weight: 600; color: var(--c4); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--c1); }
.mc > .intro > p { margin: 0; font-size: 15px; line-height: 1.9; color: var(--c5); text-indent: 2em; text-align: justify; }

/* 章节目录区：mc 下直接放 h2 / h3 / ul，无中间包装（扁平 2 层） */
.mc > .ch-h2 { font-size: 17px; font-weight: 600; color: var(--c4); margin: 0 0 14px; padding: 14px 18px 10px; background: var(--c9); border: 1px solid var(--c8); border-radius: 8px; border-bottom: 2px solid var(--c1); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mc > .ch-h2 .ch-total { font-size: 13px; font-weight: 400; color: var(--c6); }

.mc > .cat-h3 { font-size: 15px; font-weight: 600; color: var(--c1); margin: 18px 0 10px; padding: 8px 12px; background: var(--c7); border-left: 3px solid var(--c1); border-radius: 0 4px 4px 0; display: flex; align-items: center; gap: 10px; }
.mc > .cat-h3:first-of-type { margin-top: 0; }
.mc > .cat-h3 .cat-cnt { font-size: 12px; font-weight: 400; color: var(--c6); background: var(--c9); padding: 1px 8px; border-radius: 10px; border: 1px solid var(--c8); }

/* 章节网格：ul.ch-grid > li > a */
.mc > .ch-grid { list-style: none; margin: 0 0 16px; padding: 14px 18px; background: var(--c9); border: 1px solid var(--c8); border-radius: 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 14px; }
.mc > .ch-grid li { min-width: 0; }
.mc > .ch-grid a { display: block; padding: 8px 12px; font-size: 14px; color: var(--c4); border: 1px solid transparent; border-radius: 4px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: all .15s; }
.mc > .ch-grid a:hover { background: var(--c7); color: var(--c1); border-color: var(--c8); }

/* 无内容提示（覆盖通用 .no-data 的居中样式以适配段落版本） */
.mc > .no-data { padding: 40px 20px; margin: 0; text-align: center; color: var(--c6); background: var(--c7); border: 1px dashed var(--c8); border-radius: 8px; font-size: 14px; line-height: 1.7; }

@media (max-width: 768px) {
  .book-head { grid-template-columns: 84px 1fr; column-gap: 12px; padding: 16px; border-radius: 6px; }
  .book-head .bh-cover { width: 84px; height: 112px; }
  .book-head .bh-title { font-size: 20px; font-weight: 700; }
  .book-head .bh-tag { padding: 5px 12px; font-size: 14px; }

  .mc > .intro { padding: 14px 16px; border-radius: 6px; }
  .mc > .intro > h2 { font-size: 17px; font-weight: 600; }
  .mc > .intro > p { font-size: 16px; line-height: 1.9; }

  .mc > .ch-h2 { font-size: 17px; padding: 14px 16px 10px; }
  .mc > .cat-h3 { font-size: 16px; padding: 8px 12px; }
  .mc > .ch-grid { padding: 14px 16px; grid-template-columns: repeat(2, 1fr); gap: 8px 12px; border-radius: 6px; }
  .mc > .ch-grid a { padding: 9px 12px; font-size: 15px; }
}

@media (max-width: 480px) {
  .book-head { grid-template-columns: 64px 1fr; column-gap: 10px; }
  .book-head .bh-cover { width: 64px; height: 86px; }
  .book-head .bh-title { font-size: 18px; }
  .mc > .ch-grid { grid-template-columns: 1fr; }
}


/* ===== 诗词鉴赏列表页（JieYiList.aspx）专用 ===== */

.jy-item { background: var(--c9); border: 1px solid var(--c8); border-radius: 6px; padding: 14px 18px; margin-bottom: 10px; transition: box-shadow .2s, border-color .2s; }
.jy-item:hover { box-shadow: 0 2px 8px rgba(74,173,160,.1); border-color: var(--c1); }
.jy-item .jy-title { font-size: 16px; font-weight: 600; margin: 0 0 6px; line-height: 1.4; }
.jy-item .jy-title a { color: var(--c4); }
.jy-item .jy-title a:hover { color: var(--c1); }
.jy-item .jy-meta { font-size: 13px; color: var(--c6); margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; line-height: 1.6; }
.jy-item .jy-meta .jy-au { color: var(--c5); }
.jy-item .jy-meta .jy-type { color: var(--c1); }
.jy-item .jy-meta .dot { color: var(--c8); }
.jy-item .jy-desc { font-size: 14px; color: var(--c5); line-height: 1.7; margin: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

@media (max-width: 768px) {
  .jy-item { padding: 14px 16px; margin-bottom: 8px; }
  .jy-item .jy-title { font-size: 17px; font-weight: 600; }
  .jy-item .jy-meta { font-size: 14px; gap: 6px; }
  .jy-item .jy-desc { font-size: 15px; line-height: 1.8; -webkit-line-clamp: 2; }
}

@media (max-width: 480px) {
  .jy-item { padding: 12px 14px; }
  .jy-item .jy-title { font-size: 16px; }
}


/* ===== 字典/词典列表页（ZiDian/CiDian.aspx）专用 ===== */

.mc > .sh + .word-grid,
.mc > .word-grid { background: var(--c9); border: 1px solid var(--c8); border-radius: 6px; padding: 0; margin-bottom: 16px; display: grid; gap: 0; overflow: hidden; }
/* 默认（常用字/词）：紧凑网格 */
.word-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
/* 字典专用：单字更紧凑 + 字号更大 */
.word-grid.char { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
/* 拼音模式：每个 cell 含字+拼音两行 */
.word-grid.pinyin { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
/* 专题模式：列宽自适应、每个 cell 单行不换行（用 minmax 保证最小 140px，长专题名自动撑开整列） */
.word-grid.topic-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.word-grid.topic-grid .word-cell { padding: 12px 14px; min-height: 56px; font-size: 14px; }
.word-grid.topic-grid .word-cell .wc-t { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.word-grid.topic-grid .word-cell .wc-py { font-size: 11px; }

.word-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 6px; font-size: 16px; color: var(--c4); border-right: 1px solid var(--c8); border-bottom: 1px solid var(--c8); border-radius: 0; transition: all .15s; line-height: 1.4; text-align: center; min-height: 44px; background: var(--c9); }
.word-cell:hover { background: var(--c7); color: var(--c1); }
.word-cell.pinyin-cell { padding: 10px 12px; align-items: center; justify-content: center; font-size: 14px; text-align: center; }
.word-cell .wc-t { font-size: 15px; font-weight: 500; color: var(--c4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; text-align: center; width: 100%; }
.word-cell .wc-py { font-size: 12px; color: var(--c6); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; text-align: center; width: 100%; }
.word-cell:hover .wc-t,
.word-cell:hover .wc-py { color: var(--c1); }
/* 字典：单字网格字号稍大 */
.word-grid.char .word-cell { font-size: 18px; font-weight: 500; min-height: 48px; padding: 10px 6px; }

/* 简介区块（与全站 .intro 一致风格） */
.mc > .intro { background: var(--c9); border: 1px solid var(--c8); border-radius: 6px; padding: 14px 18px; margin-bottom: 16px; }
.mc > .intro > h2 { font-size: 16px; font-weight: 600; color: var(--c4); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--c1); }
.mc > .intro > p { margin: 0 0 8px; font-size: 14px; line-height: 1.8; color: var(--c5); }
.mc > .intro > p:last-child { margin-bottom: 0; }

/* ===== 可折叠筛选区（.ft.ft-fold）===== */
/* 默认折叠：固定 1 行高度，超出隐藏 */
.ft.ft-fold { position: relative; max-height: 52px; overflow: hidden; padding-right: 56px; transition: max-height .25s ease; }
.ft.ft-fold.open { max-height: 600px; overflow: visible; }
.ft.ft-fold .ft-toggle { position: absolute; right: 12px; top: 8px; width: 36px; height: 28px; padding: 0; border: 1px solid var(--c8); background: var(--c9); border-radius: 4px; cursor: pointer; color: var(--c5); font-size: 12px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.ft.ft-fold .ft-toggle::before { content: "▼"; font-size: 10px; transition: transform .2s; }
.ft.ft-fold.open .ft-toggle::before { transform: rotate(180deg); }
.ft.ft-fold .ft-toggle:hover { background: var(--c1); color: var(--c9); border-color: var(--c1); }
/* 没有溢出时隐藏按钮（JS 添加 .no-overflow） */
.ft.ft-fold.no-overflow .ft-toggle { display: none; }
.ft.ft-fold.no-overflow { padding-right: 18px; max-height: none; }

/* ===== 字母导航专用（.ft.ft-zimu）：单行不换行，全部展示，flex 等分宽度 ===== */
.ft.ft-zimu { flex-wrap: nowrap; padding: 8px 12px; gap: 2px; align-items: center; }
.ft.ft-zimu > h2 { flex: 0 0 auto; font-size: 13px; margin-right: 8px; }
.ft.ft-zimu .t { flex: 1 1 0; min-width: 0; padding: 5px 2px; font-size: 14px; text-align: center; }

@media (max-width: 768px) {
  .mc > .word-grid { padding: 0; }
  .word-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
  .word-grid.char { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
  .word-grid.pinyin { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .word-grid.topic-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .word-grid.topic-grid .word-cell { font-size: 15px; padding: 12px 12px; min-height: 52px; }
  .word-grid.topic-grid .word-cell .wc-t { font-size: 15px; }
  .word-grid.topic-grid .word-cell .wc-py { font-size: 12px; }
  .word-cell { font-size: 20px; padding: 10px 6px; min-height: 44px; }
  .word-cell .wc-t { font-size: 18px; font-weight: 500; }
  .word-cell .wc-py { font-size: 12px; }
  .word-grid.char .word-cell { font-size: 22px; min-height: 48px; padding: 12px 6px; }
  .ft.ft-fold:not(.ft-zimu) { max-height: 48px; padding-right: 44px; }
  .ft.ft-zimu { padding: 8px 10px; gap: 2px; }
  .ft.ft-zimu > h2 { font-size: 14px; margin-right: 6px; }
  .ft.ft-zimu .t { padding: 5px 2px; font-size: 14px; }
}
