/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.logo i {
    font-size: 40px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 5px;
}

.nav-link {
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* 登录按钮 */
.login-btn {
    padding: 10px 24px;
    background: white;
    color: #667eea;
    border: 2px solid white;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 20px;
}

.login-btn:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

/* Banner 轮播 */
.banner {
    height: 450px;
    position: relative;
    overflow: hidden;
}

.banner-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;
    color: white;
    width: 100%;
}

.banner-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 20px;
    opacity: 0.95;
}

/* Banner轮播控制 */
.banner-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.3);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.banner-control:hover {
    background: rgba(255,255,255,0.5);
    transform: translateY(-50%) scale(1.1);
}

.banner-control.prev {
    left: 30px;
}

.banner-control.next {
    right: 30px;
}

.banner-control i {
    font-size: 20px;
    color: white;
}

/* Banner指示器 */
.banner-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.banner-indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* 区块标题 */
.section {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
}

.section-title {
    font-size: 38px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title i {
    color: #2196F3;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
}

/* 教学点合集 */
.teaching-points {
    background: white;
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.point-card {
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.point-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.point-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102,126,234,0.25);
    border-color: #667eea;
}

.point-card:hover::before {
    transform: scaleX(1);
}

.point-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(102,126,234,0.3);
}

.point-icon i {
    font-size: 36px;
    color: white;
}

.point-name {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.point-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0;
    font-size: 15px;
    color: #666;
}

.point-detail i {
    color: #667eea;
    margin-top: 3px;
    font-size: 16px;
}

.point-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    padding: 6px 14px;
    background: linear-gradient(135deg, #E8EAF6 0%, #C5CAE9 100%);
    color: #3F51B5;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* 新闻通知 */
.news-section {
    background: #f9fafb;
}

.news-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.news-featured {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    height: 100%;
}

.news-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-featured:hover img {
    transform: scale(1.1);
}

.news-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: #ff6b6b;
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 36px;
    line-height: 1;
    box-shadow: 0 6px 20px rgba(255,107,107,0.4);
}

.news-badge small {
    display: block;
    font-size: 13px;
    margin-top: 5px;
    opacity: 0.95;
}

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}

.news-overlay h3 {
    font-size: 22px;
    line-height: 1.4;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.news-item {
    background: white;
    padding: 22px;
    border-radius: 12px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
}

.news-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(102,126,234,0.2);
}

.news-date {
    flex-shrink: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    min-width: 70px;
}

.news-date-day {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.news-date-month {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.news-item h4 {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

/* 线下课程 */
.courses-section {
    background: white;
}

.course-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.search-box input::placeholder {
    color: #999;
}

.search-box select {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
    background: white;
    color: #666;
}

.search-box select:hover {
    border-color: #667eea;
}

.search-box select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.search-box input[type="date"] {
    cursor: pointer;
}

.search-box input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
}

/* 日期输入框未选择时显示提示文字 */
.search-box input[type="date"]:not(:valid)::before {
    content: attr(placeholder);
    color: #999;
}

.search-box input[type="date"]:focus::before {
    content: '' !important;
}

.course-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.course-tab {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 25px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.course-tab:hover {
    border-color: #667eea;
    color: #667eea;
}

.course-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

.course-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.course-table thead {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
}

.course-table th {
    padding: 18px 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    border: 1px solid #DDD;
}

.course-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.course-table tbody tr:hover {
    background: #f9fafb;
}

.course-table td {
    padding: 20px 15px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.course-name {
    color: #333;
    font-weight: 600;
    font-size: 15px;
}

.course-category-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.badge-literature {
    background: #E3F2FD;
    color: #2196F3;
}

.badge-science {
    background: #E8F5E9;
    color: #4CAF50;
}

.badge-humanities {
    background: #FFF3E0;
    color: #FF9800;
}

.badge-health {
    background: #FCE4EC;
    color: #E91E63;
}

.badge-skill {
    background: #F3E5F5;
    color: #9C27B0;
}

.course-price {
    color: #ff6b6b;
    font-weight: 700;
    font-size: 16px;
}

.course-enroll-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.course-enroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,107,0.4);
}

.show-more-btn {
    display: block;
    margin: 30px auto 0;
    padding: 12px 40px;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.show-more-btn:hover {
    background: #667eea;
    color: white;
}

/* 隐藏的课程行 */
.hidden-row {
    display: none;
}

/* 在线学堂 */
.online-section {
    background: #f9fafb;
}

.online-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.online-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.online-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(102,126,234,0.15);
}

.online-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.online-info {
    flex: 1;
}

.online-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.online-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.online-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.online-details i {
    color: #667eea;
    font-size: 12px;
}

.online-btn {
    flex-shrink: 0;
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.online-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(102,126,234,0.4);
}

/* 教育服务 */
.services-section {
    background: white;
}


/* 即将上线徽章 */
.coming-soon-badge {
    position: absolute;
    top: 5px;
    left: 5%;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
    padding: 8px 18px;
    background: -webkit-linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    background: -moz-linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    -webkit-box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
    z-index: 10;
    -webkit-animation: pulse 2s ease-in-out infinite;
    -moz-animation: pulse 2s ease-in-out infinite;
    animation: pulse 2s ease-in-out infinite;
}

@-webkit-keyframes pulse {
    0%, 100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
    }
}

@-moz-keyframes pulse {
    0%, 100% {
        -moz-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -moz-transform: scale(1.05);
        transform: scale(1.05);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    padding: 70px 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
    transition: all 0.4s;
    cursor: pointer;
}

.service-card.purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.service-card.red {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.service-card.green {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.service-icon {
    font-size: 80px;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 28px;
    font-weight: 700;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-bottom: 35px;
}

.footer h3 {
    font-size: 20px;
    margin-bottom: 18px;
    color: #ff6b6b;
}

.footer p {
    margin: 10px 0;
    color: #bdc3c7;
    font-size: 14px;
}

.footer-copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #95a5a6;
    font-size: 13px;
}

/* 联盟高校 */
.universities-section {
    background: white;
    padding: 60px 0;
    border-top: 1px solid #e8e8e8;
}

/* 广告图区域 */
.ad-banner-section {
    background: white;
    padding: 40px 0;
}

.ad-banner-link {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.ad-banner-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(102,126,234,0.3);
}

.ad-banner-link img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.ad-banner-link:hover img {
    transform: scale(1.05);
}

/* 教学点合集 - 简化版 */
.teaching-points-simple {
    background: #f9fafb;
    padding: 60px 0;
}

.teaching-category {
    margin-bottom: 40px;
}

.teaching-category:last-child {
    margin-bottom: 0;
}

.category-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
}

.category-title i {
    font-size: 20px;
}

.teaching-simple-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.teaching-simple-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e8e8e8;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.teaching-simple-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.teaching-simple-item:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 8px 20px rgba(102,126,234,0.2);
}

.teaching-simple-item:hover::before {
    transform: scaleX(1);
}

.teaching-simple-item h4 {
    font-size: 16px;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.teaching-simple-item:hover h4 {
    color: #667eea;
}

.universities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
    margin-top: 40px;
}

.university-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0px;
    background: #fafafa;
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    gap: 15px;
}

.university-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: #667eea;
    background: white;
}

.university-item img {
    width: 300px;
    height: 110px;
    filter: grayscale(30%);
    transition: filter 0.3s;
}

.university-item:hover img {
    filter: grayscale(0%);
}

.university-name {
    font-size: 15px;
    font-weight: 600;
    color: #666;
    margin: 0;
    text-align: center;
    transition: color 0.3s;
}

.university-item:hover .university-name {
    color: #667eea;
}

/* 更多按钮样式 */
.more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
}

/* 新课推荐筛选按钮 */
.new-course-filter {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.new-course-filter-btn {
    padding: 8px 20px;
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 25px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.new-course-filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.new-course-filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

/* 在线学堂课程类型筛选器 */
.online-course-filter {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.online-course-filter-btn {
    padding: 8px 20px;
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 25px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.online-course-filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.online-course-filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

/* 新课推荐 */
.new-courses-section {
    background: white;
}

/* 课程滚动容器 */
.course-scroll-container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    /* 隐藏滚动条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

/* Webkit浏览器隐藏滚动条 */
.course-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.new-courses-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 25px;
    padding-bottom: 10px;
}

.new-course-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    flex: 0 0 280px;  /* 固定宽度，不伸缩 */
    width: 280px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.new-course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.new-course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102,126,234,0.25);
    border-color: #667eea;
}

.new-course-card:hover::before {
    transform: scaleX(1);
}

.new-course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.new-course-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102,126,234,0.9) 0%, rgba(118,75,162,0.9) 100%);
}

/* 有背景图片时，禁用::after伪元素的渐变背景 */
.new-course-image.has-picture::after {
    display: none;
}

.new-course-image i {
    font-size: 80px;
    color: white;
    position: relative;
    z-index: 1;
}

.new-course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b6b;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(255,107,107,0.4);
}

.new-course-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.new-course-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.new-course-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.new-course-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.new-course-meta-item i {
    color: #667eea;
    font-size: 16px;
}

.new-course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.new-course-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.new-course-price-label {
    font-size: 14px;
    color: #999;
}

.new-course-price-value {
    font-size: 28px;
    font-weight: 700;
    color: #ff6b6b;
}

.new-course-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.new-course-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

/* 登录弹窗 */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.login-modal.active {
    display: flex;
}

.login-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.login-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.login-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.login-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin: 20px 20px 0;
}

.login-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.login-tab.active {
    color: #667eea;
    font-weight: 600;
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #667eea;
}

.login-content {
    display: none;
    padding: 30px;
}

.login-content.active {
    display: block;
}

.login-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.login-input:focus {
    border-color: #667eea;
    outline: none;
}

.code-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.code-group .login-input {
    flex: 1;
    margin-bottom: 0;
}

.code-btn {
    padding: 12px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.login-btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

.qr-code {
    text-align: center;
    padding: 20px 0;
}

.qr-code i {
    font-size: 120px;
    color: #667eea;
    margin-bottom: 20px;
}

.qr-code p {
    color: #666;
    font-size: 14px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 教学点合集 */
.teaching-points-section {
    background: white;
    padding: 40px 0;
}

.teaching-points-container {
    position: relative;
}

.teaching-points-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.teaching-point-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
}

.teaching-point-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.teaching-point-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(102,126,234,0.25);
    border-color: #667eea;
}

.teaching-point-card:hover::before {
    transform: scaleX(1);
}

.teaching-point-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.teaching-point-image::after {
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102,126,234,0.9) 0%, rgba(118,75,162,0.9) 100%);
}

.teaching-point-image i {
    font-size: 50px;
    color: white;
    position: relative;
    z-index: 1;
}

.teaching-point-content {
    padding: 20px 15px;
}

.teaching-point-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
    margin-bottom: 10px;
    line-height: 1.4;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.teaching-point-description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    text-align: center;
}

.teaching-point-description p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 40px;
}

/* 品牌合集 */
.brand-collection-section {
    background: white;
    padding: 40px 0;
}

.brand-scroll-container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    /* 移除 scroll-behavior: smooth，避免与 JavaScript 定时滚动冲突 */
    /* scroll-behavior: smooth; */
    /* 隐藏滚动条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

/* Webkit浏览器隐藏滚动条 */
.brand-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 左右渐变遮罩效果 - 已移除，避免遮挡品牌卡片图片 */
/*
.brand-scroll-container::before,
.brand-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 10px;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.brand-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.brand-scroll-container::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}
*/

.brand-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    padding-bottom: 10px;
}

.brand-collection-section .brand-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    flex: 0 0 200px;
    width: 200px;
    cursor: pointer;
}

.brand-collection-section .brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.brand-collection-section .brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(102,126,234,0.25);
    border-color: #667eea;
}

.brand-collection-section .brand-card:hover::before {
    transform: scaleX(1);
}

.brand-collection-section .brand-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.brand-collection-section .brand-image::after {
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102,126,234,0.9) 0%, rgba(118,75,162,0.9) 100%);
}

.brand-collection-section .brand-image i {
    font-size: 50px;
    color: white;
    position: relative;
    z-index: 1;
}

.brand-collection-section .brand-content {
    padding: 20px 15px;
}

.brand-collection-section .brand-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-collection-section .brand-description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    text-align: center;
}

.brand-collection-section .brand-description p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 40px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    left: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
    transition: all 0.3s;
    z-index: 9998;
}

.back-to-top.show {
    display: flex;
    animation: fadeIn 0.3s;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102,126,234,0.6);
}

.back-to-top i {
    font-size: 22px;
}

/* 响应式 */
@media (max-width: 992px) {
    .points-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .new-course-card {
        flex: 0 0 260px;
        width: 260px;
    }

    .online-list {
        grid-template-columns: 1fr;
    }

    .universities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .teaching-points-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .brand-collection-section .brand-card {
        flex: 0 0 200px;
        width: 200px;
    }

    .banner {
        height: 350px;
    }

    .banner-content h1 {
        font-size: 42px;
    }

    .banner-content p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .nav {
        gap: 0;
    }
    .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    .login-btn {
        padding: 8px 16px;
        font-size: 14px;
        margin-left: 10px;
    }
    .banner {
        height: 280px;
    }
    .banner-content h1 {
        font-size: 28px;
    }
    .banner-content p {
        font-size: 14px;
    }
    .banner-control {
        width: 40px;
        height: 40px;
    }
    .banner-control.prev {
        left: 10px;
    }
    .banner-control.next {
        right: 10px;
    }
    .banner-control i {
        font-size: 16px;
    }
    .section-title {
        font-size: 28px;
    }
    .points-grid,
    .online-list,
    .services-grid,
    .news-grid,
    .universities-grid {
        grid-template-columns: 1fr;
    }

    .new-course-card {
        flex: 0 0 240px;
        width: 240px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .teaching-points-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-collection-section .brand-card {
        flex: 0 0 180px;
        width: 180px;
    }

    .brand-collection-section .brand-image {
        height: 100px;
    }

    .brand-collection-section .brand-image i {
        font-size: 40px;
    }

    .brand-collection-section .brand-content {
        padding: 15px 10px;
    }

    .brand-collection-section .brand-title {
        font-size: 14px;
    }

    .brand-collection-section .brand-description {
        font-size: 12px;
    }

    .ad-banner-section {
        padding: 20px 0;
    }

    /* 课程表格在移动端的优化 */
    .course-filter {
        flex-direction: column;
    }

    .search-box {
        min-width: 100%;
    }

    .course-tabs {
        width: 100%;
        justify-content: flex-start;
    }

    .course-table {
        font-size: 13px;
    }

    .course-table th,
    .course-table td {
        padding: 12px 8px;
    }

    .course-name {
        font-size: 14px;
    }

    /* 在线学堂移动端优化 */
    .online-item {
        flex-direction: column;
        text-align: center;
    }

    .online-details {
        justify-content: center;
    }

    .online-btn {
        width: 100%;
    }
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.point-card,
.online-item {
    animation: fadeIn 0.6s ease-out backwards;
}

.point-card:nth-child(1) { animation-delay: 0.1s; }
.point-card:nth-child(2) { animation-delay: 0.2s; }
.point-card:nth-child(3) { animation-delay: 0.3s; }
.point-card:nth-child(4) { animation-delay: 0.4s; }
.point-card:nth-child(5) { animation-delay: 0.5s; }
.point-card:nth-child(6) { animation-delay: 0.6s; }
