/* 容器样式 */
a {
    color: inherit;
    text-decoration: none;
}

hr {
}

.course-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.btn-primary {
    background-color: #ff9600;
    color: #fff;
}

.btn-primary:hover {
    background-color: #ff9600;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    background-color: #fff;
    color: #ff9600;
    border: 1px solid #ff9600;
}

.btn-secondary:hover {
    background-color: #fff5f0;
}

.btn-large {
    padding: 12px 32px;
    font-size: 16px;
}

.btn-small {
    padding: 6px 16px;
    font-size: 12px;
}

.btn-outline {
    background-color: transparent;
    color: #ddd;
    border: 1px solid #ddd;
}

.btn-outline:hover {
    color: #333333;
    background-color: #f0f0f0;
}

.btn-member {
    padding: 8px 20px;
    background-color: #fff;
    color: #ff9600;
    border: 1px solid #ff6b35;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.btn-member:hover {
    background-color: #fff5f2;
}

/* 顶部导航栏 */
.edu-header {
    background-color: #fff;
    color: #fff;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    vertical-align: middle;
}

.main-nav {
    flex: 1;
    margin: 0 40px;
}

.nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
}

.nav-item {
    margin: 0 20px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: #ff9600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff9600;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    width: 100%;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.search-input {
    background-color: transparent;
    padding: 6px 35px 6px 12px;
    border: 1px solid #d1d1d1;
    border-radius: 20px;
    font-size: 14px;
    width: 200px;
    outline: none;
    color: #666666;
}

.search-input::placeholder {
    color: #bebebe;
    opacity: 1;
}

.search-icon {
    position: absolute;
    top:3px;
    right: 20px;
    color: #333333;
}

.search-icon img {
    width: 15px;
    height: 17px;
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-right .btn {
    margin-left: 10px;
}

/* 横幅样式 */
.news-banner {
    width: 100%;
    height: 100%;
    margin-top: 80px;
}

.news-banner img{
    width: 100%;
    height: 100%;
    object-fit: cover;
 }

/* 分类标签样式 */
.category {
    padding: 20px 0;
    border-bottom: 1px solid #d1d1d1;
}

.category-list {
    display: flex;
    list-style: none;
    justify-content: space-between;
    align-items: center;
    width: 1000px;
    margin: 0 auto;
}

.category-list li {
    font-size: 15px;
    font-weight: 500；
}

.category-list li a {
    text-decoration: none;
    color: #666;
}

.category-list li a:hover,
.category-list li a.active {
    color: #ff9600;
}

/* 新闻搜索 */
.news-search{
    width: 1200px;
    height: auto;
    margin: 0 auto;
    padding: 30px 0;
}

.news-search .news-search-input{
    border: none;
    width: 400px;
    border-bottom: 1px solid #d1d1d1;
    color: #333;
    font-size: 12px;
    height: 40px;
    line-height: 40px;
    margin-left: 20px;
}

.news-search img{
    width: 20px;
    height: 20px;
    margin-left: -30px;
}

.news-search .news-search-input::placeholder{
    color: #666666;
    opacity: 1;
}

/* 新闻列表样式 */
.news-list {
    padding: 40px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    justify-content: space-between;
}

.news-item {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-active{
    border-bottom: 2px solid #ff9600;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-flag{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666666;
    padding: 10px 0px 10px 15px;
    margin: 15px 0px 15px 0px;
}

.news-source img{
    width: 14px;
    height: 14px;
}

.news-tag {
    background-color: #f55023;
    color: white;
    padding: 5px 20px;
    font-size: 12px;
    border-radius: 8px 0px 0px 8px;
}

.news-tag-none{
    color: white;
    padding: 5px 20px;
    font-size: 12px;
    border-radius: 8px 0px 0px 8px;
}

.news-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
    font-weight: 600;
    padding: 0px 20px;
}

.title-active{
    color: #ff9600;
}

.news-date {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
    padding: 0px 20px;
}

.news-content {
    margin: 20px 0px 20px 0px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0px 20px;
   
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    padding: 0px 20px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-detail{
    margin: 20px 0px;
    padding: 0px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.news-read-orange {
    color: #ff9600
}

.news-read-gray{
    color: #666;
}

.news-detail img{
    margin-left: 5px;
    width: 45px;
    height: 10px;
}


/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding: 10px 0;
}

.page-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    margin: 0 4px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    font-size: 14px;
    color: #666;
}

.page-btn:hover {
    border-color: #ff9600;
    color: #ff9600;
}

.page-btn.active {
    background-color: #ff9600;
    color: #fff;
    border-color: #ff9600;
}

.page-btn.prev,
.page-btn.next {
    width: auto;
    padding: 0 12px;
    font-weight: normal;
    color: #666;
}

.page-btn.prev:hover,
.page-btn.next:hover {
    color: #ff9600;
}

.page-ellipsis {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 4px;
    width: 36px;
    height: 36px;
    color: #999;
    font-size: 14px;
}

.page-jump {
    display: flex;
    align-items: center;
    margin-left: 20px;
    font-size: 14px;
    color: #666;
}

.page-input {
    width: 50px;
    height: 36px;
    margin: 0 8px;
    padding: 0 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    color: #666;
}

.page-input:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
}

/* 右侧侧边栏 */
.sidebar {
    position: fixed;
    right: 0px;
    top: 80%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.sidebar-item {
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.sidebar-item:hover {
    background-color: #fff5f2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.sidebar-icon {
    font-size: 24px;
}

.sidebar-text {
    font-size: 12px;
    color: #333;
    white-space: nowrap;
}

.sidebar-qr {
    position: absolute;
    right: 100%;
    top: 0;
    margin-right: 10px;
    width: 120px;
    height: 120px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    display: none;
}

.sidebar-item:hover .sidebar-qr {
    display: block;
}

/* 页脚 */
.edu-footer {
    background-color: #000;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    align-items: center;
}

.footer-title-box {
    height: 60px;
    display: flex;
}


.footer-title-box li {
    width: 400px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.footer-title-box li:nth-child(-n+2)::after {
    content: "";
    width: 1px;
    height: 12px;
    background-color: rgba(209, 209, 209, 0.4);
    position: absolute;
    right: 0px;
    top: 24px;
}

.footer-title-box-li-click {
    color: #ff9600;
    border-bottom: 1px solid #ff9600;
}

.footer-title-cutLine {
    width: 100%;
    height: 1px;
    background-color: rgba(209, 209, 209, 0.4);
}

.footer-title-cutLine-2 {
    width: 100%;
    border-bottom: 1px dashed rgba(209, 209, 209, 0.4);
}

.footer-link-tnt-box {
    width: 1200px;
    height: 60px;
    margin: 10px auto 80px auto;
    display: flex;
    flex-wrap: wrap;
}

.footer-link-tnt-box .footer-link-items {
    width: 200px;
    height: 40px;
    line-height: 40px;
    cursor: pointer;
}

.footer-link-items a {
    text-decoration: none;
    color: #999999;
}

.footer-link-items span {
    color: #999999;
}

.footer-link-items a:hover {
    text-decoration: none;
    color: #ff9600;
}

 .footer_about_content {
     max-width: 1200px;
     margin: 0 auto;
     font-size: 14px;
     padding: 32px 32px 18px;
     border-bottom: 1px dashed rgba(209, 209, 209, 0.3);
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
 }

 .footer_about_content .left {
     width: 500px;
 }

 .footer_about_content .left dl {
     display: flex;
     flex-direction: column;
 }

 .footer_about_content .left dt {
     color: #fff;
     margin-bottom: 32px;
     font-size: 18px;
     font-weight: 500;
 }

 .footer_about_content .left dd {
     color: #999;
     margin-bottom: 18px;
     display: flex;
     align-items: center;
 }

 .footer_about_content .left dd svg {
     width: 24px;
     height: 24px;
     border: 1px solid #999999;
     border-radius: 50%;
     padding: 4px;
     margin-right: 10px;
     fill: #999;
 }

 .footer_about_content .left dd span {
     color: #999;
 }

 .footer_about_content .contact-info {
     flex: 1;
 }

 .footer_about_content .contact-info h4 {
     font-size: 14px;
     color: #999;
     margin-bottom: 15px;
 }

 .footer_about_content .contact-info .phone {
     font-size: 28px;
     font-weight: bold;
     color: #ff9600;
     margin-bottom: 20px;
 }

 .footer_about_content .right {
     width: 276px;
     display: flex;
     align-items: center;
 }

 .footer_about_content .right .qrcode {
     margin-right: 15px;
 }

 .footer_about_content .right .qrcode img {
     width: 112px;
     height: 112px;
     display: block;
     background-color: #999;
 }

 .footer_about_content .right .qrcode-text {
     font-size: 14px;
     color: #999;
     line-height: 2em;
 }

/* 版权信息样式 */
.copyright {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 32px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

.copyright span {
    margin: 0 10px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }

    .nav-item {
        margin: 0 15px;
    }

    .course-row {
        grid-template-columns: 1fr;
    }

    .course-card.large {
        flex-direction: column;
    }

    .course-card.large .course-image {
        flex: 0 0 auto;
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .header-right {
        margin-left: auto;
    }

    .banner-info h2 {
        font-size: 36px;
    }

    .course-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .logo {
        flex: 1;
    }

    .header-right {
        flex: 1;
        justify-content: flex-end;
        margin-top: 10px;
    }

    .banner-info h2 {
        font-size: 28px;
    }

    .banner-info p {
        font-size: 16px;
    }

    .hero-banner {
        padding: 80px 0;
    }

    .course-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-qrcode {
        justify-content: center;
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .banner-info h2 {
        font-size: 24px;
    }

    .btn-large {
        padding: 10px 24px;
        font-size: 14px;
    }

    .course-card.small .course-info {
        padding: 15px;
    }

    .course-card h4 {
        font-size: 14px;
    }

    .price {
        font-size: 16px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-course,
.new-courses,
.recommended-courses {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .footer_about_content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer_about_content .left,
    .footer_about_content .right {
        width: 100%;
        margin-bottom: 30px;
    }

    .footer_about_content .left dd {
        justify-content: center;
    }

    .footer_about_content .right {
        justify-content: center;
    }
}