/* 教学资源页面样式 */
.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;
}

/* 教学资源列表 */
.practice-list {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.practice-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.practice-item:active {
    transform: scale(0.98);
}

.practice-item a {
    display: block;
    text-decoration: none;
}

.practice-img {
    width: 100%;
    height: 120px;
    overflow: hidden;
    position: relative;
}

.practice-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.practice-item:hover .practice-img img {
    transform: scale(1.05);
}

.practice-info {
    padding: 10px;
}

.practice-title {
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

/* 分页样式 */
.pagination {
    padding: 15px;
    background: #fff;
    margin-top: 15px;
}

.page-info {
    text-align: center;
    margin-bottom: 10px;
}

.page-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.page-list {
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    overflow-x: auto;
    padding: 5px 0;
}

.page-list ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-list li {
    margin: 0 3px;
}

.page-list a,
.page-list span {
    display: inline-block;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    min-width: 15px;
    text-align: center;
}

.page-list .current {
    background: #c91023;
    color: #fff;
    border-color: #c91023;
}

/* 隐藏滚动条但保持功能 */
.page-list::-webkit-scrollbar {
    display: none;
}

.page-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 适配大屏幕 */
@media screen and (min-width: 768px) {
    .practice-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .practice-img {
        height: 150px;
    }

    .practice-title {
        font-size: 15px;
    }
}

/* 适配小屏幕 */
@media screen and (max-width: 320px) {
    .practice-list {
        grid-template-columns: 1fr;
    }

    .practice-img {
        height: 180px;
    }
}

/* 新闻分类样式 */
.category-list {
    display: flex;
    overflow-x: auto;
    padding: 15px;
    background: #fff;
    margin-bottom: 15px;
    -webkit-overflow-scrolling: touch;
}

.category-list::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex-shrink: 0;
    padding: 6px 15px;
    margin-right: 10px;
    background: #f5f5f5;
    border-radius: 15px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.category-item.active {
    background: #c91023;
    color: #fff;
}

/* 新闻列表样式扩展 */
.news-list {
    grid-template-columns: 1fr;
    gap: 10px;
}

.news-item {
    display: flex;
    flex-direction: column;
}

.news-img {
    height: 180px;
}

.news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 15px;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
    text-align: left;
}

.news-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.news-date {
    color: #999;
    font-size: 12px;
}

/* 适配大屏幕 */
@media screen and (min-width: 768px) {
    .news-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-title {
        font-size: 16px;
    }
}

/* 添加最小高度样式 */
.main-content {
    min-height: calc(100vh - 120px); /* 减去header和footer的高度 */
    display: flex;
    flex-direction: column;
}

/* 新闻列表容器样式 */
.practice-list.news-list {
    flex: 1;  /* 让列表容器自动填充剩余空间 */
}

/* 空状态提示 */
.empty-state {
    text-align: center;
    padding: 40px 15px;
    color: #999;
    font-size: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.empty-state img {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 课程列表样式扩展 */
.course-list {
    grid-template-columns: 1fr;
    gap: 10px;
}

.course-item {
    display: flex;
    flex-direction: column;
}

.course-img {
    height: 180px;
}

.course-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 15px;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
    text-align: left;
}

.course-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.course-date {
    color: #999;
    font-size: 12px;
}

/* 适配大屏幕 */
@media screen and (min-width: 768px) {
    .course-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .course-title {
        font-size: 16px;
    }
}

/* 名师风采样式扩展 */
.teacher-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;
}

.teacher-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.teacher-item:active {
    transform: scale(0.98);
}

.teacher-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.teacher-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.teacher-item:hover .teacher-img img {
    transform: scale(1.05);
}

.teacher-info {
    padding: 12px;
    text-align: center;
}

.teacher-title {
    font-size: 15px;
    color: #333;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 适配大屏幕 */
@media screen and (min-width: 768px) {
    .teacher-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 15px;
    }
    
    .teacher-img {
        height: 180px;
    }
    
    .teacher-title {
        font-size: 16px;
    }
}

/* 适配小屏幕 */
@media screen and (max-width: 320px) {
    .teacher-list {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .teacher-img {
        height: 200px;
    }
}

/* 教学流程样式扩展 */
.class-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;
}

.class-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.class-item:active {
    transform: scale(0.98);
}

.class-img {
    width: 100%;
    height: 140px;
    overflow: hidden;
    position: relative;
}

.class-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.class-item:hover .class-img img {
    transform: scale(1.05);
}

.class-info {
    padding: 12px;
    background: #fff;
}

.class-title {
    font-size: 15px;
    color: #333;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

/* 适配大屏幕 */
@media screen and (min-width: 768px) {
    .class-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 15px;
    }
    
    .class-img {
        height: 160px;
    }
    
    .class-title {
        font-size: 16px;
    }
}

/* 适配小屏幕 */
@media screen and (max-width: 320px) {
    .class-list {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .class-img {
        height: 180px;
    }
}

/* 红色地图样式 */
.map-container {
    padding: 15px;
    background: #fff;
    margin-bottom: 15px;
}

.map-wrapper {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-image {
    width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.map-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 支持图片缩放 */
.map-image {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

/* 缩放提示 */
.map-hint {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    padding: 8px 15px;
    border-radius: 20px;
    z-index: 10;
}

.map-hint p {
    color: #fff;
    font-size: 12px;
    margin: 0;
    text-align: center;
}

/* 适配大屏幕 */
@media screen and (min-width: 768px) {
    .map-container {
        padding: 20px;
    }
    
    .map-hint {
        padding: 10px 20px;
    }
    
    .map-hint p {
        font-size: 14px;
    }
}

/* 适配小屏幕 */
@media screen and (max-width: 320px) {
    .map-container {
        padding: 10px;
    }
}

/* 添加图片缩放动画 */
.map-image img {
    transition: transform 0.3s ease;
}

/* 添加图片加载动画 */
.map-wrapper {
    position: relative;
    min-height: 200px;
}

.map-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #c91023;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
}

.map-wrapper.loading::before {
    opacity: 1;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
} 