/* ==================== Hero Banner ==================== */
.yp-hero {
    background: #f5f5f5;
}

.yp-hero-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 435px;
    overflow: hidden;
}

.yp-hero-swiper {
    width: 100%;
    height: 100%;
}

.yp-hero-swiper .swiper-slide {
    width: 100%;
    height: 435px;
    overflow: hidden;
}

.yp-hero-swiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.yp-hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.yp-hero-swiper .swiper-pagination {
    bottom: 16px;
}

.yp-hero-swiper .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s;
}

.yp-hero-swiper .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 5px;
    background: #FF7033;
}

/* ==================== 预约表单 ==================== */
.yp-lead-form {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 258px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 10;
}

.yp-lead-form-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* background: linear-gradient(135deg, #FF8C42, #FF7033); */
    padding: 20px 0;
}

.yp-lead-form-header h3 {
    font-size: 22px;
    color: #101010;
    font-weight: 600;
}

.yp-lead-form-header p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

.yp-lead-form-body {
    padding: 0 20px 20px;
}

.yp-form-group {
    margin-bottom: 14px;
}

.yp-form-group label {
    display: block;
    font-size: 13px;
    color: #949698;
    margin-bottom: 6px;
}

.yp-form-group input,
.yp-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #393F4A;
    background-color: #fff;
    transition: border-color 0.2s;
}

.yp-form-group input:focus,
.yp-form-group select:focus {
    border-color: #FF7033;
}

.yp-form-group input::placeholder {
    color: #c0c0c0;
    font-size: 13px;
}

.yp-form-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #FF8C42, #FF7033);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 4px;
}

.yp-form-submit:hover {
    opacity: 0.9;
}

.yp-form-tips {
    display: flex;
    justify-content: center;
    font-size: 12px;
    color: #949698;
    margin-top: 10px;
}

/* ==================== 最新动态 ==================== */
.yp-news {
    background-color: #fff;
    padding: 24px;
    border-radius: 8px;
    max-width: 1200px;
    width: 100%;
    margin: 16px auto;
    box-sizing: border-box;
}

.yp-news-list {
    display: flex;
    gap: 60px;
}

.yp-news-col {
    flex: 1;
    min-width: 0;
}

.yp-news-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #f0f0f0;
}

.yp-news-tag {
    flex-shrink: 0;
    font-size: 16px;
    color: #FF7033;
    margin-right: 10px;
    font-weight: 500;
}

.yp-news-sep {
    flex-shrink: 0;
    color: #e0e0e0;
    font-size: 16px;
    margin-right: 10px;
}

.yp-news-title {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    color: #393F4A;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}

.yp-news-item:hover .yp-news-title {
    color: #FF7033;
}

.yp-news-date {
    flex-shrink: 0;
    font-size: 16px;
    color: #949698;
    margin-left: 10px;
}

/* ==================== 次级横幅 ==================== */
.yp-strip-banner {
    padding: 16px 0;
}

.yp-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 20px; */
}

.yp-strip-ad-link {
    display: block;
    width: 100%;
}

.yp-strip-ad-link img {
    display: block;
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

/* ==================== 资讯内容 ==================== */
.yp-info {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 80px;
    background-color: #fff;
    padding: 16px 0;
    border-radius: 8px;
    box-sizing: border-box;
}

.yp-info-inner {
    display: flex;
    gap: 30px;
}

.yp-info-sidebar {
    width: 160px;
    flex-shrink: 0;
}

.yp-info-nav-item {
    display: block;
    width: 180px;
    height: 56px;
    line-height: 56px;
    padding-left: 48px;
    font-size: 16px;
    color: #393F4A;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.yp-info-nav-item:hover {
    color: #FF7033;
}

.yp-info-nav-item.active {
    color: #FF7033;
    border-left-color: #FF7033;
    font-weight: 600;
    background-color: #fff8f5;
}

.yp-info-content {
    flex: 1;
    min-width: 0;
    padding: 0 24px 0 40px;
}

.yp-info-panel {
    display: none;
}

.yp-info-panel.active {
    display: block;
}

.yp-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.yp-info-header h3 {
    font-size: 18px;
    color: #101010;
    font-weight: 600;
}

.yp-info-cols {
    display: flex;
    gap: 100px;
}

.yp-info-col {
    flex: 1;
    min-width: 0;
}

.yp-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px dashed #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.yp-info-item-title {
    flex: 1;
    min-width: 0;
    color: #393F4A;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}

.yp-info-item:hover .yp-info-item-title {
    color: #FF7033;
}

.yp-info-item-date {
    flex-shrink: 0;
    font-size: 16px;
    color: #949698;
    margin-left: 10px;
}

/* ==================== 课程推荐 ==================== */
.yp-course-block {
    margin-top: 24px;
}

.yp-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.yp-block-header h3 {
    font-size: 18px;
    color: #101010;
    font-weight: 600;
}

.yp-course-grid {
    display: flex;
    gap: 24px;
}

.yp-course-card {
    flex: 1;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    padding-bottom: 20px;
    transition: transform 0.25s, box-shadow 0.25s;
}

.yp-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.yp-course-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.yp-course-card-title {
    font-size: 20px;
    color: #101010;
    font-weight: 700;
    padding: 16px 20px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yp-course-card-tags {
    display: flex;
    gap: 10px;
    padding: 0 20px 16px;
}

.yp-course-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: #FFF0E8;
    color: #FF7033;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
}

.yp-course-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.yp-course-card-price {
    font-size: 28px;
    color: #FF7033;
    font-weight: 700;
}

.yp-course-card-btn {
    padding: 10px 28px;
    background-color: #FF7033;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: opacity 0.25s;
}

.yp-course-card-btn:hover {
    opacity: 0.9;
}

/* ==================== 自主研发教材 ==================== */
.yp-books {
    background-color: #fff;
    padding: 40px 0;
}

.yp-books-filter {
    display: flex;
    align-items: center;
    gap: 6px;
}

.yp-book-filter-item {
    padding: 6px 18px;
    font-size: 14px;
    color: #949698;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.yp-book-filter-item:hover {
    color: #FF7033;
}

.yp-book-filter-item.active {
    background-color: #FFF0E8;
    color: #FF7033;
    font-weight: 500;
}

.yp-books-swiper {
    padding: 0 40px;
    overflow: hidden;
}

.yp-books-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 220px;
}

.yp-books-swiper .swiper-button-prev,
.yp-books-swiper .swiper-button-next {
    color: #FF7033;
    width: 32px;
    height: 32px;
    margin-top: 0;
    transform: translateY(-50%);
}

.yp-books-swiper .swiper-button-prev {
    left: 0;
}

.yp-books-swiper .swiper-button-next {
    right: 0;
}

.yp-books-swiper .swiper-button-prev::after,
.yp-books-swiper .swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
}

.yp-book-item {
    text-align: center;
    transition: transform 0.25s;
}

.yp-book-item:hover {
    transform: translateY(-6px);
}

.yp-book-cover {
    width: 130px;
    height: 170px;
    border-radius: 4px;
    box-shadow: -8px 8px 16px rgba(0, 0, 0, 0.12), -2px 2px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transform: perspective(600px) rotateY(-6deg);
    transition: transform 0.3s;
}

.yp-book-item:hover .yp-book-cover {
    transform: perspective(600px) rotateY(0deg);
}

.yp-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yp-book-name {
    margin-top: 12px;
    font-size: 13px;
    color: #393F4A;
    width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== 为什么选择 ==================== */
.yp-why {
    background-color: #FCFCFC;
    padding: 50px 0 186px;
    position: relative;
    overflow: hidden;
    background: #FCFCFC url(/e_images/common/kaoshi/yupei/why_bg.png ) no-repeat center bottom;
}

.yp-why-title {
    text-align: center;
    margin-bottom: 40px;
}

.yp-why-title h2 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    color: #101010;
    font-weight: 700;
}

.yp-why-title h2::before,
.yp-why-title h2::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #FF7033;
    border-radius: 50%;
    flex-shrink: 0;
}

.yp-why-title h2::before {
    box-shadow: 12px 0 0 0 #FF7033;
}

.yp-why-title h2::after {
    box-shadow: -12px 0 0 0 #FF7033;
}

.yp-why-grid {
    display: flex;
    gap: 20px;
}

.yp-why-item {
    flex: 1;
    text-align: center;
    padding: 20px 10px;
}

.yp-why-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.yp-why-maisui {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.yp-why-maisui-right {
    transform: scaleX(-1);
}

.yp-why-item h3 {
    font-size: 20px;
    color: #FF7033;
    font-weight: 600;
    white-space: nowrap;
}

.yp-why-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}