/* The ranking column must never contribute height to the main resource rows. */
.cn-home-main{display:contents}
/* Clear the legacy named grid area: it otherwise re-anchors the absolute bubble over the mascot. */
.coop-home-restored .home-search{container-type:inline-size}
.coop-home-restored .home-search--seal .home-search__heading{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;gap:8px!important}
.coop-home-restored .home-search__heading>label{grid-column:1;grid-row:1}
.coop-home-restored .home-search__heading>.cn-lesson-cta{grid-column:3;grid-row:1}
.coop-home-restored .home-search__seal-bubble{position:relative!important;grid-area:1/2!important;inset:auto!important;width:100%!important;max-width:none!important;min-width:0!important;padding:5px 30px 5px 9px!important;box-shadow:none!important;border-radius:10px!important;box-sizing:border-box!important}
.coop-home-restored .home-search__seal-bubble p{font:500 13px/1.4 system-ui!important;margin:0!important}
.coop-home-restored .home-search__seal-bubble[hidden]{display:block!important;visibility:hidden!important;pointer-events:none!important}
.coop-home-restored .home-search__seal-close{width:28px!important;height:28px!important;min-height:28px!important;top:50%!important;right:1px!important;transform:translateY(-50%);padding:0!important}
.coop-home-restored .home-search__seal-bubble::after{top:50%!important;bottom:auto!important;right:-5px!important;transform:translateY(-50%) rotate(45deg)!important}
@container(max-width:590px){.coop-home-restored .home-search--seal .home-search__heading{grid-template-columns:minmax(0,1fr) auto!important}.coop-home-restored .home-search__heading>.cn-lesson-cta{grid-column:2!important}.coop-home-restored .home-search__seal-bubble{grid-area:2/1/3/3!important}.coop-home-restored .home-search--seal .home-search__seal{align-self:start!important}}
@media(min-width:821px){
 .coop-home-restored .cn-home-main{display:grid;grid-column:1/7;grid-row:1;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;align-items:start;align-content:start;min-width:0}
 .coop-home-restored .cn-home-main .dense-ring--top{grid-column:1/-1!important;grid-row:1!important;align-self:start!important}
 .coop-home-restored .cn-home-main .dense-ring--left{grid-column:1/3!important;grid-row:2!important;align-content:start!important}
 .coop-home-restored .cn-home-main .dense-center{grid-column:3/7!important;grid-row:2!important;align-self:start!important;gap:10px!important;padding:8px!important;min-height:0!important}
 .coop-home-restored .cn-home-sidebar{grid-row:1!important;align-self:start!important;height:auto!important;min-height:0!important}
 .coop-home-restored .dense-layout{align-content:start!important;grid-template-rows:auto!important}
}
.coop-home-restored .cn-home-main .home-card__open{width:fit-content!important;min-width:70px!important;min-height:32px!important;gap:16px!important;justify-content:center!important;justify-self:start!important;align-self:start!important;padding:5px 10px!important;line-height:1.45!important}
.coop-home-restored .cn-home-main .dense-ring--top .home-card__open{margin:4px 8px 8px!important}
.coop-home-restored .cn-home-main .dense-ring--top :is(.home-card__image,.bio-localized-cover){height:96px!important;min-height:0!important;max-height:96px!important;aspect-ratio:auto!important;width:100%!important;object-fit:contain!important;background:#f0f4ed!important}
.coop-home-restored .cn-home-main .dense-ring--top .bio-localized-cover img{height:96px!important;object-fit:contain!important}
.coop-home-restored .cn-home-main .home-card__copy{padding-top:6px!important;padding-bottom:2px!important}
.coop-home-restored .cn-home-main .home-card h2{font-size:16px!important;line-height:1.4!important;margin:0 0 4px!important}
.coop-home-restored .cn-home-main .home-card p{font-size:14px!important;line-height:1.45!important;margin:4px 0!important}
.coop-home-restored .cn-home-main .cn-teaching-label{margin-top:4px!important;padding:2px 5px!important}
.coop-home-restored .cn-home-main .home-v2__hero{padding:8px 10px!important}
.coop-home-restored .cn-home-main #home-title{font-size:clamp(23px,1.5vw,27px)!important;line-height:1.45!important}
.coop-home-restored .cn-home-main .home-search{padding:10px!important;gap:7px!important}
.coop-home-restored .cn-home-main .home-search__heading{min-height:30px!important}
.coop-home-restored .cn-home-main .home-search input,.coop-home-restored .cn-home-main #home-search-submit{min-height:44px!important}
.coop-home-restored .cn-home-main .home-v2__discovery{min-height:0!important;padding-bottom:0!important;gap:8px!important}
.coop-home-restored .cn-home-main .home-v2__controls{justify-content:flex-start!important;gap:10px!important}
.coop-home-restored .cn-home-main .home-v2__tabs{margin-right:0!important}
.coop-home-restored .cn-home-main .home-v2__featured{align-items:start!important;gap:8px!important}
.coop-home-restored .cn-home-main :is(.dense-ring--left,.home-v2__featured) .home-card{display:grid!important;grid-template-columns:76px minmax(0,1fr)!important;align-content:start!important;gap:5px 8px!important;padding:8px!important}
.coop-home-restored .cn-home-main :is(.dense-ring--left,.home-v2__featured) :is(.home-card__image,.bio-localized-cover){grid-column:1!important;grid-row:1/3!important;width:76px!important;height:76px!important;min-height:0!important;aspect-ratio:1!important;object-fit:contain!important;align-self:start!important;border-radius:7px!important}
.coop-home-restored .cn-home-main :is(.dense-ring--left,.home-v2__featured) .bio-localized-cover img{width:76px!important;height:76px!important;object-fit:contain!important}
.coop-home-restored .cn-home-main :is(.dense-ring--left,.home-v2__featured) .home-card__copy{grid-column:2!important;grid-row:1!important;padding:0!important}
.coop-home-restored .cn-home-main :is(.dense-ring--left,.home-v2__featured) .home-card__open{grid-column:2!important;grid-row:2!important;white-space:nowrap!important;margin:0!important}
.coop-home-restored .cn-home-main :is(.dense-ring--left,.home-v2__featured) .home-card__copy h2{padding-right:28px!important}
@media(min-width:821px) and (max-width:1000px){.coop-home-restored .cn-home-main{grid-column:1/5;grid-template-columns:1fr}.coop-home-restored .cn-home-main .dense-center{grid-column:1!important;grid-row:2!important}.coop-home-restored .cn-home-main .dense-ring--left{grid-column:1!important;grid-row:3!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:820px){.coop-home-restored .cn-home-main{display:contents}.coop-home-restored .cn-home-main .dense-ring--left{grid-template-columns:1fr!important}.coop-home-restored .cn-home-main .home-v2__featured .home-card{grid-template-columns:76px minmax(0,1fr)!important}}
@media(pointer:coarse){.coop-home-restored .cn-home-main .home-card__open{min-height:44px!important}.coop-home-restored .cn-home-main .coop-card-favorite{min-width:44px!important;min-height:44px!important}}
@media(min-width:1001px) and (max-width:1099px){.coop-home-restored .cn-home-main{grid-template-columns:1fr}.coop-home-restored .cn-home-main .dense-center{grid-column:1!important;grid-row:2!important}.coop-home-restored .cn-home-main .dense-ring--left{grid-column:1!important;grid-row:3!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(pointer:coarse){.coop-home-restored .cn-home-main :is(.dense-ring--left,.home-v2__featured) .home-card__copy h2{padding-right:44px!important}}
/* Reading hierarchy: a compact history shelf, then normal rotating resource cards. */
body.coop-home-restored .cn-home-main #home-title{font-family:"STSong","Songti SC","SimSun",serif!important;font-size:clamp(24px,1.7vw,30px)!important;font-weight:600!important;letter-spacing:.015em!important;line-height:1.5!important}
body.coop-home-restored .cn-home-main #home-title em{font-weight:800!important;font-style:normal!important;background:linear-gradient(transparent 72%,#c2ed87 72%,#c2ed87 91%,transparent 91%)!important;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.coop-home-restored #home-tab-recommend{display:none!important}
.coop-home-restored .recent-only-home .home-v2__featured{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
.coop-home-restored .recent-only-home .home-v2__featured .home-card{grid-template-columns:44px minmax(0,1fr)!important;gap:6px!important;padding:8px!important;min-height:104px!important;align-content:start!important}
.coop-home-restored .recent-only-home .home-v2__featured :is(.home-card__image,.bio-localized-cover,.bio-localized-cover img){width:44px!important;height:44px!important;grid-row:1!important}
.coop-home-restored .recent-only-home .home-v2__featured .home-card__copy{display:contents!important}
.coop-home-restored .recent-only-home .home-v2__featured .home-card__copy h2{grid-column:2!important;padding:0!important;font-size:15px!important;line-height:1.4!important;display:block!important;-webkit-line-clamp:unset!important;overflow:visible!important}
.coop-home-restored .recent-only-home .home-v2__featured :is(.home-card p,.home-card__badges,.home-card__open){display:none!important}
.coop-home-restored .recent-only-home .home-v2__featured .cn-teaching-label{grid-column:1/-1!important;grid-row:2!important;margin:0 28px 0 0!important;max-width:100%!important;white-space:normal!important;font-size:12px!important;line-height:1.4!important;justify-self:start!important}
.coop-home-restored .recent-only-home .home-v2__featured .coop-card-favorite{top:auto!important;bottom:5px!important;right:5px!important;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important}
.coop-home-restored .recent-only-home .dense-dots{display:none!important}
.coop-home-restored .recent-only-home .home-v2__empty{grid-column:1/-1!important;padding:12px!important;min-height:0!important}
.coop-home-restored .recent-only-home .dense-ring--bottom{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0!important}
.coop-home-restored .recent-only-home .dense-ring--bottom::before{content:'更多教学资源';grid-column:1/-1;font-weight:650;font-size:15px;padding-top:4px}
.coop-home-restored .cn-home-main .dense-ring--bottom .home-card{display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;gap:5px 8px!important;padding:8px!important;align-content:start!important}
.coop-home-restored .cn-home-main .dense-ring--bottom :is(.home-card__image,.bio-localized-cover,.bio-localized-cover img){width:64px!important;height:64px!important;grid-column:1!important;grid-row:1/3!important;object-fit:contain!important;border-radius:7px!important}
.coop-home-restored .cn-home-main .dense-ring--bottom .home-card__copy{grid-column:2!important;grid-row:1!important;padding:0!important}
.coop-home-restored .cn-home-main .dense-ring--bottom .home-card h2{padding-right:26px!important}
.coop-home-restored .cn-home-main .dense-ring--bottom .home-card__open{grid-column:2!important;grid-row:2!important;margin:0!important}
@media(min-width:1100px) and (max-width:1599px){.coop-home-restored .recent-only-home .home-v2__featured{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:700px){.coop-home-restored .recent-only-home .home-v2__featured{grid-template-columns:repeat(2,minmax(0,1fr))!important}.coop-home-restored .recent-only-home .dense-ring--bottom{grid-template-columns:1fr!important}}
@media(pointer:coarse){.coop-home-restored .recent-only-home .home-v2__featured .coop-card-favorite{width:44px!important;height:44px!important}.coop-home-restored .recent-only-home .home-v2__featured .cn-teaching-label{margin-right:44px!important}}
/* Thumbnail and copy share three rows; textbook and open action stay together. */
.coop-home-restored .cn-home-main :is(.dense-ring--left,.dense-ring--bottom) .home-card{grid-template-columns:76px minmax(0,1fr) auto!important;grid-template-rows:auto auto auto!important;gap:4px 8px!important;min-height:0!important;align-content:start!important;align-items:start!important}
.coop-home-restored .cn-home-main :is(.dense-ring--left,.dense-ring--bottom) .home-card__copy{display:contents!important}
.coop-home-restored .cn-home-main :is(.dense-ring--left,.dense-ring--bottom) :is(.home-card__image,.bio-localized-cover){grid-column:1!important;grid-row:1/4!important;width:76px!important;height:76px!important;align-self:start!important}
.coop-home-restored .cn-home-main :is(.dense-ring--left,.dense-ring--bottom) .bio-localized-cover img{width:76px!important;height:76px!important}
.coop-home-restored .cn-home-main :is(.dense-ring--left,.dense-ring--bottom) h2{grid-column:2/4!important;grid-row:1!important;margin:0!important}
.coop-home-restored .cn-home-main :is(.dense-ring--left,.dense-ring--bottom) .home-card p{grid-column:2/4!important;grid-row:2!important;margin:0!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.coop-home-restored .cn-home-main :is(.dense-ring--left,.dense-ring--bottom) .cn-teaching-label{grid-column:2!important;grid-row:3!important;margin:0!important;align-self:center!important;justify-self:start!important;white-space:normal!important;max-width:100%!important}
.coop-home-restored .cn-home-main :is(.dense-ring--left,.dense-ring--bottom) .home-card__open{grid-column:3!important;grid-row:3!important;justify-self:end!important;align-self:center!important;min-width:62px!important;gap:8px!important;padding:4px 8px!important;margin:0!important}
.coop-home-restored .cn-home-main :is(.dense-ring--left,.dense-ring--bottom) .home-card__badges{grid-column:2/4!important;grid-row:2!important;margin:0!important}
.coop-home-restored .cn-home-main :is(.dense-ring--left,.dense-ring--bottom) .home-card:has(.home-card__badges) p{grid-row:3!important}
.coop-home-restored .cn-home-main :is(.dense-ring--left,.dense-ring--bottom) .home-card:has(.home-card__badges) :is(.cn-teaching-label,.home-card__open){grid-row:4!important}

.coop-home-restored .cn-home-main :is(.dense-ring--left,.dense-ring--bottom) .home-card{container-type:inline-size;container-name:compact-card}
@container compact-card (max-width:270px){
.coop-home-restored .cn-home-main :is(.dense-ring--left,.dense-ring--bottom) :is(.home-card__image,.bio-localized-cover){grid-row:1/3!important}
.coop-home-restored .cn-home-main :is(.dense-ring--left,.dense-ring--bottom) .cn-teaching-label{grid-column:1/3!important}
}
