.student-school {
    --student-ink: #4f5141; --student-red: #9b5741; --student-jade: #57755b;
    min-height: 100svh; color: var(--student-ink); background: #faf3e3;
    background-image: radial-gradient(#b795621c .7px, transparent .7px); background-size: 6px 6px;
}
.student-header {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    max-width: 1160px; margin: auto; padding: 23px 30px 19px;
    border-bottom: 1px solid #dac8a7;
}
.home-return { display: flex; gap: 8px; align-items: baseline; color: #685a42; text-decoration: none; font-size: 14px; }
.home-return > span { font-size: 22px; }
.home-return small { font-size: 10px; color: #85745c; }
.student-title { display: flex; align-items: center; gap: 12px; }
.school-rabbit { font-size: 36px; line-height: 1; }
.student-title h1 { font-family: var(--font-zh); font-size: 28px; line-height: 1.3; letter-spacing: 3px; font-weight: 600; }
.student-title p { font-size: 11px; margin-top: 3px; color: #82745d; }
.student-main { width: calc(100% - 60px); max-width: 1100px; margin: 30px auto 24px; }
.subject-section {
    --subject: var(--student-red); position: relative; margin-bottom: 26px;
    padding: 20px 23px 24px; border: 1px solid #dacaad; border-radius: 5px 17px 5px 5px;
    background: #fff9ec; box-shadow: 0 4px 0 #eaddc3;
}
.math-section { --subject: var(--student-jade); background: #f5f7eb; border-color: #cbd5b9; box-shadow: 0 4px 0 #e0e6cf; }
.subject-section::after {
    content: ''; position: absolute; width: 66px; height: 56px; right: 17px; top: 8px;
    background: url('../images/portal-plum-paper.svg') center / contain no-repeat;
    opacity: .15; pointer-events: none;
}
.section-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; margin-bottom: 18px; border-bottom: 1px solid #b89a6433; }
.section-heading h2 { display: flex; gap: 10px; align-items: center; font-family: var(--font-zh); color: var(--subject); font-size: 25px; font-weight: 600; }
.section-heading h2 small { font-family: var(--font-en); font-size: 12px; font-weight: 400; color: #7e715a; margin-left: 4px; }
.subject-seal { width: 31px; height: 34px; display: grid; place-items: center; border: 1px solid currentColor; font-size: 21px; border-radius: 3px 5px 3px 3px; box-shadow: inset 0 0 0 2px #fff9ed; background: #bc916710; }
.subject-count { font-size: 12px; color: #8b7a61; margin-right: 8px; }
.subject-count span { font-size: 10px; }
.student-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.student-card {
    display: flex; align-items: center; gap: 13px; padding: 16px 17px;
    min-height: 100px; color: #5f4c36; text-decoration: none;
    background: #fffdf5; border: 1px solid #dcc6a2; border-radius: 7px;
    box-shadow: 0 3px 0 #e9dcc4; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.math-section .student-card { border-color: #ccd6bb; box-shadow: 0 3px 0 #dfe6d1; }
.card-picture { display: grid; place-items: center; flex: 0 0 52px; height: 52px; font-size: 30px; background: #faedcf; border-radius: 50% 43% 47% 40%; }
.math-section .card-picture { background: #e8eedb; }
.character-picture { font-family: var(--font-zh); font-size: 33px; color: #a95f43; }
.card-label { min-width: 0; flex: 1; }
.card-label strong { display: block; font-family: var(--font-zh); font-size: 23px; font-weight: 600; line-height: 1.35; }
.card-label small { display: block; font-size: 11px; line-height: 1.5; margin-top: 4px; color: #7a6f57; }
.card-arrow { font-size: 29px; color: var(--subject); opacity: .7; }
.student-card:hover { transform: translateY(-2px); border-color: var(--subject); box-shadow: 0 5px 0 #d8c6a6; }
.student-school a:focus-visible { outline: 3px solid #2c6589; outline-offset: 4px; }
.student-footer { text-align: center; font-size: 10px; padding: 5px 20px 20px; color: #87775d; }
@media (max-width: 640px) {
    .student-header { padding: 17px 16px; gap: 12px; }
    .home-return { font-size: 12px; gap: 5px; flex-wrap: wrap; }
    .home-return small { display: none; }
    .school-rabbit { font-size: 29px; }
    .student-title { gap: 7px; }
    .student-title h1 { font-size: 24px; letter-spacing: 1px; }
    .student-title p { font-size: 10px; }
    .student-main { width: calc(100% - 28px); margin-top: 20px; }
    .subject-section { padding: 15px 13px 18px; margin-bottom: 21px; }
    .student-grid { gap: 11px; }
    .student-card { min-height: 138px; padding: 13px 7px; flex-direction: column; gap: 7px; text-align: center; }
    .card-picture { flex-basis: auto; width: 43px; height: 43px; font-size: 27px; }
    .card-label strong { font-size: 19px; }
    .card-label small { font-size: 10px; }
    .card-arrow { display: none; }
    .section-heading { margin-bottom: 13px; padding-bottom: 11px; }
    .section-heading h2 { font-size: 23px; gap: 7px; }
    .subject-count { margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) { .student-card { transition: none; }.student-card:hover { transform: none; } }
/* The same courtyard, rabbit and layered paper palette as the home illustration. */
.student-school {
    background-color: #f7efdc;
    background-image: url('../images/portal-plum-paper.svg'), radial-gradient(#b7956220 .7px, transparent .7px);
    background-position: left -65px bottom 42px, 0 0;
    background-size: 285px auto, 6px 6px; background-repeat: no-repeat, repeat;
}
.student-header {
    position: relative; isolation: isolate; max-width: 1160px;
    padding: 17px 30px; min-height: 146px; border-bottom: 0;
    margin-top: 15px; border-radius: 7px 7px 22px 7px;
    box-shadow: 0 4px 0 #d9c5a1, 0 7px 0 #fff8e9, 0 8px 0 #dacbad;
}
.student-header::before {
    content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: linear-gradient(90deg, #fff8e9e8, #fff8e9aa 70%, #fff8e9d6),
        url('../images/home-courtyard-background.png') center 23% / cover no-repeat;
    border: 1px solid #d8c39e;
}
.student-title { flex-direction: row-reverse; gap: 25px; }
.school-rabbit {
    display: block; width: 119px; height: 119px; flex-shrink: 0; overflow: visible;
    filter: drop-shadow(0 3px 2px #866a3f22); transform-origin: 50% 95%;
    animation: school-rabbit-sway 4.8s ease-in-out infinite;
}
.student-title h1 { font-size: 32px; letter-spacing: 5px; color: #755039; }
.student-title p { color: #6d634e; }
.home-return {
    padding: 8px 13px; border: 1px solid #d0b487; border-radius: 4px;
    background: #fff9eee6; box-shadow: inset 0 0 0 2px #fffdf5;
}
.student-main { margin-top: 33px; }
.subject-section {
    padding: 21px 24px 24px; margin-bottom: 29px;
    background: linear-gradient(135deg, #fffaf0, #fff4df); border-color: #d1b88a;
    border-radius: 5px 21px 5px 5px;
    box-shadow: 0 4px 0 #dcc8a6, 0 7px 0 #fff9ed, 0 8px 0 #e0ceb0, 0 12px 20px #8e734c0a;
}
.subject-section::before {
    content: ''; position: absolute; inset: 7px; border: 1px solid #bc9d6533;
    border-radius: 2px 15px 2px 2px; pointer-events: none;
}
.math-section {
    background: linear-gradient(135deg, #f8faef, #edf2de); border-color: #b7c6a0;
    box-shadow: 0 4px 0 #c7d3b2, 0 7px 0 #fbfcf3, 0 8px 0 #d5dec5, 0 12px 20px #6674430a;
}
.subject-section::after { width: 133px; height: 65px; right: 19px; top: 8px; opacity: .48; }
.section-heading { position: relative; padding-bottom: 14px; }
.section-heading h2 { font-size: 26px; }
.subject-seal { color: #fff4df; background: var(--subject); border-color: var(--subject); box-shadow: inset 0 0 0 2px #fff5df65; transform: rotate(-4deg); }
.subject-count { position: relative; z-index: 1; padding: 3px 7px; border-radius: 3px; background: #fff9eee6; }
.student-card {
    position: relative; min-height: 101px; border-radius: 4px 11px 4px 4px;
    border: 1px solid #d8bd91; background: linear-gradient(100deg, #fffdf6, #fcf0d9);
    box-shadow: 0 3px 0 #decaaa; overflow: hidden;
}
.student-card::after {
    content: ''; position: absolute; top: 7px; right: 7px; width: 11px; height: 11px;
    border-top: 1px solid #bb9860; border-right: 1px solid #bb9860; pointer-events: none;
}
.math-section .student-card { background: linear-gradient(100deg, #fffdf6, #f1f5e7); border-color: #bccba9; box-shadow: 0 3px 0 #ccd8b9; }
.card-picture {
    flex-basis: 56px; height: 56px; background: #f3e2bc;
    box-shadow: inset 0 0 0 3px #fff8e4, 0 0 0 1px #dcc59e; border-radius: 50%;
}
.card-picture svg { width: 44px; height: 44px; }
.math-section .card-picture { background: #e1e9cf; box-shadow: inset 0 0 0 3px #f5f8eb, 0 0 0 1px #c9d4b5; }
.card-label strong { color: #75503a; }
.math-section .card-label strong { color: #4e684d; }
.student-card:hover { box-shadow: 0 5px 0 #cfb790, 0 8px 12px #84633913; }
@keyframes school-rabbit-sway { 0%, 100% { transform: rotate(-1deg); } 50% { transform: rotate(1deg); } }
@media (max-width: 1200px) {
    .student-header { width: calc(100% - 40px); }
}
@media (max-width: 640px) {
    .student-header { width: calc(100% - 28px); padding: 12px 14px; min-height: 119px; margin-top: 13px; gap: 8px; }
    .home-return { padding: 6px 8px; font-size: 11px; white-space: nowrap; }
    .student-title { gap: 5px; }
    .school-rabbit { width: 68px; height: 84px; }
    .student-title h1 { font-size: 23px; letter-spacing: 1px; }
    .student-title p { font-size: 9px; }
    .student-main { margin-top: 27px; }
    .subject-section { padding: 17px 14px 20px; }
    .subject-section::after { width: 90px; right: 12px; opacity: .35; }
    .section-heading h2 { font-size: 23px; }
    .card-picture { flex-basis: auto; width: 48px; height: 48px; }
    .card-picture svg { width: 38px; height: 38px; }
    .student-card { min-height: 142px; }
}
@media (max-width: 370px) {
    .student-header { flex-wrap: wrap; }
    .student-title { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .school-rabbit { animation: none; } }