/* xg3 review: warmer accents, compact textbook filters and fewer header distractions. */
.headBar .ta-xg3-removed-action,
.el-popper[aria-label="微信群"],
.el-popper[aria-label="关注我们"]{display:none!important}

html[data-ta-xg3-route^="/teachMall/"] .pageScroll{padding:22px 28px 36px!important}
html[data-ta-xg3-route^="/teachMall/"] .ta-book-filter-title{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 14px;padding:18px 22px;border:1px solid #e0e8f4;border-radius:15px;background:linear-gradient(125deg,#fff 0%,#f6f9ff 100%);box-shadow:0 7px 20px #426caa0d}
.ta-book-heading{min-width:0}.ta-book-heading-line{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.ta-book-filter-title strong{display:block;color:#223248;font-size:25px;line-height:1.25}.ta-book-heading-line>span{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:6px;background:#edf3ff;color:#4976df;font-size:12px;font-weight:600}.ta-book-heading-line>span:before{content:"▣";font-size:11px}.ta-book-filter-title p{margin:6px 0 0;color:#8794a7;font-size:13px}.ta-book-filter-hint{flex:0 0 auto;padding:7px 13px;border:1px solid #dfe7f5;border-radius:9px;background:#fff;color:#60718a;font-size:13px}
html[data-ta-xg3-route^="/teachMall/"] .ta-book-stages{position:relative;display:grid!important;grid-template-columns:70px minmax(0,1fr);align-items:start;gap:8px 12px;margin:0!important;padding:16px 20px 8px!important;border:1px solid #e0e8f4;border-bottom:0;border-radius:15px 15px 0 0;background:#fff!important}
.ta-book-stages:before{content:"学段";display:flex;align-items:center;height:30px;color:#53657c;font-size:13px;font-weight:700}
.ta-book-stages>.ta-stage-options{display:flex;flex-wrap:wrap;align-items:flex-start;gap:0;min-width:0}.ta-book-stages .oneCate{margin:0 7px 8px 0!important;padding:5px 13px!important;border:1px solid #dce5f2;border-radius:7px!important;background:#fff;color:#53657c;font-size:12px!important;line-height:18px;white-space:nowrap;transition:border-color .16s,background .16s,color .16s,box-shadow .16s}.ta-book-stages .oneCate:hover{border-color:#9eb8ef;color:#3565cf}.ta-book-stages .oneCate.linearTab{border-color:#4f7de8;background:#4f7de8!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:0 4px 10px #4f7de82b!important}
html[data-ta-xg3-route^="/teachMall/"] .ta-book-details{margin:0 0 26px!important;padding:1px 20px 12px!important;border:1px solid #e0e8f4;border-top:0;border-radius:0 0 15px 15px!important;background:#fff!important;box-shadow:0 9px 25px #34515d0b}
.ta-book-details>.flex{display:grid!important;grid-template-columns:70px minmax(0,1fr);align-items:start;gap:12px;margin-top:8px}.ta-book-details>.flex>.twoCate:first-child{display:flex;align-items:center;height:30px;margin:0!important;color:#53657c!important;font-size:13px!important;font-weight:700;opacity:1!important}.ta-book-details>.flex>.flex1{gap:0!important}.ta-book-details .twoCate.cate{margin:0 7px 8px 0!important;padding:5px 12px!important;border:1px solid #dce5f2;border-radius:7px!important;background:#fff;color:#53657c;font-size:12px!important;line-height:18px;white-space:nowrap;opacity:1!important;transition:border-color .16s,background .16s,color .16s,box-shadow .16s}.ta-book-details .twoCate.cate:hover{border-color:#9eb8ef;color:#3565cf}.ta-book-details .twoCate.cate.linearTab{border-color:#4f7de8;background:#4f7de8!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:0 4px 10px #4f7de82b!important}

.ta-learning-support{border-color:#f1d9cb!important;background:linear-gradient(120deg,#fffaf4,#fff)!important;box-shadow:0 8px 24px #b7826d12!important}.ta-learning-support .ta-support-icon{padding:7px;border-radius:14px;background:#fce5da!important;object-fit:contain!important}
.ta-partner-status{border-color:#edd9ce!important;background:linear-gradient(110deg,#fff8ed,#fff)!important}.ta-partner-brand{object-fit:contain!important;border-radius:50%;background:#fff!important}

.rank .subTab .item{border-radius:16px!important;padding:7px 18px!important;transition:background .18s,color .18s!important}.rank .subTab .item.active{background:linear-gradient(110deg,#fff2df,#f8c8b9)!important;color:#a35f4e!important;-webkit-text-fill-color:#a35f4e!important;box-shadow:0 4px 10px #bd7a6320!important}.rank .list-item-bom{background:linear-gradient(90deg,#f6d794,#efab98)!important;color:#6e4b40!important;box-shadow:0 8px 22px #b37b611f!important}.rank .list-item-bom *{color:#6e4b40!important;-webkit-text-fill-color:#6e4b40!important}

.homeChart .colLine{background:#f7eee8!important}.homeChart .chartLine{background:linear-gradient(180deg,#f3ca83 0%,#efa98f 54%,#e98f83 100%)!important;box-shadow:inset 0 1px 0 #fff8,0 5px 12px #c8877024!important}

@media(max-width:700px){html[data-ta-xg3-route^="/teachMall/"] .pageScroll{padding:12px!important}.ta-book-filter-title{padding:15px 16px!important}.ta-book-filter-title strong{font-size:21px}.ta-book-filter-hint{display:none}.ta-book-heading-line>span{font-size:11px}.ta-book-stages,.ta-book-details>.flex{grid-template-columns:52px minmax(0,1fr)!important}.ta-book-stages,.ta-book-details{padding-left:14px!important;padding-right:14px!important}.ta-book-stages .oneCate,.ta-book-details .twoCate.cate{padding:5px 10px!important}.rank .subTab .item{padding:6px 13px!important}}

/* Textbook artwork is generated at 16:9. The legacy 260/356 book ratio
   cropped the course title and illustration, so textbook cards use wide tiles. */
html[data-ta-xg3-route^="/teachMall/"] .gridContainer{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important}
html[data-ta-xg3-route^="/teachMall/"] .gridContainer .card{margin:0!important;padding:10px!important;min-width:0!important;background:#fff!important;border:1px solid #e2eaf4!important;border-radius:14px!important;box-shadow:0 7px 20px #34515d12}
html[data-ta-xg3-route^="/teachMall/"] .gridContainer .imgBox{width:100%!important;aspect-ratio:16/9!important;border-radius:10px!important;overflow:hidden!important;background:#eef5fa!important}
html[data-ta-xg3-route^="/teachMall/"] .gridContainer .cardimg{display:block!important;width:100%!important;height:100%!important;aspect-ratio:16/9!important;object-fit:contain!important;border-radius:10px!important;transform:none!important}
html[data-ta-xg3-route^="/teachMall/"] .gridContainer .line1{margin-top:10px!important;font-size:14px!important;line-height:1.55!important;white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;min-height:43px}
@media(max-width:1100px){html[data-ta-xg3-route^="/teachMall/"] .gridContainer{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:700px){html[data-ta-xg3-route^="/teachMall/"] .gridContainer{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important}html[data-ta-xg3-route^="/teachMall/"] .gridContainer .card{padding:7px!important}html[data-ta-xg3-route^="/teachMall/"] .gridContainer .line1{font-size:12px!important;min-height:38px}}

/* Keep Vue-owned category nodes in place; layout must not need a JS wrapper. */
html[data-ta-xg3-route^="/teachMall/"] .ta-book-stages{
  display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;
  gap:0!important;padding:16px 20px 8px 102px!important;
}
html[data-ta-xg3-route^="/teachMall/"] .ta-book-stages:before{
  position:absolute;left:20px;top:16px;width:70px;
}
html[data-ta-xg3-route^="/teachMall/"] .ta-book-stages>.oneCate{
  flex:0 0 auto!important;width:auto!important;max-width:100%;opacity:1!important;
}
@media(max-width:700px){
  html[data-ta-xg3-route^="/teachMall/"] .ta-book-stages{padding-left:78px!important}
  html[data-ta-xg3-route^="/teachMall/"] .ta-book-stages:before{left:14px;width:52px}
}
