/*
 * 码小匠官网明亮主题。
 * 组件结构和轻量动效继续由 site.css 提供，本文件仅收敛为 LOGO 蓝、白色与浅灰的官网视觉。
 */

html.theme-light-root {
    color-scheme: light;
    background: #f5f7fb;
}

body.theme-light {
    --ink: #14213d;
    --ink-soft: #33415f;
    --muted: #5f6b82;
    --line: #dce5f2;
    --surface-soft: #f5f7fb;
    --surface-blue: #eef3ff;
    --shadow-sm: 0 12px 32px rgba(29, 55, 116, .08);
    --shadow: 0 24px 68px rgba(29, 55, 116, .12);
    --shadow-dark: 0 28px 75px rgba(29, 55, 116, .16);
    color: var(--ink);
    background: #fff;
}

.theme-light :where(a, button, input, textarea, select):focus-visible {
    outline-color: #1f45fc;
}

.theme-light .btn-primary:focus-visible,
.theme-light .mobile-actions .primary:focus-visible {
    outline-color: #fff;
    box-shadow: 0 0 0 5px rgba(31, 69, 252, .28), 0 14px 34px rgba(31, 69, 252, .24);
}

/* 白色悬浮导航强化官网感，滚动后只增加轻微蓝灰阴影。 */
.theme-light .site-header {
    color: var(--ink);
    background: rgba(255, 255, 255, .9);
    border-bottom-color: rgba(100, 123, 168, .18);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}

.theme-light .site-header::after {
    background: linear-gradient(90deg, transparent, rgba(31, 69, 252, .62), rgba(66, 174, 255, .48), transparent);
}

.theme-light .site-header.is-scrolled {
    background: rgba(255, 255, 255, .96);
    border-color: rgba(100, 123, 168, .2);
    box-shadow: 0 14px 38px rgba(30, 52, 102, .1);
}

.theme-light .site-header.is-scrolled::after {
    opacity: .32;
}

.theme-light .brand-lab {
    color: #3553b8;
    border-color: #d5dff6;
    background: #f3f6ff;
}

.theme-light .site-nav a {
    color: #46536d;
}

.theme-light .site-nav a::after {
    background: linear-gradient(90deg, #1f45fc, #62b9ff);
}

.theme-light .site-nav a:hover,
.theme-light .site-nav a[aria-current="page"] {
    color: #1738d4;
    background: #eef3ff;
}

.theme-light .nav-toggle {
    color: #1d2a46;
    border-color: #d7e0ee;
    background: #f7f9fd;
}

.theme-light .btn-ghost {
    color: #34425f;
    border-color: #d4deec;
    background: #fff;
}

.theme-light .btn-ghost:hover {
    color: #1738d4;
    border-color: #aebff0;
    background: #eef3ff;
}

.theme-light .btn-dark-glass {
    color: #1738d4;
    border-color: #cbd8f4;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 10px 28px rgba(31, 69, 252, .08), inset 0 1px 0 #fff;
}

.theme-light .btn-dark-glass:hover {
    color: #102fbc;
    border-color: #9fb4ef;
    background: #fff;
}

/* 首屏以白色和淡蓝为主，技术感由网格、轨道和产品舱承担。 */
.theme-light .hero-lab {
    color: var(--ink);
    background:
        radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(78, 169, 255, .14), transparent 23%),
        radial-gradient(circle at 10% 4%, rgba(31, 69, 252, .08), transparent 31%),
        linear-gradient(145deg, #fff 0%, #f8faff 54%, #eef3ff 100%);
}

.theme-light .hero-lab::after {
    opacity: .6;
    border-color: rgba(31, 69, 252, .12);
    box-shadow: inset 0 0 90px rgba(31, 69, 252, .045), 0 0 120px rgba(72, 136, 255, .05);
}

.theme-light .hero-grid-lines,
.theme-light .learning-grid-lines {
    opacity: .48;
    background-image:
        linear-gradient(rgba(74, 112, 190, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 112, 190, .12) 1px, transparent 1px);
}

.theme-light .hero-grid-lines::after {
    background-image: radial-gradient(circle, rgba(31, 69, 252, .42) 1px, transparent 1.5px);
}

.theme-light .hero-aurora {
    opacity: .11;
    filter: blur(82px);
}

.theme-light .lab-kicker {
    color: #5e6d88;
    border-color: #d8e1ef;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 8px 22px rgba(29, 55, 116, .05);
}

.theme-light .lab-kicker b {
    color: #1738d4;
}

.theme-light .lab-kicker > i {
    background: #c9d4e8;
}

.theme-light .lab-pulse,
.theme-light .button-signal {
    background: #1f45fc;
    box-shadow: 0 0 0 5px rgba(31, 69, 252, .08), 0 0 16px rgba(31, 69, 252, .26);
}

.theme-light .hero h1 {
    color: #14213d;
    background: none;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .theme-light .hero h1 {
        color: transparent;
        background: linear-gradient(125deg, #14213d 8%, #1738d4 58%, #318cf0 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
}

.theme-light .hero-lead {
    color: #58657a;
}

.theme-light .hero-proof {
    border-top-color: #d8e1ef;
}

.theme-light .hero-proof > span + span {
    border-left-color: #dfe6f1;
}

.theme-light .hero-proof i {
    color: #1f45fc;
}

.theme-light .hero-proof b {
    color: #20304f;
}

.theme-light .hero-proof small {
    color: #65728a;
}

.theme-light .stage-shadow {
    opacity: .62;
    background: #c8d8f7;
    filter: blur(40px);
}

.theme-light .stage-window {
    border-color: rgba(108, 137, 198, .27);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 32px 78px rgba(33, 61, 126, .17), inset 0 1px 0 #fff, 0 0 0 8px rgba(31, 69, 252, .025);
}

.theme-light .stage-window::before {
    background: linear-gradient(118deg, rgba(255, 255, 255, .66), transparent 28%, transparent 70%, rgba(72, 166, 255, .055));
}

.theme-light .stage-topbar {
    color: #71809b;
    border-bottom-color: #e0e6f1;
    background: rgba(246, 248, 252, .82);
}

.theme-light .stage-title,
.theme-light .stage-online {
    color: #65738d;
}

.theme-light .stage-rail {
    border-right-color: #e1e7f1;
    background: rgba(247, 249, 253, .66);
}

.theme-light .stage-rail i {
    color: #71809b;
}

.theme-light .stage-rail .is-active {
    color: #1f45fc;
    border-color: rgba(31, 69, 252, .2);
    background: #eaf0ff;
    box-shadow: 0 8px 20px rgba(31, 69, 252, .08);
}

.theme-light .stage-workspace {
    background:
        radial-gradient(circle at 50% 36%, rgba(31, 69, 252, .095), transparent 42%),
        linear-gradient(rgba(88, 116, 175, .075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 116, 175, .075) 1px, transparent 1px),
        #fbfcff;
    background-size: auto, 24px 24px, 24px 24px, auto;
}

.theme-light .workspace-label span,
.theme-light .status-head {
    color: #66758e;
}

.theme-light .workspace-label b,
.theme-light .status-ring b {
    color: #1f45fc;
}

.theme-light .orbit {
    border-color: rgba(31, 69, 252, .24);
}

.theme-light .orbit::after,
.theme-light .status-head i {
    background: #3f9df5;
    box-shadow: 0 0 14px rgba(31, 69, 252, .3);
}

.theme-light .orbit i {
    border-color: #318cf0;
    background: #fff;
    box-shadow: 0 0 18px rgba(31, 69, 252, .25);
}

.theme-light .orbit-core {
    background: linear-gradient(145deg, #2b59ff, #1738d4);
    box-shadow: 0 0 0 9px rgba(31, 69, 252, .07), 0 18px 42px rgba(31, 69, 252, .22), inset 0 1px 0 rgba(255, 255, 255, .34);
}

.theme-light .orbit-tag {
    color: #35435f;
    border-color: #d4dfef;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 20px rgba(29, 55, 116, .1);
}

/* 代码终端是首页唯一保留的小面积深色界面，用来维持技术识别。 */
.theme-light .mini-terminal {
    color: #a8b6d0;
    border-color: rgba(114, 145, 205, .24);
    background: #12213f;
    box-shadow: 0 12px 26px rgba(24, 43, 82, .18), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.theme-light .mini-terminal i {
    color: #6f82a6;
}

.theme-light .mini-terminal b {
    color: #7fd8ff;
}

.theme-light .stage-status {
    border-left-color: #e1e7f1;
    background: rgba(247, 249, 253, .72);
}

.theme-light .status-ring {
    border-color: rgba(31, 69, 252, .25);
    box-shadow: inset 0 0 25px rgba(31, 69, 252, .055), 0 0 30px rgba(31, 69, 252, .04);
}

.theme-light .status-ring span,
.theme-light .stage-status li,
.theme-light .stage-status li b {
    color: #687790;
}

.theme-light .stage-status li {
    border-top-color: #e0e6f0;
}

.theme-light .stage-status li i {
    background: #2ca277;
}

.theme-light .stage-scan {
    opacity: .045;
    background: linear-gradient(180deg, transparent, #1f45fc, transparent);
}

.theme-light .stage-float {
    color: #273654;
    border-color: #d5e0f0;
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 18px 42px rgba(29, 55, 116, .13), inset 0 1px 0 #fff;
}

.theme-light .stage-float b {
    color: #1f45fc;
}

.theme-light .stage-float-b span {
    color: #67758d;
}

.theme-light .stage-float-b b {
    color: #273654;
}

.theme-light .hero-mascot {
    position: absolute;
    z-index: 7;
    right: -68px;
    bottom: -48px;
    width: 164px;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 18px 22px rgba(45, 70, 119, .18));
    animation: mascot-bob 6.2s ease-in-out infinite;
}

/* 明亮信号带承接首屏，不再形成整条深色断层。 */
.theme-light .signal-strip {
    color: #48607f;
    border-top-color: #dce5f2;
    border-bottom-color: #dce5f2;
    background: #f4f7fc;
}

.theme-light .signal-strip::before {
    background: linear-gradient(90deg, #f4f7fc, transparent);
}

.theme-light .signal-strip::after {
    background: linear-gradient(-90deg, #f4f7fc, transparent);
}

.theme-light .signal-track span i {
    background: #1f45fc;
    box-shadow: 0 0 12px rgba(31, 69, 252, .25);
}

.theme-light .signal-track b {
    color: #b6c2d5;
}

/* 优势区移除位置性深色卡，后台调整楼层内容后也保持明亮。 */
.theme-light .capability-card:nth-child(2) {
    color: var(--ink);
    border-color: #d7e2f2;
    background: linear-gradient(145deg, #f1f5ff, #fff);
    box-shadow: 0 16px 42px rgba(31, 69, 252, .08), inset 0 1px 0 #fff;
}

.theme-light .capability-card:nth-child(2) p,
.theme-light .capability-card:nth-child(2) .capability-code {
    color: #5f6b82;
}

.theme-light .capability-card:nth-child(2) .capability-symbol {
    color: #1f45fc;
    border-color: #cfdcf4;
    background: #e7eeff;
}

.theme-light .capability-card:nth-child(2) .code-bars i {
    background: linear-gradient(90deg, rgba(31, 69, 252, .65) 28%, rgba(95, 132, 222, .32) 28% 72%, rgba(129, 148, 184, .16) 72%);
}

.theme-light .course-placeholder {
    color: #18315f;
    background-color: #edf3ff;
    background-image:
        linear-gradient(rgba(31, 69, 252, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 69, 252, .08) 1px, transparent 1px),
        linear-gradient(135deg, #edf3ff, #dce8ff);
}

.theme-light .course-card:nth-child(3n + 2) .course-placeholder {
    background-color: #f4f0ff;
    background-image:
        linear-gradient(rgba(111, 82, 201, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(111, 82, 201, .08) 1px, transparent 1px),
        linear-gradient(135deg, #f7f4ff, #e8e0ff);
}

.theme-light .course-card:nth-child(3n) .course-placeholder {
    background-color: #ecfbfc;
    background-image:
        linear-gradient(rgba(15, 136, 148, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 136, 148, .08) 1px, transparent 1px),
        linear-gradient(135deg, #effcfd, #d9f4f7);
}

.theme-light .course-placeholder b {
    color: #1738d4;
}

.theme-light .course-placeholder span {
    color: #5b6981;
}

/* 学习系统是产品重点，但整体改为浅蓝场景与白色仪表盘。 */
.theme-light .learning-stage {
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 16%, rgba(31, 69, 252, .08), transparent 25%),
        radial-gradient(circle at 88% 75%, rgba(67, 169, 255, .1), transparent 27%),
        linear-gradient(145deg, #f7f9fd, #eef3ff 58%, #f8faff);
}

.theme-light .learning-stage::after {
    border-color: rgba(31, 69, 252, .14);
    box-shadow: inset 0 0 100px rgba(31, 69, 252, .035);
}

.theme-light .learning-stage .eyebrow.light,
.theme-light .learning-stage .eyebrow.light i {
    color: #1738d4;
}

.theme-light .learning-copy h2 {
    color: #14213d;
}

.theme-light .learning-copy > p {
    color: #58657a;
}

.theme-light .learning-features li {
    border-top-color: #d9e2ef;
}

.theme-light .learning-features li > i {
    color: #1f45fc;
}

.theme-light .learning-features b {
    color: #263653;
}

.theme-light .learning-features small {
    color: #627089;
}

.theme-light .learning-stage .btn-white {
    color: #fff;
    background: linear-gradient(135deg, #1f45fc, #1638d8);
    box-shadow: 0 15px 36px rgba(31, 69, 252, .25);
}

.theme-light .learning-dashboard {
    border-color: #cfdbee;
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 30px 74px rgba(29, 55, 116, .15), inset 0 1px 0 #fff;
}

.theme-light .dashboard-top {
    border-bottom-color: #e0e6f1;
    background: rgba(248, 250, 253, .8);
}

.theme-light .dashboard-top b {
    color: #34435f;
}

.theme-light .dashboard-top span {
    color: #66758d;
}

.theme-light .dashboard-top em {
    color: #187451;
}

.theme-light .dashboard-body aside {
    border-right-color: #e0e6f1;
    background: rgba(247, 249, 253, .72);
}

.theme-light .dashboard-body aside b {
    color: #1f45fc;
    border-color: rgba(31, 69, 252, .18);
    background: #e9efff;
}

.theme-light .dashboard-body aside span {
    color: #68758d;
}

.theme-light .dashboard-body aside .is-active {
    color: #1738d4;
    background: linear-gradient(90deg, rgba(31, 69, 252, .13), rgba(31, 69, 252, .025));
}

.theme-light .dashboard-welcome {
    border-color: #d5e0f1;
    background: linear-gradient(110deg, #eef3ff, #f8f5ff);
}

.theme-light .dashboard-welcome small,
.theme-light .dashboard-modules span {
    color: #1738d4;
}

.theme-light .dashboard-welcome b,
.theme-light .dashboard-modules b {
    color: #2c3b58;
}

.theme-light .dashboard-modules > div {
    border-color: #dce4ef;
    background: #fbfcfe;
}

.theme-light .dashboard-modules > div > i {
    background: #e5ebf4;
}

.theme-light .dashboard-modules pre {
    color: #684fd0;
    background: #f0ecff;
}

.theme-light .dashboard-modules small {
    color: #66758d;
}

.theme-light .dashboard-timeline {
    color: #68758d;
    border-color: #dce4ef;
    background: #fafbfd;
}

.theme-light .dashboard-timeline > b {
    color: #42506a;
}

.theme-light .dashboard-timeline em {
    background: #cbd5e5;
}

.theme-light .dashboard-float {
    color: #293753;
    border-color: #d5e0f0;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 20px 46px rgba(29, 55, 116, .14);
}

.theme-light .dashboard-float b {
    color: #293753;
}

.theme-light .dashboard-float small {
    color: #65728a;
}

/* 收尾区使用浅蓝品牌面板，IP 形象只作为友好引导，不抢占正文。 */
.theme-light .cta-orbit {
    color: var(--ink);
    border-color: #cbd9f1;
    background:
        radial-gradient(circle at 17% 54%, rgba(69, 157, 255, .15), transparent 27%),
        radial-gradient(circle at 78% 10%, rgba(31, 69, 252, .1), transparent 29%),
        linear-gradient(135deg, #eef3ff, #fff 58%, #f5f7fb);
    box-shadow: 0 30px 74px rgba(29, 55, 116, .13), inset 0 1px 0 #fff;
}

.theme-light .cta-orbit::before {
    opacity: .44;
    background-image:
        linear-gradient(rgba(31, 69, 252, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 69, 252, .12) 1px, transparent 1px);
}

.theme-light .cta-orbit-visual {
    z-index: 0;
    opacity: .42;
    border-color: rgba(31, 69, 252, .28);
}

.theme-light .cta-orbit-visual::before,
.theme-light .cta-orbit-visual::after {
    border-color: rgba(31, 69, 252, .19);
}

.theme-light .cta-orbit-visual::after {
    background: rgba(31, 69, 252, .06);
    box-shadow: inset 0 0 24px rgba(31, 69, 252, .06);
}

.theme-light .cta-orbit-visual i {
    border-color: #1f45fc;
    background: #fff;
    box-shadow: 0 0 18px rgba(31, 69, 252, .3);
}

.theme-light .cta-orbit-visual b {
    color: #1738d4;
}

.theme-light .cta-mascot {
    position: absolute;
    z-index: 1;
    bottom: -26px;
    left: 72px;
    width: 178px;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 20px 24px rgba(45, 70, 119, .16));
    animation: mascot-bob 6.8s -1.8s ease-in-out infinite;
}

.theme-light .cta-copy,
.theme-light .cta-actions {
    position: relative;
    z-index: 2;
}

.theme-light .cta-copy .eyebrow {
    color: #1738d4;
}

.theme-light .cta-copy h2 {
    color: #14213d;
}

.theme-light .cta-copy p {
    color: #58657a;
}

.theme-light .cta-note {
    color: #5f6b82;
}

.theme-light .cta-note i {
    background: #1f45fc;
    box-shadow: 0 0 10px rgba(31, 69, 252, .28);
}

/* 内页统一为浅灰蓝标题区，正文保持高可读白底。 */
.theme-light .page-hero,
.theme-light .article-header {
    color: var(--ink);
    border-bottom: 1px solid #dce5f2;
    background:
        radial-gradient(circle at 78% 22%, rgba(56, 153, 247, .12), transparent 27%),
        radial-gradient(circle at 18% 88%, rgba(31, 69, 252, .08), transparent 30%),
        linear-gradient(140deg, #fff, #f5f8ff 62%, #edf3ff);
}

.theme-light .page-hero::before,
.theme-light .article-header::before {
    opacity: .5;
    background-image:
        linear-gradient(rgba(70, 103, 169, .1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(70, 103, 169, .1) 1px, transparent 1px);
}

.theme-light .page-hero::after,
.theme-light .article-header::after {
    border-color: rgba(31, 69, 252, .15);
}

.theme-light .page-hero .eyebrow,
.theme-light .article-header .eyebrow {
    color: #1738d4;
}

.theme-light .page-hero h1,
.theme-light .article-header h1 {
    color: #14213d;
}

.theme-light .page-hero p,
.theme-light .article-header p {
    color: #58657a;
}

.theme-light .article-header time {
    color: #59677f;
    border-color: #d2ddec;
    background: rgba(255, 255, 255, .68);
}

.theme-light .detail-head img {
    border-color: #d4dfef;
    box-shadow: 0 24px 58px rgba(29, 55, 116, .14);
}

.theme-light .learning-page .system-panel {
    box-shadow: 0 24px 58px rgba(29, 55, 116, .13);
}

.theme-light .editorial-placeholder {
    color: #1738d4;
    background: linear-gradient(135deg, #edf3ff, #dfeaff);
}

/* 页脚回归普通官网的浅灰底，蓝色只用于链接和细线。 */
.theme-light .site-footer {
    color: #647089;
    border-top: 1px solid #dce5f2;
    background: #f5f7fb;
}

.theme-light .site-footer::before {
    opacity: .38;
    background-image:
        linear-gradient(rgba(76, 105, 166, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(76, 105, 166, .09) 1px, transparent 1px);
}

.theme-light .footer-orbit {
    opacity: .5;
    border-color: rgba(31, 69, 252, .17);
    box-shadow: inset 0 0 130px rgba(31, 69, 252, .035);
}

.theme-light .footer-orbit::before,
.theme-light .footer-orbit::after {
    border-color: rgba(31, 69, 252, .12);
}

.theme-light .footer-logo {
    border-color: #d7e1ef;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 10px 26px rgba(29, 55, 116, .06);
}

.theme-light .footer-intro > p {
    color: #465570;
}

.theme-light .footer-signals {
    color: #5d6980;
}

.theme-light .footer-signals i {
    background: #91a2bf;
}

.theme-light .footer-links > strong,
.theme-light .footer-contact > strong {
    color: #21314e;
}

.theme-light .footer-links nav a,
.theme-light .footer-contact p {
    color: #59677f;
}

.theme-light .footer-links nav a:hover {
    color: #1738d4;
}

.theme-light .footer-contact > a:not(.footer-cta) {
    color: #20345c;
}

.theme-light .footer-cta {
    color: #1738d4;
    border-bottom-color: rgba(31, 69, 252, .24);
}

.theme-light .copyright {
    color: #68758d;
    border-top-color: #d9e2ef;
}

/*
 * 官网可读字号门禁：真实内容不低于 12px，模拟界面不低于 10px。
 * 微缩界面仍保留层级感，但不再通过 6–9px 字号制造“科技感”。
 */
.theme-light .brand-lab {
    font-size: 11px;
    line-height: 1.1;
}

.theme-light .lab-kicker {
    font-size: 13px;
    line-height: 1.5;
}

.theme-light .hero-proof i,
.theme-light .learning-features li > i,
.theme-light .system-panel li span {
    font-size: 12px;
}

.theme-light .hero-proof small,
.theme-light .signal-track,
.theme-light .eyebrow,
.theme-light .banner-heading,
.theme-light .learning-features small,
.theme-light .editorial-card time,
.theme-light .news-card time,
.theme-light .cta-note,
.theme-light .article-header time,
.theme-light .footer-signals,
.theme-light .copyright {
    font-size: 13px;
}

.theme-light .banner-heading small {
    font-size: 12px;
}

.theme-light .privacy-note {
    font-size: 14px;
    line-height: 1.75;
}

.theme-light .copyright {
    flex-wrap: wrap;
    row-gap: 8px;
    line-height: 1.6;
    letter-spacing: .02em;
}

/* 课程与内容卡片中的装饰标签使用 11px，避免抢占标题层级。 */
.theme-light .banner-label small,
.theme-light .capability-code,
.theme-light .course-tag,
.theme-light .course-placeholder span {
    font-size: 11px;
}

/* 首屏创作舱：10px 为安全下限，固定侧栏无需因此扩宽。 */
.theme-light .stage-topbar {
    font-size: 11px;
}

.theme-light .stage-rail i,
.theme-light .workspace-label,
.theme-light .workspace-label b,
.theme-light .orbit-core small,
.theme-light .orbit-tag,
.theme-light .mini-terminal,
.theme-light .status-head,
.theme-light .status-ring span,
.theme-light .stage-status li,
.theme-light .stage-status li b,
.theme-light .stage-float b,
.theme-light .stage-float-b span {
    font-size: 10px;
}

.theme-light .stage-float span,
.theme-light .stage-float-b b {
    font-size: 12px;
}

/* 学习系统仪表盘：核心中文 12px，辅助状态 10–11px。 */
.theme-light .dashboard-top b,
.theme-light .dashboard-welcome b {
    font-size: 12px;
}

.theme-light .dashboard-top span,
.theme-light .dashboard-top em,
.theme-light .dashboard-welcome small,
.theme-light .dashboard-modules span,
.theme-light .dashboard-modules small,
.theme-light .dashboard-timeline,
.theme-light .dashboard-float small {
    font-size: 10px;
}

.theme-light .dashboard-body aside span,
.theme-light .dashboard-modules b,
.theme-light .dashboard-timeline > b,
.theme-light .dashboard-float b {
    font-size: 11px;
}

@keyframes mascot-bob {
    50% { transform: translate3d(0, -8px, 0) rotate(.8deg); }
}

@media (max-width: 1180px) {
    .theme-light .hero-mascot {
        right: -30px;
        width: 150px;
    }
}

@media (max-width: 1020px) {
    .theme-light .site-nav {
        border-color: #d4deec;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 26px 70px rgba(29, 55, 116, .18);
    }

    .theme-light .site-nav a {
        color: #34425f;
    }

    .theme-light .cta-mascot {
        right: 38px;
        bottom: -14px;
        left: auto;
        width: 150px;
        opacity: .2;
    }
}

@media (max-width: 780px) {
    .theme-light .hero-mascot {
        right: -12px;
        bottom: -36px;
        width: 130px;
    }

    .theme-light .cta-mascot {
        right: 14px;
        width: 132px;
        opacity: .16;
    }
}

@media (max-width: 620px) {
    .theme-light .hero-mascot {
        right: -12px;
        bottom: -28px;
        width: 102px;
    }

    .theme-light .mobile-actions {
        border-color: rgba(119, 140, 181, .24);
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 18px 48px rgba(29, 55, 116, .2);
    }

    .theme-light .mobile-actions a {
        color: #263653;
    }

    .theme-light .mobile-actions .primary {
        color: #fff;
        background: linear-gradient(135deg, #1f45fc, #1638d8);
    }

    .theme-light .cta-mascot {
        display: none;
    }

    /* 手机端不再把桌面字号重新压回 6–9px。 */
    .theme-light .lab-kicker,
    .theme-light .signal-track,
    .theme-light .path-visual span,
    .theme-light .system-flow b {
        font-size: 12px;
    }

    .theme-light .stage-topbar,
    .theme-light .stage-float b,
    .theme-light .stage-float-b span {
        font-size: 10px;
    }

    .theme-light .stage-float span,
    .theme-light .stage-float-b b,
    .theme-light .dashboard-welcome b {
        font-size: 11px;
    }

    .theme-light .mini-terminal {
        font-size: 10px;
    }
}

/* 表单原规则会清除 outline，亮色主题重新提供清晰的键盘焦点。 */
.theme-light .trial-form input:not([type="checkbox"]):focus,
.theme-light .trial-form input:not([type="checkbox"]):focus-visible {
    outline: 3px solid #1f45fc;
    outline-offset: 2px;
}

.theme-light :where(.banner-card, .course-media, .editorial-media):focus-visible {
    outline-offset: -4px;
}

@media (prefers-reduced-motion: reduce) {
    .theme-light .hero-mascot,
    .theme-light .cta-mascot {
        animation: none !important;
        transform: none !important;
    }

    .theme-light .btn:hover,
    .theme-light .capability-card:hover,
    .theme-light .course-card:hover,
    .theme-light .editorial-card:hover,
    .theme-light .news-card:hover,
    .theme-light .footer-links nav a:hover {
        transform: none !important;
    }
}

@media (prefers-contrast: more) {
    .theme-light {
        --muted: #46536b;
        --line: #b7c3d5;
    }

    .theme-light .site-nav a,
    .theme-light .hero-lead,
    .theme-light .page-hero p,
    .theme-light .article-header p,
    .theme-light .learning-copy > p {
        color: #34425b;
    }
}
