/* =========================================================
   91助考 PC 前台样式（原创，原生 CSS）
   布局参考：1440 桌面宽度，内容容器 1200px
   ========================================================= */

:root {
    --primary: #2B7CFF;
    --primary-deep: #1E63E0;
    --primary-light: #EDF4FF;
    --buy: #FF6A00;
    --buy-light: #FFF3EA;
    --price: #FF4D4F;
    --page: #F6F7F9;
    --card: #FFFFFF;
    --border: #EFEFF2;
    --text: #1F2329;
    --sub: #5C6370;
    --muted: #8A909C;
    --light: #F5F6F9;
    --radius: 8px;
    --content: 1200px;
    --shadow: 0 4px 14px rgba(20, 40, 80, .04);
    --shadow-hover: 0 12px 26px rgba(43, 124, 255, .12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--page);
    color: var(--text);
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--primary);
}

ul,
li {
    list-style: none;
    margin: 0;
    padding: 0;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 700;
}

p {
    margin: 0;
}

.container {
    width: var(--content);
    margin: 0 auto;
}

/* 页面底色 */
.page-home,
.page-mall,
.page-live,
.page-teacher,
.page-calendar {
    background: #fff;
}

.page-login {
    background: #F6F7F9;
}

/* ---------- 通用按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 22px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s ease;
    white-space: nowrap;
}

.btn-buy {
    color: #fff;
    background: linear-gradient(135deg, #FF8A3D, var(--buy));
    box-shadow: 0 6px 16px rgba(255, 106, 0, .18);
}

.btn-buy:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(255, 106, 0, .26);
}

.btn-buy-soft {
    color: #B86A00;
    background: #FFE3BA;
    box-shadow: none;
}

.btn-buy-soft:hover {
    color: #B86A00;
    background: #FFD9A6;
    box-shadow: none;
}

/* ---------- 顶部导航（高 84px） ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 300;
    height: 84px;
    background: #fff;
    border-bottom: 1px solid #F0F1F4;
}

.hd-inner {
    width: var(--content);
    height: 84px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 26px;
}

.hd-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.hd-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .5px;
    background: linear-gradient(135deg, #4A9BFF, #1E63E0);
    box-shadow: 0 5px 12px rgba(43, 124, 255, .22);
}

.hd-logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #101828;
}

.hd-search {
    display: flex;
    align-items: center;
    width: 340px;
    height: 42px;
    padding-left: 18px;
    border: 1px solid #F0F1F4;
    border-radius: 21px;
    background: #F5F6F9;
    transition: border-color .2s ease, background .2s ease;
}

.hd-search:focus-within {
    border-color: var(--primary);
    background: #fff;
}

.hd-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 13px;
}

.hd-search input::placeholder {
    color: #A6ACB8;
}

.hd-search button {
    height: 32px;
    padding: 0 18px;
    margin-right: 5px;
    border-radius: 16px;
    color: #fff;
    font-size: 13px;
    background: var(--primary);
}

.hd-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

.hd-nav-link {
    position: relative;
    height: 84px;
    line-height: 84px;
    font-size: 15px;
    color: #4E5462;
    transition: color .2s ease;
}

.hd-nav-link:hover {
    color: var(--primary);
}

.hd-nav-link.is-active {
    color: var(--primary);
    font-weight: 700;
}

.hd-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 6px;
}

.hd-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #6B7280;
}

.hd-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hd-icon:hover {
    color: var(--primary);
}

.hd-login {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 18px;
    margin-left: 4px;
    border-radius: 17px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    background: var(--primary);
    transition: background .2s ease;
}

.hd-login:hover {
    color: #fff;
    background: var(--primary-deep);
}

/* ---------- 页脚（简洁） ---------- */
.site-footer {
    margin-top: 56px;
    background: #fff;
    border-top: 1px solid #F0F1F4;
}

.ft-inner {
    width: var(--content);
    margin: 0 auto;
    padding: 26px 0 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
}

.ft-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ft-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 13px;
    color: #7C8390;
}

.ft-links a:hover {
    color: var(--primary);
}

.ft-copy {
    margin-left: auto;
    font-size: 12px;
    color: #A6ACB8;
}

.ft-bottom {
    border-top: 1px solid #F5F6F9;
}

.ft-bottom-inner {
    width: var(--content);
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 12px;
    color: #A6ACB8;
}

/* ---------- 封面渐变（纯 CSS） ---------- */
.cover {
    position: relative;
    overflow: hidden;
    background: #E9EEF7;
}

.cover::before {
    content: "";
    position: absolute;
    right: -34px;
    top: -46px;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
}

.cover::after {
    content: "";
    position: absolute;
    left: -30px;
    bottom: -54px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.g1 { background: linear-gradient(135deg, #6FA5FF 0%, #2B7CFF 100%); }
.g2 { background: linear-gradient(135deg, #FFB07C 0%, #FF6A3D 100%); }
.g3 { background: linear-gradient(135deg, #6FE0B6 0%, #0FA47F 100%); }
.g4 { background: linear-gradient(135deg, #C2A5FF 0%, #7C4DFF 100%); }
.g5 { background: linear-gradient(135deg, #FFD07A 0%, #F19B1A 100%); }
.g6 { background: linear-gradient(135deg, #7FE0EB 0%, #1D9BB5 100%); }
.g7 { background: linear-gradient(135deg, #FF9FB1 0%, #E7365A 100%); }
.g8 { background: linear-gradient(135deg, #A9BBFF 0%, #4B63C9 100%); }

.av1 { background: linear-gradient(160deg, #7FA8FF, #2C5FD8); }
.av2 { background: linear-gradient(160deg, #FFB57F, #E56319); }
.av3 { background: linear-gradient(160deg, #7EE1BE, #0E9C74); }
.av4 { background: linear-gradient(160deg, #B9A0FF, #6C3DF0); }
.av5 { background: linear-gradient(160deg, #FFD78C, #E0A317); }
.av6 { background: linear-gradient(160deg, #8CDCE7, #178FA8); }
.av7 { background: linear-gradient(160deg, #FFA9BB, #DC2C51); }
.av8 { background: linear-gradient(160deg, #9EB4FF, #3F57C0); }
.av9 { background: linear-gradient(160deg, #FFC68C, #E07B2B); }

/* ---------- 首页首屏（全宽轮播 + 悬浮分类菜单） ---------- */
.home-hero {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: #F6F8FA;
}

/* 轮播图：宽度与浏览器一致 */
.hero-slider {
    position: absolute;
    inset: 0;
    height: 520px;
    overflow: hidden;
}

/* 悬浮菜单容器：宽度与内容容器一致，浮在轮播之上 */
.hero-nav-wrap {
    position: absolute;
    top: 0;
    left: calc((100% - var(--content)) / 2);
    z-index: 10;
    display: flex;
    width: var(--content);
    height: 520px;
}

.hero-cats {
    width: 314px;
    height: 520px;
    flex: none;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .8);
}

.cat-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cat-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 14px;
    transition: background .18s ease;
}

.cat-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #1890FF;
    opacity: 0;
    transition: opacity .18s ease;
}

.cat-item:hover,
.cat-item.is-active {
    background: rgba(255, 255, 255, .98);
}

.cat-item:hover::before,
.cat-item.is-active::before {
    opacity: 1;
}

.cat-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cat-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    transition: color .18s ease;
}

.cat-item:hover .cat-name,
.cat-item.is-active .cat-name {
    color: #1890FF;
}

.cat-arrow {
    color: #C3C8D2;
    font-size: 15px;
}

.cat-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    margin-top: 6px;
}

.cat-links a {
    font-size: 13px;
    line-height: 1.55;
    color: #7C8391;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-links a:hover {
    color: #1890FF;
}

.cat-more {
    flex: none;
    display: flex;
    align-items: center;
    height: 54px;
    padding: 0 14px;
    font-size: 14px;
    color: #1890FF;
}

.cat-more i {
    font-style: normal;
    margin-left: 6px;
}

.cat-more:hover {
    color: #0A6FD6;
}

/* 右侧悬浮展开的详细分类面板 */
.cat-panel {
    position: absolute;
    left: 314px;
    right: 0;
    top: 0;
    height: 520px;
    padding: 30px 30px 30px 40px;
    overflow-y: auto;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .1);
    display: none;
}

.hero-nav-wrap.is-open .cat-panel {
    display: block;
}

.cat-panel-box {
    display: none;
}

.cat-panel-box.is-active {
    display: block;
}

.panel-group {
    display: flex;
    gap: 20px;
    padding: 10px 0;
}

.panel-group-title {
    width: 70px;
    flex: none;
    padding-top: 3px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.panel-links {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 24px;
}

.panel-links a {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-links a:hover {
    color: #1890FF;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease;
}

.slide.is-active {
    opacity: 1;
    visibility: visible;
}

.bn1 { background: linear-gradient(120deg, #0B2358 0%, #1F5FD0 60%, #4D9BFF 100%); }
.bn2 { background: linear-gradient(120deg, #2C0F55 0%, #7C4DFF 60%, #C0A3FF 100%); }
.bn3 { background: linear-gradient(120deg, #5E170B 0%, #FF6A3D 58%, #FFC07C 100%); }
.bn4 { background: linear-gradient(120deg, #063039 0%, #0FA47F 58%, #77E0C0 100%); }

.slide::before {
    content: "";
    position: absolute;
    right: 80px;
    top: -150px;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 68%);
}

.slide::after {
    content: "";
    position: absolute;
    right: 210px;
    bottom: -110px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 50%;
}

.slide-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    /* 文字避开左侧悬浮菜单：容器左偏移 + 菜单宽度 + 间距 */
    padding: 84px 60px 0 calc((100% - var(--content)) / 2 + 354px);
    color: #fff;
}

.slide-tag {
    display: inline-block;
    padding: 4px 13px;
    border-radius: 14px;
    font-size: 12px;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .3);
}

.slide-title {
    margin-top: 20px;
    font-size: 44px;
    line-height: 1.28;
    letter-spacing: 2px;
    text-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

.slide-sub {
    margin-top: 16px;
    font-size: 16px;
    color: rgba(255, 255, 255, .82);
    letter-spacing: 1px;
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 28px;
    margin-top: 32px;
    border-radius: 21px;
    font-size: 14px;
    font-weight: 700;
    color: #1E63E0;
    background: #fff;
    transition: all .2s ease;
}

.slide-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, .16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
}

.slide-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 38px;
    height: 38px;
    margin-top: -19px;
    border-radius: 50%;
    color: #fff;
    font-size: 17px;
    background: rgba(0, 0, 0, .24);
    transition: background .2s ease;
}

.slide-arrow:hover {
    background: rgba(0, 0, 0, .44);
}

.slide-prev { left: calc((100% - var(--content)) / 2 + 334px); }
.slide-next { right: calc((100% - var(--content)) / 2 + 20px); }

.slide-dots {
    position: absolute;
    left: calc((100% - var(--content)) / 2 + 354px);
    bottom: 26px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .5);
    transition: all .2s ease;
}

.slide-dot.is-active {
    width: 22px;
    background: #fff;
}

/* 服务图标行 */
.service-band {
    background: #fff;
    border-bottom: 1px solid #F4F5F7;
}

.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 96px;
    padding: 0 40px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #4A9BFF, #1E63E0);
    box-shadow: 0 8px 18px rgba(43, 124, 255, .2);
}

.service-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.service-sub {
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
}

/* ---------- 直播推荐（浅蓝通栏标题） ---------- */
.live-section {
    margin-top: 40px;
}

.live-band {
    background: #EAF2FF;
}

.live-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.band-title {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: 1px;
    color: #1F2329;
}

.band-sub {
    margin-left: 14px;
    font-size: 13px;
    font-weight: 400;
    color: #8A909C;
    letter-spacing: 0;
}

.band-more {
    font-size: 13px;
    color: var(--primary);
}

.band-more::after {
    content: " \2192";
    font-size: 12px;
}

.live-section-body {
    padding-top: 24px;
}

.live-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.live-tab {
    height: 32px;
    padding: 0 18px;
    border-radius: 16px;
    font-size: 13px;
    color: var(--sub);
    background: #F5F6F9;
    transition: all .18s ease;
}

.live-tab:hover {
    color: var(--primary);
}

.live-tab.is-active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 6px 14px rgba(43, 124, 255, .2);
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.live-day-panel {
    display: none;
}

.live-day-panel.is-active {
    display: grid;
}

.live-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #F0F1F4;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}

.live-card:hover {
    color: inherit;
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.live-cover {
    display: block;
    position: relative;
    height: 190px;
}

.live-cover-text {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 2;
    font-size: 12px;
    color: rgba(255, 255, 255, .9);
}

.live-cover-text::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: #fff;
    vertical-align: middle;
}

.live-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
    background: rgba(0, 0, 0, .32);
}

.live-badge.is-live {
    background: #FF4D4F;
}

.live-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 20px 18px;
}

.live-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.live-teacher {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
}

.live-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px dashed #F1F2F5;
}

.live-time {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-more {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 16px;
    flex: none;
    border-radius: 15px;
    font-size: 12px;
    color: #fff;
    background: var(--primary);
}

.live-more:hover {
    color: #fff;
    background: var(--primary-deep);
}

/* ---------- 通用栏目标题 ---------- */
.section {
    margin-top: 48px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.section-title {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: 1px;
    color: #1F2329;
}

.section-sub {
    margin-left: 14px;
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0;
}

.section-more {
    font-size: 13px;
    color: var(--primary);
    transition: color .2s ease;
}

.section-more::after {
    content: " \2192";
    font-size: 12px;
}

/* ---------- 限时活动 ---------- */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.activity-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #F0F1F4;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}

.activity-card:hover {
    color: inherit;
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-promo {
    display: block;
    grid-row: span 2;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.activity-cover {
    position: relative;
    aspect-ratio: 1.55 / 1;
    overflow: hidden;
}

.activity-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 16px 16px;
}

.activity-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}

.activity-teacher {
    overflow: hidden;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.course-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 12px;
}

.activity-foot .course-price {
    flex: none;
    gap: 6px;
    margin-top: 0;
    white-space: nowrap;
}

.activity-foot .course-now {
    font-size: 18px;
}

.course-now {
    font-size: 20px;
    font-weight: 700;
    color: var(--price);
}

.course-now i {
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
}

.course-old {
    font-size: 12px;
    color: #A8ADB8;
    text-decoration: line-through;
}

.load-more-wrap {
    margin-top: 30px;
    text-align: center;
}

.load-more {
    height: 36px;
    padding: 0 30px;
    border-radius: 18px;
    border: 1px solid #E7E9EE;
    background: #fff;
    font-size: 13px;
    color: var(--sub);
    transition: all .18s ease;
}

.load-more:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 18px 0 16px;
    font-size: 13px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .crumb-icon {
    font-size: 12px;
    color: #B9BFC9;
}

.breadcrumb .sep {
    color: #C3C8D2;
}

.breadcrumb .current {
    color: var(--sub);
    max-width: 720px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- 全部课程 ---------- */
.filter-panel {
    padding: 2px 0 6px;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #F5F6F9;
}

.filter-row:last-child {
    border-bottom: none;
}

.filter-label {
    width: 78px;
    flex: none;
    padding-top: 6px;
    font-size: 13px;
    color: #9AA0AC;
}

.filter-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.filter-opt {
    height: 28px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 13px;
    color: var(--sub);
    background: #F5F6F9;
    transition: all .18s ease;
}

.filter-opt:hover {
    color: var(--buy);
}

.page-mall .filter-opt.is-active {
    color: var(--buy);
    font-weight: 600;
    background: #F5F6F9;
}

.page-live .filter-opt.is-active {
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-light);
}

/* 直播页筛选为文字式，不使用胶囊 */
.live-page .live-filter .filter-opt {
    height: auto;
    padding: 0 2px;
    border-radius: 0;
    background: transparent;
    font-size: 13px;
}

.live-page .live-filter .filter-opt:hover {
    color: var(--primary);
}

.live-page .live-filter .filter-opt.is-active {
    color: var(--primary);
    background: transparent;
}

.live-page .live-filter .filter-opts {
    gap: 8px 24px;
}

.filter-extra {
    display: none;
}

.filter-row.is-open .filter-extra {
    display: inline-flex;
    align-items: center;
}

.filter-more-btn {
    height: 28px;
    padding: 0 10px;
    font-size: 13px;
    color: var(--muted);
}

.filter-more-btn:hover {
    color: var(--primary);
}

.result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0 18px;
}

.result-count {
    font-size: 13px;
    color: var(--muted);
}

.result-count b {
    color: var(--text);
    font-size: 14px;
    padding: 0 4px;
}

.result-search {
    position: relative;
    width: 260px;
}

.result-search input {
    width: 100%;
    height: 36px;
    padding: 0 42px 0 15px;
    border: 1px solid #E7E9EE;
    border-radius: 18px;
    background: #fff;
    font-size: 13px;
    color: var(--text);
}

.result-search input::placeholder {
    color: #A6ACB8;
}

.result-search button {
    position: absolute;
    right: 5px;
    top: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8A909C;
}

.result-search button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
}

.result-search button:hover {
    color: var(--primary);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.course-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #F0F1F4;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}

.course-card:hover {
    color: inherit;
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.course-cover {
    position: relative;
    height: 172px;
}

.course-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 16px 16px;
}

.course-title {
    height: 42px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 班型与价格同一行左右排列 */
.course-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
}

.course-meta {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-card .course-price {
    flex: none;
    margin-top: 0;
    padding-top: 0;
    white-space: nowrap;
}

.empty-tip {
    padding: 60px 20px;
    border-radius: 8px;
    background: #fff;
    color: var(--sub);
    font-size: 14px;
    text-align: center;
}

/* 分页 */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
}

.pager-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--sub);
    background: #fff;
    border: 1px solid #E7E9EE;
    transition: all .18s ease;
}

.pager-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.pager-btn.is-active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.pager-btn.is-disabled {
    color: var(--muted);
    cursor: default;
}

.pager-ellipsis {
    color: var(--muted);
}

/* ---------- 直播规划（列表版式） ---------- */
.live-filter {
    padding-top: 6px;
}

.live-filter-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 9px 0;
}

.live-filter-row .filter-label {
    padding-top: 0;
}

.live-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 0 14px;
    margin-top: 4px;
    border-top: 1px solid #F5F6F9;
}

.live-select {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #E7E9EE;
    border-radius: 4px;
    color: var(--muted);
    background: #fff;
    font-size: 12px;
}

.live-date-field {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #E7E9EE;
    border-radius: 4px;
    font-size: 12px;
    color: var(--muted);
    background: #fff;
}

.live-date-field input {
    width: 108px;
    border: none;
    color: var(--sub);
    background: transparent;
    font-size: 12px;
}

.live-search {
    position: relative;
    width: 240px;
}

.live-search input {
    width: 100%;
    height: 32px;
    padding: 0 38px 0 14px;
    border: 1px solid #E7E9EE;
    border-radius: 16px;
    background: #fff;
    font-size: 12px;
    color: var(--text);
}

.live-search input::placeholder {
    color: #A6ACB8;
}

.live-search button {
    position: absolute;
    right: 4px;
    top: 3px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8A909C;
}

.live-search button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
}

.live-row-list {
    margin-top: 4px;
}

.live-row {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 20px 6px;
    border-bottom: 1px solid #F2F3F5;
    transition: background .18s ease;
}

.live-row:hover {
    background: #FAFBFF;
}

.live-row-date {
    width: 104px;
    flex: none;
}

.live-row-day {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

.live-row-time {
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
}

.live-row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 50%;
    color: var(--primary);
    background: #EDF4FF;
}

.live-row-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.live-row-main {
    flex: 1;
    min-width: 0;
}

.live-row-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.live-row-title:hover {
    color: var(--primary);
}

.live-row-teacher {
    margin-top: 5px;
    font-size: 12px;
    color: var(--muted);
}

.live-row-desc {
    margin-top: 2px;
    font-size: 12px;
    color: #A6ACB8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-row-btn {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 14px;
    flex: none;
    border-radius: 4px;
    background: #F5F6F9;
    color: #9AA0AC;
    font-size: 12px;
}

/* ---------- 师资团队 ---------- */
.sub-banner {
    height: 200px;
    background: linear-gradient(118deg, #1E63E0 0%, #2B7CFF 52%, #5AA0FF 100%);
}

.sub-banner-inner {
    height: 100%;
}

.sub-banner-title {
    padding-top: 20px;
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    letter-spacing: 4px;
}

/* 标题下方分类导航卡片 */
.teacher-filter {
    margin-top: 22px;
    padding: 10px 20px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.teacher-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.teacher-filter-label {
    width: 66px;
    flex: none;
    font-size: 13px;
    color: #999;
}

.teacher-filter-row .filter-opts {
    gap: 4px;
}

.page-teacher .teacher-filter .filter-opt {
    height: 30px;
    padding: 0 10px;
    border-radius: 3px;
    background: transparent;
    color: #666;
    font-size: 13px;
}

.page-teacher .teacher-filter .filter-opt:hover {
    color: #1890FF;
}

.page-teacher .teacher-filter .filter-opt.is-active {
    color: #1890FF;
    font-weight: 400;
    background: #EAF4FF;
}

/* 内容区 */
.teacher-body {
    padding-bottom: 40px;
    background: #F5F6F8;
}

.teacher-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 18px 0 0;
}

.teacher-search {
    position: relative;
    width: 240px;
}

.teacher-search input {
    width: 100%;
    height: 38px;
    padding: 0 40px 0 15px;
    border: 1px solid #E7E9EE;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    color: var(--text);
}

.teacher-search input::placeholder {
    color: #A6ACB8;
}

.teacher-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8A909C;
}

.teacher-search button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
}

.teacher-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 14px;
}

.teacher-card {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    text-align: left;
    transition: box-shadow .2s ease;
}

.teacher-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
}

/* 左侧头像区（占卡片左侧约 120px，与参考页一致） */
.teacher-photo {
    position: relative;
    width: 120px;
    min-height: 168px;
    flex: none;
    overflow: hidden;
}

.teacher-photo span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.teacher-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 12px;
}

.teacher-name {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.teacher-tag {
    align-self: flex-start;
    margin-top: 8px;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 11px;
    line-height: 1.6;
    color: #1890FF;
    background: #EAF4FF;
}

.teacher-desc {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.7;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.teacher-link {
    align-self: flex-end;
    margin-top: auto;
    padding-top: 10px;
    font-size: 12px;
    color: #1890FF;
}

.teacher-link i {
    font-style: normal;
    margin-left: 2px;
}

.teacher-link:hover {
    color: #0A6FD6;
}

/* ---------- 考试日历 ---------- */
.cal-hero {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(118deg, #1D5FE0 0%, #2B7CFF 48%, #4A9BFF 100%);
}

.cal-hero::before {
    content: "";
    position: absolute;
    right: -90px;
    top: -110px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.cal-hero::after {
    content: "";
    position: absolute;
    left: 40%;
    bottom: -170px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .16);
}

.cal-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 72px;
}

.cal-year {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 44px;
    line-height: 1.1;
    letter-spacing: 2px;
    color: #fff;
}

.cal-divider {
    font-weight: 300;
    color: rgba(255, 255, 255, .45);
}

.cal-today-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
}

.cal-today-label {
    margin-right: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, .88);
}

.cal-date-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 34px;
    padding: 0 12px;
    border-radius: 6px;
    background: #fff;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

.cal-date-unit {
    margin-right: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
}

.cal-province {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 18px;
    margin-left: 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #FFA43D, #FF6A00);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(255, 106, 0, .22);
}

.cal-container {
    position: relative;
    z-index: 3;
    margin-top: 0;
}

.cal-card {
    padding: 0 24px 34px;
    border-radius: 0 0 8px 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(20, 40, 80, .06);
}

.cal-tabs {
    display: flex;
    border-bottom: 1px solid #F0F1F4;
}

.cal-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 68px;
    font-size: 15px;
    color: var(--sub);
    position: relative;
}

.cal-tab + .cal-tab {
    border-left: 1px solid #F5F6F9;
}

.cal-tab:hover {
    color: var(--primary);
}

.cal-tab.is-active {
    color: var(--primary);
    font-weight: 700;
}

.cal-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--primary);
    background: var(--primary-light);
}

.cal-tab.is-active .cal-tab-icon {
    color: #fff;
    background: var(--primary);
}

.cal-panel {
    display: none;
    padding-top: 6px;
}

.cal-panel.is-active {
    display: block;
}

.cal-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 16px 6px 8px;
}

.cal-subtab {
    padding-bottom: 6px;
    font-size: 13px;
    color: var(--sub);
    border-bottom: 2px solid transparent;
}

.cal-subtab:hover {
    color: var(--primary);
}

.cal-subtab.is-active {
    color: var(--primary);
    font-weight: 600;
    border-bottom-color: var(--primary);
}

.cal-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.cal-title-icon {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 3px;
    background: linear-gradient(135deg, #2B7CFF, #5AA0FF);
}

.cal-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.cal-table th {
    height: 38px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sub);
    background: #EDF5FF;
    border: 1px solid #F2F6FC;
    text-align: center;
}

.cal-table td {
    height: 40px;
    padding: 6px 8px;
    font-size: 13px;
    color: var(--text);
    border: 1px solid #F2F3F6;
    text-align: center;
    word-break: break-all;
}

.cal-table tr:hover td {
    background: #FAFBFF;
}

.month-bar {
    display: flex;
    gap: 4px;
    margin-top: 34px;
    padding: 10px 0;
    border-top: 1px solid #F5F6F9;
}

.month-item {
    flex: 1;
    height: 34px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--sub);
    background: #fff;
    transition: all .18s ease;
}

.month-item:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.month-item.is-active {
    color: #fff;
    background: var(--primary);
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(43, 124, 255, .2);
}

.month-title {
    margin: 22px 0 14px;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.month-empty {
    padding: 34px 0 10px;
    text-align: center;
    font-size: 13px;
    color: #A6ACB8;
}

/* ---------- 登录页 ---------- */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    display: flex;
    width: 744px;
    height: 425px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 40px rgba(20, 40, 80, .06);
}

.login-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 424px;
    flex: none;
    background: #F7F8FA;
}

.login-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 14px;
    border-radius: 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #4A9BFF, #1E63E0);
    box-shadow: 0 8px 20px rgba(43, 124, 255, .22);
}

.login-brand-big {
    font-size: 60px;
    font-weight: 800;
    letter-spacing: 6px;
    color: #1F2329;
    line-height: 1.2;
}

.login-brand-sub {
    margin-top: 10px;
    font-size: 13px;
    color: #9AA0AC;
}

.login-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 44px 28px 0;
    background: #fff;
}

.login-title {
    position: relative;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}

.login-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 26px;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
}

.login-form {
    margin-top: 32px;
}

.login-field {
    position: relative;
    margin-bottom: 15px;
}

.login-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #E7E9EE;
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    font-size: 13px;
    transition: border-color .2s ease;
}

.login-input:focus {
    border-color: var(--primary);
}

.login-input::placeholder {
    color: #A6ACB8;
}

.login-caret {
    position: absolute;
    right: 14px;
    top: 10px;
    font-size: 14px;
    color: #C3C8D2;
    pointer-events: none;
}

.login-field-code .login-input {
    padding-right: 108px;
}

.login-code-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid var(--primary);
    border-radius: 4px;
    background: #fff;
    color: var(--primary);
    font-size: 12px;
    cursor: pointer;
    transition: all .2s ease;
}

.login-code-btn:hover {
    background: var(--primary);
    color: #fff;
}

.login-code-btn:disabled {
    border-color: #E7E9EE;
    background: #F5F6F8;
    color: #A6ACB8;
    cursor: not-allowed;
}

.login-agree {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 4px 0 14px;
    font-size: 11px;
    line-height: 1.6;
    color: #A6ACB8;
    cursor: pointer;
    white-space: nowrap;
}

.login-agree input {
    width: 13px;
    height: 13px;
    margin-top: 2px;
    flex: none;
    accent-color: var(--primary);
}

.login-agree a {
    color: var(--primary);
}

.login-btn {
    width: 100%;
    height: 42px;
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    background: var(--primary);
    transition: background .2s ease;
}

.login-btn:hover {
    background: var(--primary-deep);
}

.login-foot {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: #A6ACB8;
}

.login-foot a {
    color: var(--primary);
}

/* ---------- 详情页（课程 / 直播） ---------- */
.detail-hero {
    display: flex;
    gap: 28px;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.detail-cover-wrap {
    width: 340px;
    flex: none;
}

.detail-cover {
    width: 340px;
    height: 220px;
    border-radius: 6px;
    overflow: hidden;
}

.detail-cover-title {
    position: absolute;
    left: 22px;
    top: 28px;
    z-index: 2;
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, .95);
    letter-spacing: 1px;
}

.detail-cover-sub {
    position: absolute;
    left: 22px;
    top: 60px;
    z-index: 2;
    font-size: 12px;
    color: rgba(255, 255, 255, .8);
}

.detail-cover-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    height: 30px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    background: rgba(8, 16, 34, .5);
    color: #fff;
    font-size: 12px;
}

.play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .55);
}

.play-btn::after {
    content: "";
    position: absolute;
    left: 22px;
    top: 17px;
    width: 0;
    height: 0;
    border-left: 16px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.detail-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.detail-title {
    font-size: 20px;
    line-height: 1.5;
    font-weight: 700;
    color: var(--text);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.detail-tag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 3px;
    font-size: 12px;
    color: var(--primary);
    background: var(--primary-light);
}

.detail-tag.is-orange {
    color: var(--buy);
    background: var(--buy-light);
}

.detail-tag.is-green {
    color: #0B8A68;
    background: #E9F8F2;
}

.detail-price-panel {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 4px;
    background: #FFF7F8;
    border: 1px solid #FFEFF0;
}

.price-label {
    font-size: 13px;
    color: var(--muted);
}

.detail-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--price);
    line-height: 1.1;
}

.detail-price i {
    font-style: normal;
    font-size: 14px;
}

.detail-price.is-text {
    font-size: 20px;
}

.detail-old {
    font-size: 12px;
    color: #A8ADB8;
    text-decoration: line-through;
}

.detail-promo {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 3px;
    font-size: 12px;
    color: var(--buy);
    background: #FFF0E2;
    border: 1px solid #FFD9BE;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 30px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--sub);
}

.detail-meta b {
    font-weight: 400;
    color: var(--muted);
}

.detail-services {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 12px;
}

.detail-service {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.detail-service i {
    width: 14px;
    height: 14px;
    flex: none;
    border-radius: 50%;
    border: 1px solid #C9CFDA;
    color: #8A909C;
    font-size: 9px;
    font-style: normal;
    line-height: 12px;
    text-align: center;
}

.detail-buy {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 14px;
}

.detail-buy .btn-buy {
    width: 150px;
    height: 40px;
    font-size: 15px;
    border-radius: 4px;
}

/* 详情主体 */
.detail-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    align-items: flex-start;
}

.detail-main {
    flex: 1;
    min-width: 0;
    padding: 0 24px 28px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.detail-tabs {
    display: flex;
    gap: 30px;
    height: 56px;
    border-bottom: 1px solid #F2F3F5;
}

.detail-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: var(--sub);
}

.detail-tab:hover {
    color: var(--primary);
}

.detail-tab.is-active {
    color: var(--primary);
    font-weight: 700;
}

.detail-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 8px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 400;
    color: #fff;
    background: var(--primary);
}

.detail-panel {
    display: none;
    padding-top: 22px;
}

.detail-panel.is-active {
    display: block;
}

.course-intro-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.intro-chip {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border-radius: 3px;
    font-size: 12px;
    color: #fff;
    background: var(--primary);
}

.intro-count {
    font-size: 12px;
    color: var(--muted);
}

.intro-course {
    border: 1px solid #F1F2F5;
    border-radius: 6px;
    overflow: hidden;
}

.intro-course-main {
    display: flex;
    gap: 16px;
    padding: 18px 18px 14px;
}

.intro-cover {
    position: relative;
    width: 70px;
    height: 50px;
    flex: none;
    border-radius: 3px;
}

.intro-cover span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.intro-course-info {
    min-width: 0;
}

.intro-course-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.intro-code {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.intro-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 18px 16px;
}

.intro-pill {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 14px;
    border-radius: 14px;
    background: #F6F8FB;
    color: var(--sub);
    font-size: 12px;
}

.intro-more {
    display: block;
    height: 38px;
    line-height: 38px;
    text-align: center;
    font-size: 13px;
    color: var(--primary);
    background: #F5F9FF;
}

.intro-more:hover {
    background: #EAF2FF;
}

.intro-title {
    margin-top: 24px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
}

.intro-text {
    font-size: 14px;
    line-height: 1.95;
    color: var(--sub);
}

/* 课程目录 */
.catalog {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.class-list {
    width: 200px;
    flex: none;
}

.class-item {
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 4px;
    background: #F7F8FA;
    cursor: pointer;
    transition: all .18s ease;
}

.class-item.is-active {
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
}

.class-item-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}

.class-item-name em {
    font-style: normal;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
    color: #fff;
    background: linear-gradient(135deg, #FF8A3D, var(--buy));
}

.class-item-desc {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
}

.chapter-list {
    flex: 1;
    min-width: 0;
}

.chapter-item {
    margin-bottom: 10px;
    border: 1px solid #EEF0F4;
    border-radius: 4px;
    overflow: hidden;
}

.chapter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    background: #FAFBFD;
    cursor: pointer;
}

.chapter-title {
    font-size: 14px;
    font-weight: 700;
}

.chapter-count {
    font-size: 12px;
    color: var(--muted);
}

.chapter-body {
    display: none;
    padding: 4px 18px 12px;
}

.chapter-item.is-open .chapter-body {
    display: block;
}

.lesson {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #F1F2F5;
}

.lesson:last-child {
    border-bottom: none;
}

.lesson-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--sub);
}

.lesson-title i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C9D3E6;
}

.lesson-free {
    padding: 1px 7px;
    border-radius: 3px;
    font-size: 11px;
    color: var(--primary);
    border: 1px solid rgba(43, 124, 255, .4);
}

.lesson-duration {
    font-size: 12px;
    color: var(--muted);
}

/* 右侧师资 */
.aside-card {
    width: 320px;
    flex: none;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
}

.aside-title {
    height: 44px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
}

.aside-body {
    padding: 20px 18px 24px;
}

.aside-teacher-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.aside-avatar {
    position: relative;
    width: 56px;
    height: 56px;
    flex: none;
    border-radius: 50%;
    overflow: hidden;
    color: #fff;
}

.aside-avatar span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
}

.aside-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.aside-tag {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--muted);
}

.aside-sec {
    margin-top: 20px;
}

.aside-sec h4 {
    position: relative;
    padding-left: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.aside-sec h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 3px;
    height: 13px;
    background: var(--primary);
}

.aside-sec p {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.8;
    color: var(--sub);
}

/* 空状态 */
.empty-box {
    padding: 46px 0 60px;
    text-align: center;
}

.empty-icon {
    position: relative;
    width: 76px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 6px;
    background: #F4F6FA;
}

.empty-icon::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 18px;
    width: 40px;
    height: 6px;
    border-radius: 3px;
    background: #E3E7EF;
    box-shadow: 0 14px 0 #E3E7EF, 0 28px 0 #EDF0F6;
}

.empty-text {
    font-size: 13px;
    color: #A6ACB8;
}

/* ---------- Toast ---------- */
.pc-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 9999;
    padding: 13px 24px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    background: rgba(16, 34, 74, .9);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
    transform: translate(-50%, -50%) scale(.96);
    opacity: 0;
    transition: all .22s ease;
    pointer-events: none;
}

.pc-toast.is-show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ---------- 响应式兜底（非本轮重点） ---------- */
@media (max-width: 1240px) {
    .container,
    .hd-inner,
    .ft-inner,
    .ft-bottom-inner {
        width: calc(100% - 40px);
    }

    .hero-nav-wrap {
        display: none;
    }

    .slide-inner {
        padding: 84px 40px 0;
    }

    .slide-prev {
        left: 16px;
    }

    .slide-next {
        right: 16px;
    }

    .slide-dots {
        left: 40px;
    }

    .course-grid,
    .teacher-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .detail-hero {
        flex-wrap: wrap;
    }

    .detail-cover-wrap,
    .detail-cover {
        width: 100%;
    }

    .detail-cover {
        height: auto;
        aspect-ratio: 340 / 220;
    }

    .detail-layout {
        flex-wrap: wrap;
    }

    .aside-card {
        width: 100%;
    }

    .login-card {
        width: calc(100% - 40px);
    }

    .login-left {
        width: 46%;
    }
}

@media (max-width: 900px) {
    .hd-search {
        display: none;
    }

    .hd-nav {
        gap: 14px;
    }

    .activity-grid,
    .live-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-grid,
    .teacher-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cal-tabs {
        flex-wrap: wrap;
    }

    .cal-tab {
        flex: 0 0 50%;
    }

    .month-bar {
        flex-wrap: wrap;
    }

    .month-item {
        flex: 0 0 calc(25% - 4px);
    }

    .live-toolbar {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .login-card {
        flex-direction: column;
        height: auto;
    }

    .login-left {
        width: 100%;
        height: 200px;
    }

    .login-right {
        padding-bottom: 36px;
    }
}
