/*
Theme Name: Math Course Theme
Theme URI: https://fanlaoshishu.com
Description: 樊老师数学专用学习平台主题
Version: 0.3.2
Author: Fan Laoshi
*/
:root{--mc-navy:#0b2a4a;--mc-navy-2:#174b75;--mc-blue:#1769e0;--mc-blue-soft:#edf5ff;--mc-orange:#ff8a2b;--mc-orange-soft:#fff3e3;--mc-green:#149b69;--mc-bg:#f6f8fb;--mc-text:#162235;--mc-muted:#748094;--mc-line:#e5eaf0;--mc-shadow:0 12px 35px rgba(13,41,66,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--mc-bg);color:var(--mc-text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}body.mathcourse-site a{text-decoration:none;color:inherit}body.mathcourse-site img{display:block;max-width:100%}.mc-container{width:min(1180px,calc(100% - 40px));margin:0 auto}
.mc-site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.95);border-bottom:1px solid var(--mc-line);backdrop-filter:blur(14px)}.mc-site-header__inner{min-height:68px;display:flex;align-items:center;gap:38px}.mc-brand{display:inline-flex;align-items:center;gap:10px;color:var(--mc-navy)!important;font-weight:800}.mc-brand__mark{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:var(--mc-navy);color:#fff;font-size:16px}.mc-brand__text{font-size:17px}.mc-site-nav{display:flex;align-items:center;gap:27px}.mc-site-nav a{position:relative;padding:24px 0 22px;color:#617084!important;font-size:13px;font-weight:650}.mc-site-nav a:hover,.mc-site-nav a.is-active{color:var(--mc-navy)!important}.mc-site-nav a.is-active:after{content:"";position:absolute;left:50%;bottom:14px;width:16px;height:3px;border-radius:99px;background:var(--mc-orange);transform:translateX(-50%)}.mc-header-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.mc-header-login,.mc-user-pill{display:inline-flex;align-items:center;gap:7px;padding:9px 13px;border:1px solid var(--mc-line);border-radius:10px;background:#fff;color:var(--mc-navy)!important;font-size:12px;font-weight:700}.mc-user-pill__dot{width:7px;height:7px;border-radius:50%;background:var(--mc-green)}.mc-user-pill__arrow{color:var(--mc-blue)}
.mc-home-hero{overflow:hidden;background:linear-gradient(180deg,#fff,#fbfcfe);border-bottom:1px solid var(--mc-line)}.mc-home-hero__inner{min-height:530px;display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,500px);gap:60px;align-items:center}.mc-kicker{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border-radius:99px;color:var(--mc-blue);background:var(--mc-blue-soft);font-size:11px;font-weight:750}.mc-kicker span{width:6px;height:6px;border-radius:50%;background:var(--mc-orange)}.mc-home-hero h1{margin:18px 0 0;color:var(--mc-navy);font-size:clamp(38px,5vw,62px);line-height:1.12;letter-spacing:-.045em;font-weight:850}.mc-home-hero h1 strong{color:var(--mc-blue)}.mc-home-hero__copy>p{max-width:520px;margin:18px 0 0;color:var(--mc-muted);font-size:16px;line-height:1.9}.mc-home-hero__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:27px}.mc-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:0 18px;border-radius:11px;font-size:13px;font-weight:750}.mc-btn--primary{color:#fff!important;background:var(--mc-blue);box-shadow:0 9px 22px rgba(23,105,224,.2)}.mc-btn--ghost{color:var(--mc-navy)!important;background:#fff;border:1px solid var(--mc-line)}.mc-btn--dark{color:#fff!important;background:var(--mc-navy)}.mc-home-hero__visual{position:relative;min-height:380px;display:grid;place-items:center}.mc-math-card{position:relative;z-index:2;border-radius:24px;box-shadow:0 25px 70px rgba(13,41,66,.15)}.mc-math-card--main{width:min(390px,80%);min-height:245px;padding:32px;display:flex;flex-direction:column;justify-content:space-between;color:#fff;background:linear-gradient(145deg,var(--mc-navy),#1a527c);transform:rotate(-4deg)}.mc-math-card__label{font-size:11px;letter-spacing:.2em;opacity:.65;font-weight:800}.mc-math-card__formula{margin-top:auto;font-size:clamp(24px,4vw,34px);font-weight:750}.mc-math-card__line{width:60px;height:4px;margin:17px 0 11px;border-radius:99px;background:var(--mc-orange)}.mc-math-card__small{font-size:12px;opacity:.75}.mc-math-card--float{position:absolute;right:2%;top:34px;z-index:3;padding:18px 22px;color:var(--mc-navy);background:#fff;font-size:14px;line-height:1.7;transform:rotate(7deg)}.mc-math-card--float b{color:var(--mc-blue)}.mc-math-orbit{position:absolute;border:1px solid #dbe8f7;border-radius:50%}.mc-math-orbit--one{width:430px;height:430px}.mc-math-orbit--two{width:330px;height:330px;border-color:#f4dfc3}
.mc-home-types,.mc-home-courses{padding:72px 0}.mc-section-heading{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:25px}.mc-section-heading__eyebrow{display:block;margin-bottom:8px;color:var(--mc-orange);font-size:10px;font-weight:850;letter-spacing:.16em}.mc-section-heading h2{margin:0;color:var(--mc-navy);font-size:28px;line-height:1.25}.mc-section-heading p{margin:0;color:var(--mc-muted);font-size:13px}.mc-section-heading--courses>a{color:var(--mc-blue)!important;font-size:13px;font-weight:750}.mc-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.mc-type-card{position:relative;min-height:255px;padding:26px 28px;display:flex;flex-direction:column;justify-content:space-between;border-radius:18px;overflow:hidden;border:1px solid var(--mc-line);background:#fff;box-shadow:var(--mc-shadow);transition:transform .2s,box-shadow .2s}.mc-type-card:hover{transform:translateY(-4px);box-shadow:0 18px 45px rgba(13,41,66,.11)}.mc-type-card:after{content:"";position:absolute;width:170px;height:170px;right:-70px;bottom:-70px;border-radius:50%;background:var(--mc-blue-soft)}.mc-type-card--book:after{background:var(--mc-orange-soft)}.mc-type-card__top{display:flex;justify-content:space-between;align-items:center;position:relative;z-index:2}.mc-type-card__icon{width:39px;height:39px;display:grid;place-items:center;border-radius:11px;color:var(--mc-blue);background:var(--mc-blue-soft);font-size:11px;font-weight:850}.mc-type-card--book .mc-type-card__icon{color:#d87500;background:var(--mc-orange-soft)}.mc-type-card__arrow{color:#91a0b3;font-size:20px}.mc-type-card__tag{color:var(--mc-blue);font-size:11px;font-weight:850}.mc-type-card--book .mc-type-card__tag{color:#d87500}.mc-type-card h3{margin:8px 0 9px;color:var(--mc-navy);font-size:23px;line-height:1.35}.mc-type-card p{max-width:500px;margin:0;color:var(--mc-muted);font-size:13px;line-height:1.75}.mc-home-note{padding:0 0 76px}.mc-home-note__inner{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:30px 34px;border-radius:18px;background:#fff;border:1px solid var(--mc-line);box-shadow:var(--mc-shadow)}.mc-home-note h2{margin:0;color:var(--mc-navy);font-size:22px}.mc-home-note p{margin:8px 0 0;color:var(--mc-muted);font-size:13px}
.mc-course-center{padding:28px 0 70px}.mc-course-center__back{margin-bottom:14px}.mc-course-center__back a{color:#667085!important;font-size:13px;font-weight:650}.mc-course-center__hero{position:relative;min-height:205px;padding:34px 38px;display:flex;align-items:center;justify-content:space-between;overflow:hidden;border-radius:24px;background:linear-gradient(135deg,var(--mc-navy),var(--mc-navy-2));color:#fff;box-shadow:0 18px 45px rgba(11,42,74,.13)}.mc-course-center__hero:after{content:"";position:absolute;width:300px;height:300px;right:-110px;top:-150px;border-radius:50%;background:rgba(255,138,43,.13)}.mc-course-center__eyebrow{display:block;margin-bottom:9px;color:#ffb77d;font-size:10px;font-weight:850;letter-spacing:.18em}.mc-course-center__hero h1{position:relative;z-index:1;margin:0;font-size:clamp(30px,4vw,42px)}.mc-course-center__hero p{position:relative;z-index:1;margin:11px 0 0;color:rgba(255,255,255,.72);font-size:14px}.mc-course-center__mark{position:relative;z-index:1;width:92px;height:92px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.18);border-radius:26px;font-size:50px;background:rgba(255,255,255,.06)}.mc-course-center__types{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0 34px}.mc-course-center__types>a{position:relative;min-height:112px;padding:21px 22px;display:grid;grid-template-columns:42px 1fr auto;grid-template-rows:auto auto;column-gap:13px;align-items:center;border:1px solid var(--mc-line);border-radius:18px;background:#fff;box-shadow:0 8px 26px rgba(13,41,66,.045);transition:transform .18s,box-shadow .18s}.mc-course-center__types>a:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(13,41,66,.09)}.mc-course-center__types>a>span:first-child{grid-row:1/3;width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:var(--mc-blue-soft);color:var(--mc-blue);font-size:11px;font-weight:850}.mc-course-center__types>a.is-book>span:first-child{background:var(--mc-orange-soft);color:#d87500}.mc-course-center__types strong{color:var(--mc-navy);font-size:18px}.mc-course-center__types small{color:var(--mc-muted);font-size:11px}.mc-course-center__types b{grid-column:3;grid-row:1/3;color:#9aa6b5;font-size:22px;font-weight:400}.mc-course-center__library{padding-top:3px}.mc-course-center__section-title{margin-bottom:17px}.mc-course-center__section-title>div{display:flex;align-items:baseline;gap:10px}.mc-course-center__section-title span{color:var(--mc-navy);font-size:22px;font-weight:800}.mc-course-center__section-title small{color:#8a96a7;font-size:11px}.mc-course-center__empty{padding:50px 20px;border:1px dashed #cfd9e2;border-radius:16px;background:#fff;text-align:center;color:var(--mc-muted)}
.mathcourse-center__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.mathcourse-center__card{overflow:hidden;border:1px solid var(--mc-line);border-radius:18px;background:#fff;box-shadow:var(--mc-shadow);transition:transform .2s,box-shadow .2s}.mathcourse-center__card:hover{transform:translateY(-3px);box-shadow:0 18px 42px rgba(13,41,66,.1)}.mathcourse-center__cover{display:block;aspect-ratio:16/9;overflow:hidden;background:#e8eff6}.mathcourse-center__cover img{width:100%;height:100%;object-fit:cover}.mathcourse-center__cover-placeholder{height:100%;display:grid;place-items:center;color:#7890a6;font-size:14px;font-weight:750}.mathcourse-center__body{padding:17px 18px 18px}.mathcourse-center__meta{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:9px}.mathcourse-center__meta span{padding:4px 7px;border-radius:6px;color:var(--mc-blue);background:var(--mc-blue-soft);font-size:10px;font-weight:750}.mathcourse-center__title{min-height:45px;margin:0;color:var(--mc-navy);font-size:16px;line-height:1.45}.mathcourse-center__button{display:flex;align-items:center;justify-content:space-between;margin-top:15px;padding:10px 12px;border-radius:9px;color:var(--mc-blue)!important;background:#f7faff;font-size:12px;font-weight:800}
.mathcourse-learning-center{width:100%;max-width:1100px;margin:0 auto}.mathcourse-learning-center__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.mathcourse-learning-center__card{background:#fff;border:1px solid var(--mc-line);border-radius:18px;overflow:hidden;display:grid;grid-template-columns:190px minmax(0,1fr);box-shadow:var(--mc-shadow)}.mathcourse-learning-center__cover{background:#e7eef4;min-height:145px}.mathcourse-learning-center__cover img{width:100%;height:100%;object-fit:cover}.mathcourse-learning-center__cover span{display:grid;place-items:center;width:100%;height:100%;color:#60758a;font-size:13px;font-weight:700}.mathcourse-learning-center__body{padding:18px}.mathcourse-learning-center__body h2{margin:0 0 15px;font-size:18px}.mathcourse-learning-center__progress-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;margin-bottom:8px;color:var(--mc-muted);font-size:11px}.mathcourse-learning-center__progress-row em{font-style:normal;color:var(--mc-orange);font-weight:800}.mathcourse-learning-center__progress-track{height:7px;background:#edf1f4;border-radius:99px;overflow:hidden}.mathcourse-learning-center__progress-track span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--mc-blue),var(--mc-orange))}.mathcourse-learning-center__button{display:flex;justify-content:space-between;margin-top:15px;padding:9px 11px;border-radius:9px;background:#f1f5f8;color:var(--mc-blue)!important;font-size:12px;font-weight:750}.mathcourse-learning-center__empty,.mathcourse-learning-center__login{padding:45px 20px;background:#fff;border:1px solid var(--mc-line);border-radius:16px;text-align:center}.mathcourse-learning-center__empty span,.mathcourse-learning-center__login span{color:var(--mc-muted);font-size:13px}.mc-site-footer{background:#fff;border-top:1px solid var(--mc-line)}.mc-site-footer__inner{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:16px;color:#98a2b3;font-size:12px}
@media(max-width:900px){.mc-home-hero__inner{grid-template-columns:1fr;gap:15px;padding-top:45px}.mc-home-hero__visual{min-height:300px}.mathcourse-center__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mathcourse-learning-center__grid{grid-template-columns:1fr}}
@media(max-width:700px){.mc-container{width:calc(100% - 28px)}.mc-site-header__inner{min-height:60px;gap:10px}.mc-site-nav{display:none}.mc-home-hero__inner{min-height:0;padding:48px 0 35px}.mc-home-hero h1{font-size:39px}.mc-home-hero__copy>p{font-size:14px}.mc-home-hero__visual{min-height:270px}.mc-math-card--main{min-height:190px;padding:25px}.mc-math-card--float{right:0;top:18px;padding:13px 16px;font-size:12px}.mc-math-orbit--one{width:310px;height:310px}.mc-math-orbit--two{width:240px;height:240px}.mc-home-types,.mc-home-courses{padding:48px 0}.mc-section-heading{display:block}.mc-section-heading p{margin-top:7px}.mc-type-grid{grid-template-columns:1fr;gap:12px}.mc-type-card{min-height:210px;padding:22px}.mc-type-card h3{font-size:20px}.mc-home-note{padding-bottom:48px}.mc-home-note__inner{display:block;padding:24px}.mc-home-note__inner .mc-btn{margin-top:18px}.mc-course-center{padding:14px 0 45px}.mc-course-center__hero{min-height:170px;padding:27px 23px;border-radius:19px}.mc-course-center__hero h1{font-size:31px}.mc-course-center__hero p{font-size:12px}.mc-course-center__mark{width:66px;height:66px;border-radius:19px;font-size:36px}.mc-course-center__types{gap:9px;margin:10px 0 27px}.mc-course-center__types>a{min-height:100px;padding:16px 13px;grid-template-columns:34px 1fr auto;column-gap:9px;border-radius:15px}.mc-course-center__types>a>span:first-child{width:34px;height:34px;border-radius:10px;font-size:9px}.mc-course-center__types strong{font-size:15px}.mc-course-center__types small{font-size:10px}.mc-course-center__types b{font-size:18px}.mc-course-center__section-title span{font-size:19px}.mc-course-center__section-title small{font-size:10px}.mathcourse-center__grid{grid-template-columns:1fr;gap:14px}.mathcourse-center__title{min-height:0}.mathcourse-learning-center__card{grid-template-columns:120px minmax(0,1fr)}.mathcourse-learning-center__cover{min-height:115px}.mc-site-footer__inner{padding:12px 0;flex-direction:column;justify-content:center}}
@media(max-width:430px){.mc-course-center__mark{display:none}.mc-course-center__types>a{grid-template-columns:30px 1fr auto;padding:15px 11px}.mc-course-center__types>a>span:first-child{width:30px;height:30px}.mc-course-center__types strong{font-size:14px}.mc-course-center__types small{font-size:9px}}
