/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    padding-top: 50px;
    background: #f5f5f5;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* 头部样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #c91023;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 1000;
}

.logo img {
    height: 35px;
    margin-top: 5px;
}

/* 章节样式 */
.section {
    padding: 15px;
    margin-bottom: 20px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-left: 4px solid #c91023;
    padding-left: 10px;
}

.section-title h2 {
    font-size: 18px;
    color: #333;
}

.more {
    color: #666;
    font-size: 14px;
}

/* 中心简介 */
.intro-text {
    margin-top: 15px;
}

.intro-text h3 {
    margin-bottom: 10px;
    color: #c91023;
}

.intro-text p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* 名师风采 */
.teacher-list {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
}

.teacher-item {
    margin: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.teacher-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.teacher-info {
    padding: 15px;
    background: #fff;
}

.teacher-name {
    font-size: 16px;
    color: #333;
    margin: 0 0 10px;
    font-weight: bold;
}

.teacher-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.more-link {
    display: inline-block;
    margin-top: 10px;
    color: #c91023;
    font-size: 14px;
    text-decoration: none;
}

/* 教学资源 */
.resource-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.resource-item p {
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
}

/* 联系我们 */
.contact-info {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
}

.contact-info h3 {
    color: #c91023;
    margin-bottom: 10px;
}

.contact-info p {
    font-size: 14px;
    margin-bottom: 5px;
}

/* 友情链接样式 */
.url_botm_selct {
    padding: 15px;
    background: #f5f5f5;
}

.url_botm_selct_nr {
    margin-bottom: 10px;
}

.pb_foot_box_r_sele {
    position: relative;
}

.pb_foot_box_r_sele_y {
    background: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 4px;
}

.pb_foot_box_r_sele_y p {
    font-size: 14px;
    color: #333;
    margin: 0;
}

.pb_foot_box_r_sele_y img {
    width: 12px;
    height: auto;
}

.pb_foot_box_r_sele_e {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    border-top: none;
    display: none;
    z-index: 100;
}

.pb_foot_box_r_sele_e p {
    margin: 0;
    padding: 10px 15px;
    font-size: 14px;
}

.pb_foot_box_r_sele_e p:hover {
    background: #f5f5f5;
    color: #c91023;
}

/* 修改底部样式 */
.footer {
    background: #c91023;
    color: #fff;
    padding: 20px 15px;
}

.footer-info {
    margin-bottom: 15px;
}

.footer-info p {
    font-size: 12px;
    line-height: 1.8;
    margin: 0;
}

.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.footer-copyright p {
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.8;
}

/* 导航切换按钮 */
.nav-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.nav-toggle span,
.nav-toggle span:before,
.nav-toggle span:after {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.nav-toggle span:before,
.nav-toggle span:after {
    content: '';
    position: absolute;
}

.nav-toggle span:before {
    top: -8px;
}

.nav-toggle span:after {
    bottom: -8px;
}

/* 导航菜单 */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: #fff;
    z-index: 1001;
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.nav-menu.active {
    transform: translateX(-100%);
}

.nav-header {
    background: #c91023;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.nav-close {
    font-size: 24px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
}

.nav-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.nav-item {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    position: relative;
    font-size: 16px;
}

.nav-item:after {
    content: '›';
    position: absolute;
    right: 20px;
    color: #999;
}

.nav-item:active {
    background: #f5f5f5;
    color: #c91023;
}

.nav-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.nav-mask.active {
    display: block;
}

/* 轮播图容器调整 */
.swiper-container {
    margin-top: 0;
}

/* 响应式调整 */
@media screen and (max-width: 375px) {
    .section {
        padding: 10px;
    }
    
    .section-title h2 {
        font-size: 16px;
    }
    
    .resource-list {
        grid-template-columns: 1fr;
    }
    
    .nav-item {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* 移动端样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background: #f5f5f5;
}

img {
    max-width: 100%;
    height: auto;
}

/* 头部样式 */
.m-header {
    background: #c91023;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 50px;
}

.m-header .logo img {
    height: 30px;
}

.m-header .contact a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

/* 内容区域通用样式 */
.m-section {
    margin: 15px;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.section-title {
    border-left: 4px solid #c91023;
    padding-left: 10px;
    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 18px;
    color: #333;
}

/* 课程列表样式 */
.course-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.course-item {
    background: #f8f8f8;
    padding: 10px;
    border-radius: 4px;
}

.course-item a {
    color: #333;
    text-decoration: none;
}

/* 新闻列表样式 */
.news-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.news-img img {
    width: 100%;
    border-radius: 4px;
}

.news-info h3 {
    font-size: 16px;
    margin: 10px 0;
}

.more-link {
    color: #c91023;
    text-decoration: none;
}

/* 培训集锦样式 */
.training-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.training-item img {
    width: 100%;
    border-radius: 4px;
}

.training-item p {
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
}

/* 联系信息样式 */
.contact-info {
    line-height: 2;
}

.contact-info h3 {
    color: #c91023;
    margin-bottom: 10px;
}

/* 底部导航样式 */
.m-footer {
    background: #333;
    padding: 15px;
    color: #fff;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
}

.copyright {
    font-size: 12px;
    color: #999;
}

/* 响应式调整 */
@media screen and (max-width: 320px) {
    .course-list,
    .training-list {
        grid-template-columns: 1fr;
    }
}

/* 关于我们页面样式 */
.page-header {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-header h1 {
    font-size: 20px;
    color: #333;
    margin: 0 0 10px;
}

.breadcrumb {
    font-size: 13px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb .separator {
    margin: 0 5px;
    color: #999;
}

.breadcrumb .current {
    color: #c91023;
}

.about-section {
    background: #fff;
    padding: 20px 15px;
    margin: 0 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.center-title {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.title-icon {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
}

.title-text h2 {
    font-size: 20px;
    color: #c91023;
    margin: 0 0 5px;
}

.title-text h3 {
    font-size: 14px;
    color: #c91023;
    margin: 0;
    font-weight: normal;
}

.about-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.about-content p {
    margin-bottom: 15px;
    text-align: justify;
}

/* 适配深色模式 */
@media (prefers-color-scheme: dark) {
    .page-header,
    .about-section {
        background: #1a1a1a;
    }

    .page-header h1 {
        color: #fff;
    }

    .breadcrumb,
    .breadcrumb a {
        color: #999;
    }

    .about-content {
        color: #ccc;
    }

    .center-title {
        border-bottom-color: #333;
    }
}

/* 适配大屏幕 */
@media screen and (min-width: 768px) {
    .about-section {
        max-width: 700px;
        margin: 0 auto 20px;
    }

    .title-text h2 {
        font-size: 24px;
    }

    .title-text h3 {
        font-size: 16px;
    }

    .about-content {
        font-size: 16px;
    }
}

/* 侧边菜单样式 */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    height: 100%;
    background: #fff;
    z-index: 1001;
    transition: all 0.3s ease-out;
}

.side-menu.active {
    right: 0;
}

.menu-header {
    background: #c91023;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.close-menu {
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px;
}

.menu-content {
    height: 100%;
    overflow-y: auto;
}

.nav-list {
    padding: 10px 0;
}

.nav-item {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    position: relative;
    font-size: 16px;
}

.nav-item:after {
    content: '›';
    position: absolute;
    right: 20px;
    color: #999;
    font-size: 20px;
}

.nav-item:active {
    background: #f5f5f5;
    color: #c91023;
}

/* 遮罩层 */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

/* 快速入口样式 */
.quick-entry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 15px;
    background: #fff;
    margin-bottom: 15px;
}

.quick-entry a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
}

.quick-entry i {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

/* 课程卡片样式 */
.course-scroll {
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.course-card {
    display: inline-block;
    width: 200px;
    margin-right: 15px;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 新闻卡片样式 */
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-image {
    height: 180px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

/* 优化动画效果 */
.read-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #c91023;
}

.read-more .arrow {
    transition: transform 0.3s ease;
}

.read-more:hover .arrow {
    transform: translateX(5px);
}

/* 优化触摸反馈 */
.course-card:active,
.news-card:active {
    transform: scale(0.98);
}

/* 加载动画优化 */
.page-loading {
    transition: opacity 0.3s ease;
}

/* 响应式优化 */
@media screen and (max-width: 360px) {
    .quick-entry {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .course-card {
        width: 160px;
    }
}

/* 滚动条样式 */
.menu-content::-webkit-scrollbar {
    width: 4px;
}

.menu-content::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.menu-content::-webkit-scrollbar-thumb {
    background: #c91023;
    border-radius: 2px;
}

/* 防止body滚动 */
body.menu-open {
    overflow: hidden;
}

/* 名师风采模块样式 */
.teacher-section {
    margin: 15px;
    padding: 0;
}

.teacher-section .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.teacher-section .section-title h2 {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #c91023;
    margin: 0;
}

.title-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.teacher-section .more {
    color: #999;
    font-size: 14px;
    text-decoration: none;
}

.teacher-list {
    position: relative;
    overflow: hidden;
}

.teacher-swiper {
    padding: 0;
}

.teacher-swiper .swiper-slide {
    opacity: 1;
}

/* 轮播图分页器样式 */
.teacher-swiper .swiper-pagination {
    position: relative;
    margin-top: 15px;
}

.teacher-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ddd;
    opacity: 1;
}

.teacher-swiper .swiper-pagination-bullet-active {
    background: #c91023;
}

/* 优化新闻动态轮播样式 */
.news-section {
    background: #fff;
    margin: 15px 0;
    padding: 15px;
}

.news-list {
    position: relative;
    overflow: hidden;
}

.news-swiper {
    width: 100%;
    padding: 10px 0;
}

.news-swiper .swiper-wrapper {
    display: flex;
    align-items: center;  /* 垂直居中 */
}

.news-swiper .swiper-slide {
    width: 85%;
    margin: 0 auto;  /* 水平居中 */
    transition: all 0.3s ease;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 0;  /* 移除外边距 */
}

.news-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;  /* 添加相对定位 */
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;  /* 防止图片下方有空隙 */
}

.news-info {
    padding: 15px;
}

.news-title {
    font-size: 16px;
    color: #333;
    margin: 0 0 10px;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.news-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.news-date {
    color: #999;
    font-size: 12px;
}

.news-meta .more-link {
    color: #c91023;
    font-size: 14px;
    text-decoration: none;
    margin-top: 0;
}

/* 轮播分页器样式 */
.news-swiper .swiper-pagination {
    position: relative;
    margin-top: 15px;
    bottom: 0;
    left: 0;
    width: 100%;
}

.news-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ddd;
    opacity: 1;
    margin: 0 4px;
}

.news-swiper .swiper-pagination-bullet-active {
    background: #c91023;
}

/* 优化培训集锦样式 */
.logistics-section {
    background: #fff;
    margin: 15px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logistics-list {
    position: relative;
    overflow: hidden;
}

.logistics-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logistics-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.logistics-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.logistics-info {
    padding: 15px;
    background: #fff;
}

.logistics-title {
    font-size: 16px;
    color: #333;
    margin: 0 0 10px;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* 优化分页器样式 */
.logistics-swiper .swiper-pagination {
    position: relative;
    margin-top: 10px;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.logistics-swiper .swiper-pagination-bullet {
    width: 4px;
    height: 4px;
    background: #ddd;
    opacity: 1;
    margin: 0;
    transition: all 0.3s ease;
}

.logistics-swiper .swiper-pagination-bullet-active {
    background: #c91023;
    width: 12px;
    border-radius: 2px;
}

/* 优化查看详情按钮 */
.logistics-info .more-link {
    display: inline-block;
    padding: 4px 10px;
    color: #c91023;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #c91023;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.logistics-info .more-link:hover {
    background: #c91023;
    color: #fff;
} 