/* 全局通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.mymain {
    width: 1200px;
    overflow: hidden;
    margin: 0 auto;
}
.fl {float: left;}
.fr {float: right;}

/* 懒加载图片样式 */
.lazy-img {
    background: #f5f5f5;
    min-height: 200px;
    transition: opacity 0.3s ease;
}

.lazy-img.loaded {
    opacity: 1;
}

/* 主容器样式 */
.mymain {
    width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

/* 标题通用样式 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .main-title {
    font-size: 42px;
    color: #ff4d7d;
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header .main-title:after {
    content: "";
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff4d7d, #ff8da1);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-header .sub-title {
    font-size: 20px;
    color: #666;
}

/* 按钮通用样式 */
.btn-wrap {
    text-align: center;
    margin-top: 50px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 100px;
    background: linear-gradient(135deg, #ff4d7d, #ff8da1);
    color: #fff;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(255, 77, 125, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 77, 125, 0.4);
}

/* 优势板块 */
.myys {
    width: 100%;
    padding-top: 60px;
    padding-bottom: 60px;
    overflow: hidden;
}

/* 团队/师资板块 */
.mytd {
    width: 100%;
    padding-top: 60px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.mytd:after {
    content: '';
    display: block;
    width: 100%;
    height: 830px;
    background: #ff8da1;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
}

.mytd .main-title {
    color: #fff;
}

.mytd .sub-title {
    color: #fff;
}

.mytd .section-header .main-title:after {
    background: #fff;
}

.faculty-showcase {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.2rem 4rem 1.2rem;
}

.teachers-showcase {
    background: #ffffff;
    border-radius: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 1.8rem 1.8rem 2rem 1.8rem;
    border: 1px solid #f0e2d6;
    margin-top: 0;
}

.section-subtitle {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #2a241f;
    text-align: center;
}

.section-desc {
    color: #8e7a6b;
    margin-bottom: 1.8rem;
    padding-left: 1rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    border-bottom: 1px dashed #e6cfbe;
    padding-bottom: 0.5rem;
}

/* 标签栏容器 */
.tabs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
    justify-content: center;
    border-bottom: 1px solid #f0e2d6;
    padding-bottom: 1rem;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.7rem 1.6rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    color: #6b5a4e;
    background: #faf5f0;
}

.tab-btn i {
    margin-right: 8px;
    font-size: 0.95rem;
}

.tab-btn.active {
    background: #ff8da1;
    color: white;
    box-shadow: 0 6px 12px rgba(255, 141, 161, 0.3);
}

.tab-btn:hover:not(.active) {
    background: #ffe2e7;
    color: #d45a73;
}

/* 轮播容器 */
.carousel-container {
    position: relative;
    margin-top: 1rem;
}

.teacher-grid {
    display: flex;
    gap: 1.8rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    padding-bottom: 1rem;
    scrollbar-color: #ff8da1 #f9ede4;
}

.teacher-grid::-webkit-scrollbar {
    height: 6px;
}

.teacher-grid::-webkit-scrollbar-track {
    background: #f9ede4;
    border-radius: 10px;
}

.teacher-grid::-webkit-scrollbar-thumb {
    background: #ff8da1;
    border-radius: 10px;
}

/* 教师卡片 */
.teacher-card {
    flex: 0 0 260px;
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 1.4rem 1rem 1.4rem 1rem;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.25s;
    border: 1px solid #f5e6dc;
}

.teacher-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 28px -12px rgba(97, 57, 33, 0.15);
    border-color: #ffb8c6;
}

.teacher-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    color: #ff8da1;
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.teacher-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #36261e;
    margin-bottom: 0.3rem;
}

.teacher-position {
    font-size: 0.85rem;
    color: #b27a55;
    background: #fdf3ec;
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    margin: 0.5rem 0 0.9rem;
    font-weight: 500;
}

.detail-link {
    background: transparent;
    border: 1.5px solid #ff8da1;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.8rem;
    color: #d45a73;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    margin-top: 0.3rem;
    text-decoration: none;
}

.detail-link i {
    font-size: 0.75rem;
}

.detail-link:hover {
    background: #ff8da1;
    color: white;
    border-color: #ff8da1;
    text-decoration: none;
}

/* 轮播控制按钮 */
.carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.ctrl-btn {
    background: white;
    border: 1px solid #e3cdbc;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: #d45a73;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ctrl-btn:hover {
    background: #ff8da1;
    color: white;
    border-color: #ff8da1;
}

/* 空状态提示 */
.empty-message {
    text-align: center;
    padding: 2rem;
    color: #9b7b64;
    font-style: italic;
}

.teacher-grid-category {
    display: none;
}

.teacher-grid-category.active {
    display: flex;
}

/* 师资成长系统 */
.mycz {
    width: 100%;
    margin: 0 auto;
    padding: 0 0 60px 0;
}

.mycz .cz-grid-array {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 2rem;
}

.mycz .cz-card {
    background: #ffffff;
}

.mycz .cz-top {
    padding: 10px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #f7e9ec;
    backdrop-filter: blur(0px);
    display: flex;
    flex-direction: column;
    cursor: default;
}

.mycz .card-head {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.mycz .card-head img {
    width: 9px;
    height: 14px;
}

.mycz .card-head h2 {
    display: inline-block;
    padding: 0 0.5rem;
}

.mycz .cz-des {
    text-align: center;
    padding: 8px 0 15px 0;
}

.mycz .myzx {
    width: 60%;
    margin: 15px auto 0 auto;
}

.mycz .myzx a {
    display: block;
    width: 100%;
    text-align: center;
    color: #fff;
    line-height: 35px;
    border-radius: 20px;
    background: linear-gradient(0deg, #ff4d7d, #ff8da1);
}

/* 教学场景 */
.mycj {
    width: 100%;
    overflow: hidden;
}

.mycj .myimg {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* 名师进校园 */
.myinfo {
    width: 100%;
    display: table;
    padding: 60px 0;
    overflow: hidden;
}

.myinfo .main-left {
    display: table-cell;
    width: 50%;
    vertical-align: top;
}

.myinfo .main-left p {
    display: block;
    width: 100%;
    font-size: 1.2rem;
    line-height: 30px;
    text-indent: 2.4rem;
    padding-bottom: 50px;
}

.myinfo .main-left ul {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 2rem;
}

.myinfo .main-left ul li {
    list-style-type: none;
}

.myinfo .main-right {
    display: table-cell;
    width: 50%;
    padding-left: 135px;
    vertical-align: top;
}

/* 学员评论 */
.myhp {
    width: 100%;
    padding: 0 0 60px 0;
    overflow: hidden;
}