/* 免费学习入口 v2（替换 editable/tools/study-portal-entry.css）。颜色取门户 :root 变量，缺省值与门户一致。 */

/* 登录页横幅；首页只在后台还没建“免费学习”卡片时作兜底 */
.classroom-study-entry{box-sizing:border-box;display:flex;align-items:center;gap:.85rem;min-width:0;padding:1rem 1.1rem;border:1px solid var(--line,#e6eaf1);border-radius:var(--radius-md,1rem);background:linear-gradient(115deg,#fffaf0,#eff8f2);color:var(--text,#162d58);text-align:left;text-decoration:none;transition:box-shadow .18s,border-color .18s}
.classroom-study-entry:hover{border-color:#80acd1;box-shadow:0 .25rem .8rem #193d7210}
.classroom-study-entry:focus-visible{outline:3px solid var(--accent,#2f6fed);outline-offset:3px}
.classroom-study-entry--login{margin-top:.85rem;box-shadow:var(--shadow,0 .4rem 1.6rem rgba(72,62,31,.043))}
.classroom-study-entry--home{margin:0 0 .85rem}
.classroom-study-entry__icon{display:flex;align-items:center;justify-content:center;flex:0 0 2.9rem;width:2.9rem;height:2.9rem;border-radius:.85rem;background:var(--accent-soft,#edf3ff);color:var(--accent,#2f6fed)}
.classroom-study-entry__icon svg{display:block;width:1.7rem;height:1.7rem}
.classroom-study-entry__copy{display:block;min-width:0;flex:1}
.classroom-study-entry__heading{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;font-size:1.08rem;font-weight:800;line-height:1.5}
.classroom-study-entry__badge{display:inline-block;padding:.08rem .45rem;border-radius:1rem;background:var(--success-soft,#eaf6ed);color:var(--success,#168550);font-size:.66rem;font-weight:700;line-height:1.5;white-space:nowrap}
.classroom-study-entry__subjects{display:block;margin-top:.12rem;font-size:.78rem;line-height:1.65;color:var(--text-muted,#61708a)}
.classroom-study-entry__note{display:block;margin-top:.08rem;font-size:.72rem;line-height:1.5;color:#527261}
.classroom-study-entry__arrow{flex:0 0 auto;font-size:1.5rem;line-height:1;color:var(--accent-dark,#1954cf)}
@media(min-width:701px){.classroom-study-entry--home{padding:.95rem 1.15rem}.classroom-study-entry--home .classroom-study-entry__copy{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:1rem}.classroom-study-entry--home .classroom-study-entry__heading{grid-column:1}.classroom-study-entry--home .classroom-study-entry__subjects{grid-column:1}.classroom-study-entry--home .classroom-study-entry__note{grid-column:2;grid-row:1 / 3;margin:0;font-size:.82rem}}
@media(max-width:700px){.classroom-study-entry{gap:.65rem;padding:.85rem;border-radius:1rem}.classroom-study-entry__icon{flex-basis:2.5rem;width:2.5rem;height:2.5rem}.classroom-study-entry__heading{font-size:1rem}.classroom-study-entry__subjects{font-size:.73rem}.classroom-study-entry__arrow{font-size:1.25rem}}
@media(prefers-reduced-motion:reduce){.classroom-study-entry{transition:none}}

/* 首页原生“免费学习”卡片：门户 HomePage 样式按路由懒加载、排在本文件之后，所以选择器多加一层 :not() 提高优先级 */
.module-card[data-classroom-study-card]:not(.is-coming) .module-card__badge{background:#16b666}
.module-card[data-classroom-study-card]:not(.is-coming) .module-card__badge .ui-icon{display:none}
.module-card[data-classroom-study-card]:not(.is-coming){cursor:pointer}
