/*********** 全局重置 CSS *****************/
body,h1,h2,h3,h4,h5,h6,ul,ol,dl,dd{margin:0;}
p{margin:0;}
ul,ol,li{padding-left:0;list-style-type:none;}
img{border:0;}
a{text-decoration:none;color:inherit;}
a:hover{cursor:pointer;}
table{border-collapse:collapse;}
em{font-style:normal;}
button{cursor:pointer;border:none;background:none;}
input{border:none;background:none;margin:0;padding:0;}
input:focus{outline:none;}
input::placeholder{color:#999;}
html{overflow-y:auto;height:100%;font-size:0.52vw;}
body{font-family:"微软雅黑","Microsoft YaHei","sans-serif","Arial";font-size:12px;color:#333;overflow-x:hidden; font-family: HarmonyOS Sans SC;background:url(qmyd_20260907_bg02.png) no-repeat top center;background-size:100% auto;}
.clear{font-size:0;line-height:0;height:0;clear:both;overflow:hidden;display:block;}
:focus{outline:0;}
* {box-sizing: border-box;}

/*********** 公共类 *****************/
.AllydCont{display:none;}
.pic img{display:block;width:100%;height:auto;}
.flex_box{display:flex;}
.flex_box_center{display:flex;justify-content:center;align-items:center;}
.flex_box_space{display:flex;justify-content:space-between;align-items:center;}
.conter{width:88%;margin:0 auto;}
.fontColor4{color:#333333;}
.font16{font-size:1.6rem;}
.font24{font-size:2.4rem;}
.line-clamp-1{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;}
.line-clamp-2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;}
.line-clamp-3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;}

/*********** 头部 *****************/
.header{position:relative;z-index:10;}
.header .header_top{width:100%;height:10.8rem;background:#fff;box-sizing:border-box;box-shadow:0 0.2rem 1rem rgba(0,0,0,0.05);}
.header .header_top .conter{height:100%;position:relative;}
.header .h_logo{width:24.4rem;flex-shrink:0;}
.header .h_nav{flex:1;display:flex;justify-content:center;align-items:center;}
.header .nav{padding-right:4.2rem;}
.header .nav li:not(:last-child){margin-right:6rem;}
.header .nav li a{font-size:2.4rem;color:#333;line-height:1;padding:1rem 0;display:block;position:relative;}
.header .nav li:hover a,.header .nav li.active a{font-weight:bold;}
.header .nav li:hover a::after,.header .nav li.active a::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:0.3rem;background:#2b7de1;border-radius:0.2rem;}
.header .lang{justify-content:flex-end;align-items:center;flex-shrink:0;}
.header .lang a{margin-left:2.4rem;font-size:1.6rem;color:#333;display:flex;align-items:center;}
.header .lang a:nth-child(1) img,.header .lang a:nth-child(2) img{width:0.7rem;margin-right:1rem;}
.header .lang a:nth-child(3) img{width:1.45rem;margin-right:1rem;}
.header .lang .pic{width:1.8rem;}
.YDmenu{display:none;}
.YDmenuCont_box{display:none;}

/*********** Banner *****************/
.banner{width:100%;background:#fff;}
.banner__inner{width:100%;height:44.2vw;max-height:84.9rem;min-height:45rem;background:url(qmyd_20260907_bg01.png) no-repeat top center;background-size:100% auto;}

/*********** 公共区块 *****************/
.topic-main{position:relative;z-index:1;padding-top:4rem;}
.section{padding:5rem 0;position:relative;}
.section-title{display:flex;align-items:center;justify-content:center;margin-bottom:4rem;}
.section-title__icon{width:6.8rem;height:5.6rem;background:url(qmyd_20260907_pic01.png) no-repeat left center;background-size:auto 100%;flex-shrink:0;margin-right:1.2rem;}
.section-title__icon--css{width:6rem;height:5.6rem;display:flex;align-items:flex-end;gap:0.35rem;padding-bottom:0.4rem;background:none;}
.section-title__icon--css i{display:block;border-radius:0.2rem;}
.section-title__icon--css i:nth-child(1){width:0.9rem;height:2.2rem;background:#7dd3c0;transform:rotate(-18deg);transform-origin:bottom left;margin-right:-0.2rem;}
.section-title__icon--css i:nth-child(2){width:0.9rem;height:3.4rem;background:#f5c65b;}
.section-title__icon--css i:nth-child(3){width:0.9rem;height:4.2rem;background:#e88c4a;}
.section-title__icon--css i:nth-child(4){width:0.9rem;height:5rem;background:#c97b9a;}
.section-title__icon--img{width:24rem;height:5.8rem;background-repeat:no-repeat;background-position:center center;background-size:contain;margin-right:0;}
.section-title__icon--large{width:26rem;height:6.4rem;}
.section-title__icon--activities{background-image:url(qmyd_20260907_pic01.png);}
.section-title__icon--libraries{background-image:url(qmyd_20260907_pic03.png);}
.section-title__icon--feedback{background-image:url(qmyd_20260907_pic02.png);}
.section-title__text{font-size:4.2rem;font-weight:bold;line-height:1.2;}
.section-title--blue .section-title__text{color:#2b7de1;}
.section-title--green .section-title__text{color:#2e8b6e;}
.section-title--brown .section-title__text{color:#c08b5e;}
.sub-title-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:2rem;}
.sub-title{font-size:2.6rem;font-weight:bold;color:#333;line-height:1;}
.more-btn{display:inline-flex;align-items:center;justify-content:center;width:7.5rem;height:2.8rem;background:linear-gradient(90deg,#1878BE,#32A4DF);color:#fff;font-size:1.5rem;border-radius:1.4rem;}
.more-btn:hover{background:linear-gradient(90deg,#1266a5,#2a8dc9);}

/*********** 阅动·鹏城悦读 *****************/
.section-activities{padding-top:2rem;}
.activities-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3.5rem;}
.activities-left,.activities-right{min-width:0;}
.activities-right{display:flex;flex-direction:column;margin-bottom:4rem;}
.activities-left__head,.activities-right__head{display:flex;align-items:center;justify-content:space-between;height:5rem;padding:0 0.5rem 1.5rem;border-bottom:1px solid #c8e0f7;}
.activities-left__head .sub-title,.activities-right__head .sub-title{font-size:2.4rem;font-weight:bold;}
.activities-right__title{text-align:left;color:transparent;background:linear-gradient(0deg,#1878BE 0%,#32A4DF 100%);-webkit-background-clip:text;background-clip:text;}

/* 左侧活动卡片 */
.activity-slider{overflow:hidden;padding-top:2rem;touch-action:pan-y;}
.activity-slides{display:flex;transition:transform 0.4s ease;}
.activity-slide{width:100%;flex-shrink:0;display:flex;flex-direction:column;gap:2rem;}
.activity-card{display:flex;flex-direction:column;padding:2rem;background:#fff;border-radius:1.2rem;box-shadow:0 0.4rem 1.2rem rgba(43,125,225,0.06);border:1px solid rgba(43,125,225,0.08);transition:all 0.3s;}
.activity-card:hover{background:linear-gradient(180deg,#e8f4ff 0%,#ffffff 100%);box-shadow:0 0.8rem 2rem rgba(43,125,225,0.12);}
.activity-card__upper{display:flex;align-items:flex-start;gap:2rem;}
.activity-card__thumb{width:14rem;height:9.5rem;flex-shrink:0;border-radius:0.8rem;overflow:hidden;}
.activity-card__main{flex:1;min-width:0;display:flex;flex-direction:column;}
.activity-card__header{display:flex;align-items:flex-start;justify-content:space-between;gap:1.5rem;margin-bottom:1rem;}
.activity-card__title{font-size:2rem;font-weight:bold;color:#333;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.activity-card__desc{font-size:1.5rem;color:#666;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.activity-card__divider{height:1px;margin:1.5rem 0;background:#e8e8e8;position:relative;overflow:hidden;}
.activity-card:hover .activity-card__divider{background:#e8e8e8;}
.activity-card:hover .activity-card__divider::before{content:"";position:absolute;left:0;top:0;width:35%;height:100%;background:#32A4DF;}
.activity-card__lower{display:flex;align-items:center;justify-content:space-between;}
.activity-card__date,.activity-card__addr{display:flex;align-items:center;font-size:1.4rem;color:#888;gap:0.6rem;}
.activity-card__date img,.activity-card__addr img{width:1.5rem;height:auto;}
.activity-card__tag{display:inline-flex;align-items:center;justify-content:center;width:7.3rem;height:2.5rem;background:rgba(50,164,223,0.27);color:#32A4DF;font-size:1.4rem;font-weight:500;line-height:1.8rem;border-radius:1.2rem;border:1px solid #32A4DF;opacity:0.49;flex-shrink:0;transition:all 0.3s;}
.activity-card:hover .activity-card__tag{width:7.5rem;height:2.8rem;background:linear-gradient(90deg,#1878BE,#32A4DF);color:#fff;opacity:1;border-radius:1.4rem;border-color:transparent;}

/* 右侧活动动态 */
.dynamic-box{display:flex;flex:1;background:#fff;border-radius:1.2rem;overflow:hidden;box-shadow:0 1rem 3rem rgba(0,0,0,0.06);margin-top:2rem;touch-action:pan-y;}
.dynamic-years{width:14rem;background:linear-gradient(180deg,#e8f4ff 0%,#f5fbff 100%);display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;padding:1.5rem 0;gap:0;flex-shrink:0;background-image:url(qmyd_20260907_bg04.png);background-repeat:no-repeat;background-size:100% 100%;background-position:center;position:relative;}
.dynamic-year{width:auto;height:auto;padding:0.8rem 1rem;display:flex;align-items:center;justify-content:center;border-radius:0;font-size:2.4rem;color:#000;background:transparent;border:none;cursor:pointer;transition:all 0.3s;font-weight:300;position:relative;}
.dynamic-year:hover{color:#2b7de1;}
.dynamic-year.active{font-weight:900;color:#2b7de1;}
.dynamic-year.active::after{content:"";position:absolute;bottom:0;left:15%;width:70%;height:0.25rem;background:#2b7de1;border-radius:0.2rem;}
/* 右下角卷角（bg05 里那张翻页纸角）：尺寸按 rem 钉死，不随面板高度缩放；
   再用一条透明下边框把滚动区的底边上抬，把卷角这一条从滚动视口里让出去——
   条目（含灰色底部分隔线与悬停底色块）就压不到卷角上了。
   背景按 border-box 定位，卷角才仍然贴住卡片右下角。 */
.dynamic-panels{flex:1;display:flex;flex-direction:column;padding:2.5rem 3rem 0;border-bottom:6.5rem solid transparent;background:url(qmyd_20260907_bg05.png) no-repeat right bottom;background-size:auto 60rem;background-origin:border-box;background-clip:border-box;}
.dynamic-panel{display:none;}
.dynamic-panel.active{display:flex;flex-direction:column;flex:1;justify-content:center;}
/* 左右内边距与负外边距成对使用：内容位置不变，底色块比内容左右各宽出 1.2rem；
   灰色分隔线与底色块同宽，故比 .dynamic-panels 的内容区宽 2.4rem（仍在其内边距内，不会被裁切） */
.dynamic-item{display:flex;align-items:center;gap:1.5rem;flex:1 1 0;padding:1.2rem;margin:0 -1.2rem;border-radius:0.6rem;border-bottom:1px solid #f0f0f0;position:relative;}
.dynamic-item::after{content:"";position:absolute;left:0;bottom:0;width:35%;height:1px;background:#32A4DF;opacity:0;transition:opacity 0.3s;}
.dynamic-item:hover::after{opacity:1;}
/* 悬停：整条加浅蓝渐变底色，与左侧悦读活动卡片同一条渐变 */
.dynamic-item:hover{background:linear-gradient(180deg,#e8f4ff 0%,#ffffff 100%);}
.dynamic-item__thumb{width:12rem;height:8rem;flex-shrink:0;border-radius:0.6rem;overflow:hidden;}
.dynamic-item__info{flex:1;min-width:0;}
/* 标题字号/颜色/加粗都与左侧悦读活动卡片标题（.activity-card__title）对齐，两边是两条独立规则，改一处要一起改 */
.dynamic-item__title{display:block;font-size:2rem;color:#333;line-height:1.5;margin-bottom:2rem;font-weight:bold;}
.dynamic-item__date{display:flex;align-items:center;font-size:1.6rem;color:#000;opacity:0.7;gap:0.6rem;font-weight:400;transition:opacity 0.3s;}
.dynamic-item:hover .dynamic-item__date{opacity:1;}
.dynamic-item__date img{width:1.4rem;height:auto;}
.dynamic-item--text{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;flex:1 1 0;gap:0;padding:1.48rem 1.2rem;}
.dynamic-item--text .dynamic-item__title{margin-bottom:1rem;}
/* 移动端切换年份时的淡入反馈 */
@keyframes dynamic-panel-fade{from{opacity:0;transform:translateY(0.8rem);}to{opacity:1;transform:none;}}

/* 活动区轮播点 */
.activities-dots{display:flex;align-items:center;justify-content:center;gap:0.8rem;margin-top:3rem;}
.activities-dots span{width:1rem;height:1rem;border-radius:50%;background:#d0e5f7;cursor:pointer;}
.activities-dots span.active{background:#2b7de1;}

/*********** 年度十大好书 *****************/
.section-books{padding:5rem 0 8rem;}
.books-head{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3rem;margin-bottom:4rem;}
.books-title{font-size:3.4rem;font-weight:bold;color:#333;line-height:1;}
.books-years{display:flex;align-items:center;gap:1rem;}
.books-year{height:3.6rem;padding:0 1.8rem;border-radius:1.8rem;font-size:1.6rem;color:#888;background:transparent;border:1px solid #d0d0d0;cursor:pointer;transition:all 0.3s;}
.books-year:hover{color:#2b7de1;border-color:#2b7de1;}
.books-year.active{background:linear-gradient(90deg,#1878BE,#32A4DF);color:#fff;border-color:transparent;}
.bookshelves{position:relative;}
.bookshelf{display:none;}
.bookshelf.active{display:block;}
/* 竖排书名沿用 .book-line 系列（writing-mode:vertical-rl），只留手风琴用到的两个 */
.book-line{font-size:1.1rem;color:#333;line-height:1.4;font-weight:500;writing-mode:vertical-rl;text-orientation:upright;letter-spacing:0.08em;white-space:nowrap;transition:color 0.3s;}
.book-line--title{font-size:1.25rem;color:#3b3f3e;    font-weight: bold;}

/*********** 阅读·阵地 *****************/
.section-libraries{padding:5rem 0;}
.libraries-grid{display:grid;grid-template-columns:32rem 1fr;gap:3rem;}

/* 左侧 */
.libraries-sidebar{display:flex;flex-direction:column;gap:2rem;}
/* display:block 是给「整张卡片就是链接」的写法兜底的（a 元素默认是行内元素） */
.lib-card{display:block;background:#fff;border-radius:1.2rem;padding:2rem;box-shadow:0 0.8rem 2rem rgba(0,0,0,0.05);}
.lib-card__name{font-size:2rem;font-weight:bold;color:#333;margin-bottom:1.5rem;line-height:1.3;}
.lib-card__btns{display:flex;flex-direction:column;gap:1.2rem;}
.lib-btn{display:flex;align-items:center;height:5.6rem;padding:0 1.8rem;border-radius:1rem;color:#fff;font-size:1.6rem;position:relative;overflow:hidden;background-repeat:no-repeat;background-size:100% 100%;font-weight:500;}
.lib-btn--blue{background-image:url(qmyd_20260907_bg07.png);}
.lib-btn--green{background-image:url(qmyd_20260907_bg06.png);}
.lib-btn--brown{background-image:url(qmyd_20260907_bg08.png);}
.lib-btn__icon{width:3rem;height:3rem;flex-shrink:0;margin-right:1.2rem;display:flex;align-items:center;justify-content:center;}
.lib-btn__icon img{width:100%;height:auto;}
.lib-btn__text{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.lib-btn__arrow{font-size:1.3rem;opacity:0.85;padding-left:1rem;}
.lib-btn-row{position:relative;}
.lib-btn-row .lib-btn{width:100%;}
.lib-flyout{display:none;position:absolute;left:100%;top:0;margin-left:2.5rem;width:44rem;background:#fff;border-radius:1.2rem;padding:2rem;box-shadow:0 1rem 3rem rgba(0,0,0,0.12);z-index:50;}
.lib-flyout.open{display:block;}
.lib-flyout__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.2rem;}
.service-btn{display:flex;align-items:center;justify-content:center;height:4.6rem;border-radius:1rem;background:#5F9484;border:1px solid transparent;color:#fff;font-weight:400;font-size:1.6rem;text-align:center;opacity:0.53;}
.service-btn:hover{background:#5F9484;border-color:#5F9484;opacity:1;}
.lib-flyout--cert{width:26rem;text-align:center;}
.lib-cert{display:flex;flex-direction:column;align-items:center;gap:1.2rem;}
.lib-cert__qr img{width:14rem;height:auto;display:block;}
.lib-cert__tip{font-size:1.4rem;color:#555;line-height:1.6;margin:0;}
.lib-cert__more{display:inline-flex;align-items:center;justify-content:center;height:3.4rem;padding:0 2.4rem;background:linear-gradient(90deg,#1878BE,#32A4DF);color:#fff;font-size:1.5rem;border-radius:1.7rem;}
.lib-cert__more:hover{background:linear-gradient(90deg,#1266a5,#2a8dc9);}
@media (max-width:900px){.lib-flyout{position:static;width:100%;margin-left:0;margin-top:1rem;box-shadow:none;padding:1.5rem;border:1px solid #eee;}}
/* 图书馆侧栏：可点开二维码浮层的卡片（深圳数字阅读馆）。
   浮层是通用 .lib-flyout，自宿主右侧弹出，宿主必须 position:relative；卡片自身 overflow:hidden 不能当宿主，故浮层放在卡片外、与卡片作兄弟。 */
[data-flyout-row]{position:relative;}
[data-flyout-btn]{cursor:pointer;}
.lib-card--kids,.lib-card--digital{position:relative;padding:0;overflow:hidden;}
.lib-card--kids .lib-card__name,.lib-card--digital .lib-card__name{position:absolute;top:1.5rem;left:1.5rem;z-index:1;margin:0;text-align:left;font-size:1.8rem;font-weight:500;color:#232323;}
.lib-card--digital .lib-card__mini{position:absolute;left:1.5rem;bottom:1.5rem;z-index:1;display:inline-flex;align-items:center;gap:0.6rem;font-size:1.6rem;font-weight:400;color:#232323;line-height:3rem;}
.lib-card--digital .lib-card__mini:hover{color:#000;}
.lib-card--digital .lib-card__mini__arrow{width:1.4rem;height:auto;display:block;}
.lib-card__pic{width:100%;border-radius:0.8rem;overflow:hidden;margin-bottom:1.2rem;}
.lib-card--kids .lib-card__pic,.lib-card--digital .lib-card__pic{width:100%;margin:0;border-radius:0;}
.lib-card__link{font-size:1.4rem;color:#2b7de1;display:inline-flex;align-items:center;gap:0.5rem;}
.lib-card__link:hover{text-decoration:underline;}

/* 右侧表格 */
.libraries-main{background:#fff;border-radius:1.2rem;padding:2.5rem;box-shadow:0 0.8rem 2rem rgba(0,0,0,0.05);overflow:hidden;position:relative;}
.library-table__head{position:relative;z-index:2;margin-bottom:2rem;}   /* z-index 高于下面的表格，区域下拉的浮层才不会被表格盖住 */
.library-table__head::before{content:"";position:absolute;right:0;top:0;width:55%;height:100%;background:url(qmyd_20260907_bg03.png) no-repeat right top;background-size:contain;pointer-events:none;z-index:0;}
.library-table__title,.library-table__filters{position:relative;z-index:1;}
.library-table__title{font-size:2.4rem;font-weight:bold;color:#333;margin-bottom:1.8rem;line-height:1;}
.library-table__filters{display:flex;align-items:center;gap:2rem;flex-wrap:wrap;}
.filter-check{display:flex;align-items:center;gap:0.8rem;font-size:1.5rem;color:#333;cursor:pointer;}
.filter-check input{position:absolute;opacity:0;width:0;height:0;}
.filter-check__icon{width:2rem;height:2rem;background:url(qmyd_20260907_icon01.png) no-repeat center center;background-size:100% 100%;display:inline-block;}
.filter-check input:checked + .filter-check__icon{background-image:url(qmyd_20260907_icon02.png);}
.filter-select{display:flex;align-items:center;justify-content:space-between;font-size:1.5rem;color:#333;cursor:pointer;width:61.1rem;height:6.5rem;padding:0 2rem;background:#fff;border:1px solid #e0e0e0;border-radius:0.8rem;}
.filter-select img{width:1.2rem;height:auto;}
.filter-search{display:flex;align-items:center;flex:0 0 100%;min-width:22rem;height:4rem;padding:0 0.4rem;border-bottom:1px solid #e0e0e0;overflow:hidden;gap:0.6rem;}
.filter-search input{flex:1;height:100%;font-size:1.5rem;color:#333;background:transparent;}
.filter-search input::placeholder{color:#999;}
.filter-search button{width:3rem;height:100%;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.filter-search button img{width:1.6rem;height:auto;}
.library-table__wrap{overflow-x:auto;position:relative;z-index:1;}
.library-table{width:100%;border-collapse:collapse;}
.library-table thead{display:table;width:100%;table-layout:fixed;}
.library-table thead th{text-align:left;font-size:1.6rem;color:#2b7de1;font-weight:bold;padding:1.6rem 1.2rem;border-bottom:0.2rem solid #e8f0f8;background:#f8fbff;}
/* 滚动区的高度上限收在 --lib-scroll-h 里：脚本按这一档高度算出「整行」的收口高度（见 qmyd_library20260907.js
   的 snapScroll），滚动区下沿不会切在行中间。改这个值等于换可见行数，脚本会跟着重算。 */
.library-table tbody{display:block;--lib-scroll-h:30rem;max-height:var(--lib-scroll-h);overflow-y:auto;}
.library-table tbody tr{display:table;width:100%;table-layout:fixed;}
.library-table tbody td{font-size:1.5rem;color:#555;padding:1.5rem 1.2rem;border-bottom:1px solid #f0f0f0;line-height:1.6;}
.library-table th:nth-child(1),.library-table td:nth-child(1){width:20%;}
.library-table th:nth-child(2),.library-table td:nth-child(2){width:20%;}
.library-table th:nth-child(3),.library-table td:nth-child(3){width:60%;}
.library-table tbody tr:hover td{background:#f8fbff;}
.library-table tbody tr.hidden{display:none;}
/* 区域下拉：外观沿用 .filter-select（span + 箭头图标），展开的是自绘列表（不用原生 select） */
.filter-select{position:relative;}
.filter-select--open img{transform:rotate(180deg);}
.filter-select img{transition:transform 0.2s;}
.filter-select__list{position:absolute;left:0;top:calc(100% + 0.8rem);width:100%;max-height:26rem;overflow-y:auto;padding:0.6rem 0;background:#fff;border:1px solid #e0e0e0;border-radius:0.8rem;box-shadow:0 0.4rem 1.4rem rgba(0,0,0,0.08);z-index:6;}
.filter-select__list li{font-size:1.5rem;color:#333;line-height:1;padding:1.2rem 2rem;white-space:nowrap;cursor:pointer;}
.filter-select__list li:hover{background:#f8fbff;color:#2b7de1;}
.filter-select__list li.active{color:#2b7de1;font-weight:bold;background:#f8fbff;}
/* 图书馆一览表：条数说明（display:none 关闭展示，脚本仍会写入文本）/ 加载中 / 暂无数据 / 搜索无结果 */
.library-table__count{flex:0 0 100%;font-size:1.4rem;color:#999;line-height:1;display:none;}
.library-table tbody tr.library-hint td{text-align:center;color:#999;padding:4rem 1.2rem;}
.library-table tbody tr.library-loading td{padding:4rem 1.2rem;}
.library-table tbody tr.library-loading .render-loading{padding:0;}

/*********** 阅言·圳好 *****************/
.section-feedback{padding:5rem 0 8rem;}
.feedback-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2.5rem;}
.feedback-card{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:2rem;background:#fff;border-radius:1.2rem;padding:3rem 2rem;box-shadow:0 0.8rem 2rem rgba(0,0,0,0.05);transition:transform 0.3s,box-shadow 0.3s;}
.feedback-card:hover{transform:translateY(-0.5rem);box-shadow:0 1.2rem 3rem rgba(0,0,0,0.1);}
.feedback-card__info{display:flex;flex-direction:column;align-items:center;gap:1.5rem;flex:1;min-width:0;}
.feedback-card__icon{width:11rem;height:10rem;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.feedback-card__icon img{max-width:100%;max-height:100%;}
.feedback-card__title{font-size:2rem;font-weight:bold;color:#333;text-align:center;line-height:1.4;margin-bottom:0;}
.feedback-card__btn{display:inline-flex;align-items:center;justify-content:center;height:3.2rem;padding:0 1.8rem;background:#f5f0e8;color:#9c7c55;font-size:1.4rem;border-radius:1.6rem;}
.feedback-card:hover .feedback-card__btn{background:#c08b5e;color:#fff;}

/*********** 底部 *****************/
.site-footer{padding:2.6rem 0;background:#2c252b;color:rgba(255,255,255,0.82);}
.site-footer__main{display:flex;align-items:center;justify-content:space-between;gap:2.4rem;}
.site-footer__brand{width:24rem;flex-shrink:0;}
.site-footer__info{flex:1;text-align:center;}
.site-footer__info p{font-size:1.25rem;line-height:1.9;color:rgba(255,255,255,0.8);}
.site-footer__badges{display:flex;align-items:center;gap:1.2rem;flex-shrink:0;}
.site-footer__badges a:first-child{width:11.3rem;}
.site-footer__badges a:last-child{width:11.8rem;}

/*********** 响应式 *****************/
@media (max-width: 1700px) {
    html{font-size:0.57vw;}
    .conter{width:86%;}
}
@media (max-width: 1560px) {
    html{font-size:0.62vw;}
    .conter{width:88%;}
    .header .nav li:not(:last-child){margin-right:4rem;}
}
@media (max-width: 1360px) {
    html{font-size:0.65vw;}
    .header .nav li:not(:last-child){margin-right:2.5rem;}
    .header .h_logo{width:22rem;}
    .activities-grid{grid-template-columns:1.2fr 1fr;gap:2.5rem;}
}
@media (max-width: 1260px) {
    .header .nav li:not(:last-child){margin-right:2rem;}
    .header .nav{padding-right:2rem;}
}
@media (max-width: 1024px) {
    html{font-size:0.72vw;}
    .activities-grid{grid-template-columns:1fr;}
    .activities-right{margin-bottom:0;}
    .libraries-grid{grid-template-columns:1fr;}
    .libraries-sidebar{flex-direction:row;flex-wrap:wrap;}
    .lib-card{flex:1;min-width:28rem;}
    /* 包在卡片外面的浮层宿主，在横向排布时要和上面的 .lib-card 一样伸缩（否则它按内容宽度、和旁边两张卡不齐） */
    .libraries-sidebar [data-flyout-row]{flex:1;min-width:28rem;}
    .feedback-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width: 900px) {
    html{font-size:1.8vw;}
    .conter{width:94%;}
    /* 顶栏：移动端保留右侧 繁体版/无障碍浏览/搜索 一行，EN 隐藏 */
    .header .header_top{height:8.5rem;}
    .header .header_top .conter{position:static;flex-wrap:nowrap;}
    .header .h_logo{width:14.4rem;}
    .header .nav{padding-right:0;}
    .header .nav li:not(:last-child){margin-right:0;}
    .header .lang{display:flex;align-items:center;justify-content:flex-end;margin-left:auto;gap:1.5rem;padding-right:5rem;}
    .header .lang a{margin-left:0.4rem;}
    .header .lang a:nth-child(1) img{display:none;}
    .header .lang a:nth-child(2){display:none;}
    .header .lang a:nth-child(3) img{width:1.45rem;margin-right:1rem;}
    #mobile-search-icon{display:block;width:1.45rem;margin:0;}
    /* 菜单按钮：贴视口右缘、随顶栏垂直居中 */
    .YDmenu{display:block;cursor:pointer;background:url(pd_nav.png) center center no-repeat;background-size:70% auto;width:4.5rem;height:4.5rem;text-indent:-9999px;position:absolute;top:2rem;right:0;z-index:997;}
    .YDmenu.closeBtn{background:url(close.png) center center no-repeat;}
    /* 下拉菜单：自顶栏下方整宽滑出，条目左对齐 */
    .header .h_nav{display:block;position:absolute;top:8rem;left:0;width:100%;height:auto;min-height:70vh;background:#fff;padding:1em;transform:translate(0,-110%);transition:all 0.5s ease-in-out;z-index:999;}
    .header .h_nav.open{transform:translate(0,0);}
    .header .nav{flex-direction:column;width:100%;}
    .header .nav li{display:flex;justify-content:flex-start;width:100%;margin:0;border-bottom:1px solid #ccc;}
    .header .nav li a{padding:2rem 0;font-size:1.4rem;font-weight:bold;color:#014171;line-height:normal;display:block;width:100%;}
    .banner__inner{height:52vw;min-height:30rem;}
    .section-title__text{font-size:2.8rem;}
    .section-title__icon{width:5rem;height:4rem;}
    .section-title__icon--img{min-width:18rem;height:4rem;}
    .activities-left__head{height:auto;padding-bottom:1rem;border-bottom:1px solid #c8e0f7;}
    .activities-right__head{height:auto;padding:1.5rem 0.5rem 1rem;border-bottom:1px solid #c8e0f7;}
    .activities-left__head .sub-title,.activities-right__head .sub-title{font-size:1.9rem;}
    .activities-left__head .more-btn,.activities-right__head .more-btn{width:7.5rem;height:2.8rem;font-size:1.3rem;}
    .activities-right__title{text-align:left;}
    .dynamic-box{margin-top:1rem;}
    .dynamic-box{flex-direction:column;}
    .dynamic-years{width:100%;flex-direction:row;flex-wrap:wrap;justify-content:center;padding:1.2rem 1.5rem;gap:1rem;}
    .dynamic-year{font-size:1.6rem;padding:0.5rem 0.8rem;}
    .dynamic-year.active::after{left:10%;width:80%;}
    .dynamic-panels{padding:2rem 2rem 0;}
    .dynamic-panel.active{animation:dynamic-panel-fade 0.28s ease;}
    /* 年度好书：窄屏由脚本分页 + 整排滑动，这里不用管 */
    .feedback-grid{grid-template-columns:repeat(2,1fr);gap:1.5rem;}
    .feedback-card{padding:2rem 1.5rem;}
    .feedback-card__icon{width:7rem;height:6rem;}
    .feedback-card__title{font-size:1.6rem;}
    .site-footer__main{flex-direction:column;text-align:center;}
    .site-footer__brand{width:18rem;}
    .site-footer__info{order:2;}
    .site-footer__badges{order:3;}
}
@media (max-width: 600px) {
    html{font-size:2.2vw;}
    .conter{width:92%;}
    .banner__inner{height:60vw;min-height:24rem;background-size:cover;}
    .section{padding:3.5rem 0;}
    .books-head{flex-direction:column;gap:1.5rem;}
    .books-title{font-size:2.6rem;}
    .library-table__filters{gap:1rem;}
    .filter-select{width:100%;height:auto;padding:0.6rem 1.2rem;margin-left:0;}
    .filter-search{width:100%;min-width:auto;}
    .feedback-grid{grid-template-columns:1fr;}
    .activity-card{padding:1.5rem;}
    .activity-card__upper{flex-direction:row;gap:1.5rem;}
    .activity-card__thumb{width:10rem;height:10rem;flex-shrink:0;}
    .activity-card__title{font-size:1.7rem;}
    .dynamic-item__title{font-size:1.7rem;}
    .activity-card__desc{font-size:1.3rem;-webkit-line-clamp:2;}
    .activity-card__tag{width:7.3rem;height:2.5rem;font-size:1.3rem;border-radius:1.2rem;}
    .activity-card__divider{margin:1.2rem 0;}
    .activity-card__lower{flex-direction:row;gap:1rem;}
    .activity-card__date,.activity-card__addr{font-size:1.3rem;}
}

/*********** 悦读活动 / 活动动态：搜索接口数据渲染 *****************/
/* 注：本节规则放在样式表最后，同权重下覆盖上面的基础样式 */

/* 卡片/条目内图片统一裁切填满 */
.activity-card__thumb img,.dynamic-item__thumb img{height:100%;object-fit:cover;}

/* 卡片底部：活动时间靠左、活动地点靠右（.activity-card__lower 本身是 space-between）；
   地点过长时需收缩并省略号截断，故不能给地点设 flex:1。时间不换行，保证卡片高度稳定。 */
.activity-card__lower{gap:1.5rem;}
.activity-card__date{flex-shrink:0;white-space:nowrap;}
.activity-card__addr{min-width:0;}
.activity-card__addr img{flex-shrink:0;}
.activity-card__addr-text{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.dynamic-item__title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}

/* 加载态：只有转圈图标，不出现任何文字 */
.render-loading{display:flex;align-items:center;justify-content:center;margin:auto;padding:4rem 0;}
.render-loading::after{content:"";width:3.2rem;height:3.2rem;border:0.3rem solid #d6e8f6;border-top-color:#32A4DF;border-radius:50%;animation:render-loading-spin 0.75s linear infinite;}
@keyframes render-loading-spin{from{transform:rotate(0);}to{transform:rotate(360deg);}}
.activity-slide .render-loading{min-height:60rem;}   /* 占位高度对齐 3 张卡片的成品高度（约 59.7rem），数据到达时页面不跳动 */
@media (prefers-reduced-motion: reduce){.render-loading::after{animation-duration:1.8s;}}

/* 文字提示：暂无数据 / 数据加载失败 + 重新加载 */
.render-hint{margin:auto;padding:3rem 0;font-size:1.6rem;color:#999;line-height:1.8;text-align:center;}
.render-hint__retry{margin-left:0.8rem;color:#32A4DF;text-decoration:underline;}

/* 活动动态：条目超出可视高度时在面板内滚动，高度上限 60rem 按「与左侧数据区齐平」取，
   卡片尺寸或左栏结构一变就要跟着改。
   .dynamic-panel.active 用 flex:1 0 auto（高度按内容、不压缩）：条目多时面板自然变高，
   由 .dynamic-panels 出现滚动条；条目少时 flex-grow 撑满容器、内容垂直居中。
   不要给 .dynamic-item 设小于内容高度的 min-height——那会让文字溢出条目、上下条重叠。 */
.dynamic-panels{max-height:60rem;min-height:0;overflow-y:auto;overflow-x:hidden;}
.dynamic-panel.active{flex:1 0 auto;min-height:100%;}
/* 细滚动条（Chrome/Edge/Safari） */
.dynamic-panels::-webkit-scrollbar{width:0.6rem;}
.dynamic-panels::-webkit-scrollbar-track{background:#f2f8fd;border-radius:0.3rem;}
.dynamic-panels::-webkit-scrollbar-thumb{background:#c3ddf3;border-radius:0.3rem;}
.dynamic-panels::-webkit-scrollbar-thumb:hover{background:#32A4DF;}
/* 加载中也占住面板的成品高度（内容区 60 − 上内边距 2.5 − 卷角角区 7.5 = 50rem），右栏白卡不会忽高忽低；
   只在大屏左右并排时保留，单列布局下不预留高度。 */
@media (min-width:1025px){.dynamic-panels .render-loading{min-height:50rem;}}

@media (max-width:1024px){
    /* 单列布局下不限高，交给页面整体滚动（避免手机上出现嵌套滚动区） */
    .dynamic-panels{max-height:none;overflow-y:visible;}
    .dynamic-panel.active{min-height:0;}
}
@media (max-width:600px){
    .activity-slide .render-loading{min-height:56rem;}
}

/*********** 年度十大好书：手风琴轮播 *****************/
/* 一屏 5 格（≤900px 3 格、≤600px 1 格）；展开的那格宽度是收起的 3 倍（宽度伸缩），
   其余格只出竖排书名与封面窄条。分页由脚本把整年的书均分后包进 .books-acc__page，
   跨页时轨道整排滑动（脚本临时加 .is-turning 关掉宽度过渡，避免边滑边伸缩）。
   尺寸按设计稿：面板带高 48rem、格子底色 #f7fafb（底色上在格子上、面板带本身不上色，
   格与格之间那道 0.8rem 留白才露得出来）、展开封面 25.4rem×36.5rem（带投影）、折起封面 37rem 高、
   展开格的简介块下移到比封面顶略低一点（离面板带顶 8rem），书与书之间留出空隙。
   本节规则放在样式表最后，同权重下覆盖上面的基础样式。 */
.books-acc{--book-acc-head:2.4rem;--book-acc-meta:1.6rem;--book-acc-desc:1.7rem;--book-acc-desc-lines:8;--book-acc-fold-h:37rem;height:48rem;position:relative;}
.books-acc__viewport{height:100%;overflow:hidden;}
.books-acc__track{display:flex;height:100%;transition:transform 0.5s ease;}
.books-acc__page{flex:0 0 100%;min-width:0;height:100%;display:flex;align-items:stretch;}
/* 脚本没跑起来时的兜底：轨道里直接放着 10 本，只显示前 5 本。
   脚本分页后每本都在 .books-acc__page 里，不再是轨道的直接子元素，这条规则自然失效。 */
.books-acc__track > .book-acc__item:nth-child(n+6){display:none;}
/* 格子宽度用 flex-basis 百分比：展开 = 收起的 3 倍，一页 n 本时基准是 100/(n+2)% 与 300/(n+2)%
   （n-1 个收起 + 1 个展开 = n+2 份）。这两个值由脚本按每页实际本数写在页元素上，
   写成 flex-grow 不行——内边距会加在份额之外，实际比例只有 1:2.6 左右。 */
.book-acc__item{flex-grow:0;flex-shrink:1;flex-basis:var(--book-acc-idle,14.2857%);min-width:0;height:100%;display:flex;align-items:flex-end;position:relative;padding:3rem 3.2rem 5rem 3.4rem;background:#f7fafb;background-clip:padding-box;transition:flex-basis 0.5s ease,padding 0.5s ease;cursor:pointer;}
/* 展开格左内边距只留 3rem：这块空白左边没有内容，收窄一点把宽度让给右侧的简介；
   右内边距 2.4rem 同理（右侧不能再多留，去掉后文字离下一格只剩 2.4rem + 0.8rem 格间隔）。 */
.book-acc__item.is-active{flex-basis:var(--book-acc-active,42.8571%);padding-left:3rem;padding-right:2.4rem;cursor:default;}
/* 书与书之间的分隔不是一条线，而是 0.8rem 的透明间隔：底色 #f7fafb 上在格子上，
   间隔写在左边框上并配 background-clip:padding-box（否则背景会铺到边框底下、把间隔盖住），
   露出的是面板带/页面底色。用边框而不是 margin/gap：边框算在 flex-basis 之内
   （*{box-sizing:border-box}），各格宽度之和仍是整条面板带宽，不会把格子挤出去。 */
.book-acc__item + .book-acc__item{border-left:0.8rem solid transparent;}
.book-acc__figure{flex:1 1 auto;min-width:0;display:flex;align-items:flex-start;gap:5.4rem;}
/* 展开格：图片块按固定宽度，剩下的宽度全给简介（简介可缩，图片块不缩，避免简介把封面挤坏） */
.book-acc__item.is-active .book-acc__figure{flex:0 0 auto;}
.book-acc__side{flex:0 0 auto;}
/* 封面是带透明底的立体书图（书脊在图的左侧）：折起时靠 object-position:left 只露书脊那一段，
   展开时才整张居中显示——不要给图片加底色或平铺。
   投影用 img 的 filter:drop-shadow（近处一层紧一点、远处一层散一点），它按图片的 alpha 轮廓描边，
   阴影贴着书形（书脊、斜切的书底边）；若改用 .book-acc__cover 的 box-shadow，
   阴影会沿矩形外框画一圈，书形之外的透明处就会露出底色。
   注意 .book-acc__cover 不能加 overflow:hidden，否则框外的阴影会被裁掉。 */
.book-acc__cover{flex:1 1 auto;min-width:0;height:var(--book-acc-fold-h,37rem);}
.book-acc__cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:left center;filter:drop-shadow(0.2rem 0.4rem 0.6rem rgba(28,40,51,0.3)) drop-shadow(0.4rem 1.2rem 2.2rem rgba(28,40,51,0.22));}
.book-acc__item.is-active .book-acc__cover{flex:0 0 auto;width:25.4rem;height:36.5rem;}
.book-acc__item.is-active .book-acc__cover img{object-position:center;filter:drop-shadow(0.3rem 0.5rem 0.8rem rgba(28,40,51,0.36)) drop-shadow(0.6rem 1.5rem 2.8rem rgba(28,40,51,0.26));}
.book-acc__item.is-active .book-acc__side{display:none;}
/* 简介顶部比封面顶再低一点（封面顶在 6.5rem 处，这里 3rem + 5rem = 8rem）。
   简介块的宽度：展开格的内容宽只有 62.9rem（3/7 面板带 − 左右内边距），封面占 25.4rem，
   所以「封面 ↔ 简介」的间隔给到 4rem、剩下的宽度全部留给文字，max-width 只做上限（宽屏下正好用满）。
   配 .book-acc__detail 的 flex:1 1 auto，窄屏时它会自己缩到可用宽度，不会再被 max-width 卡住。 */
.book-acc__detail{flex:1 1 auto;min-width:0;max-width:38rem;margin-left:4rem;margin-top:5rem;align-self:flex-start;}
.book-acc__item:not(.is-active) .book-acc__detail{display:none;}
/* 没有简介的那一本（稿件没录简介时模板不输出 .book-acc__desc）：
   封面 + 右侧三行当作一组，在展开格里整体居中——不然图片贴着左边、右边空一大块。
   两处配合缺一不可：文字块不参与伸张（flex:0 1 auto + max-width:none，宽度按内容算），
   格子上再用 justify-content:center 把「封面 + 文字」这一组居中；
   文字本身仍与封面垂直居中（align-self:center），封面照旧贴齐格底、与邻格的书底在同一水平线上。
   判定用 :has()，只认这一种「有简介」的写法；不认 :has() 的浏览器会连规则一起丢掉，退回原来的靠左排版。
   只在横排档（>900px）生效：窄屏是上下布局，封面本来就在中间、文字跟在它下面。 */
@media (min-width:901px){
    .book-acc__item.is-active:not(:has(.book-acc__desc)){justify-content:center;}
    .book-acc__item.is-active:not(:has(.book-acc__desc)) .book-acc__detail{flex:0 1 auto;max-width:none;align-self:center;margin-top:0;}
}
/* 右侧字段分三行显示：书名一行、作者一行、出版机构一行。
   书名字号用 --book-acc-head、作者与出版机构用 --book-acc-meta（都在 .books-acc 上，
   改一处三处一起变）；书名加粗深色，作者与出版机构同字号同色（灰 #888，与年份按钮、
   活动日期那一档灰色一致）。
   作者、出版机构两行都带字段名（「作者：」「出版社：」写在稿件的字段值里，模板原样输出），
   三行文字因此比原来宽了三个字：太长的作者名不再强行不折行（会横着溢出、被邻格盖掉半截），
   允许它在文字块宽度内折行；折行后仍与书名、与下面的简介左边缘对齐。 */
.book-acc__name{font-size:var(--book-acc-head,2.4rem);font-weight:bold;color:#333;line-height:1.4;}
.book-acc__author,.book-acc__publisher{font-size:var(--book-acc-meta,1.6rem);color:#888;line-height:1.4;}
.book-acc__author{display:block;margin-top:0.6rem;}
.book-acc__publisher{margin-top:0.3rem;}
/* 简介不再用省略号截断（文字多的那本可以滚动看完，装得下就没有滚动条）：
   可见高度 = 允许的行数 × 行高，行数是整数倍所以切口正好落在行与行之间；
   overflow-y:auto 天生就是「装得下不出现滚动条、装不下才出现」，所以不能再写 -webkit-line-clamp。
   滚动条做细、做浅（浅蓝灰 #cfe2f4，和页面的浅蓝同一路），悬停时稍深一点。
   容器必须用块级通用元素（div）而不是 p：简介是从后台富文本直接输出的，内容里可能自带若干个 p，
   而 p 里再出现 p 时浏览器会先把这个 p 收尾，样式与滚动就落到容器外面去了（字体、行数上限全失效）。
   段与段之间不留外边距：正文本身用全角空格缩进，留外边距会让高度不是整数行、切口露出半行。 */
.book-acc__desc{font-size:var(--book-acc-desc,1.7rem);line-height:1.7;color:#666;margin-top:2.4rem;padding-right:0.8rem;
    max-height:calc(var(--book-acc-desc-lines,8) * 1.7em);overflow-y:auto;overflow-x:hidden;
    scrollbar-width:thin;scrollbar-color:#cfe2f4 transparent;}
.book-acc__desc > *{margin:0;font-size:inherit;line-height:inherit;color:inherit;}
.book-acc__desc img{max-width:100%;height:auto;}
.book-acc__desc::-webkit-scrollbar{width:0.6rem;}
.book-acc__desc::-webkit-scrollbar-track{background:transparent;}
.book-acc__desc::-webkit-scrollbar-thumb{background:#cfe2f4;border-radius:0.3rem;}
.book-acc__desc::-webkit-scrollbar-thumb:hover{background:#a9c9e8;}
/* 竖排书名沿用 .book-line 系列（writing-mode:vertical-rl），字号跟展开格的书名共用
   --book-acc-head 一个变量，两边永远一样大（改字号只改那一个变量）。
   字号变大 = 这一列变宽（宽度约 字号 × 行高），收起格的封面窄条会跟着变窄，别调到条子消失。 */
.book-acc__side.book-line--title{font-size:var(--book-acc-head,2.4rem);}
/* 收起格的竖排书名框高按封面高定、超出部分裁掉：后台书名长短不一（长的有二十几个字），
   不裁的话这一列会把整格撑高、书名溢到格子外面去（压到上面的年份按钮上）。
   裁掉的那截由脚本按「溢出多少」挂一条慢速往返的滚动（跑马灯）滚出来：只有真的超框的
   书名才加 .is-scrolling（旁边几列都动起来太吵），位移与时长由脚本写在元素上。
   框高这里只给个跟封面同高的兜底值（脚本会按实测的「每字多长」取整数字位改写，
   这样静止时边沿不会漏出小半个字）；脚本没跑起来时靠这条兜底也不至于溢出去。 */
.book-acc__item:not(.is-active) .book-acc__side{height:var(--book-acc-fold-h,37rem);overflow:hidden;}
.book-acc__side-inner{display:block;}
/* 竖排书名里「横躺的符号」（破折号、省略号、引号、波浪号）：.book-line 用的是
   text-orientation:upright，这些符号立不立得起来要看字体有没有竖排字形，各端字体不同
   会一个横一个竖；脚本把它们单独包一层，交给浏览器的旋转规则处理，各端一致。
   整条书名不能改成 mixed（AI、3000 这类西文与数字会跟着躺倒），只包这一类符号。 */
.book-acc__tilt{text-orientation:mixed;}
.book-acc__side.is-scrolling .book-acc__side-inner{
    animation:book-acc-title-marquee var(--book-acc-title-dur,20s) ease-in-out infinite;
    will-change:transform;
}
/* 两头各停一下再往回滚（0–11% 停、11–50% 往下滚、50–61% 停、61–100% 滚回），
   加上 ease-in-out，起步与收尾都是缓的，比匀速来回耐看；两头停约 2 秒，够看清首尾几个字。 */
@keyframes book-acc-title-marquee{
    0%,11%{transform:translateY(0);}
    50%,61%{transform:translateY(var(--book-acc-title-shift,0px));}
    100%{transform:translateY(0);}
}
/* 鼠标在面板带里就不滚：这会儿多半在看展开的那一本，旁边几列别来回动 */
.bookshelves:hover .book-acc__side.is-scrolling .book-acc__side-inner{animation-play-state:paused;}
/* 跨页翻动（.is-turning）与首次布局/断点重建（.is-static）期间都不要宽度过渡 */
.books-acc__track.is-turning .book-acc__item,
.books-acc__track.is-static .book-acc__item{transition:none;}

/* 左右三角：素材 icon14 / icon15，落在面板带外侧、垂直居中。
   图标按切片原尺寸显示，样式里不另设宽高（所以它不随断点缩放，按钮大小变它不变）。 */
.books-acc__arrow{position:absolute;top:50%;transform:translateY(-50%);width:6rem;height:6rem;display:flex;align-items:center;justify-content:center;opacity:0.8;z-index:3;transition:opacity 0.3s;}
.books-acc__arrow:hover{opacity:1;}
.books-acc__arrow--prev{left:-5.2rem;}
.books-acc__arrow--next{right:-5.2rem;}

/* 窄屏的翻页进度线（宽屏用左右三角，所以这里默认不显示）：
   贴在展开那一格的下沿、跟格子等宽，走过的比例由脚本写在 --book-acc-progress 上。 */
.book-acc__bar{display:none;}

@media (max-width:1360px){
    .books-acc{--book-acc-head:2.2rem;--book-acc-meta:1.5rem;--book-acc-desc:1.55rem;--book-acc-desc-lines:8;--book-acc-fold-h:34rem;height:44rem;}
    .book-acc__item{padding:2.8rem 2.8rem 4.6rem 3rem;}
    .book-acc__item.is-active{padding-left:2.6rem;padding-right:2.2rem;}
    .book-acc__figure{gap:4.6rem;}
    .book-acc__item.is-active .book-acc__cover{width:23rem;height:33.5rem;}
    .book-acc__detail{margin-left:3rem;margin-top:4.6rem;max-width:30rem;}
    .book-acc__desc{margin-top:2.2rem;}
}
@media (max-width:1024px){
    .books-acc{--book-acc-head:2rem;--book-acc-meta:1.4rem;--book-acc-desc:1.5rem;--book-acc-desc-lines:7;--book-acc-fold-h:30rem;height:39rem;}
    .book-acc__item.is-active .book-acc__cover{width:20rem;height:29rem;}
    .book-acc__detail{margin-top:4.1rem;max-width:27rem;}
    .book-acc__desc{margin-top:1.4rem;}
    .books-acc__arrow{width:4.4rem;height:4.4rem;}
    .books-acc__arrow--prev{left:-3.6rem;}
    .books-acc__arrow--next{right:-3.6rem;}
}
@media (max-width:900px){
    /* 窄屏改成上下布局：封面在上、书名/作者/出版机构与简介在下，面板带跟着加高。
       收起格仍是一列窄条（竖排书名 + 封面窄条），封面高度跟着带高走，别让条子里空一截。 */
    .books-acc{--book-acc-head:2rem;--book-acc-meta:1.4rem;--book-acc-desc:1.45rem;--book-acc-desc-lines:7;--book-acc-fold-h:50rem;height:56rem;}
    .book-acc__item{padding:2.4rem 2rem 3rem;}
    .book-acc__item.is-active{flex-direction:column;align-items:stretch;padding-left:2rem;padding-right:2rem;}
    .book-acc__figure{gap:2rem;}
    /* 展开格：图块占满内容宽、封面在中间；封面框按书本身的比例（约 0.7），别用窄高条去裁图 */
    .book-acc__item.is-active .book-acc__figure{width:100%;justify-content:center;}
    .book-acc__item.is-active .book-acc__cover{width:14rem;height:20rem;}
    .book-acc__item.is-active .book-acc__detail{width:100%;max-width:none;margin-left:0;margin-top:2.4rem;align-self:stretch;}
    .book-acc__desc{margin-top:1.6rem;}
    /* 窄屏不要左右三角（面板带几乎占满屏宽，三角放带内会压到书、放带外又露不全），
       改在展开那一格的下沿给一条进度线：紧贴格子底、跟格子等宽，
       走过的部分 = 第几本 / 当年本数，方便看出这里能滑动或者切换。 */
    .books-acc__arrow{display:none;}
    .book-acc__item.is-active .book-acc__bar{display:block;position:absolute;left:0;right:0;bottom:0;height:0.6rem;background:#d0e5f7;}
    .book-acc__item.is-active .book-acc__bar-fill{display:block;position:absolute;left:0;top:0;bottom:0;width:var(--book-acc-progress,0);background:#2b7de1;}
}
@media (max-width:600px){
    /* 一屏就一本书，整条带都是它：封面放大、文字在下面 */
    .books-acc{--book-acc-head:1.9rem;--book-acc-meta:1.35rem;--book-acc-desc:1.5rem;--book-acc-desc-lines:7;--book-acc-fold-h:62rem;height:68rem;}
    .book-acc__item{padding:2rem 1.6rem 2.4rem;}
    .book-acc__item.is-active{padding-left:1.6rem;padding-right:1.6rem;}
    .book-acc__item.is-active .book-acc__cover{width:24rem;height:34rem;}
    .book-acc__item.is-active .book-acc__detail{margin-top:2.2rem;}
    .book-acc__desc{margin-top:1.4rem;}
}

@media (prefers-reduced-motion: reduce){
    .books-acc__track,.book-acc__item{transition:none;}
    /* 系统设了「减少动态效果」就不滚（书名的完整内容在展开格的书名那行里看得到） */
    .book-acc__side.is-scrolling .book-acc__side-inner{animation:none;}
}
