/*
 * 知序学堂 · 学生首页视觉系统
 * 独立于通用后台样式，保留原有功能与接口，仅负责学生首页的布局与视觉。
 */

body[data-page="student-home"] {
    --student-ink: #18352f;
    --student-ink-deep: #102822;
    --student-primary: #216b5b;
    --student-primary-dark: #185447;
    --student-primary-soft: #e9f3ef;
    --student-sage: #8ead9d;
    --student-gold: #d9b36a;
    --student-gold-soft: #faf2df;
    --student-coral: #d87a5f;
    --student-coral-soft: #fbeee9;
    --student-blue: #547792;
    --student-blue-soft: #edf3f7;
    --student-violet: #766c9f;
    --student-violet-soft: #f1eff7;
    --student-text: #20302c;
    --student-muted: #6e7b76;
    --student-border: #dde5e0;
    --student-bg: #f4f6f2;
    --student-surface: #fffefa;
    --student-shadow: 0 18px 45px rgba(33, 58, 50, 0.07), 0 2px 8px rgba(33, 58, 50, 0.035);
    min-width: 0;
    overflow-x: hidden;
    color: var(--student-text);
    background:
        radial-gradient(circle at 8% 8%, rgba(185, 211, 197, 0.22), transparent 23rem),
        radial-gradient(circle at 94% 25%, rgba(226, 202, 153, 0.16), transparent 27rem),
        var(--student-bg) !important;
    font-family: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body[data-page="student-home"] svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body[data-page="student-home"] a,
body[data-page="student-home"] button {
    -webkit-tap-highlight-color: transparent;
}

body[data-page="student-home"] .brand-mark {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: var(--student-primary);
    border-radius: 13px 13px 13px 5px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    font-family: "Songti SC", "STSong", serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

/* 登录页 */
body[data-page="student-home"] #loginPage.login-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: #f4f2ec;
}

body[data-page="student-home"].auth-checking #loginPage {
    visibility: hidden;
    opacity: 0;
}

body[data-page="student-home"] .login-story {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    padding: clamp(34px, 5vw, 74px) clamp(34px, 6vw, 96px);
    color: #f8f6ee;
    background:
        linear-gradient(140deg, rgba(15, 45, 38, 0.05), rgba(15, 45, 38, 0.6)),
        #173f36;
}

body[data-page="student-home"] .login-story::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(115deg, #000, transparent 78%);
}

body[data-page="student-home"] .login-story::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: clamp(-220px, -12vw, -110px);
    bottom: clamp(-230px, -16vw, -120px);
    width: clamp(430px, 48vw, 760px);
    aspect-ratio: 1;
    border: 1px solid rgba(242, 216, 162, 0.28);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(242, 216, 162, 0.04),
        0 0 0 140px rgba(242, 216, 162, 0.025);
}

body[data-page="student-home"] .login-story-glow {
    position: absolute;
    z-index: -1;
    top: 8%;
    left: 42%;
    width: min(38vw, 560px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(143, 190, 168, 0.2);
    filter: blur(90px);
}

body[data-page="student-home"] .login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

body[data-page="student-home"] .brand-mark-light {
    color: var(--student-ink-deep);
    background: #f2d59c;
}

body[data-page="student-home"] .login-brand > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body[data-page="student-home"] .login-brand strong {
    color: #fffef9;
    font-size: 19px;
    font-weight: 650;
    letter-spacing: 0.08em;
}

body[data-page="student-home"] .login-brand small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.24em;
}

body[data-page="student-home"] .login-message {
    max-width: 650px;
    margin: 10vh 0 auto;
}

body[data-page="student-home"] .login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f0cf8e;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.18em;
}

body[data-page="student-home"] .login-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

body[data-page="student-home"] .login-message h1 {
    margin: 24px 0 22px;
    color: #fffef9;
    font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
    font-size: clamp(46px, 5.6vw, 78px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.055em;
}

body[data-page="student-home"] .login-message p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(14px, 1.25vw, 17px);
    font-weight: 350;
    line-height: 1.9;
    letter-spacing: 0.04em;
}

body[data-page="student-home"] .login-values {
    display: flex;
    align-items: center;
    gap: clamp(24px, 4vw, 58px);
    margin-top: 60px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
}

body[data-page="student-home"] .login-values span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

body[data-page="student-home"] .login-values i {
    color: #e6c480;
    font-family: Georgia, serif;
    font-size: 11px;
    font-style: normal;
}

body[data-page="student-home"] .login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-width: 0;
    padding: clamp(28px, 5vw, 72px);
    background:
        radial-gradient(circle at 100% 0, rgba(218, 189, 132, 0.14), transparent 25rem),
        #f6f4ee;
}

body[data-page="student-home"] .login-card {
    width: min(100%, 462px);
    padding: clamp(30px, 4vw, 48px);
    background: rgba(255, 254, 250, 0.9);
    border: 1px solid rgba(208, 215, 207, 0.9);
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(42, 61, 54, 0.1);
    backdrop-filter: blur(14px);
}

body[data-page="student-home"] .login-card-heading {
    display: flex;
    gap: 14px;
    margin-bottom: 36px;
}

body[data-page="student-home"] .mobile-brand-mark { display: none; }

body[data-page="student-home"] .login-card-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--student-primary);
    font-family: Inter, sans-serif;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.2em;
}

body[data-page="student-home"] .login-card h2 {
    margin: 0 0 9px;
    color: var(--student-ink-deep);
    font-size: clamp(27px, 2.5vw, 34px);
    font-weight: 680;
    letter-spacing: 0.02em;
}

body[data-page="student-home"] .login-card-heading p {
    margin: 0;
    color: var(--student-muted);
    font-size: 14px;
    line-height: 1.7;
}

body[data-page="student-home"] .login-card .form-item {
    margin-bottom: 21px;
}

body[data-page="student-home"] .login-card .form-item label {
    display: block;
    margin-bottom: 9px;
    color: #33443f;
    font-size: 13px;
    font-weight: 600;
}

body[data-page="student-home"] .input-shell {
    position: relative;
    display: flex;
    align-items: center;
    height: 54px;
    overflow: hidden;
    background: #fbfcf9;
    border: 1px solid #d6ded8;
    border-radius: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body[data-page="student-home"] .input-shell:focus-within {
    background: #fff;
    border-color: var(--student-primary);
    box-shadow: 0 0 0 4px rgba(33, 107, 91, 0.1);
}

body[data-page="student-home"] .input-shell svg {
    position: absolute;
    left: 17px;
    width: 19px;
    height: 19px;
    color: #8b9892;
    pointer-events: none;
}

body[data-page="student-home"] .input-shell input {
    width: 100%;
    height: 100%;
    padding: 0 16px 0 49px;
    color: var(--student-text);
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    font-size: 15px;
}

body[data-page="student-home"] .input-shell input::placeholder {
    color: #a2aba7;
}

body[data-page="student-home"] .login-card .submit-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    margin-top: 8px;
    padding: 0 19px 0 22px;
    color: #fff !important;
    background: var(--student-primary) !important;
    border: 1px solid var(--student-primary) !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 24px rgba(33, 107, 91, 0.18) !important;
    font-size: 15px;
    font-weight: 650;
}

body[data-page="student-home"] .login-card .submit-btn:hover {
    background: var(--student-primary-dark) !important;
}

body[data-page="student-home"] .login-card .submit-btn svg {
    width: 20px;
    height: 20px;
}

body[data-page="student-home"] .login-card .error-msg {
    min-height: 20px;
    margin: 11px 2px 0;
    color: #b95343;
    font-size: 12px;
    line-height: 1.6;
}

body[data-page="student-home"] .login-help {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 18px;
    color: #97a09c;
    font-size: 11px;
    white-space: nowrap;
}

body[data-page="student-home"] .login-help span {
    flex: 1;
    height: 1px;
    background: #e4e8e4;
}

body[data-page="student-home"] .login-footer {
    margin: 22px 0 0;
    color: #9aa39e;
    font-size: 11px;
    letter-spacing: 0.08em;
}

/* 顶部应用栏 */
body[data-page="student-home"] #mainPage {
    min-height: 100vh;
}

body[data-page="student-home"] .header {
    position: sticky;
    z-index: 100;
    top: 0;
    width: 100%;
    height: auto;
    padding: 0;
    color: var(--student-text) !important;
    background: rgba(255, 254, 250, 0.9) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(210, 220, 214, 0.85) !important;
    box-shadow: 0 5px 20px rgba(35, 58, 51, 0.035) !important;
    backdrop-filter: blur(16px);
}

body[data-page="student-home"] .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1780px;
    min-height: 72px;
    margin: 0 auto;
    padding: 10px clamp(18px, 3.2vw, 58px);
}

body[data-page="student-home"] .app-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body[data-page="student-home"] .app-brand > div {
    display: flex;
    flex-direction: column;
}

body[data-page="student-home"] .app-brand h1 {
    margin: 0;
    color: var(--student-ink-deep) !important;
    font-size: 18px;
    font-weight: 720;
    letter-spacing: 0.06em;
    line-height: 1.35;
}

body[data-page="student-home"] .app-brand > div > span {
    color: #8a9691;
    font-size: 10px;
    letter-spacing: 0.16em;
}

body[data-page="student-home"] .header .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

body[data-page="student-home"] .student-avatar {
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--student-primary);
    background: var(--student-primary-soft);
    border: 1px solid #d4e5dd;
    border-radius: 50%;
    font-family: "Songti SC", "STSong", serif;
    font-size: 15px;
    font-weight: 700;
}

body[data-page="student-home"] .student-meta {
    display: flex;
    flex-direction: column;
    min-width: 72px;
    padding-right: 9px;
}

body[data-page="student-home"] .student-meta strong {
    max-width: 130px;
    overflow: hidden;
    color: var(--student-text);
    font-size: 13px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-page="student-home"] .student-meta span {
    max-width: 130px;
    overflow: hidden;
    color: #8a9691;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-page="student-home"] .header .logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 12px;
    color: #61706a !important;
    background: #f7f8f5 !important;
    border: 1px solid var(--student-border) !important;
    border-radius: 11px !important;
    font-size: 12px;
}

body[data-page="student-home"] .header .logout-btn:hover {
    color: var(--student-primary) !important;
    background: var(--student-primary-soft) !important;
    border-color: #c8ddd4 !important;
}

body[data-page="student-home"] .header .logout-btn svg {
    width: 16px;
    height: 16px;
}

/* 自适应内容容器与导航 */
body[data-page="student-home"] .container {
    width: 100%;
    max-width: 1780px;
    margin: 0 auto;
    padding: 0 clamp(18px, 3.2vw, 58px) clamp(44px, 6vw, 88px);
}

body[data-page="student-home"] .nav-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: auto;
    max-width: 100%;
    margin: 18px 0 22px;
    padding: 5px;
    overflow-x: auto;
    background: rgba(255, 254, 250, 0.78);
    border: 1px solid var(--student-border) !important;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(35, 58, 51, 0.04);
    scrollbar-width: none;
}

body[data-page="student-home"] .nav-tabs::-webkit-scrollbar { display: none; }

body[data-page="student-home"] .nav-tab {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 18px;
    color: #65746e;
    background: transparent !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-size: 13px;
    font-weight: 580;
    white-space: nowrap;
}

body[data-page="student-home"] .nav-tab svg {
    width: 17px;
    height: 17px;
}

body[data-page="student-home"] .nav-tab:hover {
    color: var(--student-primary);
    background: #f0f4f1 !important;
}

body[data-page="student-home"] .nav-tab.active {
    color: #fff !important;
    background: var(--student-primary) !important;
    border: 0 !important;
    box-shadow: 0 7px 15px rgba(33, 107, 91, 0.16);
}

body[data-page="student-home"] #home {
    padding-bottom: 0;
}

/* 欢迎区 */
body[data-page="student-home"] .learning-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 230px;
    margin: 0 0 22px;
    padding: clamp(32px, 4vw, 58px) clamp(28px, 4.8vw, 72px);
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(13, 45, 37, 0.1), rgba(21, 72, 60, 0.25)),
        #1c5145;
    border: 1px solid rgba(26, 75, 63, 0.9);
    border-radius: 27px;
    box-shadow: 0 25px 55px rgba(24, 73, 61, 0.14);
}

body[data-page="student-home"] .learning-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -45%;
    right: 8%;
    width: 390px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 212, 197, 0.25), transparent 68%);
}

body[data-page="student-home"] .learning-hero-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
}

body[data-page="student-home"] .learning-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
    color: #e8ca8e;
    font-family: Inter, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.19em;
}

body[data-page="student-home"] .learning-eyebrow > span {
    width: 22px;
    height: 1px;
    background: currentColor;
}

body[data-page="student-home"] .learning-hero h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 620;
    line-height: 1.25;
    letter-spacing: 0.025em;
}

body[data-page="student-home"] .learning-hero h2 > span {
    color: #f1d59f;
}

body[data-page="student-home"] .learning-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.8;
}

body[data-page="student-home"] .hero-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

body[data-page="student-home"] .hero-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px !important;
    font-size: 13px;
    font-weight: 620;
    text-decoration: none;
    white-space: nowrap;
}

body[data-page="student-home"] .hero-actions .btn-primary {
    color: var(--student-ink-deep) !important;
    background: #efd49e !important;
    border-color: #efd49e !important;
    box-shadow: 0 10px 22px rgba(10, 33, 27, 0.18) !important;
}

body[data-page="student-home"] .hero-actions .btn-primary:hover {
    background: #f6dda9 !important;
}

body[data-page="student-home"] .hero-actions .btn-outline {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

body[data-page="student-home"] .hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.13) !important;
}

body[data-page="student-home"] .hero-actions svg {
    width: 17px;
    height: 17px;
}

body[data-page="student-home"] .hero-orbit {
    position: absolute;
    z-index: 0;
    right: -88px;
    bottom: -176px;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(239, 212, 158, 0.22);
    border-radius: 50%;
}

body[data-page="student-home"] .hero-orbit::before,
body[data-page="student-home"] .hero-orbit::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(239, 212, 158, 0.13);
    border-radius: 50%;
}

body[data-page="student-home"] .hero-orbit::before { inset: 45px; }
body[data-page="student-home"] .hero-orbit::after { inset: 100px; }

body[data-page="student-home"] .hero-orbit i {
    position: absolute;
    width: 7px;
    height: 7px;
    background: #ebc984;
    border-radius: 50%;
}

body[data-page="student-home"] .hero-orbit i:nth-child(1) { top: 58px; left: 54px; }
body[data-page="student-home"] .hero-orbit i:nth-child(2) { top: 91px; right: 46px; opacity: 0.65; }
body[data-page="student-home"] .hero-orbit i:nth-child(3) { top: 170px; left: 77px; opacity: 0.4; }

/* 公共板块样式 */
body[data-page="student-home"] .section-panel {
    min-width: 0;
    background: rgba(255, 254, 250, 0.94);
    border: 1px solid var(--student-border);
    border-radius: 22px;
    box-shadow: var(--student-shadow);
}

body[data-page="student-home"] .panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

body[data-page="student-home"] .panel-title-row h3 {
    margin: 0;
    color: var(--student-ink-deep);
    font-size: 20px;
    font-weight: 680;
    letter-spacing: 0.02em;
}

body[data-page="student-home"] .section-kicker {
    margin-bottom: 5px;
    color: var(--student-primary);
    font-family: Inter, sans-serif;
    font-size: 9px;
    font-weight: 760;
    letter-spacing: 0.18em;
}

body[data-page="student-home"] .section-caption {
    color: #8b9691;
    font-size: 11px;
    white-space: nowrap;
}

body[data-page="student-home"] .title-with-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body[data-page="student-home"] .section-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border-radius: 13px;
}

body[data-page="student-home"] .section-icon svg {
    width: 20px;
    height: 20px;
}

body[data-page="student-home"] .news-icon {
    color: var(--student-blue);
    background: var(--student-blue-soft);
}

body[data-page="student-home"] .focus-icon {
    color: #a47625;
    background: var(--student-gold-soft);
}

body[data-page="student-home"] .overview-panel {
    margin-bottom: 22px;
    padding: clamp(20px, 2.2vw, 30px);
    background:
        linear-gradient(125deg, rgba(235, 244, 239, 0.9), rgba(255, 254, 250, 0.96) 58%),
        var(--student-surface);
    border-top: 3px solid var(--student-sage);
}

body[data-page="student-home"] .overview-panel > .panel-title-row {
    margin-bottom: 18px;
}

/* 学习概览数据 */
body[data-page="student-home"] .learning-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.2vw, 16px);
    margin: 0;
}

body[data-page="student-home"] .summary-tile {
    position: relative;
    min-width: 0;
    min-height: 138px;
    overflow: hidden;
    padding: 20px 20px 18px;
    background: rgba(255, 255, 253, 0.96);
    border: 1px solid rgba(216, 226, 220, 0.9);
    border-radius: 17px;
    box-shadow: 0 8px 24px rgba(36, 59, 51, 0.045);
}

body[data-page="student-home"] .summary-tile::before {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 9px;
    height: 9px;
    background: var(--student-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 6px var(--student-primary-soft);
}

body[data-page="student-home"] .summary-tile:nth-child(2)::before {
    background: var(--student-blue);
    box-shadow: 0 0 0 6px var(--student-blue-soft);
}

body[data-page="student-home"] .summary-tile:nth-child(3)::before {
    background: var(--student-gold);
    box-shadow: 0 0 0 6px var(--student-gold-soft);
}

body[data-page="student-home"] .summary-tile:nth-child(4)::before {
    background: var(--student-violet);
    box-shadow: 0 0 0 6px var(--student-violet-soft);
}

body[data-page="student-home"] .summary-label {
    padding-right: 24px;
    color: var(--student-muted);
    font-size: 12px;
    font-weight: 580;
}

body[data-page="student-home"] .summary-value {
    margin: 10px 0 6px;
    color: var(--student-ink-deep);
    font-family: Inter, "MiSans", sans-serif;
    font-size: clamp(27px, 2.3vw, 36px);
    font-weight: 680;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

body[data-page="student-home"] .summary-value span {
    margin-left: 5px;
    color: #84918b;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
}

body[data-page="student-home"] .summary-detail {
    overflow: hidden;
    color: #8d9893;
    font-size: 11px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-page="student-home"] .loading-tile {
    border-color: transparent;
    background: linear-gradient(90deg, #eef2ee 25%, #f8faf7 50%, #eef2ee 75%);
    background-size: 200% 100%;
}

body[data-page="student-home"] .loading-tile::before { display: none; }

/* 公告与巩固建议 */
body[data-page="student-home"] .insight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    align-items: stretch;
    gap: 22px;
    margin-bottom: clamp(30px, 4vw, 48px);
}

body[data-page="student-home"] .news-panel,
body[data-page="student-home"] .focus-panel {
    min-width: 0;
    margin: 0;
    padding: clamp(19px, 2.2vw, 28px);
}

body[data-page="student-home"] .news-panel {
    border-top: 3px solid #7795aa;
}

body[data-page="student-home"] .focus-panel {
    background:
        linear-gradient(150deg, rgba(251, 245, 230, 0.86), rgba(255, 254, 250, 0.98) 58%),
        var(--student-surface);
    border-top: 3px solid var(--student-gold);
    border-left: 1px solid var(--student-border);
}

body[data-page="student-home"] .news-panel .panel-title-row,
body[data-page="student-home"] .focus-panel .panel-title-row {
    margin-bottom: 17px;
}

body[data-page="student-home"] .news-count,
body[data-page="student-home"] .focus-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}

body[data-page="student-home"] .news-count {
    color: var(--student-blue);
    background: var(--student-blue-soft);
}

body[data-page="student-home"] .focus-badge {
    color: #9a6d21;
    background: var(--student-gold-soft);
}

body[data-page="student-home"] .news-list {
    border-top: 1px solid #e6ebe7;
}

body[data-page="student-home"] .news-item {
    border-bottom: 1px solid #e8ece9;
}

body[data-page="student-home"] .news-item summary {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 9px 3px;
}

body[data-page="student-home"] .news-item summary::after {
    grid-column: auto;
    color: #8a9691;
}

body[data-page="student-home"] .news-item summary strong {
    color: #2b3a35;
    font-size: 13px;
    font-weight: 620;
}

body[data-page="student-home"] .news-item summary time {
    color: #98a19d;
    font-size: 10px;
}

body[data-page="student-home"] .news-source,
body[data-page="student-home"] .news-pinned {
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 9px;
}

body[data-page="student-home"] .news-source {
    color: var(--student-blue);
    background: var(--student-blue-soft);
}

body[data-page="student-home"] .news-source.source-school {
    color: var(--student-violet);
    background: var(--student-violet-soft);
}

body[data-page="student-home"] .news-source.source-teacher {
    color: var(--student-primary);
    background: var(--student-primary-soft);
}

body[data-page="student-home"] .news-pinned {
    color: #b15d46;
    background: var(--student-coral-soft);
}

body[data-page="student-home"] .news-content {
    padding: 2px 4px 15px;
}

body[data-page="student-home"] .news-content p {
    color: #57645f;
    font-size: 12px;
    line-height: 1.8;
}

body[data-page="student-home"] .focus-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
}

body[data-page="student-home"] .focus-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 253, 0.86);
    border: 1px solid #e6e2d8;
    border-radius: 13px;
}

body[data-page="student-home"] .focus-rank {
    width: 27px;
    height: 27px;
    color: #976c25;
    background: var(--student-gold-soft);
    font-family: Georgia, serif;
}

body[data-page="student-home"] .focus-main strong {
    color: #31403b;
    font-size: 12px;
    font-weight: 650;
}

body[data-page="student-home"] .focus-main span {
    color: #8a9691;
    font-size: 10px;
}

body[data-page="student-home"] .focus-score {
    grid-column: 2;
    font-size: 11px;
}

body[data-page="student-home"] .focus-item .btn {
    grid-column: 3;
    grid-row: 1 / span 2;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 9px !important;
    font-size: 10px;
}

body[data-page="student-home"] .focus-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 104px;
    padding: 12px 3px;
}

body[data-page="student-home"] .focus-empty strong {
    color: #31403b;
    font-size: 13px;
}

body[data-page="student-home"] .focus-empty span {
    color: #7f8b86;
    font-size: 11px;
    line-height: 1.6;
}

/* 分科学习地图 */
body[data-page="student-home"] .subjects-title {
    margin: 0 3px 16px;
}

body[data-page="student-home"] .subjects-title h3 {
    font-size: clamp(22px, 2vw, 28px);
}

body[data-page="student-home"] .subject-dashboard {
    display: grid;
    gap: 22px;
}

body[data-page="student-home"] .dashboard-subject {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: rgba(255, 254, 250, 0.96);
    border: 1px solid var(--student-border);
    border-top: 4px solid var(--student-primary);
    border-radius: 23px;
    box-shadow: var(--student-shadow);
    scroll-margin-top: 92px;
}

body[data-page="student-home"] .dashboard-subject.subject-math {
    border-top-color: var(--student-primary);
}

body[data-page="student-home"] .dashboard-subject.subject-chinese {
    border-top-color: var(--student-coral);
}

body[data-page="student-home"] .dashboard-subject.subject-english {
    border-top-color: var(--student-blue);
}

body[data-page="student-home"] .subject-overview-row {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) minmax(240px, 0.8fr) auto;
    align-items: center;
    gap: clamp(18px, 3vw, 42px);
    padding: clamp(19px, 2.4vw, 30px);
    background: linear-gradient(100deg, rgba(232, 243, 238, 0.72), rgba(255, 254, 250, 0.38) 62%);
    border-bottom: 1px solid var(--student-border);
}

body[data-page="student-home"] .subject-chinese .subject-overview-row {
    background: linear-gradient(100deg, rgba(251, 238, 233, 0.7), rgba(255, 254, 250, 0.38) 62%);
}

body[data-page="student-home"] .subject-english .subject-overview-row {
    background: linear-gradient(100deg, rgba(237, 243, 247, 0.84), rgba(255, 254, 250, 0.38) 62%);
}

body[data-page="student-home"] .subject-identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

body[data-page="student-home"] .subject-mark {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: var(--student-primary);
    background: #fff;
    border: 1px solid #d7e6df;
    border-radius: 16px 16px 16px 6px;
    box-shadow: 0 8px 20px rgba(33, 107, 91, 0.08);
    font-family: "Songti SC", "STSong", serif;
    font-size: 20px;
    font-weight: 700;
}

body[data-page="student-home"] .subject-chinese .subject-mark {
    color: var(--student-coral);
    border-color: #f0d8d0;
    box-shadow: 0 8px 20px rgba(216, 122, 95, 0.08);
}

body[data-page="student-home"] .subject-english .subject-mark {
    color: var(--student-blue);
    border-color: #d6e2e9;
    box-shadow: 0 8px 20px rgba(84, 119, 146, 0.08);
}

body[data-page="student-home"] .subject-name {
    color: var(--student-ink-deep);
    font-size: 20px;
    font-weight: 700;
}

body[data-page="student-home"] .subject-count {
    margin-top: 4px;
    color: var(--student-muted);
    font-size: 11px;
}

body[data-page="student-home"] .subject-score-block > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

body[data-page="student-home"] .subject-score-block strong {
    color: var(--student-ink-deep);
    font-family: Inter, sans-serif;
    font-size: 28px;
    font-weight: 680;
    letter-spacing: -0.03em;
}

body[data-page="student-home"] .subject-score-block span {
    color: var(--student-muted);
    font-size: 11px;
}

body[data-page="student-home"] .subject-progress,
body[data-page="student-home"] .mastery-track {
    height: 6px;
    overflow: hidden;
    background: rgba(32, 48, 44, 0.09);
    border-radius: 99px;
}

body[data-page="student-home"] .subject-progress {
    margin-top: 8px;
}

body[data-page="student-home"] .subject-progress span,
body[data-page="student-home"] .mastery-track span {
    display: block;
    height: 100%;
    background: var(--student-primary);
    border-radius: inherit;
}

body[data-page="student-home"] .subject-chinese .subject-progress span { background: var(--student-coral); }
body[data-page="student-home"] .subject-english .subject-progress span { background: var(--student-blue); }

body[data-page="student-home"] .subject-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

body[data-page="student-home"] .btn {
    min-height: 38px;
    padding: 0 15px;
    border-radius: 10px !important;
    font-size: 12px;
    font-weight: 600;
}

body[data-page="student-home"] .btn-primary {
    color: #fff !important;
    background: var(--student-primary) !important;
    border: 1px solid var(--student-primary) !important;
}

body[data-page="student-home"] .btn-primary:hover {
    background: var(--student-primary-dark) !important;
}

body[data-page="student-home"] .btn-outline {
    color: var(--student-text) !important;
    background: rgba(255, 255, 253, 0.8) !important;
    border: 1px solid #ced9d3 !important;
    text-decoration: none;
}

body[data-page="student-home"] .btn-outline:hover {
    color: var(--student-primary) !important;
    background: #fff !important;
    border-color: #a9c8bb !important;
}

body[data-page="student-home"] .grade-sections {
    display: grid;
}

body[data-page="student-home"] .grade-section {
    padding: clamp(19px, 2.2vw, 28px);
    border-bottom: 1px solid var(--student-border);
}

body[data-page="student-home"] .grade-section:last-child {
    border-bottom: 0;
}

body[data-page="student-home"] .grade-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

body[data-page="student-home"] .grade-heading > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

body[data-page="student-home"] .grade-heading span {
    padding: 4px 8px;
    color: var(--student-muted);
    background: #eff2ef;
    border-radius: 7px;
    font-size: 9px;
}

body[data-page="student-home"] .grade-heading strong {
    color: #2d3c37;
    font-size: 14px;
    font-weight: 680;
}

body[data-page="student-home"] .grade-heading a {
    color: var(--student-primary);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

body[data-page="student-home"] .grade-heading a::after {
    content: " →";
}

body[data-page="student-home"] .type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 12px;
}

body[data-page="student-home"] .type-card {
    min-width: 0;
    padding: 16px;
    background: #f8faf7;
    border: 1px solid #e0e7e2;
    border-radius: 16px;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

body[data-page="student-home"] .type-card:hover {
    background: #fff;
    border-color: #c7d9d0;
    box-shadow: 0 12px 28px rgba(35, 62, 53, 0.065);
}

body[data-page="student-home"] .type-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

body[data-page="student-home"] .type-card h4 {
    margin: 0 0 6px;
    color: #293a34;
    font-size: 14px;
    font-weight: 680;
}

body[data-page="student-home"] .mastery-status {
    font-size: 10px;
    font-weight: 650;
}

body[data-page="student-home"] .type-score {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

body[data-page="student-home"] .type-score strong {
    font-family: Inter, sans-serif;
    font-size: 23px;
    font-weight: 680;
}

body[data-page="student-home"] .type-score span {
    color: var(--student-muted);
    font-size: 9px;
}

body[data-page="student-home"] .mastery-status.not-started,
body[data-page="student-home"] .type-score.not-started { color: #8d9792; }
body[data-page="student-home"] .mastery-status.focus,
body[data-page="student-home"] .type-score.focus { color: #c5634d; }
body[data-page="student-home"] .mastery-status.steady,
body[data-page="student-home"] .type-score.steady { color: #a4772d; }
body[data-page="student-home"] .mastery-status.strong,
body[data-page="student-home"] .type-score.strong { color: var(--student-primary); }

body[data-page="student-home"] .mastery-track {
    margin: 12px 0;
}

body[data-page="student-home"] .mastery-track span.not-started { background: #aeb8b3; }
body[data-page="student-home"] .mastery-track span.focus { background: var(--student-coral); }
body[data-page="student-home"] .mastery-track span.steady { background: var(--student-gold); }
body[data-page="student-home"] .mastery-track span.strong { background: var(--student-primary); }

body[data-page="student-home"] .type-metrics {
    display: flex;
    justify-content: space-between;
    gap: 9px;
    color: #7d8984;
    font-size: 10px;
}

body[data-page="student-home"] .type-metrics strong {
    color: #34443e;
    font-weight: 680;
}

body[data-page="student-home"] .type-actions {
    display: flex;
    gap: 7px;
    margin-top: 14px;
}

body[data-page="student-home"] .type-actions .btn {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    padding: 0 8px;
    font-size: 10px;
    text-align: center;
}

body[data-page="student-home"] .type-empty,
body[data-page="student-home"] .dashboard-empty,
body[data-page="student-home"] .dashboard-loading {
    padding: 26px 18px;
    color: #85908b;
    background: rgba(248, 250, 247, 0.8);
    border: 1px dashed #ccd7d1;
    border-radius: 13px;
    font-size: 12px;
    text-align: center;
}

/* 其他功能区与弹窗保持同一视觉语言 */
body[data-page="student-home"] #practice,
body[data-page="student-home"] #library,
body[data-page="student-home"] #history {
    min-height: 420px;
    padding: clamp(20px, 3vw, 34px);
    background: rgba(255, 254, 250, 0.94);
    border: 1px solid var(--student-border);
    border-radius: 22px;
    box-shadow: var(--student-shadow);
}

body[data-page="student-home"] .subject-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 14px;
}

body[data-page="student-home"] .subject-card {
    padding: 20px;
    background: #f8faf7 !important;
    border: 1px solid var(--student-border) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
}

body[data-page="student-home"] .subject-card .action-btn {
    min-height: 40px;
    border-radius: 10px !important;
}

body[data-page="student-home"] .table-container {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--student-border);
    border-radius: 15px;
}

body[data-page="student-home"] .modal-overlay {
    padding: 16px;
    background: rgba(19, 39, 34, 0.48) !important;
    backdrop-filter: blur(6px);
}

body[data-page="student-home"] .modal {
    width: min(100%, 820px);
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid rgba(221, 229, 224, 0.95) !important;
    border-radius: 20px !important;
    box-shadow: 0 28px 80px rgba(17, 40, 34, 0.2) !important;
}

/* 中等宽度 */
@media (max-width: 1180px) {
    body[data-page="student-home"] .insight-grid {
        grid-template-columns: 1fr;
    }

    body[data-page="student-home"] .focus-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body[data-page="student-home"] .focus-empty {
        grid-column: 1 / -1;
    }

    body[data-page="student-home"] .subject-overview-row {
        grid-template-columns: minmax(210px, 1fr) minmax(200px, 0.8fr);
    }

    body[data-page="student-home"] .subject-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 920px) {
    body[data-page="student-home"] #loginPage.login-stage {
        display: block;
        min-height: 100vh;
        background: #f5f3ed;
    }

    body[data-page="student-home"] .login-story {
        min-height: 390px;
        padding: 30px 28px 112px;
    }

    body[data-page="student-home"] .login-message {
        margin: 60px 0 0;
    }

    body[data-page="student-home"] .login-message h1 {
        margin: 17px 0 14px;
        font-size: clamp(38px, 8vw, 56px);
    }

    body[data-page="student-home"] .login-values { display: none; }

    body[data-page="student-home"] .login-panel {
        position: relative;
        z-index: 2;
        margin-top: -74px;
        padding: 0 20px 28px;
        background: transparent;
    }

    body[data-page="student-home"] .login-card {
        width: min(100%, 530px);
    }

    body[data-page="student-home"] .learning-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-page="student-home"] .focus-list {
        grid-template-columns: 1fr;
    }
}

/* 手机和平板 */
@media (max-width: 720px) {
    body[data-page="student-home"] .header-inner {
        min-height: 64px;
        padding: 9px 14px;
    }

    body[data-page="student-home"] .app-brand .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px 12px 12px 5px;
        font-size: 19px;
    }

    body[data-page="student-home"] .app-brand h1 { font-size: 16px; }
    body[data-page="student-home"] .app-brand > div > span { display: none; }
    body[data-page="student-home"] .student-avatar { width: 34px; height: 34px; }
    body[data-page="student-home"] .student-meta { min-width: 0; padding-right: 2px; }
    body[data-page="student-home"] .student-meta strong { max-width: 84px; font-size: 12px; }
    body[data-page="student-home"] .student-meta span { display: none; }
    body[data-page="student-home"] .header .logout-btn { min-height: 34px; padding: 0 9px; }
    body[data-page="student-home"] .header .logout-btn > span { display: none; }

    body[data-page="student-home"] .container {
        padding: 0 14px 42px;
    }

    body[data-page="student-home"] .nav-tabs {
        display: flex;
        width: 100%;
        margin: 12px 0 14px;
        padding: 4px;
        border-radius: 13px;
    }

    body[data-page="student-home"] .nav-tab {
        flex: 1 1 0;
        min-width: max-content;
        min-height: 39px;
        padding: 0 10px;
        font-size: 11px;
    }

    body[data-page="student-home"] .nav-tab svg {
        width: 15px;
        height: 15px;
    }

    body[data-page="student-home"] .learning-hero {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
        gap: 24px;
        padding: 28px 22px;
        border-radius: 21px;
    }

    body[data-page="student-home"] .learning-hero h2 {
        font-size: clamp(25px, 7vw, 32px);
    }

    body[data-page="student-home"] .learning-hero p {
        font-size: 12px;
    }

    body[data-page="student-home"] .hero-actions {
        width: 100%;
    }

    body[data-page="student-home"] .hero-actions .btn {
        flex: 1;
        min-width: 0;
        padding: 0 11px;
        font-size: 11px;
    }

    body[data-page="student-home"] .overview-panel,
    body[data-page="student-home"] .news-panel,
    body[data-page="student-home"] .focus-panel {
        padding: 18px;
        border-radius: 19px;
    }

    body[data-page="student-home"] .panel-title-row h3 {
        font-size: 18px;
    }

    body[data-page="student-home"] .section-caption { display: none; }

    body[data-page="student-home"] .summary-tile {
        min-height: 122px;
        padding: 16px;
        border-radius: 14px;
    }

    body[data-page="student-home"] .summary-tile::before {
        top: 16px;
        right: 16px;
        width: 7px;
        height: 7px;
        box-shadow: 0 0 0 5px var(--student-primary-soft);
    }

    body[data-page="student-home"] .summary-tile:nth-child(2)::before { box-shadow: 0 0 0 5px var(--student-blue-soft); }
    body[data-page="student-home"] .summary-tile:nth-child(3)::before { box-shadow: 0 0 0 5px var(--student-gold-soft); }
    body[data-page="student-home"] .summary-tile:nth-child(4)::before { box-shadow: 0 0 0 5px var(--student-violet-soft); }
    body[data-page="student-home"] .summary-value { font-size: 27px; }
    body[data-page="student-home"] .summary-detail { font-size: 10px; }

    body[data-page="student-home"] .insight-grid {
        gap: 14px;
        margin-bottom: 34px;
    }

    body[data-page="student-home"] .news-item summary {
        grid-template-columns: auto auto minmax(0, 1fr) auto;
    }

    body[data-page="student-home"] .news-item summary time { display: none; }
    body[data-page="student-home"] .news-item summary::after { grid-column: auto; }

    body[data-page="student-home"] .subject-dashboard { gap: 16px; }

    body[data-page="student-home"] .dashboard-subject {
        border-radius: 19px;
        scroll-margin-top: 78px;
    }

    body[data-page="student-home"] .subject-overview-row {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px;
    }

    body[data-page="student-home"] .subject-actions {
        display: grid;
        grid-column: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-page="student-home"] .subject-actions .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    body[data-page="student-home"] .grade-section { padding: 18px; }
    body[data-page="student-home"] .type-grid { grid-template-columns: 1fr; }
    body[data-page="student-home"] .modal-overlay { padding: 10px; }
}

@media (max-width: 480px) {
    body[data-page="student-home"] .login-story {
        min-height: 330px;
        padding: 24px 20px 92px;
    }

    body[data-page="student-home"] .login-brand .brand-mark {
        width: 38px;
        height: 38px;
        font-size: 19px;
    }

    body[data-page="student-home"] .login-brand strong { font-size: 16px; }
    body[data-page="student-home"] .login-message { margin-top: 42px; }
    body[data-page="student-home"] .login-message h1 { font-size: 34px; }
    body[data-page="student-home"] .login-message p { font-size: 12px; }
    body[data-page="student-home"] .login-panel { margin-top: -58px; padding: 0 12px 22px; }
    body[data-page="student-home"] .login-card { padding: 27px 21px; border-radius: 22px; }
    body[data-page="student-home"] .login-card-heading { margin-bottom: 28px; }
    body[data-page="student-home"] .login-card h2 { font-size: 27px; }
    body[data-page="student-home"] .input-shell { height: 51px; }
    body[data-page="student-home"] .login-card .submit-btn { min-height: 51px; }

    body[data-page="student-home"] .app-brand > div { display: none; }
    body[data-page="student-home"] .header .user-info { gap: 7px; }

    body[data-page="student-home"] .learning-summary { gap: 8px; }
    body[data-page="student-home"] .summary-tile { min-height: 116px; padding: 14px; }
    body[data-page="student-home"] .summary-label { font-size: 10px; }
    body[data-page="student-home"] .summary-value { font-size: 24px; }
    body[data-page="student-home"] .summary-detail { white-space: normal; }

    body[data-page="student-home"] .section-icon {
        width: 39px;
        height: 39px;
        border-radius: 12px;
    }

    body[data-page="student-home"] .focus-badge { display: none; }
    body[data-page="student-home"] .focus-item { grid-template-columns: auto minmax(0, 1fr) auto; }
    body[data-page="student-home"] .focus-item .btn { padding: 0 8px; }
    body[data-page="student-home"] .focus-empty { align-items: stretch; flex-direction: column; }

    body[data-page="student-home"] .subject-mark { width: 46px; height: 46px; }
    body[data-page="student-home"] .subject-name { font-size: 18px; }
    body[data-page="student-home"] .grade-heading { align-items: flex-start; }
    body[data-page="student-home"] .type-card { padding: 14px; }
}

@media (max-width: 360px) {
    body[data-page="student-home"] .container {
        padding-right: 10px;
        padding-left: 10px;
    }

    body[data-page="student-home"] .nav-tab {
        min-width: 0;
        padding: 0 6px;
        font-size: 10px;
    }

    body[data-page="student-home"] .nav-tab svg { display: none; }
    body[data-page="student-home"] .student-meta { display: none; }

    body[data-page="student-home"] .hero-actions .btn {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 10px;
    }
}
@media (prefers-reduced-motion: reduce) {
    body[data-page="student-home"] *,
    body[data-page="student-home"] *::before,
    body[data-page="student-home"] *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/*
 * 2026-08 蓝白学习工作台
 * 在不改变页面结构、接口和事件的前提下，重新组织首页视觉层级。
 */
body[data-page="student-home"] {
    --student-ink: #15253d;
    --student-ink-deep: #0b1f3a;
    --student-primary: #155eef;
    --student-primary-dark: #0b4fd8;
    --student-primary-soft: #edf4ff;
    --student-sage: #6f8fb8;
    --student-gold: #e5a832;
    --student-gold-soft: #fff7e6;
    --student-coral: #db5b58;
    --student-coral-soft: #fff1f0;
    --student-blue: #2b6cb0;
    --student-blue-soft: #edf6ff;
    --student-violet: #6c5dd3;
    --student-violet-soft: #f3f0ff;
    --student-text: #22324a;
    --student-muted: #68778d;
    --student-border: #dce5f0;
    --student-bg: #f3f7fc;
    --student-surface: #ffffff;
    --student-shadow: 0 16px 40px rgba(24, 55, 95, 0.07), 0 2px 8px rgba(24, 55, 95, 0.035);
    color: var(--student-text);
    background:
        radial-gradient(circle at 0 0, rgba(21, 94, 239, 0.055), transparent 30rem),
        linear-gradient(180deg, #f7faff 0, var(--student-bg) 380px) !important;
    font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    font-size: 15px;
}

body[data-page="student-home"] .brand-mark {
    width: 44px;
    height: 44px;
    color: #fff;
    background: linear-gradient(145deg, #2473ff, #0b4fd8);
    border-radius: 13px;
    box-shadow: 0 9px 20px rgba(21, 94, 239, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    font-family: "Songti SC", "STSong", serif;
    font-size: 22px;
}

/* 登录页：深蓝品牌面与轻盈表单面 */
body[data-page="student-home"] #loginPage.login-stage {
    grid-template-columns: minmax(420px, 0.88fr) minmax(460px, 1.12fr);
    background: #f6f9fe;
}

body[data-page="student-home"] .login-story {
    padding: clamp(36px, 4.8vw, 76px) clamp(40px, 5.5vw, 88px);
    color: #fff;
    background:
        linear-gradient(145deg, rgba(16, 67, 171, 0.1), rgba(6, 31, 76, 0.32)),
        linear-gradient(145deg, #1261db 0%, #0b397f 56%, #071e43 100%);
}

body[data-page="student-home"] .login-story::before {
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(135deg, #000 5%, rgba(0, 0, 0, 0.2) 72%, transparent 92%);
}

body[data-page="student-home"] .login-story::after {
    right: -22%;
    bottom: -25%;
    width: min(46vw, 680px);
    height: min(46vw, 680px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 74px;
    box-shadow:
        0 0 0 64px rgba(255, 255, 255, 0.035),
        0 0 0 128px rgba(255, 255, 255, 0.018);
    transform: rotate(24deg);
}

body[data-page="student-home"] .login-story-glow {
    top: 18%;
    left: 45%;
    width: min(44vw, 620px);
    background: rgba(92, 169, 255, 0.3);
    filter: blur(110px);
}

body[data-page="student-home"] .brand-mark-light {
    color: #155eef;
    background: #fff;
    box-shadow: 0 10px 26px rgba(4, 25, 63, 0.22);
}

body[data-page="student-home"] .login-brand strong {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

body[data-page="student-home"] .login-brand small {
    color: rgba(255, 255, 255, 0.64);
    font-size: 10px;
}

body[data-page="student-home"] .login-message {
    max-width: 600px;
    margin: 9vh 0 auto;
}

body[data-page="student-home"] .login-eyebrow {
    color: #bcd7ff;
    font-size: 14px;
    font-weight: 650;
}

body[data-page="student-home"] .login-message h1 {
    max-width: 620px;
    margin: 25px 0 24px;
    color: #fff;
    font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
    font-size: clamp(48px, 5.2vw, 74px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: 0.025em;
}

body[data-page="student-home"] .login-message p {
    color: rgba(231, 241, 255, 0.78);
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 400;
    line-height: 1.85;
}

body[data-page="student-home"] .login-values {
    gap: 12px;
    margin-top: 54px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

body[data-page="student-home"] .login-values span {
    min-height: 38px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    backdrop-filter: blur(8px);
}

body[data-page="student-home"] .login-values i {
    color: #92c5ff;
    font-family: inherit;
    font-weight: 700;
}

body[data-page="student-home"] .login-panel {
    padding: clamp(30px, 5.5vw, 88px);
    background:
        radial-gradient(circle at 88% 12%, rgba(21, 94, 239, 0.09), transparent 22rem),
        linear-gradient(145deg, #fbfdff, #f2f6fc);
}

body[data-page="student-home"] .login-card {
    width: min(100%, 466px);
    padding: clamp(34px, 4vw, 50px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dce5f0;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(21, 50, 88, 0.13), 0 4px 16px rgba(21, 50, 88, 0.04);
    backdrop-filter: blur(18px);
}

body[data-page="student-home"] .login-card-heading {
    margin-bottom: 34px;
}

body[data-page="student-home"] .login-card-kicker {
    margin-bottom: 9px;
    color: var(--student-primary);
    font-size: 11px;
    letter-spacing: 0.18em;
}

body[data-page="student-home"] .login-card h2 {
    color: var(--student-ink-deep);
    font-size: clamp(30px, 2.6vw, 38px);
    font-weight: 700;
}

body[data-page="student-home"] .login-card-heading p {
    color: var(--student-muted);
    font-size: 15px;
}

body[data-page="student-home"] .login-card .form-item {
    margin-bottom: 22px;
}

body[data-page="student-home"] .login-card .form-item label {
    margin-bottom: 10px;
    color: #273b58;
    font-size: 14px;
    font-weight: 650;
}

body[data-page="student-home"] .input-shell {
    height: 58px;
    background: #f8faff;
    border: 1px solid #cfdbea;
    border-radius: 13px;
}

body[data-page="student-home"] .input-shell:focus-within {
    background: #fff;
    border-color: var(--student-primary);
    box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.11);
}

body[data-page="student-home"] .input-shell svg {
    color: #7890ae;
}

body[data-page="student-home"] .input-shell input {
    color: var(--student-ink);
    font-size: 16px;
}

body[data-page="student-home"] .input-shell input::placeholder {
    color: #94a3b8;
}

body[data-page="student-home"] .login-card .submit-btn {
    min-height: 58px;
    color: #fff !important;
    background: linear-gradient(135deg, #2473ff, #0b55df) !important;
    border-color: #155eef !important;
    border-radius: 13px !important;
    box-shadow: 0 14px 28px rgba(21, 94, 239, 0.24) !important;
    font-size: 16px;
}

body[data-page="student-home"] .login-card .submit-btn:hover {
    background: linear-gradient(135deg, #155eef, #0848c8) !important;
    box-shadow: 0 17px 34px rgba(21, 94, 239, 0.29) !important;
    transform: translateY(-1px);
}

body[data-page="student-home"] .login-help {
    color: #8c9bb0;
    font-size: 12px;
}

body[data-page="student-home"] .login-help span {
    background: #e0e7f0;
}

body[data-page="student-home"] .login-footer {
    color: #8493a8;
    font-size: 12px;
}

/* 顶栏 */
body[data-page="student-home"] .header {
    color: var(--student-text) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid #dfe7f1 !important;
    box-shadow: 0 5px 22px rgba(28, 57, 93, 0.045) !important;
    backdrop-filter: blur(18px) saturate(145%);
}

body[data-page="student-home"] .header-inner {
    max-width: 1720px;
    min-height: 76px;
    padding: 10px clamp(18px, 3vw, 48px);
}

body[data-page="student-home"] .app-brand {
    gap: 13px;
}

body[data-page="student-home"] .app-brand h1 {
    color: var(--student-ink-deep) !important;
    font-size: 19px;
    font-weight: 740;
}

body[data-page="student-home"] .app-brand > div > span {
    color: #8190a5;
    font-size: 11px;
}

body[data-page="student-home"] .header .user-info {
    gap: 11px;
}

body[data-page="student-home"] .student-avatar {
    width: 40px;
    height: 40px;
    color: var(--student-primary);
    background: var(--student-primary-soft);
    border-color: #cfe0ff;
    font-family: inherit;
    font-size: 15px;
}

body[data-page="student-home"] .student-meta strong {
    color: var(--student-ink);
    font-size: 14px;
}

body[data-page="student-home"] .student-meta span {
    color: #8190a5;
    font-size: 11px;
}

body[data-page="student-home"] .header .logout-btn {
    min-height: 40px;
    color: #53657e !important;
    background: #f8faff !important;
    border-color: #dce5f0 !important;
    border-radius: 11px !important;
    font-size: 13px;
}

body[data-page="student-home"] .header .logout-btn:hover {
    color: var(--student-primary) !important;
    background: var(--student-primary-soft) !important;
    border-color: #bfd4ff !important;
}

/* 桌面学习工作台：左侧导航 + 右侧内容 */
body[data-page="student-home"] .container {
    display: grid;
    grid-template-columns: 214px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    max-width: 1720px;
    padding: 26px clamp(18px, 3vw, 48px) clamp(50px, 6vw, 90px);
}

body[data-page="student-home"] .nav-tabs {
    position: sticky;
    top: 102px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    width: 100%;
    margin: 0;
    padding: 16px;
    overflow: visible;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--student-border) !important;
    border-radius: 19px;
    box-shadow: 0 14px 34px rgba(24, 55, 95, 0.06);
}

body[data-page="student-home"] .nav-tabs::before {
    content: "学习中心";
    display: block;
    padding: 2px 10px 10px;
    color: #8a99ad;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.12em;
}

body[data-page="student-home"] .nav-tabs::after {
    content: "专注当下，稳步向前";
    display: block;
    margin-top: 9px;
    padding: 15px 14px;
    color: #6c7f99;
    background: linear-gradient(145deg, #f2f7ff, #eaf2ff);
    border: 1px solid #d8e6ff;
    border-radius: 13px;
    font-size: 12px;
    line-height: 1.65;
    text-align: center;
}

body[data-page="student-home"] .nav-tab {
    justify-content: flex-start;
    gap: 11px;
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    color: #52647c;
    border-radius: 12px !important;
    font-size: 15px;
    font-weight: 600;
}

body[data-page="student-home"] .nav-tab svg {
    width: 19px;
    height: 19px;
}

body[data-page="student-home"] .nav-tab:hover {
    color: var(--student-primary);
    background: #f3f7ff !important;
}

body[data-page="student-home"] .nav-tab.active {
    color: var(--student-primary) !important;
    background: var(--student-primary-soft) !important;
    box-shadow: inset 3px 0 0 var(--student-primary), 0 5px 14px rgba(21, 94, 239, 0.08);
}

body[data-page="student-home"] .content-section {
    grid-column: 2;
    min-width: 0;
}

body[data-page="student-home"] #home.active {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(340px, 0.58fr);
    align-items: stretch;
    gap: 22px;
}

/* 欢迎区与概览并列 */
body[data-page="student-home"] .learning-hero {
    grid-column: 1;
    min-height: 330px;
    margin: 0;
    padding: clamp(34px, 4vw, 58px);
    background:
        linear-gradient(120deg, rgba(17, 101, 232, 0.2), rgba(3, 31, 76, 0.16)),
        linear-gradient(135deg, #1467dc 0%, #0b4ba9 54%, #082f6c 100%);
    border: 1px solid rgba(15, 78, 169, 0.7);
    border-radius: 22px;
    box-shadow: 0 22px 48px rgba(11, 68, 151, 0.18);
}

body[data-page="student-home"] .learning-hero::before {
    top: -40%;
    right: -5%;
    width: 430px;
    background: radial-gradient(circle, rgba(116, 183, 255, 0.38), transparent 67%);
}

body[data-page="student-home"] .learning-eyebrow {
    margin-bottom: 17px;
    color: #c6dcff;
    font-size: 11px;
    font-weight: 700;
}

body[data-page="student-home"] .learning-hero h2 {
    max-width: 680px;
    margin-bottom: 15px;
    color: #fff;
    font-size: clamp(32px, 3vw, 44px);
    font-weight: 720;
    line-height: 1.28;
}

body[data-page="student-home"] .learning-hero h2 > span {
    color: #d5e6ff;
}

body[data-page="student-home"] .learning-hero p {
    color: rgba(235, 243, 255, 0.78);
    font-size: 15px;
    line-height: 1.8;
}

body[data-page="student-home"] .hero-actions {
    align-self: flex-end;
    gap: 11px;
}

body[data-page="student-home"] .hero-actions .btn {
    min-height: 48px;
    padding: 0 19px;
    border-radius: 12px !important;
    font-size: 14px;
}

body[data-page="student-home"] .hero-actions .btn-primary {
    color: #0c3f8f !important;
    background: #fff !important;
    border-color: #fff !important;
    box-shadow: 0 12px 26px rgba(4, 27, 66, 0.2) !important;
}

body[data-page="student-home"] .hero-actions .btn-primary:hover {
    background: #edf4ff !important;
}

body[data-page="student-home"] .hero-actions .btn-outline {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 255, 255, 0.34) !important;
}

body[data-page="student-home"] .hero-orbit {
    right: -105px;
    bottom: -208px;
    width: 430px;
    height: 430px;
    border-color: rgba(255, 255, 255, 0.18);
    border-radius: 74px;
    transform: rotate(28deg);
}

body[data-page="student-home"] .hero-orbit::before,
body[data-page="student-home"] .hero-orbit::after {
    border-color: rgba(255, 255, 255, 0.11);
    border-radius: 58px;
}

body[data-page="student-home"] .hero-orbit i {
    background: #9bc5ff;
}

body[data-page="student-home"] .section-panel {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--student-border);
    border-radius: 20px;
    box-shadow: var(--student-shadow);
}

body[data-page="student-home"] .panel-title-row h3 {
    color: var(--student-ink-deep);
    font-size: 21px;
    font-weight: 720;
}

body[data-page="student-home"] .section-kicker {
    color: var(--student-primary);
    font-size: 10px;
    font-weight: 760;
}

body[data-page="student-home"] .section-caption {
    color: #8291a6;
    font-size: 12px;
}

body[data-page="student-home"] .overview-panel {
    grid-column: 2;
    margin: 0;
    padding: 25px;
    border-top: 3px solid var(--student-primary);
}

body[data-page="student-home"] .overview-panel .panel-title-row {
    align-items: flex-start;
}

body[data-page="student-home"] .overview-panel .section-caption {
    max-width: 92px;
    line-height: 1.6;
    text-align: right;
}

body[data-page="student-home"] .learning-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 20px;
}

body[data-page="student-home"] .summary-tile {
    min-height: 112px;
    padding: 17px;
    background: linear-gradient(145deg, #fbfdff, #f3f7fd);
    border: 1px solid #e0e8f2;
    border-radius: 14px;
    box-shadow: none;
}

body[data-page="student-home"] .summary-tile::before {
    top: 15px;
    right: 15px;
    width: 6px;
    height: 6px;
    background: var(--student-primary);
    box-shadow: 0 0 0 5px var(--student-primary-soft);
}

body[data-page="student-home"] .summary-tile:nth-child(2)::before {
    background: #2b6cb0;
    box-shadow: 0 0 0 5px #edf6ff;
}

body[data-page="student-home"] .summary-tile:nth-child(3)::before {
    background: #e5a832;
    box-shadow: 0 0 0 5px #fff7e6;
}

body[data-page="student-home"] .summary-tile:nth-child(4)::before {
    background: #6c5dd3;
    box-shadow: 0 0 0 5px #f3f0ff;
}

body[data-page="student-home"] .summary-label {
    color: #6e7e93;
    font-size: 12px;
}

body[data-page="student-home"] .summary-value {
    margin: 8px 0 5px;
    color: var(--student-ink-deep);
    font-size: 30px;
    font-weight: 740;
}

body[data-page="student-home"] .summary-value span {
    color: #7789a1;
    font-size: 11px;
}

body[data-page="student-home"] .summary-detail {
    color: #8795a8;
    font-size: 11px;
}

/* 公告与建议 */
body[data-page="student-home"] .insight-grid {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.38fr) minmax(330px, 0.62fr);
    gap: 22px;
    margin: 0;
}

body[data-page="student-home"] .news-panel,
body[data-page="student-home"] .focus-panel {
    min-height: 330px;
    padding: 25px;
    border-top: 3px solid #7daeea;
}

body[data-page="student-home"] .focus-panel {
    border-top-color: #e2ad43;
    background: linear-gradient(155deg, #fff 0%, #fffcf5 100%);
}

body[data-page="student-home"] .section-icon {
    width: 44px;
    height: 44px;
    color: var(--student-primary);
    background: var(--student-primary-soft);
    border-radius: 12px;
}

body[data-page="student-home"] .focus-icon {
    color: #a66c00;
    background: #fff5dc;
}

body[data-page="student-home"] .news-count,
body[data-page="student-home"] .focus-badge {
    padding: 5px 10px;
    color: var(--student-primary);
    background: var(--student-primary-soft);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
}

body[data-page="student-home"] .focus-badge {
    color: #9b6808;
    background: #fff5db;
}

body[data-page="student-home"] .news-list {
    margin-top: 17px;
}

body[data-page="student-home"] .news-item {
    border-top-color: #e5ebf3;
}

body[data-page="student-home"] .news-item summary {
    min-height: 50px;
    color: var(--student-text);
    font-size: 13px;
}

body[data-page="student-home"] .news-item summary strong {
    font-size: 14px;
}

body[data-page="student-home"] .news-item summary time {
    color: #8c9aab;
    font-size: 11px;
}

body[data-page="student-home"] .news-source {
    color: #526aa0;
    background: #eef3ff;
}

body[data-page="student-home"] .news-source.source-teacher {
    color: #087b6b;
    background: #e9f8f5;
}

body[data-page="student-home"] .news-pinned {
    color: #c34542;
    background: #fff0ef;
}

body[data-page="student-home"] .news-content {
    color: #5e7088;
    font-size: 13px;
    line-height: 1.75;
}

body[data-page="student-home"] .focus-list {
    gap: 10px;
    margin-top: 17px;
}

body[data-page="student-home"] .focus-item {
    min-height: 70px;
    padding: 12px;
    background: #fff;
    border-color: #e4e8ef;
    border-radius: 13px;
}

body[data-page="student-home"] .focus-rank {
    color: #a26b00;
    background: #fff3d7;
}

body[data-page="student-home"] .focus-main strong {
    color: #243650;
    font-size: 13px;
}

body[data-page="student-home"] .focus-main span {
    color: #8290a3;
    font-size: 11px;
}

/* 三科学习地图：大屏三栏对比 */
body[data-page="student-home"] .subjects-title {
    grid-column: 1 / -1;
    margin: 12px 2px -3px;
}

body[data-page="student-home"] .subject-dashboard {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
}

body[data-page="student-home"] .dashboard-subject {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--student-border);
    border-top: 4px solid var(--student-primary);
    border-radius: 19px;
    box-shadow: var(--student-shadow);
}

body[data-page="student-home"] .dashboard-subject.subject-math {
    border-top-color: #155eef;
}

body[data-page="student-home"] .dashboard-subject.subject-chinese {
    border-top-color: #d85b57;
}

body[data-page="student-home"] .dashboard-subject.subject-english {
    border-top-color: #6b5bc8;
}

body[data-page="student-home"] .subject-overview-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
    background: linear-gradient(145deg, #f4f8ff, #fff 70%);
    border-bottom-color: var(--student-border);
}

body[data-page="student-home"] .subject-chinese .subject-overview-row {
    background: linear-gradient(145deg, #fff4f3, #fff 70%);
}

body[data-page="student-home"] .subject-english .subject-overview-row {
    background: linear-gradient(145deg, #f5f2ff, #fff 70%);
}

body[data-page="student-home"] .subject-identity {
    gap: 13px;
}

body[data-page="student-home"] .subject-mark {
    width: 48px;
    height: 48px;
    color: #155eef;
    background: #fff;
    border-color: #cfe0ff;
    border-radius: 13px;
    box-shadow: 0 8px 18px rgba(21, 94, 239, 0.1);
    font-size: 20px;
}

body[data-page="student-home"] .subject-chinese .subject-mark {
    color: #c74643;
    border-color: #f0d3d1;
}

body[data-page="student-home"] .subject-english .subject-mark {
    color: #5c4dbc;
    border-color: #ddd7f7;
}

body[data-page="student-home"] .subject-name {
    color: var(--student-ink-deep);
    font-size: 20px;
    font-weight: 720;
}

body[data-page="student-home"] .subject-count {
    color: #74849a;
    font-size: 12px;
}

body[data-page="student-home"] .subject-score-block strong {
    color: var(--student-ink-deep);
    font-size: 30px;
}

body[data-page="student-home"] .subject-score-block span {
    color: #75849a;
    font-size: 11px;
}

body[data-page="student-home"] .subject-progress,
body[data-page="student-home"] .mastery-track {
    height: 6px;
    background: #e9eef5;
}

body[data-page="student-home"] .subject-progress span,
body[data-page="student-home"] .mastery-track span {
    background: var(--student-primary);
}

body[data-page="student-home"] .subject-chinese .subject-progress span {
    background: #d85b57;
}

body[data-page="student-home"] .subject-english .subject-progress span {
    background: #6b5bc8;
}

body[data-page="student-home"] .subject-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body[data-page="student-home"] .btn {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px !important;
    font-size: 13px;
    font-weight: 650;
}

body[data-page="student-home"] .btn-primary {
    color: #fff !important;
    background: var(--student-primary) !important;
    border-color: var(--student-primary) !important;
    box-shadow: 0 6px 14px rgba(21, 94, 239, 0.14);
}

body[data-page="student-home"] .btn-primary:hover {
    background: var(--student-primary-dark) !important;
}

body[data-page="student-home"] .btn-outline {
    color: #334964 !important;
    background: #fff !important;
    border-color: #cfdbea !important;
}

body[data-page="student-home"] .btn-outline:hover {
    color: var(--student-primary) !important;
    background: #f5f8ff !important;
    border-color: #abc7fb !important;
}

body[data-page="student-home"] .grade-section {
    padding: 20px;
    border-bottom-color: var(--student-border);
}

body[data-page="student-home"] .grade-heading {
    margin-bottom: 13px;
}

body[data-page="student-home"] .grade-heading span {
    color: #647791;
    background: #eef3f8;
    border-radius: 6px;
    font-size: 10px;
}

body[data-page="student-home"] .grade-heading strong {
    color: #243650;
    font-size: 14px;
}

body[data-page="student-home"] .grade-heading a {
    color: var(--student-primary);
    font-size: 12px;
}

body[data-page="student-home"] .type-grid {
    grid-template-columns: 1fr;
    gap: 11px;
}

body[data-page="student-home"] .type-card {
    padding: 16px;
    background: #f8faff;
    border-color: #e0e8f2;
    border-radius: 14px;
}

body[data-page="student-home"] .type-card:hover {
    background: #fff;
    border-color: #bcd0ee;
    box-shadow: 0 12px 26px rgba(31, 68, 113, 0.075);
}

body[data-page="student-home"] .type-card h4 {
    color: #243650;
    font-size: 14px;
    font-weight: 680;
}

body[data-page="student-home"] .type-score strong {
    font-size: 25px;
}

body[data-page="student-home"] .mastery-status.not-started,
body[data-page="student-home"] .type-score.not-started {
    color: #8896a8;
}

body[data-page="student-home"] .mastery-status.focus,
body[data-page="student-home"] .type-score.focus {
    color: #d14c47;
}

body[data-page="student-home"] .mastery-status.steady,
body[data-page="student-home"] .type-score.steady {
    color: #b47705;
}

body[data-page="student-home"] .mastery-status.strong,
body[data-page="student-home"] .type-score.strong {
    color: #087b6b;
}

body[data-page="student-home"] .mastery-track span.not-started { background: #a8b3c2; }
body[data-page="student-home"] .mastery-track span.focus { background: #db5b58; }
body[data-page="student-home"] .mastery-track span.steady { background: #e5a832; }
body[data-page="student-home"] .mastery-track span.strong { background: #138a78; }

body[data-page="student-home"] .type-metrics {
    color: #7c8ba0;
    font-size: 11px;
}

body[data-page="student-home"] .type-metrics strong {
    color: #344b68;
}

body[data-page="student-home"] .type-actions .btn {
    min-height: 38px;
    font-size: 11px;
}

body[data-page="student-home"] .type-empty,
body[data-page="student-home"] .dashboard-empty,
body[data-page="student-home"] .dashboard-loading {
    color: #718197;
    background: #f7faff;
    border-color: #cbd9e9;
    font-size: 13px;
}

/* 练习、词库、历史记录与弹窗 */
body[data-page="student-home"] #practice,
body[data-page="student-home"] #library,
body[data-page="student-home"] #history {
    min-height: 520px;
    padding: clamp(24px, 3vw, 38px);
    background: #fff;
    border-color: var(--student-border);
    border-radius: 20px;
    box-shadow: var(--student-shadow);
}

body[data-page="student-home"] #practice > h3,
body[data-page="student-home"] #library > h3,
body[data-page="student-home"] #history > h3 {
    color: var(--student-ink-deep) !important;
    font-size: 24px;
}

body[data-page="student-home"] .subject-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 16px;
}

body[data-page="student-home"] .subject-card {
    padding: 22px;
    background: #f8faff !important;
    border-color: #dce5f0 !important;
    border-radius: 15px !important;
}

body[data-page="student-home"] .subject-card:hover {
    background: #fff !important;
    border-color: #b8cff3 !important;
    box-shadow: 0 14px 30px rgba(25, 61, 105, 0.08) !important;
}

body[data-page="student-home"] .subject-card .name {
    color: var(--student-ink-deep);
    font-size: 19px;
}

body[data-page="student-home"] .subject-card .stat .value {
    color: var(--student-primary);
}

body[data-page="student-home"] .subject-card .action-btn {
    min-height: 42px;
    background: var(--student-primary) !important;
    border-radius: 10px !important;
    font-size: 14px;
}

body[data-page="student-home"] .table-container {
    background: #fff;
    border-color: var(--student-border);
    border-radius: 14px;
    box-shadow: none;
}

body[data-page="student-home"] th {
    color: #354a66;
    background: #f5f8fc;
    font-size: 13px;
}

body[data-page="student-home"] td {
    color: #52647c;
    font-size: 13px;
}

body[data-page="student-home"] #keywordSearch {
    min-height: 42px;
    padding: 0 14px !important;
    border-color: #cfdbea !important;
    border-radius: 10px !important;
    font-size: 14px;
}

body[data-page="student-home"] .modal-overlay {
    background: rgba(7, 25, 53, 0.55) !important;
    backdrop-filter: blur(8px);
}

body[data-page="student-home"] .modal {
    background: #fff;
    border-color: #dce5f0 !important;
    border-radius: 20px !important;
    box-shadow: 0 32px 90px rgba(4, 25, 58, 0.28) !important;
}

body[data-page="student-home"] .modal-header h3 {
    color: var(--student-ink-deep);
    font-size: 22px;
}

/* 中型桌面：保留左侧导航，学习卡片改为双栏 */
@media (max-width: 1280px) {
    body[data-page="student-home"] .container {
        grid-template-columns: 196px minmax(0, 1fr);
        gap: 20px;
    }

    body[data-page="student-home"] #home.active {
        grid-template-columns: 1fr;
    }

    body[data-page="student-home"] .learning-hero,
    body[data-page="student-home"] .overview-panel {
        grid-column: 1;
    }

    body[data-page="student-home"] .learning-hero {
        min-height: 280px;
    }

    body[data-page="student-home"] .learning-summary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body[data-page="student-home"] .summary-tile {
        min-height: 112px;
    }

    body[data-page="student-home"] .subject-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 平板：导航移到内容上方 */
@media (max-width: 920px) {
    body[data-page="student-home"] #loginPage.login-stage {
        display: block;
        background: #f2f6fc;
    }

    body[data-page="student-home"] .login-story {
        min-height: 410px;
        padding: 30px 30px 118px;
    }

    body[data-page="student-home"] .login-message {
        margin-top: 58px;
    }

    body[data-page="student-home"] .login-panel {
        margin-top: -78px;
        padding: 0 22px 32px;
        background: transparent;
    }

    body[data-page="student-home"] .container {
        display: block;
        padding-top: 18px;
    }

    body[data-page="student-home"] .nav-tabs {
        position: static;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
        width: 100%;
        margin: 0 0 18px;
        padding: 6px;
        border-radius: 15px;
    }

    body[data-page="student-home"] .nav-tabs::before,
    body[data-page="student-home"] .nav-tabs::after {
        display: none;
    }

    body[data-page="student-home"] .nav-tab {
        justify-content: center;
        min-width: 0;
        min-height: 45px;
        padding: 0 10px;
        font-size: 13px;
    }

    body[data-page="student-home"] .nav-tab.active {
        color: #fff !important;
        background: var(--student-primary) !important;
        box-shadow: 0 7px 16px rgba(21, 94, 239, 0.19);
    }

    body[data-page="student-home"] .content-section {
        min-width: 0;
    }

    body[data-page="student-home"] .insight-grid {
        grid-template-columns: 1fr;
    }

    body[data-page="student-home"] .focus-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body[data-page="student-home"] .focus-item {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    body[data-page="student-home"] .focus-item .btn {
        grid-column: 2 / -1;
    }
}

/* 手机：信息完整、字号清晰、单栏阅读 */
@media (max-width: 720px) {
    body[data-page="student-home"] {
        font-size: 14px;
    }

    body[data-page="student-home"] .header-inner {
        min-height: 66px;
        padding: 9px 14px;
    }

    body[data-page="student-home"] .app-brand .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 11px;
        font-size: 20px;
    }

    body[data-page="student-home"] .app-brand h1 {
        font-size: 17px;
    }

    body[data-page="student-home"] .student-avatar {
        width: 36px;
        height: 36px;
    }

    body[data-page="student-home"] .container {
        padding: 12px 14px 46px;
    }

    body[data-page="student-home"] .nav-tabs {
        margin-bottom: 14px;
        padding: 5px;
        border-radius: 13px;
    }

    body[data-page="student-home"] .nav-tab {
        min-height: 42px;
        gap: 6px;
        padding: 0 6px;
        font-size: 12px;
    }

    body[data-page="student-home"] .nav-tab svg {
        width: 16px;
        height: 16px;
    }

    body[data-page="student-home"] #home.active {
        gap: 14px;
    }

    body[data-page="student-home"] .learning-hero {
        min-height: 0;
        gap: 28px;
        padding: 28px 22px;
        border-radius: 18px;
    }

    body[data-page="student-home"] .learning-hero h2 {
        font-size: clamp(27px, 7.4vw, 34px);
    }

    body[data-page="student-home"] .learning-hero p {
        font-size: 14px;
    }

    body[data-page="student-home"] .hero-actions .btn {
        min-height: 46px;
        font-size: 13px;
    }

    body[data-page="student-home"] .overview-panel,
    body[data-page="student-home"] .news-panel,
    body[data-page="student-home"] .focus-panel {
        padding: 20px;
        border-radius: 17px;
    }

    body[data-page="student-home"] .overview-panel .section-caption {
        display: none;
    }

    body[data-page="student-home"] .learning-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    body[data-page="student-home"] .summary-tile {
        min-height: 116px;
        padding: 15px;
    }

    body[data-page="student-home"] .summary-label {
        font-size: 11px;
    }

    body[data-page="student-home"] .summary-value {
        font-size: 28px;
    }

    body[data-page="student-home"] .insight-grid {
        gap: 14px;
    }

    body[data-page="student-home"] .news-panel,
    body[data-page="student-home"] .focus-panel {
        min-height: 0;
    }

    body[data-page="student-home"] .focus-list {
        grid-template-columns: 1fr;
    }

    body[data-page="student-home"] .focus-item {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
    }

    body[data-page="student-home"] .focus-item .btn {
        grid-column: auto;
    }

    body[data-page="student-home"] .subjects-title {
        margin-top: 12px;
    }

    body[data-page="student-home"] .subject-dashboard {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    body[data-page="student-home"] .dashboard-subject {
        border-radius: 17px;
    }

    body[data-page="student-home"] .subject-overview-row {
        padding: 19px;
    }

    body[data-page="student-home"] .grade-section {
        padding: 18px;
    }

    body[data-page="student-home"] .type-grid {
        grid-template-columns: 1fr;
    }

    body[data-page="student-home"] #practice,
    body[data-page="student-home"] #library,
    body[data-page="student-home"] #history {
        min-height: 430px;
        padding: 20px;
        border-radius: 17px;
    }
}

@media (max-width: 480px) {
    body[data-page="student-home"] .login-story {
        min-height: 350px;
        padding: 24px 20px 98px;
    }

    body[data-page="student-home"] .login-message {
        margin-top: 43px;
    }

    body[data-page="student-home"] .login-message h1 {
        margin: 17px 0 14px;
        font-size: 35px;
    }

    body[data-page="student-home"] .login-message p {
        font-size: 13px;
        line-height: 1.7;
    }

    body[data-page="student-home"] .login-panel {
        margin-top: -65px;
        padding: 0 12px 24px;
    }

    body[data-page="student-home"] .login-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    body[data-page="student-home"] .login-card h2 {
        font-size: 29px;
    }

    body[data-page="student-home"] .login-card-heading p {
        font-size: 14px;
    }

    body[data-page="student-home"] .input-shell,
    body[data-page="student-home"] .login-card .submit-btn {
        min-height: 54px;
        height: 54px;
    }

    body[data-page="student-home"] .app-brand > div {
        display: flex;
    }

    body[data-page="student-home"] .app-brand > div > span {
        display: none;
    }

    body[data-page="student-home"] .student-meta {
        display: none;
    }

    body[data-page="student-home"] .header .logout-btn {
        padding: 0 9px;
    }

    body[data-page="student-home"] .header .logout-btn > span {
        display: none;
    }

    body[data-page="student-home"] .container {
        padding-right: 10px;
        padding-left: 10px;
    }

    body[data-page="student-home"] .nav-tab {
        gap: 4px;
        padding: 0 4px;
        font-size: 11px;
    }

    body[data-page="student-home"] .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-page="student-home"] .hero-actions .btn {
        width: 100%;
        padding: 0 8px;
        font-size: 12px;
    }

    body[data-page="student-home"] .panel-title-row h3 {
        font-size: 19px;
    }

    body[data-page="student-home"] .focus-item {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    body[data-page="student-home"] .focus-item .btn {
        grid-column: 2 / -1;
    }

    body[data-page="student-home"] .subject-actions .btn {
        padding: 0 8px;
        font-size: 12px;
    }

    body[data-page="student-home"] .type-actions .btn {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    body[data-page="student-home"] .app-brand h1 {
        font-size: 15px;
    }

    body[data-page="student-home"] .nav-tab svg {
        display: none;
    }

    body[data-page="student-home"] .nav-tab {
        font-size: 11px;
    }

    body[data-page="student-home"] .learning-hero {
        padding: 25px 18px;
    }

    body[data-page="student-home"] .learning-summary {
        gap: 7px;
    }

    body[data-page="student-home"] .summary-tile {
        min-height: 112px;
        padding: 13px;
    }
}


/*
 * 2026-08-03 学科控制台 V4
 * 首屏以学科入口、知识点统计和练习为核心，不使用宣传型大色块。
 */
body[data-page="student-home"] {
    --console-navy: #10233f;
    --console-blue: #1f63d7;
    --console-blue-dark: #184fae;
    --console-soft: #eef4fc;
    --console-line: #dce5f0;
    --console-muted: #64748b;
    --console-bg: #f3f6fa;
    --console-card: #ffffff;
    background: var(--console-bg) !important;
    color: #263750;
    font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

body[data-page="student-home"] .header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid #e1e7ef !important;
    box-shadow: 0 3px 16px rgba(19, 43, 75, 0.035) !important;
}

body[data-page="student-home"] .header-inner {
    max-width: 1520px;
    min-height: 72px;
    padding-right: clamp(18px, 3vw, 42px);
    padding-left: clamp(18px, 3vw, 42px);
}

body[data-page="student-home"] .brand-mark {
    width: 42px;
    height: 42px;
    background: var(--console-navy);
    border-radius: 11px;
    box-shadow: 0 7px 16px rgba(16, 35, 63, 0.17);
}

body[data-page="student-home"] .app-brand h1 {
    font-size: 18px;
}

body[data-page="student-home"] .student-avatar {
    color: #235fb8;
    background: #edf4ff;
    border-color: #d5e3f7;
}

/* 页面主框架恢复为通栏内容，导航不再占用左侧空间。 */
body[data-page="student-home"] .container {
    display: block;
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
    padding: 18px clamp(18px, 3vw, 42px) clamp(56px, 6vw, 88px);
}

body[data-page="student-home"] .nav-tabs {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin: 0 0 28px;
    padding: 5px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--console-line) !important;
    border-radius: 14px;
    box-shadow: 0 7px 22px rgba(20, 47, 82, 0.04);
}

body[data-page="student-home"] .nav-tabs::before,
body[data-page="student-home"] .nav-tabs::after {
    display: none;
    content: none;
}

body[data-page="student-home"] .nav-tab {
    flex: 0 0 auto;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-height: 43px;
    padding: 0 20px;
    color: #586981;
    border-radius: 10px !important;
    font-size: 14px;
    font-weight: 620;
}

body[data-page="student-home"] .nav-tab:hover {
    color: var(--console-blue);
    background: #f3f7fc !important;
}

body[data-page="student-home"] .nav-tab.active {
    color: #fff !important;
    background: var(--console-navy) !important;
    box-shadow: 0 6px 15px rgba(16, 35, 63, 0.16);
}

body[data-page="student-home"] .content-section {
    min-width: 0;
}

body[data-page="student-home"] #home.active {
    display: block;
}

/* 普通页面标题，不使用大幅宣传区。 */
body[data-page="student-home"] .workspace-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
    padding: 0 2px;
}

body[data-page="student-home"] .workspace-path {
    margin-bottom: 8px;
    color: var(--console-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

body[data-page="student-home"] .workspace-heading h2 {
    margin: 0;
    color: var(--console-navy);
    font-size: clamp(29px, 2.6vw, 38px);
    font-weight: 740;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

body[data-page="student-home"] .workspace-heading p {
    margin: 10px 0 0;
    color: var(--console-muted);
    font-size: 15px;
    line-height: 1.7;
}

body[data-page="student-home"] .workspace-heading-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
}

body[data-page="student-home"] .current-student {
    display: flex;
    flex-direction: column;
    min-width: 112px;
    margin-right: 5px;
    padding-right: 16px;
    border-right: 1px solid var(--console-line);
}

body[data-page="student-home"] .current-student span {
    color: #8694a7;
    font-size: 11px;
}

body[data-page="student-home"] .current-student strong {
    max-width: 120px;
    overflow: hidden;
    color: var(--console-navy);
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-page="student-home"] .workspace-heading-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 17px;
    font-size: 13px;
    text-decoration: none;
}

body[data-page="student-home"] .btn-primary {
    background: var(--console-blue) !important;
    border-color: var(--console-blue) !important;
    box-shadow: none;
}

body[data-page="student-home"] .btn-primary:hover {
    background: var(--console-blue-dark) !important;
}

body[data-page="student-home"] .btn-outline {
    color: #314660 !important;
    background: #fff !important;
    border-color: #cfd9e6 !important;
}

body[data-page="student-home"] .btn-outline:hover {
    color: var(--console-blue) !important;
    background: #f7faff !important;
    border-color: #a9c2e8 !important;
}

body[data-page="student-home"] .panel-title-row h3 {
    color: var(--console-navy);
    font-size: 23px;
    font-weight: 720;
}

body[data-page="student-home"] .section-kicker {
    margin-bottom: 6px;
    color: #6480a5;
    font-size: 10px;
    font-weight: 720;
    letter-spacing: 0.16em;
}

body[data-page="student-home"] .section-caption {
    color: #7b899c;
    font-size: 12px;
}

/* 首要功能：三科学习入口。 */
body[data-page="student-home"] .subject-entry-section {
    margin-bottom: 42px;
}

body[data-page="student-home"] .subject-entry-section .subjects-title {
    margin: 0 2px 17px;
}

body[data-page="student-home"] .subject-gateway {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

body[data-page="student-home"] .subject-gateway > .dashboard-loading,
body[data-page="student-home"] .subject-gateway > .dashboard-empty {
    grid-column: 1 / -1;
}

body[data-page="student-home"] .subject-gateway-card {
    --subject-accent: #1f63d7;
    --subject-soft: #edf4ff;
    position: relative;
    min-width: 0;
    padding: 24px;
    overflow: hidden;
    background: var(--console-card);
    border: 1px solid #dbe3ed;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(24, 48, 80, 0.065);
}

body[data-page="student-home"] .subject-gateway-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--subject-accent);
}

body[data-page="student-home"] .subject-gateway-card.subject-chinese {
    --subject-accent: #ca554f;
    --subject-soft: #fff2f1;
}

body[data-page="student-home"] .subject-gateway-card.subject-math {
    --subject-accent: #1f63d7;
    --subject-soft: #edf4ff;
}

body[data-page="student-home"] .subject-gateway-card.subject-english {
    --subject-accent: #6756bb;
    --subject-soft: #f3f0ff;
}

body[data-page="student-home"] .gateway-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

body[data-page="student-home"] .subject-gateway-card .subject-mark {
    width: 48px;
    height: 48px;
    color: var(--subject-accent);
    background: var(--subject-soft);
    border: 0;
    border-radius: 13px;
    box-shadow: none;
}

body[data-page="student-home"] .subject-gateway-card .subject-name {
    color: var(--console-navy);
    font-size: 20px;
    font-weight: 720;
}

body[data-page="student-home"] .subject-gateway-card .subject-count {
    margin-top: 3px;
    color: #8190a3;
    font-size: 11px;
}

body[data-page="student-home"] .gateway-status {
    flex: 0 0 auto;
    padding: 5px 9px;
    color: #69798e;
    background: #f0f3f7;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
}

body[data-page="student-home"] .gateway-status.strong {
    color: #08786a;
    background: #e9f7f4;
}

body[data-page="student-home"] .gateway-status.steady {
    color: #a26700;
    background: #fff5dd;
}

body[data-page="student-home"] .gateway-status.focus {
    color: #bd4641;
    background: #fff0ef;
}

body[data-page="student-home"] .gateway-card-data {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 21px;
    margin-top: 25px;
}

body[data-page="student-home"] .score-ring {
    position: relative;
    display: grid;
    width: 106px;
    height: 106px;
    place-items: center;
    background: conic-gradient(var(--subject-accent) calc(var(--score) * 1%), #e9eef4 0);
    border-radius: 50%;
}

body[data-page="student-home"] .score-ring::before {
    content: "";
    position: absolute;
    inset: 8px;
    background: #fff;
    border-radius: 50%;
}

body[data-page="student-home"] .score-ring > div {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
}

body[data-page="student-home"] .score-ring strong {
    color: var(--console-navy);
    font-family: Inter, "Segoe UI", sans-serif;
    font-size: 29px;
    font-weight: 730;
    line-height: 1.1;
}

body[data-page="student-home"] .score-ring span {
    margin-top: 3px;
    color: #7b899b;
    font-size: 10px;
}

body[data-page="student-home"] .gateway-metrics {
    display: grid;
    gap: 10px;
}

body[data-page="student-home"] .gateway-metrics > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf1f5;
}

body[data-page="student-home"] .gateway-metrics > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

body[data-page="student-home"] .gateway-metrics span {
    color: #69798e;
    font-size: 12px;
}

body[data-page="student-home"] .gateway-metrics strong {
    color: var(--console-navy);
    font-size: 18px;
    font-weight: 720;
}

body[data-page="student-home"] .gateway-metrics small {
    color: #8090a4;
    font-size: 10px;
    font-weight: 500;
}

body[data-page="student-home"] .gateway-analysis {
    min-height: 74px;
    margin-top: 20px;
    padding: 13px 14px;
    background: #f7f9fc;
    border: 1px solid #e8edf3;
    border-radius: 11px;
}

body[data-page="student-home"] .gateway-analysis > span {
    display: block;
    margin-bottom: 4px;
    color: var(--subject-accent);
    font-size: 10px;
    font-weight: 700;
}

body[data-page="student-home"] .gateway-analysis p {
    margin: 0;
    color: #53657c;
    font-size: 12px;
    line-height: 1.65;
}

body[data-page="student-home"] .gateway-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 17px;
}

body[data-page="student-home"] .gateway-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 0 10px;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
}

/* 动态分析区。 */
body[data-page="student-home"] .analysis-section {
    margin-bottom: 43px;
}

body[data-page="student-home"] .analysis-title {
    margin: 0 2px 17px;
}

body[data-page="student-home"] .analysis-title .section-caption {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

body[data-page="student-home"] .analysis-title .section-caption i {
    width: 7px;
    height: 7px;
    background: #1c9a73;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(28, 154, 115, 0.12);
}

body[data-page="student-home"] .analysis-grid,
body[data-page="student-home"] .insight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(350px, 0.65fr);
    align-items: start;
    gap: 18px;
    margin: 0;
}

body[data-page="student-home"] .section-panel {
    background: #fff;
    border: 1px solid var(--console-line);
    border-radius: 18px;
    box-shadow: 0 13px 32px rgba(24, 48, 80, 0.055);
}

body[data-page="student-home"] .overview-panel,
body[data-page="student-home"] .focus-panel {
    grid-column: auto;
    min-height: 0;
    margin: 0;
    padding: 24px;
    border-top: 1px solid var(--console-line);
}

body[data-page="student-home"] .learning-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 19px;
}

body[data-page="student-home"] .summary-tile {
    min-height: 108px;
    padding: 15px;
    background: #f7f9fc;
    border: 1px solid #e5ebf2;
    border-radius: 12px;
}

body[data-page="student-home"] .summary-tile::before {
    top: 14px;
    right: 14px;
    width: 5px;
    height: 5px;
    background: #557cae;
    box-shadow: 0 0 0 4px #eaf1f9;
}

body[data-page="student-home"] .summary-label {
    color: #6f7f93;
    font-size: 11px;
}

body[data-page="student-home"] .summary-value {
    margin: 8px 0 4px;
    color: var(--console-navy);
    font-size: 27px;
}

body[data-page="student-home"] .summary-detail {
    overflow: hidden;
    color: #8a97a8;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-page="student-home"] .subject-comparison {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e6ebf2;
}

body[data-page="student-home"] .comparison-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

body[data-page="student-home"] .comparison-heading strong {
    flex: 0 0 auto;
    color: var(--console-navy);
    font-size: 14px;
}

body[data-page="student-home"] .comparison-heading span {
    color: #74849a;
    font-size: 11px;
    line-height: 1.6;
    text-align: right;
}

body[data-page="student-home"] .comparison-list {
    display: grid;
    gap: 12px;
}

body[data-page="student-home"] .comparison-row {
    --comparison-accent: #1f63d7;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
}

body[data-page="student-home"] .comparison-row.subject-chinese { --comparison-accent: #ca554f; }
body[data-page="student-home"] .comparison-row.subject-math { --comparison-accent: #1f63d7; }
body[data-page="student-home"] .comparison-row.subject-english { --comparison-accent: #6756bb; }

body[data-page="student-home"] .comparison-subject {
    color: #52657d;
    font-size: 12px;
}

body[data-page="student-home"] .comparison-track {
    height: 7px;
    overflow: hidden;
    background: #ebeff4;
    border-radius: 99px;
}

body[data-page="student-home"] .comparison-track i {
    display: block;
    height: 100%;
    background: var(--comparison-accent);
    border-radius: inherit;
}

body[data-page="student-home"] .comparison-row > strong {
    color: var(--console-navy);
    font-size: 14px;
    text-align: right;
}

body[data-page="student-home"] .comparison-row small {
    margin-left: 1px;
    color: #8694a6;
    font-size: 9px;
}

body[data-page="student-home"] .focus-panel {
    background: #fff;
}

body[data-page="student-home"] .focus-icon {
    color: #8d671d;
    background: #faf4e8;
}

body[data-page="student-home"] .focus-badge {
    color: #446487;
    background: #edf3fa;
}

body[data-page="student-home"] .focus-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 17px;
}

body[data-page="student-home"] .focus-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 75px;
    padding: 12px;
    background: #f8fafc;
    border-color: #e4eaf1;
    border-radius: 12px;
}

body[data-page="student-home"] .focus-item .btn {
    grid-column: 2 / -1;
    justify-self: end;
    min-height: 32px;
    padding: 0 12px;
    font-size: 11px;
}

/* 知识点明细：学科纵向分区，知识项目横向扫描。 */
body[data-page="student-home"] .knowledge-detail-section {
    margin-bottom: 42px;
}

body[data-page="student-home"] .knowledge-detail-title {
    margin: 0 2px 17px;
}

body[data-page="student-home"] .subject-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

body[data-page="student-home"] .dashboard-subject {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--console-line);
    border-top: 1px solid var(--console-line);
    border-left: 4px solid #1f63d7;
    border-radius: 16px;
    box-shadow: 0 11px 28px rgba(24, 48, 80, 0.05);
}

body[data-page="student-home"] .dashboard-subject.subject-chinese { border-left-color: #ca554f; }
body[data-page="student-home"] .dashboard-subject.subject-math { border-left-color: #1f63d7; }
body[data-page="student-home"] .dashboard-subject.subject-english { border-left-color: #6756bb; }

body[data-page="student-home"] .subject-overview-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(210px, 0.75fr) auto;
    align-items: center;
    gap: 28px;
    padding: 20px 22px 16px;
    background: #fbfcfe;
    border-bottom: 1px solid #e4eaf1;
}

body[data-page="student-home"] .subject-chinese .subject-overview-row,
body[data-page="student-home"] .subject-english .subject-overview-row {
    background: #fbfcfe;
}

body[data-page="student-home"] .dashboard-subject .subject-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    box-shadow: none;
}

body[data-page="student-home"] .subject-score-block strong {
    font-size: 25px;
}

body[data-page="student-home"] .subject-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 300px;
}

body[data-page="student-home"] .subject-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 13px;
    font-size: 12px;
    text-align: center;
}

body[data-page="student-home"] .subject-analysis-copy {
    grid-column: 1 / -1;
    margin: -2px 0 0 60px;
    color: #68798f;
    font-size: 11px;
    line-height: 1.65;
}

body[data-page="student-home"] .grade-section {
    padding: 18px 22px 21px;
}

body[data-page="student-home"] .type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

body[data-page="student-home"] .type-card {
    padding: 15px;
    background: #f7f9fc;
    border-color: #e2e8f0;
    border-radius: 12px;
}

body[data-page="student-home"] .type-card h4 {
    font-size: 14px;
}

body[data-page="student-home"] .type-actions .btn {
    min-height: 36px;
    font-size: 11px;
}

body[data-page="student-home"] .type-actions .type-practice-link {
    min-height: 44px;
    color: #fff !important;
    background: #155eef !important;
    border: 1px solid #155eef !important;
    box-shadow: 0 4px 10px rgba(21, 94, 239, 0.2);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-shadow: none;
    text-decoration: none !important;
}

body[data-page="student-home"] .type-actions .type-practice-link::after {
    margin-left: 6px;
    color: #fff;
    font-size: 17px;
    line-height: 1;
    content: "→";
}

body[data-page="student-home"] .type-actions .type-practice-link:hover {
    color: #fff !important;
    background: #0b4ed0 !important;
    border-color: #0b4ed0 !important;
    box-shadow: 0 5px 12px rgba(11, 78, 208, 0.25);
    text-decoration: none !important;
}

body[data-page="student-home"] .type-actions .type-practice-link:focus-visible {
    outline: 3px solid rgba(21, 94, 239, 0.3);
    outline-offset: 2px;
}

/* 导航下方的公告区。 */
body[data-page="student-home"] .home-news-panel {
    min-height: 0;
    margin-bottom: 42px;
    padding: 22px 24px;
    border-top: 1px solid var(--console-line);
}

body[data-page="student-home"] .home-news-panel .news-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    margin-top: 14px;
}

body[data-page="student-home"] .home-news-panel .news-item summary {
    min-height: 48px;
}

body[data-page="student-home"] .home-news-panel .news-item summary time {
    justify-self: end;
    min-width: 92px;
    text-align: right;
    white-space: nowrap;
}

body[data-page="student-home"] .home-news-panel .dashboard-loading,
body[data-page="student-home"] .home-news-panel .news-empty {
    grid-column: 1 / -1;
}

/* 小屏电脑 */
@media (max-width: 1120px) {
    body[data-page="student-home"] .subject-gateway-card {
        padding: 20px;
    }

    body[data-page="student-home"] .gateway-card-data {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 15px;
    }

    body[data-page="student-home"] .score-ring {
        width: 88px;
        height: 88px;
    }

    body[data-page="student-home"] .score-ring strong {
        font-size: 25px;
    }

    body[data-page="student-home"] .analysis-grid,
    body[data-page="student-home"] .insight-grid {
        grid-template-columns: 1fr;
    }

    body[data-page="student-home"] .focus-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body[data-page="student-home"] .focus-item {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    body[data-page="student-home"] .subject-overview-row {
        grid-template-columns: minmax(200px, 1fr) minmax(180px, 0.75fr);
    }

    body[data-page="student-home"] .subject-actions {
        grid-column: 1 / -1;
        min-width: 0;
        justify-self: end;
        width: min(100%, 360px);
    }

    body[data-page="student-home"] .subject-analysis-copy {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-left: 60px;
        padding-right: 380px;
    }
}

/* 平板 */
@media (max-width: 860px) {
    body[data-page="student-home"] .container {
        padding-top: 14px;
    }

    body[data-page="student-home"] .nav-tabs {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-bottom: 23px;
    }

    body[data-page="student-home"] .nav-tab {
        width: 100%;
        min-width: 0;
        padding: 0 10px;
    }

    body[data-page="student-home"] .workspace-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    body[data-page="student-home"] .workspace-heading-actions {
        width: 100%;
    }

    body[data-page="student-home"] .workspace-heading-actions .btn {
        flex: 1;
    }

    body[data-page="student-home"] .current-student {
        min-width: 105px;
    }

    body[data-page="student-home"] .subject-gateway {
        grid-template-columns: 1fr;
    }

    body[data-page="student-home"] .subject-gateway-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
        column-gap: 22px;
    }

    body[data-page="student-home"] .gateway-card-heading,
    body[data-page="student-home"] .gateway-card-data {
        grid-column: 1;
    }

    body[data-page="student-home"] .gateway-analysis,
    body[data-page="student-home"] .gateway-actions {
        grid-column: 2;
    }

    body[data-page="student-home"] .gateway-analysis {
        grid-row: 1 / span 2;
        min-height: 0;
        margin-top: 0;
    }

    body[data-page="student-home"] .gateway-actions {
        align-self: end;
    }

    body[data-page="student-home"] .focus-list {
        grid-template-columns: 1fr;
    }

    body[data-page="student-home"] .subject-analysis-copy {
        margin-left: 0;
        padding-right: 0;
    }

    body[data-page="student-home"] .type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 手机 */
@media (max-width: 620px) {
    body[data-page="student-home"] .header-inner {
        min-height: 64px;
    }

    body[data-page="student-home"] .app-brand h1 {
        font-size: 16px;
    }

    body[data-page="student-home"] .container {
        padding: 11px 11px 44px;
    }

    body[data-page="student-home"] .nav-tabs {
        margin-bottom: 20px;
        padding: 4px;
        border-radius: 12px;
    }

    body[data-page="student-home"] .nav-tab {
        min-height: 40px;
        gap: 5px;
        padding: 0 4px;
        font-size: 11px;
    }

    body[data-page="student-home"] .nav-tab svg {
        width: 15px;
        height: 15px;
    }

    body[data-page="student-home"] .workspace-heading {
        margin-bottom: 29px;
        padding: 0 3px;
    }

    body[data-page="student-home"] .workspace-heading h2 {
        font-size: 28px;
    }

    body[data-page="student-home"] .workspace-heading p {
        font-size: 14px;
    }

    body[data-page="student-home"] .workspace-heading-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-page="student-home"] .current-student {
        grid-column: 1 / -1;
        min-width: 0;
        padding: 0 0 9px;
        border-right: 0;
        border-bottom: 1px solid var(--console-line);
    }

    body[data-page="student-home"] .workspace-heading-actions .btn {
        min-width: 0;
        padding: 0 9px;
        font-size: 12px;
    }

    body[data-page="student-home"] .panel-title-row h3 {
        font-size: 21px;
    }

    body[data-page="student-home"] .section-caption {
        display: none;
    }

    body[data-page="student-home"] .subject-entry-section,
    body[data-page="student-home"] .analysis-section,
    body[data-page="student-home"] .knowledge-detail-section {
        margin-bottom: 34px;
    }

    body[data-page="student-home"] .subject-gateway-card {
        display: block;
        padding: 20px;
        border-radius: 15px;
    }

    body[data-page="student-home"] .gateway-card-data {
        grid-template-columns: 98px minmax(0, 1fr);
        margin-top: 21px;
    }

    body[data-page="student-home"] .score-ring {
        width: 94px;
        height: 94px;
    }

    body[data-page="student-home"] .gateway-analysis {
        min-height: 0;
        margin-top: 17px;
    }

    body[data-page="student-home"] .learning-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body[data-page="student-home"] .home-news-panel {
        padding: 19px;
        border-radius: 15px;
    }

    body[data-page="student-home"] .home-news-panel .news-list {
        grid-template-columns: 1fr;
    }

    body[data-page="student-home"] .summary-tile {
        min-height: 108px;
        padding: 14px;
    }

    body[data-page="student-home"] .comparison-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    body[data-page="student-home"] .comparison-heading span {
        text-align: left;
    }

    body[data-page="student-home"] .subject-overview-row {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px;
    }

    body[data-page="student-home"] .subject-actions {
        grid-column: auto;
        width: 100%;
    }

    body[data-page="student-home"] .subject-analysis-copy {
        grid-column: auto;
        grid-row: auto;
        margin: 0;
        padding: 12px;
        background: #f4f7fa;
        border-radius: 9px;
    }

    body[data-page="student-home"] .grade-section {
        padding: 17px;
    }

    body[data-page="student-home"] .type-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    body[data-page="student-home"] .nav-tab svg {
        display: none;
    }

    body[data-page="student-home"] .gateway-card-data {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 12px;
    }

    body[data-page="student-home"] .score-ring {
        width: 82px;
        height: 82px;
    }

    body[data-page="student-home"] .score-ring strong {
        font-size: 23px;
    }

    body[data-page="student-home"] .gateway-metrics span {
        font-size: 11px;
    }

    body[data-page="student-home"] .gateway-metrics strong {
        font-size: 16px;
    }
}

/* 各学科最近练习：两排两列的轻量卡片流，未完成项由接口优先返回。 */
body[data-page="student-home"] .subject-overview-row {
    grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(22px, 3vw, 44px);
    padding: 18px 20px;
}

body[data-page="student-home"] .subject-overview-row > .subject-identity {
    align-self: center;
    padding-left: 2px;
}

body[data-page="student-home"] .subject-practice-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    width: 100%;
    min-width: 0;
}

body[data-page="student-home"] .recent-practice-cell {
    min-width: 0;
    min-height: 44px;
    overflow: hidden;
    background: rgba(255, 255, 255, .88);
    border: 1px solid #e1e8f0;
    border-left: 2px solid #b5c9df;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(33, 57, 84, .035);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body[data-page="student-home"] .recent-practice-cell.scope-personal {
    background: rgba(253, 255, 254, .92);
    border-color: #dfe9e4;
    border-left-color: #9fc2b1;
}

body[data-page="student-home"] .recent-practice-cell:not(.is-empty):hover {
    border-color: #b8cbe0;
    box-shadow: 0 7px 18px rgba(40, 69, 101, .09);
    transform: translateY(-1px);
}

body[data-page="student-home"] .recent-practice-cell.scope-personal:not(.is-empty):hover {
    border-color: #b4d0c2;
    box-shadow: 0 7px 18px rgba(38, 91, 67, .08);
}

body[data-page="student-home"] .recent-practice-link {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    margin: 0;
    padding: 0 10px;
    color: #2f435b;
    background: transparent;
    border: 0;
    border-radius: 0;
    outline: 0;
    font-family: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    transition: color .16s ease, background-color .16s ease;
}

body[data-page="student-home"] .recent-practice-link:hover {
    color: #174f9d;
    background: linear-gradient(90deg, rgba(237, 244, 252, .72), rgba(255, 255, 255, .22));
}

body[data-page="student-home"] .scope-personal .recent-practice-link:hover {
    color: #176148;
    background: linear-gradient(90deg, rgba(237, 248, 243, .8), rgba(255, 255, 255, .22));
}

body[data-page="student-home"] .recent-practice-link:focus-visible {
    position: relative;
    z-index: 1;
    box-shadow: inset 0 0 0 2px rgba(21, 94, 239, .34);
}

body[data-page="student-home"] .recent-practice-link.is-loading {
    opacity: .58;
    cursor: wait;
}

body[data-page="student-home"] .recent-practice-source {
    flex: 0 0 auto;
    min-width: 30px;
    padding: 3px 5px;
    color: #486d94;
    background: #edf3fa;
    border: 1px solid #dce8f4;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

body[data-page="student-home"] .scope-personal .recent-practice-source {
    color: #39745e;
    background: #edf7f2;
    border-color: #d9ebe2;
}

body[data-page="student-home"] .recent-practice-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-weight: 630;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-page="student-home"] .recent-practice-status {
    flex: 0 0 auto;
    min-width: 40px;
    padding: 3px 5px;
    color: #7d8a98;
    background: #f1f3f6;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 670;
    line-height: 1.35;
    text-align: center;
}

body[data-page="student-home"] .recent-practice-status.unstarted,
body[data-page="student-home"] .recent-practice-status.pending {
    color: #a26618;
    background: #fff4df;
}

body[data-page="student-home"] .recent-practice-status.completed {
    color: #64748b;
    background: #eef1f5;
}

body[data-page="student-home"] .recent-practice-cell.is-empty {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    color: #a3acb7;
    background: rgba(250, 252, 253, .66);
    border-style: dashed;
    box-shadow: none;
    font-size: 10px;
}

@media (max-width: 1120px) {
    body[data-page="student-home"] .subject-overview-row {
        grid-template-columns: minmax(150px, 180px) minmax(0, 1fr);
        gap: 18px;
    }

    body[data-page="student-home"] .recent-practice-source {
        min-width: 27px;
        padding-inline: 3px;
    }
}

@media (max-width: 720px) {
    body[data-page="student-home"] .subject-overview-row {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 17px;
    }

    body[data-page="student-home"] .subject-overview-row > .subject-identity {
        align-self: auto;
    }

}

@media (max-width: 480px) {
    body[data-page="student-home"] .subject-practice-board {
        gap: 6px;
    }

    body[data-page="student-home"] .recent-practice-link {
        gap: 4px;
        padding: 0 7px;
        font-size: 10px;
    }

    body[data-page="student-home"] .recent-practice-source {
        min-width: 24px;
        padding: 2px 3px;
        border-radius: 5px;
        font-size: 7px;
    }

    body[data-page="student-home"] .recent-practice-status {
        min-width: 0;
        padding: 2px 3px;
        font-size: 7px;
    }

    body[data-page="student-home"] .recent-practice-cell.is-empty {
        padding: 0 7px;
        font-size: 9px;
    }
}
