:root {
    --bs-btn-bg: #2e279d;
    --primary-txt: #2e279d;
    --secondary-txt: #343434;
    --explain-txt: #646464;
}

.btn-primary {
    --bs-btn-bg: #2e279d;
    --bs-btn-border-color: #2e279d;
    --bs-btn-hover-bg: #4e47ca;
}

a {
    text-decoration: none;
}

.title {
    text-align: center;
    margin-bottom: 56px;
}
.title h4 {
    color: var(--primary-txt);
    font-size: 16px;
    margin-bottom: 20px;
}
.title h2 {
    font-size: 40px;
    color: var(--secondary-txt);
    margin-bottom: 30px;
}
.title p {
    max-width: 600px;
    font-size: 14px;
    line-height: 22px;
    color: var(--explain-txt);
    margin: 0 auto;
}
.title.white h4,
.title.white h2 {
    color: #fff;
}
.title.white p {
    color: rgba(255, 255, 255, 0.7);
}

.wrapper {
    position: relative;
    padding: 100px 0;
}

@media screen and (max-width: 768px) {
    .wrapper {
        padding: 60px 24px;
    }
    .title h2 {
        font-size: 26px;
    }
}

body {
    padding-top: 80px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
header .header-inner {
    justify-content: space-between;
}
header .logo {
    margin-bottom: 0;
}
header nav .nav-menu {
    list-style: none;
    margin: 0;
}
.nav-menu li a {
    cursor: pointer;
    color: var(--explain-txt);
}
.nav-menu li.active a,
.nav-menu li a:hover {
    color: var(--secondary-txt);
}
/* 导航链接样式 */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

/* 激活状态的导航链接 */
.nav-link.active {
    color: #2e279d !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2e279d;
}

/* 移动端导航按钮样式 */
.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* 移动端导航菜单样式 */
@media (max-width: 991.98px) {
    header {
        height: 80px;
    }
    .navbar-collapse {
        position: fixed;
        top: 80px;
        left: 0;
        padding: 0 1rem;
        width: 100%;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .logo img {
        height: 44px;
    }
    .navbar-nav {
        flex-direction: column;
    }

    .nav-item {
        width: 100%;
        padding: 1rem 0;
        text-align: center;
    }
}

#about,
#course,
footer {
    background-color: #f7f7fb;
    min-height: 600px;
}

#about {
    position: relative;
    background: url('../images/banner202502041458.jpg') no-repeat center center;
    background-size: cover;
    min-height: 500px;
}
#about::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}
#about .title {
    position: relative;
    text-align: left;
    margin-top: 40px;
    z-index: 2;
}
#about .title h2 {
    font-size: 64px;
}
#about .title p {
    margin: 0;
}
@media screen and (max-width: 768px) {
    #about {
        padding: 0 24px;
        min-height: 400px;
    }
    #about .title h2 {
        font-size: 40px;
    }
}

.feature-item {
    margin: 0 10px;
}
@media screen and (max-width: 768px) {
    .feature-list {
        flex-wrap: wrap;
    }
    .feature-item {
        width: 100%;
    }
}
.feature-item .icon {
    max-width: 360px;
    height: 180px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px auto;
}
.feature-platform .icon {
    background-color: #ebebfa;
}
.feature-custom .icon {
    background-color: #ecfcf2;
}
.feature-content {
    max-width: 360px;
    margin: 0 auto;
}
.feature-content h3 {
    font-size: 20px;
    color: var(--secondary-txt);
}
.feature-content p {
    color: var(--explain-txt);
}

#course {
    background: url('../images/bg202502041124.jpg') no-repeat center center;
    background-size: cover;
}
#course::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}
#course .title,
#course .container {
    position: relative;
    z-index: 2;
}
.course-item {
    height: 80px;
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(4px);
    color: #fff;
}
.course-item-index {
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--primary-txt);
    text-align: center;
    font-size: 24px;
    font-family: 'Impact';
    text-shadow: 2px 2px 0 #c7c5e8;
}

#team .image-box {
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
}
#team .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#team .accordion-button:not(.collapsed) {
    background-color: var(--bs-btn-bg);
    color: #fff;
}


footer {
    height: auto;
    min-height: unset;
}
.footer-logo {
    color: var(--primary-txt);
}
footer p {
    color: var(--explain-txt);
}
footer a {
    text-decoration: underline;
    color: var(--explain-txt);
}
footer a:hover {
    color: var(--primary-txt);
}


/* 百昱动态 */
#news {
    background-color: #f9f9f9;
}
.news-item {
  border-radius: 16px;
  background-color: #fff;
  padding: 20px 30px;
  cursor: pointer;
}
.news-item:hover h3 {
  text-decoration: underline;
}
.news-item h3 {
  font-size: 20px;
  color: var(--primary-txt);
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-head p {
  color: #999;
  font-size: 12px;
}
.news-content {
  color: var(--explain-txt);
  font-size: 14px;
}

#news .btn-more {
  background-color: var(--primary-txt);
  border-color: #0b5ed7;
  color: #fff;
  font-size: 14px;
}

#article {
  padding-top: 40px;
}

#article .article-title {
  color: var(--primary-txt);
}
#article .article-head {
  padding-top: 50px;
  position: sticky;
  top: 85px;
  background-color: #fff;
}
#article .author {
  padding: 6px 18px 6px 12px;
  border-radius: 100px;
  background-color: #f8f8f8;
}
#article .author .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px dashed #ccc;
  overflow: hidden;
}
.author .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author .author-name {
  color: var(--explain-txt);
}

#article hr {
  border: none;
  border-top: 1px solid #d3d3d3;
  margin: 20px 0;
}

#article .extra-txt {
  color: var(--explain-txt);
  font-size: 14px;
}


#article-list .news-item {
  background-color: #f9f9f9;
}
