/* WPUI reference layer: visual only. Business logic remains in MathCourse/Tutor. */
body.mathcourse-site{background:#f6f8fb;color:#13233a;font-family:"PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body.mathcourse-site .mc-container{width:min(1200px,calc(100% - 40px));max-width:1200px}
body.mathcourse-site .mc-site-header{position:sticky;top:0;z-index:80;background:rgba(255,255,255,.96);border-bottom:1px solid #e7edf5;backdrop-filter:blur(14px)}
body.mathcourse-site .mc-site-header__inner{min-height:64px;gap:34px}
body.mathcourse-site .mc-brand{gap:10px;color:#101b32!important;font-weight:800;line-height:1}
body.mathcourse-site .mc-brand__mark{display:grid;width:38px;height:38px;border-radius:11px;background:linear-gradient(145deg,#315cff,#1c45ee);color:#fff;font-size:0;box-shadow:0 5px 13px rgba(37,87,255,.22);position:relative}
body.mathcourse-site .mc-brand__mark:after{content:"";width:17px;height:13px;border:1.7px solid #fff;border-radius:3px;position:absolute;left:10px;top:11px;box-shadow:inset 8px 0 0 transparent}
body.mathcourse-site .mc-brand__text{display:flex;flex-direction:column;gap:4px;font-size:18px;font-weight:850;white-space:nowrap;letter-spacing:-.02em}
body.mathcourse-site .mc-brand__text small{font-size:9px;color:#2563eb;font-weight:800;letter-spacing:.04em}
body.mathcourse-site .mc-brand__text span{color:inherit}
body.mathcourse-site .mc-site-nav{gap:4px;margin-left:20px}
body.mathcourse-site .mc-site-nav a{padding:10px 16px;border-radius:12px;color:#40516a!important;font-size:14px;font-weight:750;transition:.18s}
body.mathcourse-site .mc-site-nav a:hover{background:#f2f6ff;color:#1d5df5!important}
body.mathcourse-site .mc-site-nav a.is-active{background:#edf4ff;color:#1d5df5!important}
body.mathcourse-site .mc-site-nav a.is-active:after{display:none}
body.mathcourse-site .mc-header-search{display:flex;align-items:center;margin-left:auto;width:215px;height:36px;border:1px solid #dfe7f1;border-radius:20px;background:#f7f9fc;overflow:hidden}
body.mathcourse-site .mc-header-search input{width:100%;height:100%;padding:0 13px;border:0;outline:0;background:transparent;color:#24344d;font-size:12px}
body.mathcourse-site .mc-header-search button{width:38px;height:100%;padding:0;border:0;background:transparent;color:#8190a6;font-size:20px;cursor:pointer}
body.mathcourse-site .mc-header-actions{margin-left:0;gap:8px}
body.mathcourse-site .mc-header-login{padding:9px 15px;border-radius:11px;background:#2458f4;color:#fff!important;font-size:12px;font-weight:800;box-shadow:0 6px 15px rgba(36,88,244,.18)}
body.mathcourse-site .mc-user-pill{display:flex;align-items:center;gap:8px;padding:7px 11px;border:1px solid #e1e7ef;border-radius:12px;background:#fff;color:#26354d!important;font-size:12px;font-weight:750}
body.mathcourse-site .mc-user-pill b{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#2d50ee;color:#fff;font-size:13px}
body.mathcourse-site .mc-user-pill i{font-style:normal;color:#c4ccd7}

/* Home */
body.mathcourse-site .mc-home-hero{background:linear-gradient(180deg,#edf6ff 0%,#f9fbff 100%);border-bottom:1px solid #e4edf7;position:relative;overflow:hidden}
body.mathcourse-site .mc-home-hero:after{content:"";position:absolute;inset:auto 0 0;height:1px;background:#dfeaf6}
body.mathcourse-site .mc-home-hero__inner{min-height:390px;grid-template-columns:minmax(0,1.1fr) minmax(420px,.9fr);gap:30px;position:relative;z-index:1}
body.mathcourse-site .mc-home-hero__copy{padding:46px 0 34px}
body.mathcourse-site .mc-kicker{display:inline-flex;align-items:center;gap:7px;padding:6px 11px;border:1px solid #cfe1ff;border-radius:99px;background:#eaf3ff;color:#2160e9;font-size:11px;font-weight:800}
body.mathcourse-site .mc-kicker span{width:6px;height:6px;background:#2563eb;border-radius:50%}
body.mathcourse-site .mc-home-hero h1{margin:18px 0 0;color:#13233e;font-size:clamp(40px,5vw,56px);line-height:1.18;letter-spacing:-.045em;font-weight:900}
body.mathcourse-site .mc-home-hero h1 strong{color:#315bf5}
body.mathcourse-site .mc-home-hero__copy>p{max-width:590px;margin:14px 0 0;color:#52657e;font-size:15px;line-height:1.8}
body.mathcourse-site .mc-home-hero__actions{margin-top:20px;gap:10px}
body.mathcourse-site .mc-home-hero__actions .mc-btn{min-height:42px;padding:0 18px;border-radius:10px;font-size:13px}
body.mathcourse-site .mc-home-hero__actions .mc-btn--primary{background:#2160f4;box-shadow:0 8px 18px rgba(33,96,244,.2)}
body.mathcourse-site .mc-home-hero__actions .mc-btn--ghost{background:#fff;color:#16315a;border:1px solid #dce5ef}
body.mathcourse-site .mc-home-trust{display:flex;flex-wrap:wrap;gap:18px;margin-top:19px;color:#5c718c;font-size:11px}
body.mathcourse-site .mc-home-trust span{padding:4px 9px;border:1px solid #dce7f2;border-radius:99px;background:rgba(255,255,255,.65)}
body.mathcourse-site .mc-home-types-mini{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;align-self:center}
body.mathcourse-site .mc-home-types-mini a{min-height:120px;padding:17px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:1px solid #d8e5f5;border-radius:15px;background:rgba(255,255,255,.88);box-shadow:0 8px 24px rgba(40,75,120,.06);transition:.18s}
body.mathcourse-site .mc-home-types-mini a:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(40,75,120,.11)}
body.mathcourse-site .mc-home-types-mini b{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#eaf3ff;color:#2160f4;font-size:14px}
body.mathcourse-site .mc-home-types-mini a:nth-child(2) b{background:#e9fbf5;color:#08a978}.mc-home-types-mini a:nth-child(3) b{background:#f4edff;color:#7a35eb}.mc-home-types-mini a:nth-child(4) b{background:#fff3e1;color:#ef8300}
body.mathcourse-site .mc-home-types-mini strong{font-size:13px;color:#14233b}.mc-home-types-mini small{font-size:9px;color:#718199}
body.mathcourse-site .mc-home-system{padding:54px 0 38px;background:#f8fafc}
body.mathcourse-site .mc-home-section-title{display:flex;align-items:center;gap:15px;margin-bottom:20px}.mc-home-section-title h2{margin:0;display:flex;align-items:center;gap:10px;font-size:24px;color:#13233a}.mc-home-section-title h2 span{width:6px;height:23px;border-radius:99px;background:#2360f5}.mc-home-section-title p{margin:0;color:#687991;font-size:12px}
body.mathcourse-site .mc-home-category-tabs{display:flex;gap:10px;border-bottom:1px solid #e5ebf2;padding-bottom:13px;margin-bottom:20px}.mc-home-category-tabs a{display:inline-flex;align-items:center;gap:10px;padding:12px 20px;border:1px solid #d9e3ef;border-radius:13px;color:#273b57;background:#fff;font-size:13px;font-weight:800}.mc-home-category-tabs a.is-active{background:#2160f4;border-color:#2160f4;color:#fff;box-shadow:0 9px 20px rgba(33,96,244,.18)}.mc-home-category-tabs small{font-size:9px;opacity:.85}
body.mathcourse-site .mc-home-category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.mc-home-category-card{min-height:190px;padding:20px;border:1px solid #e1e8f0;border-radius:13px;background:#fff;box-shadow:0 4px 14px rgba(20,40,70,.045);position:relative;display:flex;flex-direction:column;gap:12px;transition:.18s}.mc-home-category-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(20,40,70,.08)}.mc-home-category-card>b{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;background:#e5faf2;color:#08aa78;font-size:14px}.mc-home-category-card--blue>b{background:#edf4ff;color:#2671f5}.mc-home-category-card--purple>b{background:#f4edff;color:#8339ec}.mc-home-category-card h3{margin:0;font-size:18px;color:#17263c}.mc-home-category-card p{margin:6px 0 0;color:#63738a;font-size:11px;line-height:1.75}.mc-home-category-card em{font-style:normal;position:absolute;right:18px;top:21px;padding:5px 9px;border-radius:99px;background:#effbf7;color:#0a9e70;font-size:9px;font-weight:800}.mc-home-category-card--blue em{background:#eef5ff;color:#2160f4}.mc-home-category-card--purple em{background:#f7f0ff;color:#8035e8}
body.mathcourse-site .mc-home-why{padding:48px 0 58px;background:#fff}.mc-home-centered-title{text-align:center;margin-bottom:27px}.mc-home-centered-title h2{margin:0;font-size:25px;color:#13233a}.mc-home-centered-title p{margin:8px 0 0;color:#7a8799;font-size:12px}.mc-home-benefits{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.mc-home-benefits article{padding:19px;border:1px solid #e4e9f0;border-radius:12px;background:#fff;box-shadow:0 4px 14px rgba(20,40,70,.045)}.mc-home-benefits b{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#fff1df;color:#f28a00;font-size:17px}.mc-home-benefits article:nth-child(2) b{background:#e4faf2;color:#0aa87a}.mc-home-benefits article:nth-child(3) b{background:#eaf2ff;color:#2869f3}.mc-home-benefits article:nth-child(4) b{background:#ffe9ec;color:#ef5b76}.mc-home-benefits h3{margin:11px 0 7px;font-size:14px;color:#17263c}.mc-home-benefits p{margin:0;color:#6c7b90;font-size:11px;line-height:1.7}
body.mathcourse-site .mc-home-teacher{padding:0 0 52px;background:#fff}.mc-home-teacher__inner{display:grid;grid-template-columns:220px 1fr;gap:28px;align-items:center;padding:27px 35px;border-radius:17px;background:linear-gradient(135deg,#17356d,#174d8c);color:#fff;box-shadow:0 12px 30px rgba(18,50,100,.14)}.mc-home-teacher__avatar{width:88px;height:88px;margin:auto;display:grid;place-items:center;border:2px solid #20bdf7;border-radius:50%;font-size:31px;font-weight:800}.mc-home-teacher__inner h2{margin:0 0 10px;font-size:19px}.mc-home-teacher__inner p{margin:0;color:rgba(255,255,255,.76);font-size:11px;line-height:1.8}.mc-home-teacher__tags{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}.mc-home-teacher__tags span{padding:10px 13px;border:1px solid rgba(255,255,255,.18);border-radius:9px;background:rgba(255,255,255,.1)}.mc-home-teacher__tags strong{display:block;color:#61e0b8;font-size:12px}.mc-home-teacher__tags span+span strong{color:#ffd24d}.mc-home-teacher__tags small{display:block;margin-top:3px;color:rgba(255,255,255,.7);font-size:9px}
body.mathcourse-site .mc-home-courses{padding:48px 0 68px}.mc-section-heading h2{font-size:25px}

/* Course center */
body.mathcourse-site .mc-course-center{padding:30px 0 70px}.mc-course-center__hero{min-height:0;padding:25px 30px;border-radius:17px;background:linear-gradient(135deg,#173b78,#18548e);box-shadow:0 13px 32px rgba(20,58,115,.12)}.mc-course-center__hero h1{font-size:28px}.mc-course-center__hero p{font-size:12px}.mc-course-center__mark{width:70px;height:70px;border-radius:20px;font-size:38px}.mc-course-center__workspace{display:grid;grid-template-columns:210px minmax(0,1fr);gap:25px;margin-top:22px}.mc-course-center__sidebar{align-self:start;padding:16px;border:1px solid #e0e7ef;border-radius:14px;background:#fff;box-shadow:0 4px 15px rgba(20,40,70,.045)}.mc-course-center__side-title{padding:2px 4px 9px;color:#687990;font-size:11px;font-weight:800}.mc-course-center__side-nav a,.mc-course-center__grade-nav a{display:flex;align-items:center;gap:9px;padding:9px;border-radius:9px;color:#33455e!important;font-size:12px;font-weight:700}.mc-course-center__side-nav a:hover,.mc-course-center__grade-nav a:hover{background:#f2f6fb}.mc-course-center__side-nav a.is-active,.mc-course-center__grade-nav a.is-active{background:#edf4ff;color:#1e5cf0!important}.mc-course-center__side-nav i{display:grid;place-items:center;width:20px;height:20px;border-radius:5px;background:#eaf2ff;color:#2360f5;font-size:9px;font-style:normal}.mc-course-center__side-nav a:nth-child(2) i{background:#f2edff;color:#7b35e9}.mc-course-center__side-nav a:nth-child(3) i{background:#fff2de;color:#ef8500}.mc-course-center__side-nav b,.mc-course-center__grade-nav b{margin-left:auto;color:#a0acba;font-size:16px;font-weight:400}.mc-course-center__side-divider{height:1px;background:#edf1f5;margin:12px 0}.mc-course-center__library{min-width:0}.mc-course-center__section-title{margin:0 0 15px}.mc-course-center__section-title span{font-size:20px}.mc-course-center__section-title small{font-size:11px}
body.mathcourse-site .mathcourse-center__grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.mathcourse-center__card{border-radius:11px!important;background:#fff}.mathcourse-center__card[data-course-type="topic"] .mathcourse-center__cover{display:none}.mathcourse-center__card[data-course-type="topic"] .mathcourse-center__body{min-height:108px;padding:14px}.mathcourse-center__card[data-course-type="topic"] .mathcourse-center__body:before{content:"∑";float:right;display:grid;place-items:center;width:38px;height:38px;border-radius:9px;background:#eefbf6;color:#0aa978;font-size:15px;font-weight:800}.mathcourse-center__card[data-course-type="topic"] .mathcourse-center__title{font-size:13px;line-height:1.45;max-width:75%;font-weight:800}.mathcourse-center__card[data-course-type="topic"] .mathcourse-center__meta span:first-child{font-size:9px}.mathcourse-center__card[data-course-type="topic"] .mathcourse-center__meta span+span{display:none}.mathcourse-center__card[data-course-type="topic"] .mathcourse-center__button{display:none}.mathcourse-center__card[data-course-type="supplementary"] .mathcourse-center__cover{aspect-ratio:16/8.7}.mathcourse-center__card[data-course-type="supplementary"] .mathcourse-center__title{font-size:13px;font-weight:800}.mathcourse-center__card[data-course-type="supplementary"] .mathcourse-center__button{background:#fff6eb;color:#dc7200!important}

/* Learning center */
body.mathcourse-site .mc-learning-center-page{padding:30px 0 65px}.mc-learning-center-page__container{width:min(1200px,calc(100% - 40px));margin:auto}.mathcourse-learning-center{max-width:none}.mathcourse-learning-center__heading{display:none}.mathcourse-learning-center:before{content:"我的学习中心";display:block;margin:0 0 22px;color:#14243c;font-size:27px;font-weight:850}.mathcourse-learning-center:after{content:"查看已激活课程、学习进度与下一步学习内容";display:block;margin-top:-17px;margin-bottom:23px;color:#718198;font-size:12px}.mathcourse-learning-center__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.mathcourse-learning-center__card{display:block;border-radius:14px;box-shadow:0 5px 18px rgba(20,40,70,.05);border:1px solid #e0e7ef}.mathcourse-learning-center__cover{display:none}.mathcourse-learning-center__body{padding:21px}.mathcourse-learning-center__body h2{margin:0 0 17px;font-size:18px;color:#17263c}.mathcourse-learning-center__progress-row{font-size:11px}.mathcourse-learning-center__progress-row em{color:#225ff0}.mathcourse-learning-center__progress-track{height:6px}.mathcourse-learning-center__progress-track span{background:linear-gradient(90deg,#2474f6,#4b3cf4)}.mathcourse-learning-center__button{display:inline-flex;float:right;margin-top:12px;background:#edf4ff;color:#2160f4!important;border-radius:8px;font-weight:800}

/* Existing player: preserve structure and ArtPlayer controls. */
body.mathcourse-site .mc-course-player{background:transparent}.mathcourse-artplayer{border-radius:12px;box-shadow:0 10px 26px rgba(10,30,55,.14)}

body.mathcourse-site .mc-site-footer{background:#fff;border-top:1px solid #e3e8ef}.mc-site-footer__inner{min-height:64px}

@media(max-width:1050px){body.mathcourse-site .mc-home-hero__inner{grid-template-columns:1fr}.mc-home-types-mini{padding:0 0 32px}.mc-home-category-grid{grid-template-columns:repeat(3,1fr)}.mc-course-center__workspace{grid-template-columns:190px minmax(0,1fr)}body.mathcourse-site .mathcourse-center__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
 body.mathcourse-site .mc-container{width:calc(100% - 24px)}
 body.mathcourse-site .mc-site-header__inner{min-height:58px;gap:7px}.mc-brand__mark{width:34px!important;height:34px!important}.mc-brand__text{font-size:15px!important;gap:3px!important}.mc-brand__text small{font-size:7px!important}.mc-site-nav{margin-left:0!important;gap:0!important;overflow-x:auto;scrollbar-width:none}.mc-site-nav::-webkit-scrollbar{display:none}.mc-site-nav a{padding:8px 7px!important;font-size:11px!important;white-space:nowrap}.mc-header-search{display:none!important}.mc-header-actions{margin-left:auto!important}.mc-header-login{padding:8px 9px!important;font-size:11px!important}.mc-user-pill{padding:5px 7px!important;font-size:10px!important;gap:4px!important}.mc-user-pill b{width:24px;height:24px}
 body.mathcourse-site .mc-home-hero__inner{display:block;min-height:0}.mc-home-hero__copy{padding:28px 0 18px}.mc-home-hero h1{font-size:32px;margin-top:13px}.mc-home-hero__copy>p{font-size:13px;line-height:1.75}.mc-home-hero__actions{display:grid;grid-template-columns:1fr 1fr;margin-top:16px}.mc-home-hero__actions .mc-btn{min-height:43px;padding:0 8px;font-size:12px}.mc-home-trust{gap:7px;margin-top:13px;font-size:9px}.mc-home-trust span{padding:3px 6px}.mc-home-types-mini{grid-template-columns:repeat(4,1fr);gap:7px;padding:8px 0 27px}.mc-home-types-mini a{min-height:91px;padding:9px 3px;border-radius:11px}.mc-home-types-mini b{width:31px;height:31px;font-size:11px}.mc-home-types-mini strong{font-size:10px}.mc-home-types-mini small{font-size:7px}
 .mc-home-system{padding:35px 0 24px!important}.mc-home-section-title{display:block;margin-bottom:15px}.mc-home-section-title h2{font-size:20px}.mc-home-section-title h2 span{height:19px;width:5px}.mc-home-section-title p{margin:7px 0 0;font-size:9px}.mc-home-category-tabs{overflow-x:auto;white-space:nowrap}.mc-home-category-tabs a{padding:10px 12px;font-size:11px}.mc-home-category-grid{grid-template-columns:1fr!important;gap:10px}.mc-home-category-card{min-height:135px;padding:15px;border-radius:11px}.mc-home-category-card h3{font-size:15px}.mc-home-category-card p{font-size:9px}.mc-home-category-card em{top:15px;right:15px;font-size:8px}
 .mc-home-why{padding:34px 0 40px!important}.mc-home-centered-title h2{font-size:20px}.mc-home-centered-title p{font-size:9px}.mc-home-benefits{grid-template-columns:1fr 1fr;gap:9px}.mc-home-benefits article{padding:13px;border-radius:10px}.mc-home-benefits h3{font-size:12px}.mc-home-benefits p{font-size:9px}.mc-home-benefits b{width:30px;height:30px}
 .mc-home-teacher{padding-bottom:32px!important}.mc-home-teacher__inner{grid-template-columns:1fr;padding:20px;border-radius:13px;text-align:center}.mc-home-teacher__avatar{width:64px;height:64px;font-size:23px}.mc-home-teacher__inner h2{font-size:16px}.mc-home-teacher__inner p{text-align:left;font-size:9px}.mc-home-teacher__tags{grid-template-columns:1fr;text-align:left}.mc-home-courses{padding:30px 0 45px!important}
 body.mathcourse-site .mc-course-center{padding:15px 0 45px}.mc-course-center__hero{padding:18px;border-radius:13px}.mc-course-center__hero h1{font-size:23px}.mc-course-center__mark{display:none}.mc-course-center__workspace{display:block;margin-top:12px}.mc-course-center__sidebar{margin-bottom:12px;padding:9px}.mc-course-center__side-nav{display:flex;overflow-x:auto}.mc-course-center__side-nav a{flex:0 0 auto;padding:7px 9px;font-size:10px}.mc-course-center__side-divider,.mc-course-center__side-title--grade{display:none}.mc-course-center__grade-nav{display:flex;overflow-x:auto;border-top:1px solid #eef1f5;margin-top:5px;padding-top:5px}.mc-course-center__grade-nav a{flex:0 0 auto;padding:6px 10px;font-size:10px}.mc-course-center__section-title{margin:12px 0}.mc-course-center__section-title span{font-size:17px}.mc-course-center__section-title small{font-size:9px}.mathcourse-center__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.mathcourse-center__card[data-course-type="topic"] .mathcourse-center__body{min-height:91px;padding:11px}.mathcourse-center__card[data-course-type="topic"] .mathcourse-center__body:before{width:29px;height:29px;font-size:11px}.mathcourse-center__card[data-course-type="topic"] .mathcourse-center__title{font-size:11px}.mathcourse-center__card[data-course-type="topic"] .mathcourse-center__meta span{font-size:7px;padding:3px 5px}.mathcourse-center__card[data-course-type="supplementary"]{grid-column:1/-1}.mathcourse-center__card[data-course-type="supplementary"] .mathcourse-center__body{padding:11px}.mathcourse-center__card[data-course-type="supplementary"] .mathcourse-center__title{font-size:11px}
 body.mathcourse-site .mc-learning-center-page{padding:18px 0 40px}.mc-learning-center-page__container{width:calc(100% - 24px)}.mathcourse-learning-center:before{font-size:22px;margin-bottom:18px}.mathcourse-learning-center:after{font-size:9px;margin-top:-13px;margin-bottom:18px}.mathcourse-learning-center__grid{grid-template-columns:1fr;gap:10px}.mathcourse-learning-center__body{padding:15px}.mathcourse-learning-center__body h2{font-size:15px;margin-bottom:13px}.mathcourse-learning-center__button{font-size:10px}
}
@media(max-width:390px){body.mathcourse-site .mc-brand__text{font-size:14px!important}.mc-site-nav a:nth-child(n+3){display:none}.mc-home-hero h1{font-size:29px}.mc-home-types-mini strong{font-size:9px}.mc-home-types-mini small{font-size:6px}.mc-home-benefits{gap:7px}}
