/* 学习中心「进入我的课堂」：两个班用不同颜色和粗边框，一眼分得清 */
.page-study .class-entry{border:4px solid var(--c,#6fb184)!important;border-radius:22px!important;background:var(--bg,#eef7ec)!important;box-shadow:0 5px 0 var(--c,#6fb184)!important;overflow:hidden}
.page-study .class-entry:nth-child(1){--c:#6fb184;--bg:#eef7ec}
.page-study .class-entry:nth-child(2){--c:#4a7db5;--bg:#e8f1fb}
.page-study .class-entry h3{font-size:30px;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.page-study .class-entry h3 .class-age{display:inline;margin:0!important;font-size:17px!important;font-weight:600;color:var(--c)!important}
.page-study .class-entry .course-time{font-size:17px;color:var(--c)!important}
.page-study .class-entry .button.primary{background:var(--c)!important;border-color:var(--c)!important;border-radius:999px;font-size:17px}

/* 其他部分的比例：按钮文字不折行；汉字库卡片内容靠上、紧凑 */
.page-study .home-practice a.button,.page-study .home-practice .button,.page-study .book-entry a{white-space:nowrap}
.page-study .home-practice-top>div:first-child{align-self:stretch;display:flex;flex-direction:column;justify-content:flex-start;gap:12px}
.page-study .home-practice-top>div:first-child .character-entry{margin-top:0!important}

/* 右侧的图铺满整个卡片高度，不留空白 */
.page-study .class-entry{align-items:stretch!important}
.page-study .class-entry>div:first-child{align-self:center}
.page-study .class-entry-media{align-self:stretch!important;height:auto!important;position:relative;min-height:200px}
.page-study .class-entry-media img{position:absolute;inset:0;width:100%!important;height:100%!important;aspect-ratio:auto!important;object-fit:cover!important;object-position:center 35%;background:transparent!important}
@media(max-width:700px){.page-study .class-entry-media{min-height:180px}}

/* ---------- 下半部分：原创汉字库、一年级语文、每天练一练 ---------- */
.page-study .home-practice{background:#fbf6e9!important;border:4px dashed #e0cfa6!important;border-radius:32px!important;padding:26px!important}
.page-study .home-practice h3{font-weight:400;font-size:26px;color:#3b2a1e;letter-spacing:.06em;margin:0 0 14px}
.page-study .home-practice-top{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:22px;align-items:stretch}
.page-study .home-practice-top>div:first-child,.page-study .study-books{background:#fff!important;border:4px solid var(--c);border-radius:26px;box-shadow:0 5px 0 var(--c);padding:20px!important}
.page-study .home-practice-top>div:first-child{--c:#e8a96a}
.page-study .study-books{--c:#6fb184;background:#f1f8ee!important}
.page-study .character-entry{display:flex!important;flex-direction:column;align-items:center;gap:14px;text-decoration:none}
.page-study .character-entry img{width:100%;max-width:300px;aspect-ratio:3/2;object-fit:cover;border-radius:18px;border:4px dashed #c99a6a}
.page-study .character-entry .button{border-radius:999px!important;border:3px solid #e8a96a!important;background:#fff3d6!important;color:#8a4a2b!important;font-size:18px}
.page-study .book-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.page-study .book-entry{display:flex;gap:14px;align-items:center;background:#fff;border:3px solid #cfe4c8;border-radius:20px;padding:12px}
.page-study .book-cover img{width:84px;height:auto;border-radius:8px;box-shadow:0 3px 0 #cfe4c8;transition:transform .14s}
.page-study .book-entry:hover .book-cover img{transform:rotate(-3deg) translateY(-3px)}
.page-study .book-entry h4{margin:0 0 8px;font-size:22px;font-weight:400;color:#2d6a43}
.page-study .book-entry .button{border-radius:999px!important;background:#6fb184!important;border:0!important;color:#fff!important;font-size:17px;white-space:nowrap}
.page-study .book-downloads{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.page-study .book-downloads a{padding:3px 12px;border-radius:999px;background:#eef7ec;border:2px dashed #a8d4b1;color:#2d6a43;font-size:14px;text-decoration:none}

.page-study .daily-practice-panel{margin-top:24px;background:transparent!important;border:0!important;padding:0!important}
.page-study .practice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.page-study .practice-entry{--c:#6fb184;position:relative;display:flex!important;flex-direction:column;align-items:center;gap:8px;padding:18px 14px 20px!important;background:#fff!important;border:4px solid var(--c)!important;border-radius:26px!important;box-shadow:0 5px 0 var(--c);text-align:center;text-decoration:none;transition:transform .14s}
.page-study .practice-entry:nth-child(1){--c:#6fb184}
.page-study .practice-entry:nth-child(2){--c:#e8a96a}
.page-study .practice-entry:nth-child(3){--c:#4a7db5}
.page-study .practice-entry:hover{transform:translateY(-4px) rotate(-1deg)}
.page-study .practice-entry img{width:clamp(130px,18vw,190px);height:auto;aspect-ratio:1;object-fit:contain}
.page-study .practice-entry h4{margin:0;font-size:26px;font-weight:400;color:var(--c)}
.page-study .practice-entry p{margin:0;font-size:16px;color:#7b6a50}
.page-study .practice-go{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--c);color:#fff;font-size:24px}
@media(max-width:900px){.page-study .home-practice-top{grid-template-columns:1fr}.page-study .practice-grid{grid-template-columns:1fr}.page-study .book-grid{grid-template-columns:1fr}}

/* ---------- 下半部分压小：这些不是最重要的，做成紧凑的小块 ---------- */
.page-study .home-practice{padding:16px 18px!important;border-width:3px!important;border-radius:24px!important}
.page-study .home-practice h3{font-size:19px;margin:0 0 8px}
.page-study .home-practice-top{grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:14px}
.page-study .home-practice-top>div:first-child,.page-study .study-books{padding:12px 14px!important;border-width:3px;border-radius:20px;box-shadow:0 3px 0 var(--c)}
.page-study .character-entry{flex-direction:row!important;gap:12px;align-items:center}
.page-study .character-entry img{width:92px;max-width:92px;aspect-ratio:1;border-width:3px;border-radius:14px}
.page-study .character-entry .button{font-size:15px;padding:5px 14px!important;white-space:nowrap}
.page-study .book-grid{gap:10px}
.page-study .book-entry{gap:10px;padding:8px 10px;border-width:2px;border-radius:16px}
.page-study .book-cover img{width:52px}
.page-study .book-entry h4{font-size:17px;margin:0 0 4px}
.page-study .book-entry .button{font-size:14px;padding:3px 12px!important}
.page-study .book-downloads{gap:4px;margin-top:4px}
.page-study .book-downloads a{font-size:12px;padding:1px 8px}
.page-study .daily-practice-panel{margin-top:14px}
.page-study .practice-grid{gap:10px}
.page-study .practice-entry{flex-direction:row!important;gap:10px;padding:8px 12px!important;border-width:3px!important;border-radius:20px!important;box-shadow:0 3px 0 var(--c);text-align:left}
.page-study .practice-entry img{width:56px;height:56px;flex:none}
.page-study .practice-entry>div{flex:1}
.page-study .practice-entry h4{font-size:19px}
.page-study .practice-entry p{font-size:13px}
.page-study .practice-go{width:32px;height:32px;font-size:18px;flex:none}
@media(max-width:900px){.page-study .character-entry{flex-direction:row!important}}

/* ---------- 去花：下半部分只用一个绿色，不再用橙、蓝、紫 ---------- */
.page-study .home-practice{background:#fff!important;border:2px solid #dfe9db!important;border-radius:22px!important}
.page-study .home-practice-top>div:first-child,.page-study .study-books{--c:#a8d4b1;background:#fff!important;box-shadow:none!important;border:2px solid #dfe9db!important}
.page-study .character-entry img{border:2px solid #dfe9db!important}
.page-study .character-entry .button,.page-study .book-entry .button{background:#6fb184!important;border:0!important;color:#fff!important}
.page-study .book-entry{border:2px solid #e6efe2!important}
.page-study .book-entry .book-cover img{box-shadow:none}
.page-study .book-downloads a{background:#f4f8f2!important;border:1px solid #cfe0c8!important;color:#4a6a4a!important}
.page-study .practice-entry,.page-study .practice-entry:nth-child(1),.page-study .practice-entry:nth-child(2),.page-study .practice-entry:nth-child(3){--c:#a8d4b1;border:2px solid #dfe9db!important;box-shadow:none!important}
.page-study .practice-entry h4{color:#2d6a43!important}
.page-study .practice-go{background:#6fb184!important}
.page-study .home-practice h3{color:#3b5a3b}

/* Keep the character library compact and give both section headings clear weight. */
html body.page-study .home-practice-top{grid-template-columns:minmax(0,.62fr) minmax(0,1.38fr)!important;align-items:stretch!important}
html body.page-study .home-practice-top>div:first-child{min-height:190px!important}
html body.page-study .home-practice-top .character-entry{flex:1;justify-content:center;gap:16px!important}
html body.page-study .home-practice-top .character-entry img{width:76px!important;max-width:76px!important;aspect-ratio:1064/1478!important;object-fit:contain!important}
html body.page-study .home-practice-top>div>h3{font:700 20px/1.35 "Noto Sans SC","Noto Sans",Arial,sans-serif!important;letter-spacing:0!important;color:#244b34!important}
@media(max-width:900px){html body.page-study .home-practice-top{grid-template-columns:1fr!important}}
