/* 公共样式 */
.w {
    width: 90%;
    margin: 0 auto;
}

/* 网格 */
.grid-line {
    background-image: linear-gradient(white 0px, transparent 0),
        linear-gradient(90deg, white 0px, transparent 0),
        linear-gradient(hsla(0, 0%, 100%, .3) 1px, transparent 0),
        linear-gradient(90deg, hsla(0, 0%, 100%, .3) 1px, transparent 0);
    background-size: 75px 75px, 75px 75px, 15px 15px, 15px 15px;
}

/* 圆点 */
.dot {
    background-image:
        radial-gradient(rgba(63, 158, 255, 0.5) 10%, transparent 0),
        radial-gradient(rgba(63, 158, 255, 0.5) 10%, transparent 0);
    /* 两层圆形渐变 */
    background-size: 10px 10px;
    /* 点阵大小 */
    background-position: 0 0, 30px 30px;
    /* 错位排列 */
}

/* 文字省略显示 */
.ellipsis-2-lines {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}


:root {
    --height: 100px;
    /* size */
    --text: 16px;
    --text2: 14px;
    /* color */
    --tex-col1: #303030;
    --tex-col2: #a1a1a1;
    --tex-col3: #3f3f3f;
    --tex-col4: #f5f5f5;
    --tex-col5: #1f1f1f;
    --theme-col: #3f9eff;
    --theme-col2: #008cfe;
    --theme-col3: #207ffc;
    --theme-col4: #f8f8f8;
}

.underline::after {
    content: "";
    display: inline-block;
    width: 0%;
    height: 1px;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

::-webkit-scrollbar {
    /* position: absolute; */
    /* 隐藏滚动条 */
}

.noCompress {
    object-fit: cover;
}

html,
body {
    scroll-behavior: smooth;
}

.scroll-line {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 2px;
    background-color: var(--theme-col2);
    animation: scroll-line 1.5s linear forwards;
    animation-timeline: scroll();
}

@keyframes scroll-line {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}


/* -----头部----- */

.header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--height);
    min-width: 1350px;
    background-color: var(--theme-col4);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: height 0.3s ease;
    z-index: 1000;
    --before-bg: rgba(255, 255, 255, .2);
    --height-bg: calc(var(--height) * .6);
}

.header-reduce {
    height: calc(var(--height) * .6);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--height-bg);
    background-color: var(--before-bg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: -1;
}

.head-nav {
    width: 95%;
    height: 100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.head-nav-L {
    display: flex;
    align-items: center;
}

.head-nav-L .logo {
    width: 60px;
    height: 60px;
    margin-right: 30px;
    outline: none;
}

.head-nav-L .logo h1 {
    font-size: 0;
}

.head-nav-L .logo a,
.head-nav-L .logo a img {
    display: inline-block;
    width: 100%;
    height: 100%;
}

.head-nav-L .nav-list {
    height: 60px;
    display: flex;
    align-items: center;
    padding-top: 5px;
}

.nav-list li {
    position: relative;
    margin-right: 30px;
}

.nav-list li:hover::after {
    width: 100%;
    background-color: var(--theme-col);
}

.nav-list li a {
    font-size: var(--text);
    color: var(--tex-col1);
    transition: all 0.3s ease;
}

.nav-list li a:hover {
    color: var(--theme-col);
}

.head-nav-R {
    display: flex;
    align-items: center;
}

.search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 30px;
    border: 2px solid #bfbfbf;
    border-radius: 20px;
    padding: 0 5px;
    transition: all 0.3s ease;
}

.search-input {
    width: 130px;
    padding-left: 5px;
}

.search-input input {
    width: 100%;
    height: 26px;
    background-color: transparent;
}

.search:has(input:focus) {
    border: 2px solid var(--theme-col);
}

.search-icon {
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 28px;
}

.search-icon i {
    font-size: calc(var(--text) * 1.3);
    color: var(--tex-col2);
}


.head-nav-R .login a {
    display: inline-block;
    width: 80px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    margin-left: 20px;
    border: 1px solid var(--theme-col);
    background-color: transparent;
    border-radius: 5px;
    font-size: var(--text2);
    color: var(--theme-col);
}

.head-nav-R .login a:hover {
    background-color: var(--theme-col);
    color: var(--theme-col4);
    transition: all 0.3s ease;
}

/* -----底部----- */
.footer {
    background-color: var(--theme-col2);
    width: 100%;
    /* height: 500px; */
}

.footer-up a::after {
    content: "";
    display: block;
    width: 0%;
    height: 1px;
    background-color: var(--tex-col4);
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.footer-up a:hover::after {
    width: 100%;
}

.footer-up {
    padding: 30px 50px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.footer-up a:not(.footer-media-list a) {
    font-size: var(--text2);
    color: var(--tex-col4);
    position: relative;
    cursor: default;
}

.footer-title {
    font-size: calc(var(--text) * 1.3);
    color: var(--tex-col4);
    margin-bottom: 20px;
}

.footer-up ul {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-left,
.footer-middle,
.footer-right {
    width: 30%;
    /* height: 200px; */
}

.footer-media-list {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.footer-media-list a {
    color: var(--tex-col4);
    position: relative;
}

.footer-media-list i {
    font-size: 25px;
}

.course-more i {
    position: absolute;
    top: 0;
    right: -15px;
    transform: rotate(-45deg);
    font-size: var(--text2);
}

.footer-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 40px;
}

.footer-logo img {
    width: 100%;
    height: 100%;
}

.footer-left-slogan {
    font-size: calc(var(--text) * 1.3);
    color: var(--tex-col4);
}

.footer-down {
    padding: 30px 0;
    width: 100%;
    height: 40px;
    background-color: #207ffc;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer-down p {
    font-size: var(--text2);
    color: var(--tex-col4);
}

.footer-down p a {
    color: var(--tex-col4);
}

/* ----------侧边栏----------*/

.aside {
    width: 35px;
    height: 35px;
    background-color: var(--theme-col);
    position: fixed;
    bottom: 25%;
    right: -40px;
    transform: translateY(-50%) rotate(-90deg);
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.aside-fixed {
    right: 20px;
}

.aside a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    font-size: var(--text2);
    color: #fff;
    transition: all 0.3s ease;
    cursor: default;
}

@keyframes asideMove {

    0%,
    100% {
        transform: translateX(0%);
    }

    49% {
        transform: translateX(100%);
    }

    50% {
        color: transparent;
    }

    51% {
        transform: translateX(-100%);
        color: #fff;
    }
}

.aside:hover a {
    animation: asideMove .3s ease forwards;
}