html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    vertical-align: baseline;
    background: transparent;
}



article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary {
    display: block;
}

nav ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

img {
    vertical-align: middle;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

a {
    margin: 0;
    padding: 0;
    border: 0;

    vertical-align: baseline;
    background: transparent;
    text-decoration: none;
}

a,
span,
b,
p,
h1,
h2,
h3,
h4,
h5,
div {
    font-family: Microsoft YaHei;
    color: #363635;
}


table {
    border-collapse: collapse;
    border-spacing: 0;
}

input,
select {
    outline: medium none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #cccccc;
    margin: 1em 0;
    padding: 0;
}

input {
    padding: 0;
}

input,
select {
    vertical-align: middle;
}

li {
    list-style: none;
}

body {
    min-width: 1250px;

    background-color: #ffffff;
}

.width1200 {
    width: 1250px;
    margin: 0 auto;
}

.width1250px {
    width: 1250px;
    margin: 0 auto;
}

.clearfix::after {
    display: block;
    content: '';
    height: 0;
    width: 0;
    clear: both;
}

.clearfix {
    zoom: 1;
}



 .swiper {
     width: 100%;
     height: 384px;
 }

 .swiper-slide {
     text-align: center;
     font-size: 18px;
     background: #fff;
     display: flex;
     justify-content: center;
     align-items: center;
 }
 .swiper-slide .width1000{
     width: 1200px;
     margin: 130px  auto;

 }
 .swiper-slide img {
     display: block;
    
 }

/* 上下移动动画 */
@keyframes floatUpDown {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

 .swiper-slide img {
    animation: floatUpDown 3s ease-in-out infinite;
}

/* 课程资源页面样式 */
.container {
    width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 页面标题 */
.page-title {
    font-size: 28px;
    color: #333;
    font-weight: bold;
}

/* 搜索和筛选区域 */
.search-filter {
    /* display: flex;
    align-items: center;
    justify-content: space-between; */
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 300px;

}

.search-input {
    width: 300px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    /* border-color: #007bff; */
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    /* background-color: #007bff; */
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon {
    font-size: 14px;
}

.title-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.filter-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    /* margin-top: 20px; */
}

.filter-label {
    font-size: 17px;
    color: #333;
    font-weight: 600;
}

.filter-tab {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s;
    background-color: white;
    border: 1px solid #ddd;
}

.filter-tab:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.filter-tab.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* 课程卡片网格 */
.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.course-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.course-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.course-card:hover .course-img img {
    transform: scale(1.05);
}

.course-info {
    padding: 10px;
}

.course-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.course-teacher {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.course-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 14px;
    color: #28a745;
    background: url(../images/yx.png) no-repeat center left;
    background-size: 16px;
    padding-left: 20px;
}

/* 分页控件 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 10px 20px; */
    /* background-color: #f8f9fa; */
    border-radius: 8px;
}

.total {
    font-size: 14px;
    color: #666;
}

.page-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-btn {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    text-decoration: none;
    color: #666;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
}

.page-btn:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.page-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.page-btn.prev,
.page-btn.next {
    width: auto;
    padding: 0 12px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }

    .course-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .search-filter {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        flex-wrap: wrap;
    }

    .search-input {
        width: 250px;
    }
}