/* Project home redesign: scoped overrides for /{group_dir}.html. */
.project-home,
.project-home * {
    box-sizing: border-box;
}

.project-home {
    --project-brand: #f86342;
    --project-brand-dark: #df4e30;
    --project-ink: #252a31;
    --project-muted: #69707d;
    --project-soft: #98a0aa;
    --project-border: #e8ebef;
    --project-surface: #ffffff;
    --project-canvas: #f5f6f8;
    --project-radius: 12px;
    --project-shadow: 0 8px 24px rgba(29, 36, 48, .08);
    display: block;
    overflow: hidden;
    color: var(--project-ink);
    background: var(--project-canvas);
}

.project-home a:focus-visible,
.project-home button:focus-visible {
    outline: 3px solid rgba(248, 99, 66, .28);
    outline-offset: 2px;
}

.project-home > .m_ctr {
    background: transparent;
}

/* 题库推荐：内容区保持原版 180px 高度。 */
.project-practice .practice-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1.3fr) minmax(0, 1.2fr) minmax(220px, 1fr);
    gap: 10px;
    height: 180px;
    align-items: stretch;
}

.project-practice .practice-layout:not(:has(.practice-visual-side)) {
    grid-template-columns: minmax(300px, 1fr) minmax(0, 1.4fr);
}

.project-practice .practice-visual {
    display: block;
    height: 180px;
    min-height: 0;
    overflow: hidden;
    border-radius: var(--project-radius);
    background: #edf1f4;
    box-shadow: var(--project-shadow);
}

.project-practice .practice-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}

.project-practice .practice-visual:hover img,
.project-practice .practice-visual:focus-visible img {
    transform: scale(1.03);
}

.project-practice .practice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8px;
    height: 180px;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--project-border);
    border-radius: var(--project-radius);
    background: var(--project-surface);
    box-shadow: var(--project-shadow);
}

.project-practice .practice-card {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fafbfc;
    color: var(--project-ink);
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.project-practice .practice-card:hover,
.project-practice .practice-card:focus-visible {
    border-color: #f4b9aa;
    background: #fff7f3;
    transform: translateY(-1px);
}

.project-practice .practice-card img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.project-practice .practice-card strong {
    max-width: 100%;
    overflow: hidden;
    color: var(--project-ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-home > .m_ctr > .m_ctt {
    width: min(1200px, calc(100% - 40px));
    padding-top: 15px;
    padding-bottom: 0px;
}

/* 首屏轮播：左侧快捷入口 + 右侧主 Banner，对齐原版首屏信息层级。 */
.project-home .slide_ctr {
    width: min(1200px, calc(100% - 40px));
    min-width: 0;
    height: 320px;
    margin: 15px auto 0;
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    gap: 0;
    overflow: visible;
    background: transparent;
}

/* 轮播本体：固定圆角内裁切，避免图片溢出圆角。 */
.project-home .slide_cell {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border-radius: 0 var(--project-radius) var(--project-radius) 0;
    background: #edf1f4;
    box-shadow: var(--project-shadow);
}

.project-home .slide_quick_panel {
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--project-border);
    border-right: 0;
    border-radius: var(--project-radius) 0 0 var(--project-radius);
    background: var(--project-surface);
    box-shadow: var(--project-shadow);
}

.project-home .slide_quick_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(0, 1fr));
    height: 100%;
    align-content: stretch;
    gap: 0;
    padding: 7px 9px;
}

.project-home .slide_quick_link {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 0;
    /* height: 100%; */
    margin: 8px 7px;
    padding: 0px 7px;
    border: 1px solid transparent;
    color: var(--project-ink);
    font-size: 15px;
    line-height: 1.35;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.project-home .slide_quick_link > .iconfont:first-child {
    color: var(--project-brand);
    font-size: 16px;
    text-align: center;
}

.project-home .slide_quick_link > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-home .slide_quick_link > .iconfont:last-child {
    color: #aeb5be;
    font-size: 14px;
    transition: color .18s ease, transform .18s ease;
}

.project-home .slide_quick_link:hover,
.project-home .slide_quick_link:focus-visible {
    border-color: #f4b9aa;
    border-radius: 7px;
    background: #fff5f1;
    color: var(--project-brand-dark);
    outline: 0;
    transform: translateY(-1px);
}

.project-home .slide_quick_link:hover > .iconfont:last-child,
.project-home .slide_quick_link:focus-visible > .iconfont:last-child {
    color: var(--project-brand);
    transform: translateX(2px);
}

.project-home .slide_cell,
.project-home .slide_cell .swiper-wrapper,
.project-home .slide_cell .swiper-slide {
    width: 100%;
    height: 100%;
}

.project-home .slide_cell .swiper-slide {
    display: block;
    overflow: hidden;
}

.project-home .slide_cell .swiper-slide a,
.project-home .slide_cell .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
}

.project-home .slide_cell .swiper-slide img {
    margin: 0;
    object-fit: cover;
    transition: transform .5s ease;
}

.project-home .slide_cell:hover .swiper-slide-active img {
    transform: scale(1.03);
}

/* 分页器：胶囊化，贴底居中，保证在浅色图片上也可辨识。 */
.project-home .slide_cell .swiper-pagination {
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 16px;
}

.project-home .slide_cell .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    margin: 0 !important;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .32);
    opacity: .62;
    transition: width .22s ease, opacity .22s ease, background-color .22s ease;
}

.project-home .slide_cell .swiper-pagination-bullet:hover {
    opacity: 1;
}

.project-home .slide_cell .swiper-pagination-bullet-active {
    width: 20px;
    background: var(--project-brand);
    opacity: 1;
}

.project-home .index_title_ctr {
    min-height: 48px;
    height: auto;
    margin-bottom: 10px;
}

.project-home .index_title_ctt {
    min-width: 0;
}

.project-home .index_title {
    color: var(--project-ink);
    font-size: 22px;
    line-height: 1.3;
}

.project-home .index_title_more {
    width: auto;
    margin-left: 16px;
}

.project-home .index_title_more a {
    color: var(--project-muted);
}

.project-home .index_title_more a:hover,
.project-home .index_title_more a:focus-visible {
    color: var(--project-brand-dark);
}

.project-live .m_ctt,
.project-news .m_ctt,
.project-courses .m_ctt,
.project-books .m_ctt,
.project-features .m_ctt {
    border-top: 1px solid rgba(232, 235, 239, .8);
}

.project-home .slide_live {
    min-width: 0;
    overflow: hidden;
}

.project-home .slide_live .swiper-slide {
    min-width: 0;
    height: auto;
    align-items: stretch;
}

.project-home .goods_ctr_live {
    width: 100%;
    min-height: 166px;
    border: 1px solid var(--project-border);
    border-radius: var(--project-radius);
    box-shadow: 0 4px 14px rgba(29, 36, 48, .05);
}

.project-home .slide_live > .swiper-button-prev,
.project-home .slide_live > .swiper-button-next {
    width: 34px;
    height: 44px;
    margin-top: -22px;
    border-radius: 8px;
    background: rgba(37, 42, 49, .68);
}

.project-home .slide_live > .swiper-button-prev { left: 8px; }
.project-home .slide_live > .swiper-button-next { right: 8px; }

.project-home .slide_live > .swiper-button-prev::after,
.project-home .slide_live > .swiper-button-next::after {
    font-size: 14px;
}

.project-home .index_goods_left1,
.project-home .index_goods_right1 {
    min-width: 0;
    margin: 0;
    border: 1px solid var(--project-border);
    border-radius: var(--project-radius);
    background: var(--project-surface);
    box-shadow: var(--project-shadow);
}

.project-home .project-news .row_ctr,
.project-home .project-news .m_ctt > .row_ctr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    align-items: start;
}

.project-home .index_goods_left1 {
    align-self: start;
    height: fit-content;
}

.project-home .index_goods_left1 .layui-tabs-header {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    height: 60px !important;
    min-height: 0;
    margin: 0;
    padding: 0 12px !important;
    overflow-x: auto;
    /* border-bottom: 1px solid var(--project-border); */
    background: #fff;
    scrollbar-width: none;
    border-radius: var(--project-radius);
}

.project-home .index_goods_left1 .layui-tabs-header::-webkit-scrollbar {
    display: none;
}

.project-home .index_goods_left1 .layui-tabs-header li,
.project-home .index_goods_left1 .project-tab-trigger {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-height: 0;
    margin: 0 !important;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--project-muted);
    font-size: 15px;
    font-weight: 600;
    line-height: 36px;
    white-space: nowrap;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: background-color .18s ease, color .18s ease;
}

.project-home .index_goods_left1 .project-tab-trigger:hover,
.project-home .index_goods_left1 .project-tab-trigger:focus-visible {
    border-color: #f4b9aa;
    background: #fff7f3;
    color: var(--project-brand-dark) !important;
}

.project-home .index_goods_left1 .project-tab-trigger:focus-visible {
    z-index: 1;
    outline: 2px solid rgba(248, 99, 66, .35);
    outline-offset: 2px;
}

.project-home .index_goods_left1 .project-tab-trigger.layui-this,
.project-home .index_goods_left1 .project-tab-trigger.is-active {
    border-color: var(--project-brand);
    background: var(--project-brand);
    color: #fff !important;
}

.project-home .index_goods_left1 .layui-tabs-header li::after,
.project-home .index_goods_left1 .layui-tabs-header li.layui-this::after {
    display: none !important;
    height: 0 !important;
    border: 0 !important;
    content: none !important;
}

.project-home .index_goods_left1 .layui-tabs-body {
    min-height: 0;
    padding: 4px 16px 12px !important;
}

.project-home .project-news-tabs .project-tab-panel {
    display: none !important;
}

.project-home .project-news-tabs .project-tab-panel.is-active,
.project-home .project-news-tabs:not(.is-ready) .project-tab-panel:first-child {
    display: block !important;
}

.project-home .index_news_box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.project-home .index_news_ctr {
    min-width: 0;
    padding: 12px 0 4px;
    /* border-bottom: 1px solid var(--project-border); */
}

.project-home .index_news_cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: auto;
    min-height: 36px;
    padding: 0 2px 8px;
    border-bottom: 0 !important;
}

.project-home .index_news_title {
    min-width: 0;
    overflow: hidden;
    color: var(--project-muted);;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-home .index_news_title .iconfont {
    margin-right: 3px;
    color: var(--project-brand);
    font-size: 14px;
}

.project-home .index_news_more {
    flex: 0 0 auto;
    color: var(--project-muted);
    font-size: 12px !important;
    font-weight: 600;
}

.project-home .index_news_more:hover,
.project-home .index_news_more:focus-visible {
    color: var(--project-brand-dark);
}

.project-home .index_news_more .iconfont {
    font-size: 12px;

}

.project-home .index_news_cell2 {
    padding: 0;
}

.project-home .index_news {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 38px;
    color: var(--project-ink);
    font-size: 14px;
    line-height: 1.45;
}

.project-home .index_news_link {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: var(--project-ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-home .index_news_link::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 8px;
    border-radius: 50%;
    background: #d5dae1;
    vertical-align: 2px;
}

.project-home .index_news_link:hover,
.project-home .index_news_link:focus-visible,
.project-home .index_news_on .index_news_link {
    color: var(--project-brand-dark);
}

.project-home .index_goods_right1.exam-rail {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    width: auto;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    padding: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0, rgba(248, 99, 66, .16), transparent 34%),
        linear-gradient(180deg, #fff8f5 0, #fff 148px);
}

.project-home .exam-countdown {
    padding: 12px 14px 12px;
    border-bottom: 1px solid #f6ddd5;
}

.project-home .exam-countdown-kicker {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--project-brand-dark);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .06em;
}

.project-home .exam-countdown-kicker .iconfont {
    font-size: 16px;
}

.project-home .exam-countdown-title {
    margin: 8px 0 0;
    color: var(--project-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.project-home .exam-countdown-digits {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin-top: 8px;
}

.project-home .exam-countdown-digits span {
    display: grid;
    width: 32px;
    height: 36px;
    place-items: center;
    border-radius: 6px;
    background: #4f4f4f;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    box-shadow: inset 0 -8px 0 rgba(255, 255, 255, .08);
}

.project-home .exam-countdown-digits em {
    padding-bottom: 6px;
    color: var(--project-muted);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.project-home .exam-countdown-state {
    margin: 14px 0 0;
    color: var(--project-muted);
    font-size: 13px;
    line-height: 1.6;
}

.project-home .exam-timeline {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    padding: 8px 10px 10px;
}

.project-home .exam-timeline-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}

.project-home .exam-timeline-head strong {
    color: var(--project-ink);
    font-size: 15px;
}

.project-home .exam-timeline-head span,
.project-home .exam-timeline-empty {
    color: var(--project-soft);
    font-size: 12px;
}

.project-home .exam-timeline-list {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    margin: 0;
    padding: 0 4px 0 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: #f0d8d1 transparent;
}

.project-home .exam-timeline-list::-webkit-scrollbar {
    width: 6px;
}

.project-home .exam-timeline-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #f0d8d1;
}

.project-home .exam-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 4px;
    align-items: center;
    min-height: 34px;
}

.project-home .exam-timeline-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 25px;
    bottom: -25px;
    left: -11px;
    width: 1px;
    background: #f0d8d1;
}

.project-home .exam-timeline-item::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 11px;
    left: -16px;
    width: 7px;
    height: 7px;
    border: 2px solid #efc6ba;
    border-radius: 50%;
    background: #fff;
}

.project-home .exam-timeline-item time {
    color: var(--project-soft);
    font-size: 12px;
    font-weight: 700;
}

.project-home .exam-timeline-item span {
    min-width: 0;
    overflow: hidden;
    padding: 8px 10px 8px 10px;
    border-radius: 8px;
    color: var(--project-ink);
    font-size: 13px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-home .exam-timeline-item.is-current::before {
    border-color: var(--project-brand);
    background: var(--project-brand);
}

.project-home .exam-timeline-item.is-current time,
.project-home .exam-timeline-item.is-current span {
    color: var(--project-brand-dark);
    font-weight: 700;
}

.project-home .exam-timeline-item.is-current span {
    background: #fff4ef;
}

.project-home .exam-timeline-empty {
    display: grid;
    min-height: 120px;
    margin: 0;
    place-items: center;
}

/* .project-home .project-courses .index_title_ctr {
    align-items: flex-end;
    gap: 12px;
} */

.project-home .project-courses .index_title_ctt {
    flex-wrap: wrap;
    gap: 8px 10px;
    min-width: 0;
}

.project-home .project-courses .index_title_ctt .ads {
    max-width: 100%;
}

.project-home .project-courses .index_subtitle.on {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-home .project-courses .row_ctr {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    justify-content: initial !important;
}

.project-home .product_price_ctr {
    display: flex;
    width: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 12px;
    overflow: hidden;
    border: 1px solid var(--project-border);
    border-radius: var(--project-radius);
    box-shadow: 0 4px 14px rgba(29, 36, 48, .05);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.project-home .product_price_ctr:hover,
.project-home .product_price_ctr:focus-within {
    border-color: #f4b9aa;
    box-shadow: 0 12px 26px rgba(29, 36, 48, .11);
    transform: translateY(-3px);
}

.project-home .product_price_img {
    width: 100%;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    border-radius: 8px;
}

.project-home .product_price_img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-home .product_price_bb {
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 32px;
    margin-top: 6px;
    padding: 0 12px;
    line-height: 30px;
}

.project-home .product_price_box,
.project-home .product_feature_list,
.project-home .product_price_ctr > div[style] {
    display: flex;
    min-height: 0 !important;
    flex: 1;
    flex-direction: column;
    height: auto !important;
    padding: 0 4px 0 !important;
}

.project-home .product_feature_list {
    gap: 2px;
}

.project-home .product_info p {
    white-space: normal;
}

/* .project-home .product_txt {
    height: auto;
    min-height: 36px;
    align-items: flex-start;
    line-height: 1.45;
} */

.project-home .product_txt > div:last-child {
    min-width: 0;
}

.project-home .product_txt_span {
    display: inline-block;
    margin: 2px 0 2px 4px;
    line-height: 1.4;
    vertical-align: baseline;
}

.project-home .product_price {
    position: static;
    margin: 15px 0 10px;
    font-size: 22px;
}

.project-home .product_price > div:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.project-home .product_currency {
    font-size: 16px;
}

.project-home .product_price_btn {
    position: static;
    right: auto;
    bottom: auto;
    left: auto;
    gap: 8px;
    margin-top: 0;
}

.project-home .product_price_btn .product_btn {
    width: auto;
    flex: 1;
    min-height: 38px;
    padding: 0 8px;
    border-radius: 8px;
    font: inherit;
    line-height: 36px;
    cursor: pointer;
}

.project-home .project-books .row_ctr {
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
}

.project-home .project-books .index_goods_left,
.project-home .project-books .index_goods_pic1 {
    width: auto;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.project-home .project-books .index_goods_pic1 {
    overflow: hidden;
    border-radius: 12px;
    background: #f5f6f8;
}

.project-home .project-books .index_goods_pic1 a,
.project-home .project-books .index_goods_pic1 img {
    display: block;
    width: 100%;
    height: 100%;
}

.project-home .project-books .index_goods_pic1 img {
    object-fit: cover;
}

.project-home .project-books .index_goods_right {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
    margin: 0;
    height: auto;
}

.project-home .project-books .index_goods_right > a {
    display: flex;
    min-width: 0;
    color: inherit;
}

.project-home .project-books .goods_ctr {
    display: flex;
    flex-direction: column;
    width: auto;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 10px;
    overflow: hidden;
    border: 1px solid var(--project-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(29, 36, 48, .05);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.project-home .project-books .goods_ctr:hover,
.project-home .project-books .index_goods_right > a:focus-visible .goods_ctr {
    border-color: #f4b9aa;
    box-shadow: 0 12px 26px rgba(29, 36, 48, .11);
    transform: translateY(-3px);
}

.project-home .project-books .goods_pic {
    width: 100%;
    height: 264px;
    /* aspect-ratio: 4 / 3; */
    margin: 0 0 12px;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f6f8;
}

.project-home .project-books .goods_pic img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-home .project-books .goods_title {
    display: -webkit-box;
    height: auto;
    min-height: 24px;
    margin: 0;
    overflow: hidden;
    color: var(--project-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.project-home .project-books .goods_tag {
    display: -webkit-box;
    height: 22px;
    margin: 6px 0 0;
    overflow: hidden;
    color: #69707d;
    font-size: 13px;
    line-height: 26px;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.project-home .project-books .book_meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 9px;
    color: #9aa1ac;
    font-size: 12px;
    line-height: 18px;
}

.project-home .project-books .book_meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.project-home .project-books .book_meta .iconfont {
    color: #f86342;
    font-size: 14px;
}

.project-home .project-books .goods_txt {
   width: 100%;
    height: auto;
    min-height: 34px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f2f4;
    box-sizing: border-box;
}

.project-home .project-books .buyBtn {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid var(--project-brand);
    border-radius: 999px;
    color: var(--project-brand-dark);
    background: #fff;
    font-size: 12px;
    line-height: 26px;
}

.project-home .project-books .goods_ctr:hover .buyBtn,
.project-home .project-books .index_goods_right > a:focus-visible .buyBtn {
    color: #fff;
    background: var(--project-brand);
}

.project-home .project-features .row_ctr_ts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: auto;
    padding-top: 0px;
    padding-bottom: 30px;
}

.project-home .project-features .index_ts_ctr {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 22px 18px 20px;
    border: 1px solid var(--project-border);
    box-shadow: 0 4px 14px rgba(29, 36, 48, .05);
    cursor: default;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.project-home .project-features .index_ts_pic {
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 16px;
    background: #fff5f1;
}

.project-home .project-features .index_ts_pic img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.project-home .project-features .index_ts_title {
    width: auto;
    color: var(--project-ink);
    font-size: 17px;
    line-height: 1.4;
    text-align: center;
}

.project-home .project-features .index_ts_info {
    width: auto;
    margin-top: 8px;
    color: var(--project-muted);
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}

.project-home .project-features .index_ts_ctr:hover,
.project-home .project-features .index_ts_ctr:focus-within {
    border-color: #f4b9aa;
    box-shadow: var(--project-shadow);
    transform: translateY(-3px);
}

@media (max-width: 980px) {
    .project-home .slide_ctr {
        grid-template-columns: 248px minmax(0, 1fr);
        height: 300px;
    }
    .project-home .project-news .m_ctt > .row_ctr {
        grid-template-columns: 1fr;
    }
    .project-home .project-courses .row_ctr {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .project-home .project-books .row_ctr {
        grid-template-columns: 210px minmax(0, 1fr);
    }
    .project-home .project-books .index_goods_right {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .project-home .project-features .row_ctr_ts,
    .project-home .project-features .index_ts_ctr {
        width: auto;
    }
    .project-home .project-features .row_ctr_ts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .project-practice .practice-layout,
    .project-practice .practice-layout:not(:has(.practice-visual-side)) {
        grid-template-columns: 1fr;
        height: auto;
    }
    .project-practice .practice-grid,
    .project-practice .practice-visual {
        height: 180px;
    }
}

@media (max-width: 760px) {
    .project-home > .m_ctr > .m_ctt,
    .project-home .slide_ctr {
        width: calc(100% - 24px);
    }
    .project-home .slide_ctr {
        display: flex;
        flex-direction: column;
        height: auto;
        margin-top: 12px;
        overflow: visible;
    }
    .project-home .slide_cell {
        order: 1;
        width: 100%;
        height: 190px;
        border-radius: var(--project-radius);
    }
    .project-home .slide_quick_panel {
        order: 2;
        width: 100%;
        height: auto;
        margin-top: 10px;
        border-right: 1px solid var(--project-border);
        border-radius: var(--project-radius);
    }
    .project-home .slide_quick_grid {
        padding: 8px;
        height: auto;
        grid-template-rows: none;
    }
    .project-home .slide_quick_link {
        min-height: 44px;
        height: auto;
    }
    .project-home .index_title {
        font-size: 19px;
    }
    .project-home .index_subtitle.on {
        padding: 3px 8px;
        font-size: 12px;
    }
    .project-home .project-news .m_ctt > .row_ctr {
        grid-template-columns: 1fr;
    }
    .project-home .project-news .index_news_box {
        grid-template-columns: 1fr;
    }
    .project-home .index_goods_left1,
    .project-home .index_goods_right1.exam-rail {
        height: auto;
        max-height: none;
    }
    .project-home .index_goods_left1 .layui-tabs-header {
        height: 48px !important;
        padding-inline: 8px;
    }
    .project-home .index_goods_left1 .project-tab-trigger {
        height: 30px;
        padding-inline: 10px;
        font-size: 13px;
        line-height: 30px;
    }
    .project-home .exam-timeline-list {
        max-height: 280px;
    }
    .project-home .project-news .index_news_ctr + .index_news_ctr {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--project-border);
    }
    .project-home .project-courses .row_ctr {
        gap: 10px;
    }
    .project-home .product_price_ctr {
        min-height: 0;
        padding: 10px;
    }
    .project-home .project-books .row_ctr,
    .project-home .project-books .index_goods_right {
        grid-template-columns: 1fr;
    }
    .project-home .project-books .index_goods_left,
    .project-home .project-books .index_goods_pic1 {
        height: 150px;
    }
    .project-home .project-features .row_ctr_ts {
        gap: 10px;
    }
    .project-home .project-features .index_ts_ctr {
        width: auto;
        min-height: 0;
        padding: 16px 14px;
    }
    .project-home .project-features .index_ts_title {
        font-size: 16px;
        line-height: 1.4;
    }
    .project-home .project-features .index_ts_info {
        font-size: 13px;
        line-height: 1.65;
    }
    .project-practice .practice-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        height: auto;
        min-height: 180px;
    }
    .project-practice .practice-visual {
        height: 150px;
    }
}

@media (max-width: 520px) {
    .project-home .slide_cell { height: 170px; }
    .project-home .project-courses .row_ctr {
        grid-template-columns: 1fr;
    }
    .project-home .product_price_ctr {
        min-height: 0;
        padding-bottom: 14px;
    }
    .project-home .product_price_box {
        min-height: 0;
    }
    .project-home .product_price_btn {
        flex-direction: column;
    }
    .project-home .project-features .row_ctr_ts {
        grid-template-columns: 1fr;
    }
    .project-home .project-features .index_ts_ctr {
        width: auto;
        min-height: 0;
    }
    .project-home .project-books .index_goods_right {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-home .product_price_ctr,
    .project-home .product_price_btn {
        transition: none;
    }
    .project-home *,
    .project-home *::before,
    .project-home *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
