/* ========== 首页专属样式 ========== */

/* 数据搜索区 */
.hero-section {
    background: linear-gradient(135deg, #278de5 0%, #1a6fc0 100%);
    padding: 50px 0;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.data-stats {
    display: flex;
    gap: 50px;
}

.data-stats .stat-item {
    text-align: center;
    color: #fff;
}

.data-stats .stat-item h2 {
    font-size: 42px;
    font-weight: bold;
    display: inline;
}

.data-stats .stat-item .unit {
    font-size: 16px;
    margin-left: 3px;
}

.data-stats .stat-item p {
    font-size: 14px;
    margin-top: 8px;
    opacity: 0.9;
}

.hero-search {
    display: flex;
    align-items: center;
}

.hero-search input {
    width: 300px;
    height: 45px;
    padding: 0 20px;
    border-radius: 25px 0 0 25px;
    font-size: 14px;
    border: none;
}

.hero-search .search-icon {
    width: 50px;
    height: 45px;
    background: #f39e13;
    border-radius: 0 25px 25px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
}

/* 新闻Tab区 */
.news-section {
    padding: 30px 0;
}

.news-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
}

.news-tabs a {
    padding: 10px 25px;
    font-size: 16px;
    color: #666;
    border-bottom: 2px solid transparent;
}

.news-tabs a:hover,
.news-tabs a.active {
    color: var(--deep-green);
    border-bottom-color: var(--deep-green);
}

.news-list .news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

.news-list .news-item a {
    color: #333;
    font-size: 15px;
}

.news-list .news-item a:hover {
    color: var(--deep-green);
}

.news-list .news-item .date {
    color: #999;
    font-size: 13px;
    white-space: nowrap;
}

/* 课程轮播 */
.course-swiper {
    padding: 0 50px;
    position: relative;
}

.course-swiper .swiper-slide .course-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.course-swiper .swiper-slide .course-card:hover {
    transform: translateY(-5px);
}

.course-card .course-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

.course-card .course-info {
    padding: 15px;
}

.course-card .course-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-card .course-info p {
    font-size: 13px;
    color: #999;
}

.course-swiper .swiper-button-next,
.course-swiper .swiper-button-prev {
    color: var(--deep-green);
}

/* 行走课堂 */
.walk-class-section {
    padding: 30px 0;
}

.walk-class-list {
    display: flex;
    gap: 20px;
}

.walk-class-item {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 220px;
}

.walk-class-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.walk-class-item .walk-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.walk-class-item .walk-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.walk-class-item .walk-info p {
    font-size: 13px;
    opacity: 0.9;
}

.walk-class-item .walk-info .provider {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 3px;
}

/* 咨询区 */
.consult-section {
    padding: 30px 0;
}

.consult-list {
    display: flex;
    gap: 20px;
}

.consult-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.consult-item:hover {
    background: #eef6ff;
}

.consult-item img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.consult-item .consult-text h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.consult-item .consult-text p {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
}

/* ========== 新闻列表页 ========== */
.news-page-list .news-page-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.news-page-item .news-thumb {
    width: 200px;
    height: 130px;
    margin-right: 20px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-page-item .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-page-item .news-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.news-page-item .news-content h3 a:hover {
    color: var(--deep-green);
}

.news-page-item .news-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-page-item .news-content .news-date {
    font-size: 13px;
    color: #999;
}

/* ========== 新闻详情页 ========== */
.article-detail {
    padding: 30px 0;
}

.article-detail .article-title {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

.article-detail .article-meta {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
}

.article-detail .article-body {
    font-size: 15px;
    color: #444;
    line-height: 2;
}

.article-detail .article-body p {
    margin-bottom: 15px;
}

.article-detail .article-body img {
    max-width: 100%;
    margin: 15px auto;
    border-radius: 4px;
}

.article-detail .article-body .img-caption {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: -10px;
    margin-bottom: 15px;
}

/* ========== 基地详情页 ========== */
.base-detail {
    padding: 30px 0;
}

.base-detail .base-top {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.base-detail .base-top .base-img {
    width: 400px;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.base-detail .base-top .base-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.base-detail .base-top .base-info-list {
    flex: 1;
}

.base-detail .base-top .base-info-list li {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    font-size: 15px;
}

.base-detail .base-top .base-info-list li .label {
    width: 90px;
    color: #999;
    flex-shrink: 0;
}

.base-detail .base-top .base-info-list li .value {
    color: #333;
}

.base-detail .base-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 25px;
}

.base-detail .base-tabs button {
    padding: 12px 30px;
    font-size: 16px;
    color: #666;
    background: none;
    position: relative;
}

.base-detail .base-tabs button.active {
    color: var(--deep-green);
}

.base-detail .base-tabs button.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--deep-green);
}

.base-detail .base-content {
    font-size: 15px;
    line-height: 2;
    color: #444;
}

.base-detail .base-content p {
    margin-bottom: 12px;
}

.base-detail .base-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.base-detail .base-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
}

/* ========== 研学路线列表 ========== */
.route-list .route-item {
    display: flex;
    padding: 20px;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}

.route-list .route-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.route-item .route-img {
    width: 220px;
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

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

.route-item .route-info {
    flex: 1;
}

.route-item .route-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
}

.route-item .route-info p {
    font-size: 14px;
    color: #666;
    line-height: 2;
}

/* ========== 师资库 ========== */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.teacher-item {
    text-align: center;
    padding: 20px 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}

.teacher-item:hover {
    transform: translateY(-3px);
}

.teacher-item .teacher-name {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
    font-weight: bold;
}

.teacher-item .teacher-avatar {
    width: 100px;
    height: 130px;
    margin: 0 auto;
    border-radius: 6px;
    overflow: hidden;
}

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

/* ========== 行走课堂详情 ========== */
.walk-detail {
    padding: 30px 0;
}

.walk-detail-top {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.walk-detail-img {
    width: 450px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.walk-detail-info h1 {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--deep-green);
}

.walk-detail-desc p {
    font-size: 15px;
    color: #555;
    line-height: 2;
    margin-bottom: 10px;
}

/* 推荐轮播 */
.recommend-swiper-wrap {
    position: relative;
    padding: 0 40px;
    margin-bottom: 30px;
}

.recommend-swiper-wrap .swiper-button-next,
.recommend-swiper-wrap .swiper-button-prev {
    color: var(--deep-green);
}

/* ========== 课程详情页 ========== */
.course-detail {
    padding: 30px 0;
}

.course-detail-top {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.course-detail-img {
    width: 400px;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.course-detail-meta h1 {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
}

.course-meta-list li {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 15px;
}

.course-meta-list li .label {
    width: 90px;
    color: #999;
    flex-shrink: 0;
}

.course-meta-list li .value {
    color: #333;
    flex: 1;
}

.course-detail-section {
    margin-bottom: 30px;
}

.course-detail-content {
    font-size: 15px;
    color: #444;
    line-height: 2;
}

.course-detail-content p {
    margin-bottom: 12px;
}

/* ========== 课程列表页 ========== */
.course-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.course-list-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}

.course-list-item:hover {
    transform: translateY(-3px);
}

.course-list-item .cl-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.course-list-item .cl-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-list-item .cl-info {
    padding: 12px 15px;
}

.course-list-item .cl-info h3 {
    font-size: 15px;
    color: #333;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-list-item .cl-info .cl-type {
    font-size: 13px;
    color: var(--deep-green);
    margin-bottom: 5px;
}

.course-list-item .cl-info .cl-date {
    font-size: 12px;
    color: #999;
}
