/* 全局样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft Yahei', sans-serif;
}

body {
    background: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(129, 140, 248, 0.05) 0%, transparent 40%);
}

/* 科技感渐变边框通用类 */
.tech-border {
    position: relative;
    border: 1px solid transparent;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: 
        linear-gradient(#ffffff, #ffffff),
        linear-gradient(135deg, #06b6d4, #818cf8);
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #06b6d4;
    letter-spacing: 1px;
}

.logo span {
    color: #818cf8;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #334155;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
padding: 6px 3px !important; /* 仅缩小按钮内边距 */
}

nav a:hover {
    color: #06b6d4;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #818cf8);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* 首页Banner轮播图样式 */
.banner {
    height: 100vh;
    position: relative;
    margin-top: -80px; /* 抵消导航栏高度 */
    overflow: hidden;
}

/* 轮播图容器 */
.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 轮播图片项 */
.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* 降低图片亮度，提升文字可读性 */
}

/* 轮播文字内容 */
.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
    z-index: 10;
    text-align: center;
    color: #fff;
}

.banner h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #06b6d4, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.banner p {
    font-size: 1.2rem;
    color: #f8fafc;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 轮播控制按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background: rgba(6, 182, 212, 0.5);
}

.carousel-prev {
    left: 2rem;
}

.carousel-next {
    right: 2rem;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 15;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: #06b6d4;
    width: 30px;
    border-radius: 6px;
}

.btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(90deg, #06b6d4, #818cf8);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
}

/* 装饰性科技元素 */
.tech-dot {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.08);
    filter: blur(80px);
    z-index: 1;
}

.dot1 {
    top: 20%;
    left: 10%;
}

.dot2 {
    bottom: 20%;
    right: 10%;
    background: rgba(129, 140, 248, 0.08);
}

/* 合作院校模块样式 - 滑动功能核心样式 */
.partners {
    padding: 5rem 5%;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}
/* 院校滑动容器 */
.partner-swipe-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
}
/* 院校滚动列表 */
.partner-grid {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease-in-out;
    padding: 1rem 0;
}
/* 院校卡片 - 固定宽度，适配滑动 */
.partner-card {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    border-radius: 10px;
    background: #f8fafc;
    height: 150px;
    transition: all 0.3s ease;
    border: 1px solid rgba(6, 182, 212, 0.1);
}
.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
}
.partner-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #3a4352;
    margin-bottom: 0.5rem;
    text-align: center;
}
.partner-desc {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
}
/* 院校滑动控制按钮 */
.partner-control {
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.1);
    transition: all 0.3s ease;
}
.partner-control:hover {
    background: linear-gradient(90deg, #06b6d4, #818cf8);
    color: #fff;
    border-color: transparent;
}
.partner-prev {
    left: 1rem;
}
.partner-next {
    right: 1rem;
}
/* 合作院校LOGO样式 - PC端 */
.partner-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%; /* 圆形LOGO，更美观 */
    object-fit: cover; /* 保证LOGO不拉伸 */
    margin-bottom: 0.8rem; /* 与校名保持间距 */
    border: 2px solid #f0f4f9; /* 浅边框提升质感 */
}

/* 调整卡片内部布局，适配LOGO */
.partner-card {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: center; /* 内容居中 */
    justify-content: center;
    padding: 2rem 1rem;
    border-radius: 10px;
    background: #f8fafc;
    height: 150px; /* 增高卡片，适配LOGO */
    transition: all 0.3s ease;
    border: 1px solid rgba(6, 182, 212, 0.1);
}

.partner-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    text-align: center;
}

.partner-desc {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
}

/* 卡片hover效果增强 */
.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
}
.partner-card:hover .partner-logo {
    border-color: #06b6d4; /* hover时LOGO边框变色 */
}

/* 图文课程展示模块样式 */
.modules {
    padding: 5rem 5%;
    background: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    color: #1e293b;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #818cf8);
}

/* 课程卡片网格 */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

/* 热门课程排行网格（8门课程，一行4个，共两行） */
.hot-course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 固定一行4个 */
    gap: 2rem;
}

/* 热门课程卡片样式（图文版） */
.hot-course-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(6, 182, 212, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(6, 182, 212, 0.1);
    display: flex;
    flex-direction: column;
}

.hot-course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.2);
}

/* 热门课程图片区域 */
.hot-course-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.hot-course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hot-course-card:hover .hot-course-img img {
    transform: scale(1.05);
}

/* 排名数字样式（图片上的角标） */
.rank-number {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(90deg, #06b6d4, #818cf8);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* 热门课程前3名特殊样式 */
.hot-course-card.top1 .rank-number {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.hot-course-card.top2 .rank-number {
    background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}
.hot-course-card.top3 .rank-number {
    background: linear-gradient(90deg, #b45309, #d97706);
}

/* 热门课程内容区域 */
.hot-course-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hot-course-title {
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.hot-course-title a{
    text-decoration: none;
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.hot-course-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: auto;
}

.hot-course-stats i {
    color: #06b6d4;
    margin-right: 0.3rem;
    font-size: 0.9rem;
}

/* 课程卡片样式 */
.course-card {
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(6, 182, 212, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(6, 182, 212, 0.1);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.2);
}

/* 课程图片区域 */
.course-img {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-img img {
    transform: scale(1.05); /* 鼠标悬浮图片轻微放大 */
}

/* 课程标签（难度/类型） */
.course-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(90deg, #06b6d4, #818cf8);
    color: #fff;
    font-size: 0.85rem;
    border-radius: 4px;
    font-weight: 500;
}

/* 课程内容区域 */
.course-content {
    padding: 1.8rem;
}

.course-title {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}


.course-desc>a{
    text-decoration: none;
}

/* 课程信息行（时长/课时） */
/* 
.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(6, 182, 212, 0.1);
}
*/

.course-meta-item {
    display: flex;
    align-items: center;
    color: #475569;
    font-size: 0.9rem;
}

.course-meta-item i {
    color: #06b6d4;
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* 新闻资讯模块样式（替换原about模块）- 左文右图布局 */
#about {
    padding: 5rem 5%;
    background: #ffffff;
    min-height: 80vh;
}

/* 新闻资讯容器 - 左文右图 */
.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: stretch;
}

/* 左侧新闻列表 */
.news-list {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 新闻条目（可点击切换） */
.news-entry {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 3px 15px rgba(6, 182, 212, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.news-entry:hover {
    box-shadow: 0 5px 20px rgba(6, 182, 212, 0.12);
    transform: translateX(5px);
}

.news-entry.active {
    border-left: 3px solid #06b6d4;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(129, 140, 248, 0.05));
}

.news-entry-title {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.news-entry-date {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.8rem;
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(6, 182, 212, 0.05);
    border-radius: 4px;
}

.news-entry-brief {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 右侧新闻图片展示区 */
.news-image-display {
    flex: 3;
    min-width: 400px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(6, 182, 212, 0.08);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 新闻图片容器（默认隐藏，仅显示激活的） */
.news-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.news-img-wrapper.active {
    opacity: 1;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 图片下方的新闻详情 */
.news-img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
}

.news-img-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.news-img-caption p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* 底部样式 */
footer {
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid rgba(6, 182, 212, 0.2);
    background: #4d555c;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

footer p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    /* 中等屏幕下热门课程改为一行3个 */
    .hot-course-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    /* 中等屏幕院校卡片宽度适配 */
    .partner-card {
        flex: 0 0 240px;
    }
}

@media (max-width: 768px) {
    .banner h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    nav ul {
        gap: 1rem;
    }

    nav a {
        font-size: 0.9rem;
    }
    
    .partner-card {
        flex: 0 0 200px;
        height: 120px;
        padding: 1.5rem 0.5rem;
    }

    .partner-name {
        font-size: 1rem;
    }
    /* 移动端院校滑动按钮缩小 */
    .partner-control {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* 移动端轮播控制按钮调整 */
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-prev {
        left: 1rem;
    }

    .carousel-next {
        right: 1rem;
    }

    /* 移动端课程卡片调整 */
    .course-img {
        height: 180px;
    }

    .course-content {
        padding: 1.5rem;
    }

    /* 移动端热门课程排行适配 - 一行2个 */
    .hot-course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hot-course-title {
        font-size: 1rem;
    }

    .hot-course-img {
        height: 140px;
    }

    /* 移动端新闻资讯布局调整 - 上下布局 */
    .news-container {
        flex-direction: column;
        gap: 2rem;
    }

    .news-list, .news-image-display {
        min-width: 100%;
    }

    .news-image-display {
        min-height: 300px;
    }

    .news-img-caption h3 {
        font-size: 1.2rem;
    }

    .news-img-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* 小屏手机热门课程改为一行1个 */
    .hot-course-grid {
        grid-template-columns: 1fr;
    }
    /* 小屏手机院校卡片占满宽度 */
    .partner-card {
        flex: 0 0 180px;
    }
    .partner-control {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    .banner h1 {
        font-size: 2rem;
    }
    .banner p {
        font-size: 1rem;
    }
}
/* 合作院校链接样式 - 保证视觉统一 */
.partner-link {
  text-decoration: none; /* 去除默认下划线 */
  width: 100%; /* 链接占满卡片宽度，点击范围更大 */
  text-align: center; /* 文字居中 */
}

/* 链接文字样式继承+hover效果 */
.partner-link .partner-name {
  transition: color 0.3s ease; /* 颜色过渡动画 */
}

/* hover时文字变色，和卡片hover效果呼应 */
.partner-card:hover .partner-link .partner-name {
  color: #06b6d4; /* 科技蓝，和现有主题色一致 */
}

/* 移动端链接样式（添加到mobile.css末尾） */
@media (max-width: 768px) {
  .partner-link {
    width: 100%;
  }
  
  .partner-card:hover .partner-link .partner-name {
    color: #06b6d4; /* 移动端保持一致的hover效果 */
  }
}
/* 课程方向模块样式 */
.course-directions {
  padding: 5rem 5%;
  background: #ffffff;
  position: relative;
}

.directions-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.direction-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.8rem;
  border: 1px solid rgba(6, 182, 212, 0.1);
  transition: all 0.3s ease;
}

.direction-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
}

.direction-header {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid linear-gradient(90deg, #06b6d4, #818cf8);
  background: linear-gradient(90deg, #06b6d4, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.direction-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.content-item .label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #334155;
}

.content-item .value {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

/* 课程方向模块样式 */
.course-directions {
  padding: 5rem 5%;
  background: #ffffff;
  position: relative;
}

.directions-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.direction-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.8rem;
  border: 1px solid rgba(6, 182, 212, 0.1);
  transition: all 0.3s ease;
}

.direction-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
}

.direction-header {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid linear-gradient(90deg, #06b6d4, #818cf8);
  background: linear-gradient(90deg, #06b6d4, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.direction-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.content-item .label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #334155;
}

.content-item .value {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

/* 全局样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft Yahei', sans-serif;
}

body {
    background: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(129, 140, 248, 0.05) 0%, transparent 40%);
}

/* 科技感渐变边框通用类 */
.tech-border {
    position: relative;
    border: 1px solid transparent;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: 
        linear-gradient(#ffffff, #ffffff),
        linear-gradient(135deg, #06b6d4, #818cf8);
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #06b6d4;
    letter-spacing: 1px;
}

.logo span {
    color: #818cf8;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #334155;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #06b6d4;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #818cf8);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* 首页Banner轮播图样式 */
.banner {
    height: 100vh;
    position: relative;
    margin-top: -80px; /* 抵消导航栏高度 */
    overflow: hidden;
}

/* 轮播图容器 */
.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 轮播图片项 */
.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* 降低图片亮度，提升文字可读性 */
}

/* 轮播文字内容 */
.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
    z-index: 10;
    text-align: center;
    color: #fff;
}

.banner h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #06b6d4, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.banner p {
    font-size: 1.2rem;
    color: #f8fafc;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 轮播控制按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background: rgba(6, 182, 212, 0.5);
}

.carousel-prev {
    left: 2rem;
}

.carousel-next {
    right: 2rem;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 15;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: #06b6d4;
    width: 30px;
    border-radius: 6px;
}

.btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(90deg, #06b6d4, #818cf8);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
}

/* 装饰性科技元素 */
.tech-dot {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.08);
    filter: blur(80px);
    z-index: 1;
}

.dot1 {
    top: 20%;
    left: 10%;
}

.dot2 {
    bottom: 20%;
    right: 10%;
    background: rgba(129, 140, 248, 0.08);
}

/* 合作院校模块样式 - 滑动功能核心样式 */
.partners {
    padding: 5rem 5%;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}
/* 院校滑动容器 */
.partner-swipe-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
}
/* 院校滚动列表 */
.partner-grid {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease-in-out;
    padding: 1rem 0;
}
/* 院校卡片 - 固定宽度，适配滑动 */
.partner-card {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    border-radius: 10px;
    background: #f8fafc;
    height: 150px;
    transition: all 0.3s ease;
    border: 1px solid rgba(6, 182, 212, 0.1);
}
.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
}
.partner-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #3a4352;
    margin-bottom: 0.5rem;
    text-align: center;
}
.partner-desc {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
}
/* 院校滑动控制按钮 */
.partner-control {
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.1);
    transition: all 0.3s ease;
}
.partner-control:hover {
    background: linear-gradient(90deg, #06b6d4, #818cf8);
    color: #fff;
    border-color: transparent;
}
.partner-prev {
    left: 1rem;
}
.partner-next {
    right: 1rem;
}
/* 合作院校LOGO样式 - PC端 */
.partner-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%; /* 圆形LOGO，更美观 */
    object-fit: cover; /* 保证LOGO不拉伸 */
    margin-bottom: 0.8rem; /* 与校名保持间距 */
    border: 2px solid #f0f4f9; /* 浅边框提升质感 */
}

/* 调整卡片内部布局，适配LOGO */
.partner-card {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: center; /* 内容居中 */
    justify-content: center;
    padding: 2rem 1rem;
    border-radius: 10px;
    background: #f8fafc;
    height: 150px; /* 增高卡片，适配LOGO */
    transition: all 0.3s ease;
    border: 1px solid rgba(6, 182, 212, 0.1);
}

.partner-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    text-align: center;
}

.partner-desc {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
}

/* 卡片hover效果增强 */
.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
}
.partner-card:hover .partner-logo {
    border-color: #06b6d4; /* hover时LOGO边框变色 */
}

/* 图文课程展示模块样式 */
.modules {
    padding: 5rem 5%;
    background: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    color: #1e293b;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #818cf8);
}

/* 课程卡片网格 */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

/* 热门课程排行网格（8门课程，一行4个，共两行） */
.hot-course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 固定一行4个 */
    gap: 2rem;
}

/* 热门课程卡片样式（图文版） */
.hot-course-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(6, 182, 212, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(6, 182, 212, 0.1);
    display: flex;
    flex-direction: column;
}

.hot-course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.2);
}

/* 热门课程图片区域 */
.hot-course-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.hot-course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hot-course-card:hover .hot-course-img img {
    transform: scale(1.05);
}

/* 排名数字样式（图片上的角标） */
.rank-number {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(90deg, #06b6d4, #818cf8);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* 热门课程前3名特殊样式 */
.hot-course-card.top1 .rank-number {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.hot-course-card.top2 .rank-number {
    background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}
.hot-course-card.top3 .rank-number {
    background: linear-gradient(90deg, #b45309, #d97706);
}

/* 热门课程内容区域 */
.hot-course-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hot-course-title {
    font-size: 1.1rem;
    color: #1e293b;a
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}
.hot-course-title a{
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    text-decoration: none;
}


.hot-course-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: auto;
}

.hot-course-stats i {
    color: #06b6d4;
    margin-right: 0.3rem;
    font-size: 0.9rem;
}

/* 课程卡片样式 */
.course-card {
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(6, 182, 212, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(6, 182, 212, 0.1);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.2);
}

/* 课程图片区域 */
.course-img {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-img img {
    transform: scale(1.05); /* 鼠标悬浮图片轻微放大 */
}

/* 课程标签（难度/类型） */
.course-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(90deg, #06b6d4, #818cf8);
    color: #fff;
    font-size: 0.85rem;
    border-radius: 4px;
    font-weight: 500;
}

/* 课程内容区域 */
.course-content {
    padding: 1.8rem;
}

.course-content a{
    text-decoration: none;
}

.course-title {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}
.course-title a{
    text-decoration: none;
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.course-desc {
        color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    /* 新增多行溢出截断样式 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4; /* 最多显示4行 */
    overflow: hidden;
    text-overflow: ellipsis;
}
.course-desc>a{
    text-decoration: none;
}

/* 课程信息行（时长/课时） */
/* 
.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(6, 182, 212, 0.1);
}
*/

.course-meta-item {
    display: flex;
    align-items: center;
    color: #475569;
    font-size: 0.9rem;
}

.course-meta-item i {
    color: #06b6d4;
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* 新闻资讯模块样式（替换原about模块）- 左文右图布局 */
#about {
    padding: 5rem 5%;
    background: #ffffff;
    min-height: 80vh;
}

/* 新闻资讯容器 - 左文右图 */
.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: stretch;
}

/* 左侧新闻列表 */
.news-list {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 新闻条目（可点击切换） */
.news-entry {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 3px 15px rgba(6, 182, 212, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.news-entry:hover {
    box-shadow: 0 5px 20px rgba(6, 182, 212, 0.12);
    transform: translateX(5px);
}

.news-entry.active {
    border-left: 3px solid #06b6d4;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(129, 140, 248, 0.05));
}

.news-entry-title {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.news-entry-date {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.8rem;
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(6, 182, 212, 0.05);
    border-radius: 4px;
}

.news-entry-brief {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 右侧新闻图片展示区 */
.news-image-display {
    flex: 3;
    min-width: 400px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(6, 182, 212, 0.08);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 新闻图片容器（默认隐藏，仅显示激活的） */
.news-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.news-img-wrapper.active {
    opacity: 1;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 图片下方的新闻详情 */
.news-img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
}

.news-img-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.news-img-caption p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* 底部样式 */
footer {
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid rgba(6, 182, 212, 0.2);
    background: #4d555c;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

footer p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    /* 中等屏幕下热门课程改为一行3个 */
    .hot-course-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    /* 中等屏幕院校卡片宽度适配 */
    .partner-card {
        flex: 0 0 240px;
    }
}

@media (max-width: 768px) {
    .banner h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    nav ul {
        gap: 1rem;
    }

    nav a {
        font-size: 0.9rem;
    }
    
    .partner-card {
        flex: 0 0 200px;
        height: 120px;
        padding: 1.5rem 0.5rem;
    }

    .partner-name {
        font-size: 1rem;
    }
    /* 移动端院校滑动按钮缩小 */
    .partner-control {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* 移动端轮播控制按钮调整 */
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-prev {
        left: 1rem;
    }

    .carousel-next {
        right: 1rem;
    }

    /* 移动端课程卡片调整 */
    .course-img {
        height: 180px;
    }

    .course-content {
        padding: 1.5rem;
    }

    /* 移动端热门课程排行适配 - 一行2个 */
    .hot-course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hot-course-title {
        font-size: 1rem;
    }

    .hot-course-img {
        height: 140px;
    }

    /* 移动端新闻资讯布局调整 - 上下布局 */
    .news-container {
        flex-direction: column;
        gap: 2rem;
    }

    .news-list, .news-image-display {
        min-width: 100%;
    }

    .news-image-display {
        min-height: 300px;
    }

    .news-img-caption h3 {
        font-size: 1.2rem;
    }

    .news-img-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* 小屏手机热门课程改为一行1个 */
    .hot-course-grid {
        grid-template-columns: 1fr;
    }
    /* 小屏手机院校卡片占满宽度 */
    .partner-card {
        flex: 0 0 180px;
    }
    .partner-control {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    .banner h1 {
        font-size: 2rem;
    }
    .banner p {
        font-size: 1rem;
    }
}
/* 合作院校链接样式 - 保证视觉统一 */
.partner-link {
  text-decoration: none; /* 去除默认下划线 */
  width: 100%; /* 链接占满卡片宽度，点击范围更大 */
  text-align: center; /* 文字居中 */
}

/* 链接文字样式继承+hover效果 */
.partner-link .partner-name {
  transition: color 0.3s ease; /* 颜色过渡动画 */
}

/* hover时文字变色，和卡片hover效果呼应 */
.partner-card:hover .partner-link .partner-name {
  color: #06b6d4; /* 科技蓝，和现有主题色一致 */
}

/* 移动端链接样式（添加到mobile.css末尾） */
@media (max-width: 768px) {
  .partner-link {
    width: 100%;
  }
  
  .partner-card:hover .partner-link .partner-name {
    color: #06b6d4; /* 移动端保持一致的hover效果 */
  }
}
/* 课程方向模块样式 */
.course-directions {
  padding: 5rem 5%;
  background: #ffffff;
  position: relative;
}

.directions-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.direction-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.8rem;
  border: 1px solid rgba(6, 182, 212, 0.1);
  transition: all 0.3s ease;
}

.direction-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
}

.direction-header {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid linear-gradient(90deg, #06b6d4, #818cf8);
  background: linear-gradient(90deg, #06b6d4, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.direction-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.content-item .label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #334155;
}

.content-item .value {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

/* 课程方向模块样式 */
.course-directions {
  padding: 5rem 5%;
  background: #ffffff;
  position: relative;
}

.directions-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.direction-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.8rem;
  border: 1px solid rgba(6, 182, 212, 0.1);
  transition: all 0.3s ease;
}

.direction-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
}

.direction-header {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid linear-gradient(90deg, #06b6d4, #818cf8);
  background: linear-gradient(90deg, #06b6d4, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.direction-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.content-item .label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #334155;
}

.content-item .value {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}



