:root {
    --blue: #04A3F0; --pink: #FFA290;
    --blue-rgb: 4,163,240; --pink-rgb: 255,162,144;
    --blue-light: #7fd4fa; --pink-light: #ffd0c6;
    --bg: #0b1220; --card: #131e33; --card2: #182642;
    --text: #e2e8f0; --dim: #94a3b8;
    --line: rgba(var(--blue-rgb),.22);
    --topbar-bg: rgba(11,18,32,.84);
    --panel: rgba(11,18,32,.55);
    --panel-strong: rgba(11,18,32,.85);
    --panel-soft: rgba(11,18,32,.6);
    --modal-bg: #101b30;
    --modal-mask: rgba(6,10,22,.75);
    --totop-bg: rgba(19,30,51,.9);
    --on-accent: #0b1220;
    --tag-text: #bfe3f7;
    --li-text: #cbd5e1;
    --faint: rgba(255,255,255,.06);
    --faint2: rgba(255,255,255,.03);
    --soft-border: rgba(255,255,255,.08);
    --dash: rgba(255,255,255,.1);
    --close-border: rgba(255,255,255,.22);
    --decor-grid: rgba(var(--blue-rgb),.04);
    --decor-glow: .17;
    --shadow-card: 0 6px 24px rgba(0,0,0,.28);
    --shadow-hover: 0 16px 36px rgba(2,8,20,.55), 0 0 22px rgba(var(--pink-rgb),.12);
    --shadow-feat: 0 10px 26px rgba(2,8,20,.5);
    --shadow-modal: 0 24px 70px rgba(2,8,20,.7);
    --shadow-btn: 0 0 18px rgba(var(--blue-rgb),.45);
}
/* 主题二：清爽浅色（官网蓝粉点缀） */
[data-theme="light"] {
    --bg: #f5f8fc; --card: #ffffff; --card2: #eef4fa;
    --text: #1e293b; --dim: #5b6b7f;
    --topbar-bg: rgba(255,255,255,.88);
    --panel: rgba(255,255,255,.72);
    --panel-strong: rgba(255,255,255,.95);
    --panel-soft: rgba(255,255,255,.75);
    --modal-bg: #ffffff;
    --modal-mask: rgba(15,23,42,.45);
    --totop-bg: rgba(255,255,255,.94);
    --tag-text: #0284c7;
    --li-text: #334155;
    --faint: rgba(15,23,42,.07);
    --faint2: rgba(15,23,42,.03);
    --soft-border: rgba(15,23,42,.1);
    --dash: rgba(15,23,42,.14);
    --close-border: rgba(15,23,42,.22);
    --decor-grid: rgba(var(--blue-rgb),.05);
    --decor-glow: .09;
    --shadow-card: 0 2px 12px rgba(15,23,42,.06);
    --shadow-hover: 0 16px 36px rgba(4,163,240,.14), 0 0 22px rgba(var(--pink-rgb),.16);
    --shadow-feat: 0 10px 26px rgba(15,23,42,.09);
    --shadow-modal: 0 24px 70px rgba(15,23,42,.22);
    --shadow-btn: 0 0 18px rgba(var(--blue-rgb),.35);
}
/* 主题三：教育暖色（暖橙 + 生长绿 + 米白底） */
[data-theme="edu"] {
    --blue: #EE7D24; --pink: #2E9E6B;
    --blue-rgb: 238,125,36; --pink-rgb: 46,158,107;
    --blue-light: #ffc98f; --pink-light: #bfe9d2;
    --bg: #faf6ee; --card: #fffdf8; --card2: #f6efe2;
    --text: #3f3629; --dim: #7d7361;
    --topbar-bg: rgba(250,246,238,.9);
    --panel: rgba(255,255,255,.78);
    --panel-strong: rgba(255,255,255,.96);
    --panel-soft: rgba(255,255,255,.8);
    --modal-bg: #fffdf8;
    --modal-mask: rgba(64,48,26,.45);
    --totop-bg: rgba(255,253,248,.95);
    --tag-text: #b45309;
    --li-text: #57503f;
    --faint: rgba(90,70,40,.08);
    --faint2: rgba(90,70,40,.035);
    --soft-border: rgba(90,70,40,.12);
    --dash: rgba(90,70,40,.16);
    --close-border: rgba(90,70,40,.24);
    --decor-grid: rgba(var(--blue-rgb),.05);
    --decor-glow: .1;
    --shadow-card: 0 2px 12px rgba(120,90,40,.09);
    --shadow-hover: 0 16px 36px rgba(238,125,36,.16), 0 0 22px rgba(46,158,107,.14);
    --shadow-feat: 0 10px 26px rgba(120,90,40,.1);
    --shadow-modal: 0 24px 70px rgba(90,60,20,.25);
    --shadow-btn: 0 0 18px rgba(238,125,36,.4);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', Tahoma, sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden;
    transition: background .35s ease, color .35s ease;
}
.bg-decor { position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(var(--decor-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--decor-grid) 1px, transparent 1px);
    background-size: 44px 44px; }
.bg-decor::before, .bg-decor::after { content: ""; position: absolute; border-radius: 50%; filter: blur(110px); opacity: var(--decor-glow); }
.bg-decor::before { width: 520px; height: 520px; background: var(--blue); top: -180px; right: -120px; }
.bg-decor::after { width: 460px; height: 460px; background: var(--pink); bottom: -160px; left: -120px; }

/* 顶栏 */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
    gap: 14px; padding: 13px 34px; background: var(--topbar-bg); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.02rem; cursor: pointer; white-space: nowrap; }
.logo .cube { width: 28px; height: 28px; border-radius: 8px; flex: none;
    background: linear-gradient(135deg, var(--blue), var(--pink));
    display: flex; align-items: center; justify-content: center; font-size: .7rem; color: var(--on-accent); font-weight: 900; }
.logo b { background: linear-gradient(90deg, var(--blue), var(--pink));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.topbar-nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.topbar-nav a { color: var(--dim); text-decoration: none; font-size: .84rem; padding: 5px 14px;
    border-radius: 999px; border: 1px solid transparent; transition: all .25s; }
.topbar-nav a:hover { color: var(--blue); border-color: rgba(var(--blue-rgb),.5); background: rgba(var(--blue-rgb),.08); }
.topbar-nav .chip { color: var(--pink); border-color: rgba(var(--pink-rgb),.45); background: rgba(var(--pink-rgb),.07); cursor: default; }
.topbar-nav .chip:hover { color: var(--pink); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
section { scroll-margin-top: 76px; }

/* Hero */
.hero { text-align: center; padding: 60px 16px 30px; }
.hero .badge { display: inline-block; padding: 6px 18px; border-radius: 999px; font-size: .82rem; letter-spacing: 1px;
    color: var(--blue); background: rgba(var(--blue-rgb),.1); border: 1px solid rgba(var(--blue-rgb),.38); margin-bottom: 18px; }
.hero h1 { font-size: 2.6rem; letter-spacing: 1px; line-height: 1.25; margin-bottom: 14px;
    background: linear-gradient(90deg, var(--blue), var(--pink));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .subtitle { color: var(--dim); font-size: .98rem; max-width: 760px; margin: 0 auto; }
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.stat-item { background: rgba(var(--blue-rgb),.08); border: 1px solid rgba(var(--blue-rgb),.3);
    border-radius: 999px; padding: 7px 20px; font-size: .88rem; }
.stat-item b { color: var(--pink); font-size: 1.05rem; margin-right: 2px; }

/* 区块标题 */
.section-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 46px 0 22px; }
.section-title h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 12px; }
.section-title h2::before { content: ""; width: 5px; height: 24px; border-radius: 3px;
    background: linear-gradient(180deg, var(--blue), var(--pink)); }
.section-title small { color: var(--dim); font-size: .84rem; }

/* 学习路径 */
.path-strip { background: var(--card); border: 1px solid var(--line); border-radius: 16px;
    padding: 30px 26px 26px; overflow-x: auto; box-shadow: var(--shadow-card); }
.path-row { display: flex; min-width: 860px; }
.path-step { flex: 1; text-align: center; position: relative; padding: 0 6px; cursor: pointer; transition: transform .25s; }
.path-step:hover { transform: translateY(-4px); }
.path-step:not(:first-child)::before { content: ""; position: absolute; top: 21px; left: -50%; width: 100%;
    height: 2px; background: linear-gradient(90deg, rgba(var(--blue-rgb),.55), rgba(var(--pink-rgb),.55)); }
.path-dot { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; position: relative; z-index: 1;
    background: var(--bg); border: 2px solid var(--blue); color: var(--blue);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; transition: all .25s; }
.path-step:hover .path-dot { border-color: var(--pink); color: var(--pink); box-shadow: 0 0 18px rgba(var(--pink-rgb),.35); }
.path-name { font-size: .95rem; font-weight: 700; }
.path-sub { font-size: .76rem; color: var(--dim); margin-top: 2px; }

/* 六大模块 */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 8px; }
.m-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px 22px;
    display: flex; flex-direction: column; cursor: pointer; position: relative; overflow: hidden;
    transition: all .3s ease; box-shadow: var(--shadow-card); }
.m-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--pink)); opacity: 0; transition: opacity .3s; }
.m-card:hover { transform: translateY(-7px); border-color: rgba(var(--pink-rgb),.55);
    box-shadow: var(--shadow-hover); }
.m-card:hover::before { opacity: 1; }
.mc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 13px; }
.mc-icon { width: 54px; height: 54px; flex: none; border-radius: 13px; color: var(--blue);
    background: rgba(var(--blue-rgb),.1); border: 1px solid rgba(var(--blue-rgb),.4);
    display: flex; align-items: center; justify-content: center; transition: all .3s; }
.mc-icon svg { width: 28px; height: 28px; }
.m-card:hover .mc-icon { color: var(--pink); border-color: rgba(var(--pink-rgb),.55); background: rgba(var(--pink-rgb),.08); }
.mc-num { font-size: .72rem; color: var(--pink); letter-spacing: 2.5px; font-weight: 800; }
.mc-head h3 { font-size: 1.3rem; line-height: 1.3; }
.mc-desc { color: var(--dim); font-size: .88rem; min-height: 62px; }
.mc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 0 15px; min-height: 52px; align-content: flex-start; }
.mc-tags span { font-size: .73rem; color: var(--tag-text); background: rgba(var(--blue-rgb),.1);
    border: 1px solid rgba(var(--blue-rgb),.32); border-radius: 999px; padding: 2px 11px; white-space: nowrap; }
.mc-bar { margin-bottom: 15px; }
.mc-bar .bar-line { height: 6px; border-radius: 999px; background: var(--faint); overflow: hidden; }
.mc-bar .bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--pink)); }
.mc-bar .bar-label { display: flex; justify-content: space-between; font-size: .74rem; color: var(--dim); margin-top: 6px; }
.mc-bar .bar-label b { color: var(--blue); }
.mc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    border-top: 1px dashed var(--dash); padding-top: 14px; }
.mc-foot .count { font-size: .8rem; color: var(--dim); }
.mc-foot .count b { color: var(--pink); font-size: 1rem; }
.mc-btn { font-size: .86rem; font-weight: 700; color: var(--on-accent); white-space: nowrap;
    background: linear-gradient(90deg, var(--blue), var(--pink)); border-radius: 999px; padding: 8px 18px;
    transition: all .25s; }
.m-card:hover .mc-btn { box-shadow: var(--shadow-btn); letter-spacing: 1px; }

/* 授课特色 */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px;
    transition: all .3s; box-shadow: var(--shadow-card); }
.feat-card:hover { transform: translateY(-5px); border-color: rgba(var(--blue-rgb),.55); box-shadow: var(--shadow-feat); }
.feat-card .fi { width: 42px; height: 42px; border-radius: 11px; margin-bottom: 12px; color: var(--pink);
    background: rgba(var(--pink-rgb),.09); border: 1px solid rgba(var(--pink-rgb),.4);
    display: flex; align-items: center; justify-content: center; }
.feat-card .fi svg { width: 22px; height: 22px; }
.feat-card h4 { font-size: 1rem; margin-bottom: 6px; }
.feat-card p { font-size: .8rem; color: var(--dim); }
.steps-strip { margin-top: 20px; background: linear-gradient(135deg, rgba(var(--blue-rgb),.13), rgba(var(--pink-rgb),.09));
    border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; }
.steps-strip h3 { font-size: 1.02rem; margin-bottom: 16px; color: var(--blue); }
.steps-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.step-item { background: var(--panel); border: 1px solid var(--soft-border); border-radius: 12px;
    padding: 14px 14px 16px; position: relative; transition: all .25s; }
.step-item:hover { border-color: rgba(var(--pink-rgb),.5); transform: translateY(-3px); }
.step-item .sn { font-size: .72rem; font-weight: 800; color: var(--pink); letter-spacing: 1px; }
.step-item h5 { font-size: .95rem; margin: 4px 0 5px; }
.step-item p { font-size: .75rem; color: var(--dim); line-height: 1.6; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
    background: var(--modal-mask); backdrop-filter: blur(5px);
    opacity: 0; pointer-events: none; transition: opacity .28s; padding: 20px; }
.modal-mask.show { opacity: 1; pointer-events: auto; }
.modal { width: min(920px, 96vw); max-height: 88vh; overflow-y: auto; background: var(--modal-bg);
    border: 1px solid rgba(var(--blue-rgb),.45); border-radius: 20px; position: relative;
    transform: translateY(18px) scale(.98); transition: transform .28s;
    box-shadow: var(--shadow-modal); }
.modal-mask.show .modal { transform: none; }
.modal-close { position: sticky; top: 14px; margin: 14px 14px -40px auto; z-index: 5;
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--close-border);
    background: var(--panel-strong); color: var(--text); font-size: 1.15rem; cursor: pointer; transition: all .2s;
    display: flex; align-items: center; justify-content: center; }
.modal-close:hover { border-color: var(--pink); color: var(--pink); transform: rotate(90deg); }
.md-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 34px 36px 24px;
    background: linear-gradient(135deg, rgba(var(--blue-rgb),.16), rgba(var(--pink-rgb),.1));
    border-bottom: 1px solid var(--line); }
.md-hero .mc-icon { width: 58px; height: 58px; border-color: rgba(var(--pink-rgb),.5); background: rgba(var(--pink-rgb),.08); color: var(--pink); }
.md-hero .mc-icon svg { width: 30px; height: 30px; }
.md-hero h2 { font-size: 1.7rem; line-height: 1.3; }
.md-hero p { color: var(--dim); font-size: .9rem; margin-top: 3px; }
.md-chips { margin-left: auto; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.md-chips .chip { font-size: .76rem; padding: 4px 14px; border-radius: 999px; white-space: nowrap;
    background: var(--panel-soft); border: 1px solid rgba(var(--pink-rgb),.45); color: var(--pink); }
.md-chips .chip.blue { border-color: rgba(var(--blue-rgb),.5); color: var(--blue); }
.md-body { padding: 26px 36px 34px; }
.md-sec-title { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; font-weight: 700; margin: 22px 0 14px; }
.md-sec-title:first-child { margin-top: 4px; }
.md-sec-title::before { content: ""; width: 4px; height: 18px; border-radius: 2px;
    background: linear-gradient(180deg, var(--blue), var(--pink)); }
.md-sec-title small { color: var(--dim); font-weight: 400; font-size: .78rem; }
.syl-group { margin-bottom: 16px; background: var(--faint2); border: 1px solid var(--faint);
    border-radius: 12px; padding: 14px 18px; }
.syl-group h4 { font-size: .93rem; color: var(--blue); display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.syl-group h4 .g-count { font-size: .7rem; color: var(--pink); border: 1px solid rgba(var(--pink-rgb),.4);
    border-radius: 999px; padding: 1px 9px; font-weight: 600; }
.syl-group ul { list-style: none; }
.syl-group li { font-size: .86rem; color: var(--li-text); padding: 5px 0 5px 17px; position: relative;
    border-bottom: 1px dashed var(--faint); }
.syl-group li:last-child { border-bottom: none; }
.syl-group li::before { content: ""; position: absolute; left: 3px; top: 14px; width: 6px; height: 6px;
    border-radius: 50%; background: var(--blue); }
.lesson-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.lesson-item { display: flex; align-items: center; gap: 12px; text-decoration: none;
    background: var(--faint2); border: 1px solid var(--soft-border); border-radius: 11px;
    padding: 13px 16px; transition: all .22s; }
.lesson-item:hover { background: rgba(var(--blue-rgb),.1); border-color: var(--blue); transform: translateX(5px); }
.lesson-item .l-num { flex: none; font-size: .7rem; font-weight: 800; color: var(--on-accent);
    background: linear-gradient(135deg, var(--blue), var(--blue-light)); border-radius: 7px; padding: 3px 9px; letter-spacing: .5px; }
.lesson-item:hover .l-num { background: linear-gradient(135deg, var(--pink), var(--pink-light)); }
.lesson-item .l-title { font-size: .88rem; color: var(--text); flex: 1; }
.lesson-item .l-arrow { color: var(--blue); opacity: 0; transition: opacity .2s; }
.lesson-item:hover .l-arrow { opacity: 1; }
.md-tip { margin-top: 20px; font-size: .78rem; color: var(--dim); text-align: center; }

footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 44px 20px 52px; text-align: center; }
.signature { font-size: 1.25rem; font-weight: 700; letter-spacing: 2px;
    background: linear-gradient(90deg, var(--blue), var(--pink));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.footer-note { color: var(--dim); font-size: .79rem; margin-top: 10px; }

.to-top { position: fixed; right: 26px; bottom: 30px; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(var(--blue-rgb),.5); background: var(--totop-bg); color: var(--blue);
    font-size: 1.1rem; cursor: pointer; opacity: 0; pointer-events: none; transition: all .3s; z-index: 40; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--pink); border-color: var(--pink); transform: translateY(-4px); }

.fade-up { animation: fadeUp .5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }


/* 主题切换按钮 */
.theme-switch { position: relative; flex: none; }
.theme-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(var(--blue-rgb),.4);
    background: rgba(var(--blue-rgb),.08); color: var(--blue); cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all .25s; }
.theme-btn:hover { border-color: rgba(var(--pink-rgb),.55); color: var(--pink);
    background: rgba(var(--pink-rgb),.08); transform: rotate(18deg); }
.theme-btn svg { width: 19px; height: 19px; }
.theme-menu { position: absolute; top: calc(100% + 10px); right: 0; width: 240px; z-index: 50;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px;
    box-shadow: var(--shadow-modal); opacity: 0; transform: translateY(-6px);
    pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
.theme-switch.open .theme-menu { opacity: 1; transform: none; pointer-events: auto; }
.tm-title { font-size: .68rem; color: var(--dim); letter-spacing: 2px; padding: 4px 8px 8px; }
.tm-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px;
    border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text);
    cursor: pointer; text-align: left; font-family: inherit; transition: all .2s; }
.tm-item:hover { background: rgba(var(--blue-rgb),.08); border-color: rgba(var(--blue-rgb),.3); }
.tm-item.active { border-color: rgba(var(--pink-rgb),.5); background: rgba(var(--pink-rgb),.08); }
.tm-dots { display: flex; gap: 4px; flex: none; }
.tm-dots i { width: 12px; height: 12px; border-radius: 50%; display: block; border: 1px solid rgba(128,128,128,.35); }
.tm-name { font-size: .84rem; font-weight: 600; display: flex; flex-direction: column; line-height: 1.35; }
.tm-name em { font-style: normal; font-size: .66rem; color: var(--dim); font-weight: 400; }
.tm-check { margin-left: auto; color: var(--pink); opacity: 0; font-weight: 700; }
.tm-item.active .tm-check { opacity: 1; }

/* 学习路径节点图标 */
.path-name { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pn-icon { display: flex; color: var(--blue); }
.pn-icon svg { width: 15px; height: 15px; }
.path-step:hover .pn-icon { color: var(--pink); }

/* 主题切换平滑过渡 */
.topbar, .steps-strip, .step-item, .modal, .modal-close, .syl-group, .lesson-item, .md-chips .chip,
.stat-item, .mc-tags span, .to-top, .theme-btn, .theme-menu, footer {
    transition: background-color .35s ease, background .35s ease, border-color .35s ease,
        color .35s ease, box-shadow .35s ease; }

@media (max-width: 1024px) {
    .module-grid { grid-template-columns: repeat(2, 1fr); }
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-row { grid-template-columns: repeat(2, 1fr); }
    .lesson-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hero h1 { font-size: 1.75rem; }
    .topbar { padding: 12px 16px; }
    .topbar-nav a:not(.chip) { display: none; }
    .module-grid { grid-template-columns: 1fr; }
    .feat-grid { grid-template-columns: 1fr; }
    .steps-row { grid-template-columns: 1fr; }
    .mc-desc { min-height: 0; }
    .mc-tags { min-height: 0; }
    .md-hero, .md-body { padding-left: 22px; padding-right: 22px; }
    .md-chips { margin-left: 0; align-items: flex-start; }
}

/* ============ 课件目录：讲次状态徽标 + 轻提示（配合 js/main.js 的课件点击事件） ============ */
.lesson-item .l-badge { flex: none; font-size: .66rem; border-radius: 999px; padding: 2px 10px; letter-spacing: .5px; }
.lesson-item .l-badge.ready { color: var(--pink); border: 1px solid rgba(var(--pink-rgb),.45); background: rgba(var(--pink-rgb),.08); }
.lesson-item .l-badge.pending { color: var(--dim); border: 1px dashed var(--dash); background: var(--faint2); }
.lesson-item.lesson-pending .l-title { color: var(--dim); }

/* 轻提示气泡 */
.toast-tip { position: fixed; left: 50%; bottom: 88px; transform: translate(-50%, 12px);
    background: var(--panel-strong); color: var(--text); border: 1px solid var(--line);
    border-radius: 999px; padding: 9px 22px; font-size: .85rem; z-index: 80;
    opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
    box-shadow: var(--shadow-modal); max-width: 86vw; text-align: center; }
.toast-tip.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   首页图文增强（首屏代码窗口 / 模块插画 / 六步流程 / 课件实景）
   —— 所有插画均为主题自适应矢量图，三套配色自动跟随
   ============================================================ */

/* ---------- 插图通用图元（跟随主题变量） ---------- */
.a-line { stroke: var(--blue); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: .5; }
.a-acc  { stroke: var(--pink); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.a-kw   { stroke: var(--pink); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.a-soft { fill: rgba(var(--blue-rgb),.1); stroke: rgba(var(--blue-rgb),.32); stroke-width: 1.4; }
.a-soft2{ fill: rgba(var(--pink-rgb),.1); stroke: rgba(var(--pink-rgb),.32); stroke-width: 1.4; }
rect.a-acc, circle.a-acc { fill: rgba(var(--pink-rgb),.55); stroke: var(--pink); stroke-width: 1.5; }
.a-bar  { fill: rgba(var(--blue-rgb),.26); }
.a-bar-hi { fill: rgba(var(--blue-rgb),.6); }
.a-bar-done { fill: rgba(var(--pink-rgb),.6); }
.a-t  { fill: var(--text); font-size: 12px; font-weight: 600; font-family: inherit; }
.a-t2 { fill: var(--blue); font-size: 12px; font-weight: 700; font-family: inherit; }

/* ---------- 首屏：左文右图 ---------- */
.hero-split { display: grid; grid-template-columns: 1.04fr 1fr; gap: 40px; align-items: center;
    text-align: left; padding: 56px 16px 26px; }
.hero-split .badge { margin-bottom: 16px; }
.hero-split .subtitle { margin: 0; max-width: 560px; }
.hero-split .stats { justify-content: flex-start; margin-top: 24px; }
.hero-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.cta-btn { text-decoration: none; border-radius: 999px; padding: 11px 24px; font-size: .9rem;
    font-weight: 700; transition: all .25s; display: inline-flex; align-items: center; gap: 6px; }
.cta-btn.primary { color: var(--on-accent); background: linear-gradient(90deg, var(--blue), var(--pink));
    box-shadow: var(--shadow-btn); }
.cta-btn.primary:hover { transform: translateY(-2px); letter-spacing: 1px; }
.cta-btn.primary span { transition: transform .25s; }
.cta-btn.primary:hover span { transform: translateX(4px); }
.cta-btn.ghost { color: var(--blue); border: 1px solid rgba(var(--blue-rgb),.45); background: rgba(var(--blue-rgb),.07); }
.cta-btn.ghost:hover { color: var(--pink); border-color: var(--pink); background: rgba(var(--pink-rgb),.08);
    transform: translateY(-2px); }

.hero-art { position: relative; padding: 8px 4px; }
.idx-win { background: var(--card); border: 1px solid var(--line); border-radius: 16px;
    overflow: hidden; box-shadow: var(--shadow-hover); }
.idx-win-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px;
    border-bottom: 1px solid var(--line); background: var(--faint2); }
.idx-win-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; flex: none; }
.idx-win-bar i.r { background: #ff5f57; } .idx-win-bar i.y { background: #febc2e; } .idx-win-bar i.g { background: #28c840; }
.idx-file { margin-left: 6px; font-size: .76rem; color: var(--dim); font-family: Consolas, monospace; }
.idx-run { margin-left: auto; font-size: .68rem; color: var(--blue); letter-spacing: .5px;
    border: 1px solid rgba(var(--blue-rgb),.35); border-radius: 999px; padding: 1px 9px; }
.idx-code { padding: 15px 18px 13px; font-family: Consolas, 'Courier New', monospace;
    font-size: .8rem; line-height: 1.9; text-align: left; }
.idx-row { display: block; white-space: pre; color: var(--li-text); opacity: 0;
    animation: idxIn .42s ease forwards; }
.idx-row:nth-child(1) { animation-delay: .12s; } .idx-row:nth-child(2) { animation-delay: .24s; }
.idx-row:nth-child(3) { animation-delay: .36s; } .idx-row:nth-child(4) { animation-delay: .48s; }
.idx-row:nth-child(5) { animation-delay: .6s; }  .idx-row:nth-child(6) { animation-delay: .72s; }
.idx-row:nth-child(7) { animation-delay: .84s; } .idx-row:nth-child(8) { animation-delay: .96s; }
.idx-row:nth-child(9) { animation-delay: 1.08s; }
@keyframes idxIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.idx-ln { display: inline-block; width: 1.7em; margin-right: .6em; text-align: right;
    color: var(--dim); opacity: .45; font-style: normal; user-select: none; }
.idx-row em { font-style: normal; }
.idx-row em.k { color: var(--blue); font-weight: 600; }
.idx-row em.s { color: var(--pink); }
.idx-row em.n { color: var(--blue-light); }
.idx-row em.f { color: var(--pink-light); }
.idx-cursor { display: inline-block; width: 8px; height: 15px; background: var(--blue);
    vertical-align: -2px; animation: idxBlink 1.05s steps(2) infinite; }
@keyframes idxBlink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
.idx-out { display: flex; align-items: center; gap: 8px; padding: 11px 18px;
    border-top: 1px dashed var(--dash); font-family: Consolas, monospace; font-size: .8rem; color: var(--li-text); }
.idx-out b { color: var(--pink); }
.idx-out em { font-style: normal; color: var(--blue); font-weight: 700; }
.hero-chip { position: absolute; font-size: .72rem; font-weight: 700; color: var(--blue);
    background: var(--panel-strong); border: 1px solid rgba(var(--blue-rgb),.4);
    border-radius: 999px; padding: 6px 14px; box-shadow: var(--shadow-card); white-space: nowrap;
    backdrop-filter: blur(6px); animation: chipFloat 4.4s ease-in-out infinite; }
.hero-chip.c1 { top: -8px; left: -16px; }
.hero-chip.c2 { bottom: 40px; right: -14px; color: var(--pink);
    border-color: rgba(var(--pink-rgb),.45); animation-delay: 1.3s; }
.hero-chip.c3 { bottom: -12px; left: 26px; animation-delay: 2.2s; }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- 六大模块：卡片插画带 ---------- */
.mc-art { height: 116px; margin: -26px -24px 16px; display: flex; align-items: center;
    justify-content: center; overflow: hidden; border-bottom: 1px solid var(--soft-border);
    background: linear-gradient(135deg, rgba(var(--blue-rgb),.13), rgba(var(--pink-rgb),.07)); }
.mc-art svg { width: 100%; max-width: 300px; height: 116px; display: block; }
.m-card:hover .mc-art svg { transform: scale(1.03); }
.mc-art svg { transition: transform .4s ease; }

/* ---------- 课程特色：六卡布局 ---------- */
.feat-grid-6 { grid-template-columns: repeat(3, 1fr); }
.feat-grid-6 .feat-card { display: flex; flex-direction: column; }
.feat-grid-6 .feat-card p { flex: 1; }

/* ---------- 六步教学法：图文流程 ---------- */
.method-flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.mf-step { background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 16px 15px 18px; box-shadow: var(--shadow-card); transition: all .28s; }
.mf-step:hover { transform: translateY(-6px); border-color: rgba(var(--pink-rgb),.5); box-shadow: var(--shadow-hover); }
.mf-art { height: 74px; margin-bottom: 12px; border-radius: 11px;
    background: linear-gradient(135deg, rgba(var(--blue-rgb),.12), rgba(var(--pink-rgb),.08));
    border: 1px solid var(--soft-border); display: flex; align-items: center; justify-content: center; }
.mf-art svg { width: 96px; height: 72px; }
.mf-num { font-size: .7rem; font-weight: 800; color: var(--pink); letter-spacing: 1.5px; }
.mf-step h5 { font-size: .95rem; margin: 3px 0 6px; }
.mf-step p { font-size: .75rem; color: var(--dim); line-height: 1.62; }

/* ---------- 课件实景 ---------- */
.pv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pv-card { display: block; text-decoration: none; color: inherit; background: var(--card);
    border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px;
    box-shadow: var(--shadow-card); transition: all .3s; }
.pv-card:hover { transform: translateY(-6px); border-color: rgba(var(--blue-rgb),.55); box-shadow: var(--shadow-hover); }
.pv-art { height: 130px; margin-bottom: 14px; border-radius: 12px; overflow: hidden;
    background: var(--faint2); border: 1px solid var(--soft-border);
    display: flex; align-items: center; justify-content: center; }
.pv-art svg { width: 100%; max-width: 272px; height: 130px; display: block; }
.pv-card h4 { font-size: 1.02rem; margin-bottom: 5px; }
.pv-card p { font-size: .82rem; color: var(--dim); }
.pv-go { display: inline-block; margin-top: 12px; font-size: .79rem; font-weight: 700; color: var(--blue); }
.pv-card:hover .pv-go { color: var(--pink); }
.pv-note { margin-top: 18px; text-align: center; font-size: .79rem; color: var(--dim); }

/* 新组件主题切换平滑过渡 */
.idx-win, .mf-step, .pv-card, .cta-btn, .hero-chip, .mc-art {
    transition: background-color .35s ease, background .35s ease, border-color .35s ease,
        color .35s ease, box-shadow .35s ease, transform .35s ease; }

@media (max-width: 1024px) {
    .hero-split { grid-template-columns: 1fr; gap: 30px; text-align: center; padding-top: 44px; }
    .hero-split .subtitle { margin: 0 auto; }
    .hero-split .stats, .hero-cta { justify-content: center; }
    .hero-art { max-width: 560px; margin: 0 auto; width: 100%; }
    .feat-grid-6 { grid-template-columns: repeat(2, 1fr); }
    .method-flow { grid-template-columns: repeat(3, 1fr); }
    .pv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .feat-grid-6 { grid-template-columns: 1fr; }
    .method-flow { grid-template-columns: repeat(2, 1fr); }
    .hero-chip { display: none; }
    .topbar-nav .chip { white-space: nowrap; font-size: .7rem; padding: 3px 9px; }
    .idx-code { font-size: .7rem; padding: 12px 12px 10px; }
    .idx-out { font-size: .72rem; padding: 10px 12px; }
    .pv-art { height: 112px; }
    .pv-art svg { height: 112px; }
}
@media (max-width: 520px) {
    .topbar-nav .chip { display: none; }
    .topbar { padding: 11px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .idx-row { animation: none; opacity: 1; }
    .idx-cursor, .hero-chip, .fade-up { animation: none; }
}