/* 容器样式 */
a {
    color: inherit;
    text-decoration: none;
}

hr {
    background-color: #ecebeb;
}

.course-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;
}

/* -- 主体内容 */
/* 搜索栏 */
.search-bar {
    text-align: right;
    margin: 100px 0px 20px 0px;
    cursor: pointer;
}

.search-bar span{
    font-size: 14px;
    color: #666;
    width: 56px;
    height: 20px;
    line-height: 20px;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    padding: 4px 15px;
}

.search-bar span:hover{
    background-color: #ff9600;
    color: #fff;
}

/* 筛选条件 */
.filters {
    /* margin: 30px 0px 0px 0px; */
    max-height: 265px;
    overflow: hidden;
}

.filter-group {
    margin: 20px 0px;
    display: flex;
}

.filter-label {
    display: block;
    width: 80px;
    color: #999;
    font-size: 14px;
    line-height: 35px;
}

.filter-options {
    vertical-align: middle;
    width: 1000px;
    max-height: 43px;      /* 收起时的高度 */
    overflow: hidden;      /* 超出隐藏 */
}

.filter-options span{
    display: block;
    float: left;
    line-height: 35px;
    margin-left: 5px;
}

.filter-expand {
    display: inline-block;
    padding: 8px 12px;
    margin-left: 10px;
    color: #ff9600;
    cursor: pointer;
    font-size: 13px;
    vertical-align: middle;
    text-align: right;
}

.filter-expand::after {
    content: '▼';
    display: inline-block;
    margin-left: 4px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.filter-expand.expanded::after {
    transform: rotate(180deg);
}

.filter-option-all {
    display: inline-block;
    padding: 0px 15px;
    margin-right: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-option-all:hover {
    background-color: #e0e0e0;
}

.filter-option-all.active {
    background-color: #ff9600;
    color: #fff;
    border-color: #ff9600;
}

.filter-option {
    margin-right: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333333;
    padding: 0px 8px 0px 8px;
}

.filter-option.active {
    background-color: #ff9600;
    color: #fff;
    border-color: #ff9600;
    border-radius: 4px;
}

/* 排序和数量 */
.sort-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-top: 20px;
    font-size: 14px;
}

.result-count {
    color: #000;
}

.sort-options {
    display: flex;
}

.sort-option {
    padding: 4px 12px;
    margin-left: 10px;
    cursor: pointer;
    color: #000;
    transition: all 0.3s ease;
}

.sort-option:hover {
    color: #ff9600;
}

.sort-option.active {
    color: #ff9600;
    font-weight: 500;
    position: relative;
}

.sort-option.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff9600;
}

/* 课程列表 */
.course-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 18px;
    width: 1200px;
    margin: 0 auto;
}

.course-card {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 35, 95, 0.1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 35, 95, 0.16);
}

.course-thumb {
    width: 100%;
    height: auto;
}

.course-thumb img {
    width: 285px;
    height: 145px;
}

.course-body {
    padding: 14px 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.course-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.course-meta {
    font-size: 12px;
    color: #999;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 12px;
}

.course-extra {
    color: #b0b3bf;
}

.course-price {
    color: #fa4305ef;
    font-weight: 600;
}

.hot-card-price {
    font-size: 16px;
    color: #fa4305ef;
    margin-top: 4px;
}

.hot-card-price.free {
    font-size: 14px;
    color: #fa4305ef;
    margin-top: 4px;
    border: 1px solid #fa4305ef;
    padding: 3px 15px;
    border-radius: 4px;
}

/* 分页 */
.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;
}
